Access authentication method and device, electronic equipment and storage medium

Through the interaction between the NEF entity, the SMF entity and the client server, the problem of temporary visitors being unable to access the intranet in the 5G network is solved, the intranet access permission control for temporary users is realized, and the requirements for temporary access to the intranet and the Internet are met. need.

CN118828490APending Publication Date: 2024-10-22CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311272502.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Existing technology is difficult to control the temporary access rights of temporary visitors to the intranet in the 5G network, especially when the intranet service contract is not signed, effective authentication and access to the intranet cannot be achieved.

Method used

The NEF entity receives the reporting message of the session management function SMF entity, initiates an authentication request to the client server, and decides whether to send the uplink offload policy based on the authentication instruction information to implement the user's intranet and Internet access control.

Benefits of technology

It realizes the control of intranet access rights for temporary visitors, meets the needs of temporary access to the intranet and the Internet, and conducts reasonable access management without signing an intranet business contract.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118828490A_ABST
    Figure CN118828490A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an access authentication method and device, electronic equipment and a computer storage medium. The method comprises the following steps: receiving a report message fed back by an SMF entity based on a subscription message; the subscription message comprises a number list of a mobile terminal pre-received by an NEF entity and a position of a target area, and the report message is used for indicating a first user to enter the target area; the first user is a user corresponding to any mobile terminal number in a number list of the mobile terminal and the first user is a user who does not perform service signing of an intranet; initiating an authentication request to a client side server, wherein the authentication request at least carries the mobile terminal number of the first user; and receiving authentication indication information sent by the client side server, wherein the authentication indication information is used for indicating whether the first user passes the access authentication of the intranet.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of wireless communication technology, and in particular relates to an access authentication method, device, electronic device and storage medium. Background Art

[0002] With the integration of the fifth generation mobile communication technology (5G) network and the intranet of various industries, the demand for dual-domain access has gradually become prominent. Here, the dual-domain access demand refers to the demand of industry customers to access the Internet and the intranet at the same time in a local area. In related technologies, if the industry customer has signed a business contract for the intranet, the industry customer can access the intranet based on the business contract. If the temporary visitor has not signed a business contract for the intranet, the temporary visitor's request to access the intranet cannot be authenticated. Summary of the invention

[0003] Embodiments of the present application provide an access authentication method, device, electronic device, and storage medium.

[0004] An embodiment of the present application provides an access authentication method, which is applied to a network exposure function (NEF) entity, and includes:

[0005] receiving a report message fed back by a session management function (SMF) entity based on a subscription message; the subscription message includes a number list of mobile terminals pre-received by the NEF entity and a location of a target area, the report message is used to indicate that a first user enters the target area, the first user is a user corresponding to any mobile terminal number in the number list of the mobile terminal and the first user is a user who has not signed a service contract for an intranet;

[0006] Initiate an authentication request to a client-side server, wherein the authentication request carries at least the mobile terminal number of the first user;

[0007] Receive authentication indication information sent by the client-side server, where the authentication indication information is used to indicate whether the first user has passed the access authentication of the intranet.

[0008] In some embodiments, after receiving the authentication indication information, the method also includes: when the authentication indication information indicates that the first user has passed the access authentication of the intranet, and the authentication indication information does not carry the waiting time, initiating an application function (Application Function AF) session establishment process, and sending an uplink classifier (ULCL) policy to the SMF entity; the ULCL policy represents the data diversion strategy when the first user accesses the intranet and the Internet; when the authentication indication information indicates that the first user has not passed the access authentication of the intranet, and the authentication indication information does not carry the waiting time, determining that there is no need to send the ULCL policy to the SMF entity.

[0009] In an embodiment of the present application, when the authentication indication information indicates that the first user has passed the access authentication of the intranet, and the authentication indication information does not carry the waiting time, by initiating the AF session establishment process and sending the ULCL policy to the SMF entity, the first user's terminal can access the intranet and the Internet at the same time based on the ULCL policy, thereby meeting the first user's terminal access to the intranet. When the authentication indication information indicates that the first user has not passed the access authentication of the intranet, and the authentication indication information does not carry the waiting time, since there is no need to send the ULCL policy to the SMF entity, the first user's terminal cannot access the intranet at the same time based on the ULCL policy, that is, the first user's terminal can be reasonably denied access to the intranet based on the authentication indication information.

[0010] In some embodiments, the authentication request also carries a timestamp; after receiving the authentication indication information, the method further includes: when the authentication indication information indicates that the first user has passed the access authentication of the intranet, and the authentication indication information carries a waiting time, starting the timing, initiating an application function AF session establishment process, and sending an uplink diversion ULCL policy to the SMF entity; when the timing time is equal to the waiting time, deleting the established AF session; wherein the waiting time is determined based on the timestamp, and the ULCL policy represents the data diversion strategy when the first user accesses the intranet and the Internet; when the authentication indication information indicates that the first user has not passed the access authentication of the intranet, and the authentication indication information carries a waiting time, starting the timing; when the timing time is equal to the waiting time, determining whether the first user is in the target area; when the first user is in the target area, initiating an AF session establishment process and sending the ULCL policy to the SMF entity.

[0011] In an embodiment of the present application, when the authentication indication information indicates that the first user has passed the access authentication of the intranet, and the authentication indication information carries the waiting time, the AF session establishment process can be initiated, and the ULCL policy can be sent to the SMF entity, so that the first user's terminal can access the intranet and the Internet at the same time based on the ULCL policy, and after waiting for a period of time, the established AF session can be deleted, thereby realizing the first user's terminal's limited-time access to the intranet, thereby meeting the first user's terminal's limited-time access to the intranet. In the case where the authentication indication information indicates that the first user has not passed the access authentication of the intranet, and the authentication indication information carries the waiting time, it can be considered that the current moment is not in the time period in which the first user's mobile terminal is allowed to access the intranet. After waiting for a period of time, if the first user is in the target area, the AF session establishment process can be initiated, and the ULCL policy can be sent to the SMF entity, so that the first user's terminal can access the intranet and the Internet at the same time in an appropriate time period, thereby meeting the first user's terminal's limited-time access to the intranet.

[0012] In some embodiments, before receiving the report message fed back by the SMF entity based on the subscription message, the method also includes: receiving the number list and service identifier of the mobile terminal sent by the client-side server; determining the location of the target area based on the service identifier and the correspondence between the pre-configured service identifier and the regional location.

[0013] It can be seen that the NEF entity can receive the number list and service identifier of the mobile terminal from the client-side server in advance, so as to determine the location of the target area more accurately in combination with the correspondence between the pre-configured service identifier and the area location.

[0014] The embodiment of the present application also provides another access authentication method, which is applied to an SMF entity, and the method includes:

[0015] Receiving a subscription message sent by a NEF entity, the subscription message including a number list of mobile terminals pre-received by the NEF entity and a location of a target area;

[0016] Based on the subscription message, a reporting message is fed back to the NEF entity, so that the NEF entity initiates an authentication request to the client-side server and receives authentication indication information sent by the client-side server; wherein the reporting message is used to indicate that a first user enters the target area, and the first user is a user corresponding to any mobile terminal number in the number list of the mobile terminal, and the first user is a user who has not signed a service contract for the intranet; the authentication request carries at least the mobile terminal number of the first user, and the authentication indication information is used to indicate whether the first user has passed the access authentication.

[0017] In some embodiments, after feeding back the reporting message to the NEF entity, the method further includes: upon receiving a ULCL policy, connecting the mobile terminal of the first user to the intranet and the Internet based on the ULCL policy.

[0018] It can be seen that when the SMF entity receives the ULCL policy, the first user's mobile terminal can be connected to the intranet and the Internet according to the ULCL policy, thereby meeting the needs of specific personnel to access the intranet and the Internet.

[0019] The embodiment of the present application also provides another access authentication method, which is applied to a client-side server and includes:

[0020] Receive an authentication request sent by an NEF entity; the authentication request is a request sent by the NEF entity after receiving a report message fed back by the SMF entity, and the report message is a message fed back by the SMF entity based on a subscription message; wherein the subscription message includes a number list of mobile terminals pre-received by the NEF entity and the location of a target area, and the report message is used to indicate that a first user enters the target area, the first user is a user corresponding to any mobile terminal number in the number list of the mobile terminal, and the first user is a user who has not signed a service contract for the intranet; the authentication request carries at least the mobile terminal number of the first user;

[0021] Sending authentication indication information to the NEF entity, where the authentication indication information is used to indicate whether the first user passes access authentication.

[0022] In some embodiments, the authentication request also carries a timestamp; after receiving the authentication request, the method further includes: determining an allowed access time period corresponding to the mobile terminal number of the first user, the allowed access time period indicating the time period in which the mobile terminal of the first user is allowed to access the intranet; determining a waiting time based on the timestamp and the allowed access time period; the waiting time indicates the time in which the mobile terminal of the first user is allowed to access the intranet from the moment indicated by the timestamp, or the waiting time indicates the time required to wait before the mobile terminal of the first user is connected to the intranet.

[0023] In the embodiment of the present application, the waiting time can be determined more accurately based on the timestamp and the allowed access time period, which is conducive to achieving time-limited access to the intranet by the first user's terminal and meeting the first user's terminal's need for time-limited access to the intranet.

[0024] In some embodiments, before receiving the authentication request, the method also includes: sending the number list and service identifier of the mobile terminal to the NEF entity, so that the NEF entity determines the location of the target area based on the service identifier and the pre-configured correspondence between the service identifier and the area location; the location of the target area is the area location corresponding to the service identifier.

[0025] It can be seen that the NEF entity can receive the number list and service identifier of the mobile terminal from the client-side server in advance, so as to determine the location of the target area more accurately in combination with the correspondence between the pre-configured service identifier and the area location.

[0026] The embodiment of the present application further provides an access authentication device, which is applied to a NEF entity, and includes:

[0027] A first receiving module is used to receive a report message fed back by a session management function SMF entity based on a subscription message; the subscription message includes the location of a target area and a number list of mobile terminals pre-received by the NEF entity, and the report message is used to indicate that a first user has entered the target area, the first user is a user corresponding to any mobile terminal number in the number list of the mobile terminal, and the first user is a user who has not signed a service contract for the intranet;

[0028] The first processing module is used to initiate an authentication request to the client-side server and receive authentication indication information sent by the client-side server. The authentication request carries at least the mobile terminal number of the first user; the authentication indication information is used to indicate whether the first user has passed the access authentication of the intranet.

[0029] The embodiment of the present application also provides another access authentication device, which is applied to an SMF entity, and includes:

[0030] A second receiving module, configured to receive a subscription message sent by the NEF entity, wherein the subscription message includes a location of a target area and a number list of mobile terminals pre-received by the NEF entity;

[0031] The second processing module is used to feed back a reporting message to the NEF entity based on the subscription message, so that the NEF entity initiates an authentication request to the client-side server and receives authentication indication information sent by the client-side server; wherein the reporting message is used to indicate that a first user enters the target area, and the first user is a user corresponding to any mobile terminal number in the number list of the mobile terminal, and the first user is a user who has not signed a service contract for the intranet; the authentication request carries at least the mobile terminal number of the first user, and the authentication indication information is used to indicate whether the first user has passed the access authentication of the intranet.

[0032] The embodiment of the present application also provides another access authentication device, which is applied to a client-side server, and includes:

[0033] A third receiving module is used to receive an authentication request sent by the NEF entity; the authentication request is a request sent by the NEF entity after receiving a report message fed back by the SMF entity, and the report message is a message fed back by the SMF entity based on a subscription message; wherein the subscription message includes the location of the target area and a number list of mobile terminals pre-received by the NEF entity, and the report message is used to indicate that a first user has entered the target area, the first user is a user corresponding to any mobile terminal number in the number list of the mobile terminal, and the first user is a user who has not signed a service contract for the intranet; the authentication request carries at least the mobile terminal number of the first user;

[0034] The third processing module is used to send authentication indication information to the NEF entity, where the authentication indication information is used to indicate whether the first user has passed the access authentication of the intranet.

[0035] An embodiment of the present application also provides an electronic device, which is applied to a NEF entity, an SMF entity or a client-side server, and the electronic device includes a processor and a memory for storing a computer program that can be run on the processor; wherein the processor is used to run the computer program to execute any one of the above-mentioned access authentication methods.

[0036] An embodiment of the present application further provides a computer storage medium on which a computer program is stored. When the computer program is executed by a processor, any one of the above-mentioned access authentication methods is implemented.

[0037] It can be seen that the NEF entity can determine the user corresponding to any mobile terminal number in the mobile terminal number list based on the pre-received mobile terminal number list, that is, determine the first user, and then after receiving the report message indicating that the first user has entered the target area, send an authentication request to the client-side server, so that the client-side server authenticates the request for a specific person to access the intranet, that is, access authentication for the intranet can be performed for the first user; thus, in the case where the first user does not sign a service contract for the intranet, the first user's request to access the intranet can be authenticated, which is conducive to meeting the first user's need to access the intranet. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A schematic diagram of the infrastructure of a 5G network proposed in the related art;

[0039] Figure 2A schematic diagram of a NEF mobile network architecture proposed in the related art;

[0040] Figure 3 A schematic diagram of a network architecture for executing a ULCL strategy proposed in the related art;

[0041] Figure 4 An interactive flow chart for executing a diversion strategy in a related technology;

[0042] Figure 5 A schematic diagram of a network architecture for implementing secondary authentication of a UE proposed in the related art;

[0043] Figure 6 Interaction flow chart for secondary authentication of UE proposed for related technologies

[0044] Figure 7 A flow chart of an access authentication method applied to a NEF entity in an embodiment of the present application;

[0045] Figure 8 A flow chart of an access authentication method applied to an SMF entity in an embodiment of the present application;

[0046] Fig. 9 A flow chart of an access authentication method applied to a client-side server in an embodiment of the present application;

[0047] Fig.10 A schematic diagram of a network architecture for implementing access authentication provided in an embodiment of the present application;

[0048] Fig.11 A schematic diagram of the structure of an access authentication device applied to a NEF entity in an embodiment of the present application;

[0049] Fig.12 A schematic diagram of the structure of an access authentication device applied to an SMF entity in an embodiment of the present application;

[0050] Fig.13 A schematic diagram of the structure of an access authentication device applied to a client-side server in an embodiment of the present application;

[0051] Fig.14 A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0052] With the integration of 5G networks and the intranets of various industries, the demand for dual-domain access has gradually become prominent. Here, the dual-domain access demand refers to the demand of industry customers to access the Internet and the intranet at the same time in a local area; industry customers need to use a single terminal to access the Internet and the intranet at the same time without changing cards or numbers. The demand for dual-domain access exists in campuses, enterprises, police, government affairs, culture and tourism and other industries. Taking the campus scenario as an example, college teachers and students can use their mobile phones to access the campus network and the Internet normally on campus. After leaving the campus, they can only access the Internet; in addition, people who come to the school for exchanges and visits need to have temporary access to the campus network on campus, and they cannot access the campus network after the exchange visit ends.

[0053] The problems existing in the related art are exemplarily described below with reference to the accompanying drawings.

[0054] Reference Figure 1 The infrastructure of 5G network may include the following nodes or network elements: User Equipment (UE), Radio Access Network (RAN) equipment, User plane Function (UPF) equipment, Data Network (DN), Network Slice-Specific Authentication and Authorization Function (NSSAAF) entity, Authentication Server Function (AUSF) entity, Access and Mobility Management Function (AMF) entity, SMF entity, Service Communication Proxy (SCP) entity, Network Slice Admission Control Function (NSACF) entity, Network Slice Selection Function (NSSF) entity, NEF entity, Network Repository Function (NRF) entity, Policy Control Function (PCF) entity, Unified Data Management (UDM) entity, AF entity and Edge Application Server Discovery Function (Edge Application Server Discovery Function, EASDF) entity. Figure 1 In the figure, Nnssaaf, Nausf, Namf, Nsmf, Nnsacf, Nnssf, Nnef, Nnrf, Npcf, Nudm, Naf and Neasdf respectively represent the service interfaces provided by NSSAAF entity, AUSF entity, AMF entity, SMF entity, NSACF entity, NSSF entity, NEF entity, NRF entity, PCF entity, UDM entity, AF entity and EASDF entity; N1, N2, N3, N4, N6 and N9 respectively represent N1 interface, N2 interface, N3 interface, N4 interface, N6 interface and N9 interface.

[0055] In the core network elements of the 5G network, the PCF entity is used to implement overall network policy management and access policy management, the AMF entity is used to implement registration management, connection management, mobility management and reachability management, the SMF entity is used to implement the following functions: session management, Internet Protocol (IP) address allocation, UPF selection and control, and issuing flow policies and routing to the UPF entity. The UDM entity is used to implement the following functions: generating authentication vectors, user permanent identifier (SUbscription Permanent Identifier, SUPI) processing, network function (NF) management for user services, and contract management; the UPF entity is used to implement the following functions: packet routing and forwarding, user plane policy execution, legal monitoring, traffic reporting, flow marking, and flow caching.

[0056] The NEF entity is an entity based on the telecommunications network that opens mobile network capabilities to the partner's business platform; Figure 2 The Service Capability Exposure Function (SCEF) entity or the NEF entity can interact with the private network operation platform based on the Representational State Transfer (RESTful) protocol. The NRF entity, the AMF entity, the Policy and Charging Rules Function (PCRF) entity, the PCF entity, the UDM entity, the Packet Data Network GateWay (P-GW), the Policy and Charging Enforcement Function (PCEF), the SMF entity and the Binding Support Function (BSF) entity can communicate with the SCEF entity or the NEF entity. Figure 2 In the figure, Nnrf, Namf, Npcf, Nudm, Nsmf and Nbsf respectively represent the service interfaces provided by the NRF entity, AMF entity, PCF entity, UDM entity, SMF entity and BSF entity, and the receive (Rx) interface represents the communication interface provided by the PCRF entity or PCF entity.

[0057] The NEF entity or SCEF entity based on the Policy Control and Charging (PCC) architecture can implement the following functions: apply for and adjust network resources to the PCRF entity or PCF entity according to the application's Quality of Service (QoS) and other requirements, subscribe to and unsubscribe from network resource event notifications to the PCRF entity or PCF entity according to application requirements, convert the protocol based on JavaScript Object Notation (JSON) or eXtensible Markup Language (XML) (e.g., Restful HTTP / HTTPS) between the NEF entity or SCEF entity and the AF entity into the Diameter protocol between the NEF entity or SCEF entity and the PCRF entity, and convert the protocol based on JSON / XML between the NEF entity or SCEF entity and the AF entity into the Hypertext Transfer Protocol (HTTP) 2.0 between the NEF entity or SCEF entity and the PCF entity. For example, the protocol based on JSON or XML can be Restful HTTP or Hypertext Transfer Protocol Secure (HTTPS). By setting up NEF entity or SCEF entity, the application opening requirements can be simplified and the network security can be improved. In the mobile network, the client-side server (Server) is connected to the private network operation platform, and interacts with the NEF entity through the private network operation platform. In some embodiments, the private network operation platform only has the functions of converging and connecting different customers and improving the security in the network. Therefore, in the subsequent description, it can be directly described as the interaction between the client-side server and the NEF entity.

[0058] In order to support more flexible networking, the 5G network introduces the function of diverting the user's uplink data packets. This function is called ULCL, which means that the network side allows the IP data packets sent by the terminal to be diverted. Diverting means diverting the data packets from different services of the user to different paths. Figure 3The coverage of the park 301 can be represented as a list including at least one base station, or can be represented as a list including at least one tracking area (TA). The UE 302 can interact with the base stations in the park 301; the AMF entity can interact with the base stations in the park 301, and can also interact with the PCF entity through the SMF entity. The PCF entity can interact with the business operation support system (Business & Operation Support System, BOSS) and the unified data warehouse (Unified Data Repository, UDR). Figure 3 In the figure, PSA0 UPF indicates the UPF that allocates the user plane IP to UE 302 when UE 302 is activated, and is also the session anchor point for UE 302 to access the Internet. PSA0UPF can be called the primary anchor point UPF; PSA1UPF is the protocol data unit (PDU) session anchor point when UE accesses the intranet of the campus. PSA1UPF is also called the secondary anchor point UPF. ULCL UPF is the UPF entity recorded above. ULCL UPF can divert uplink service data to the intranet or Internet of the campus, and aggregate downlink data from PSA0 UPF and PSA1 UPF to obtain aggregated data. ULCL UPF can send the aggregated data to the base station of the campus 301 after uniformly encapsulating it.

[0059] In the related technology, UE 302 can initiate an initial session establishment request and obtain the contracted data network name (Data Network Name, DNN) from the UDM entity. For example, when the DNN is CMNET (China Mobile Network), UE 302 can establish a CMNET session. The PCF entity sends the initial session policy (including the diversion policy) based on the UE signed for the campus, triggering the SMF entity to send the diversion policy to PSA0 UPF and PSA1 UPF at the same time. When UE 302 completes the session establishment outside the campus and moves into the campus, the SMF entity reports the presence reporting area (PRA) event, and the PCF entity sends the diversion policy based on the UE signed for the campus.

[0060] The traffic of UE 302 accessing campus services is directly unloaded in the campus after being transmitted via ULCL UPF and PSA1 UPF. ULCL UPF reports the traffic of campus services and its corresponding rating group (RG) to the SMF entity, and reports it to BOSS via the charging function (CHF) entity to achieve preferential billing. The traffic of UE 302 accessing the Internet (traffic of ordinary services) is transferred to the 2C (to Consumer) universal UPF via ULCL UPF. Here, the 2C universal UPF is PSA0UPF. When UE 302 leaves the campus, the SMF entity initiates the deletion process of ULCL UPF and PSA1 UPF, and UE 302 can access the Internet (i.e., the public network) through PSA0 UPF or other universal UPFs in other cities.

[0061] Figure 4 It is an interactive flow chart for executing the diversion strategy in the related technology, such as Figure 4 As shown, the process may include:

[0062] Step A1: The UE establishes a PDU session by interacting with the SMF entity, UPF entity and PSA0 UPF.

[0063] Step A2: The SMF entity establishes the PSA1 UPF.

[0064] Exemplarily, when the UE moves to a certain area or accesses a specific service, the UE can trigger the SMF entity to establish a PSA1 UPF by interacting with the SMF entity.

[0065] Step A3: The SMF entity establishes a branching point (BP) or ULCL node and sends a diversion strategy to the UPF entity.

[0066] The diversion strategy here may be a ULCL strategy.

[0067] Step A4: The SMF entity updates the downstream service flow path of the PSA0 UPF and updates the downstream service flow path of the PSA1 UPF.

[0068] Step A5: The UE obtains downlink data from the PSA0 UPF and sends uplink data to the PSA0 UPF.

[0069] Step A6: The SMF entity updates the uplink service flow path of the new radio (NR).

[0070] After step A6, the UE may send uplink data to the PSA0 UPF.

[0071] Step A7: PSA1 UPF allocates a new Internet Protocol Version 6 (IPv6) prefix of PSA1 UPF to the UE.

[0072] Step A8: The SMF entity reallocates the IPv6 prefix of the PSA0 UPF.

[0073] Step A9: The UE may send uplink data to the PSA1 UPF.

[0074] In related technologies, when operators control the accessed terminals, industry customers can also independently control the PDU sessions established by the UEs they own, further ensuring the security of the industry intranet. That is, industry customers need to perform secondary authentication on the UE. In the secondary authentication process in the current communication standard, DN-granular services are only carried out for dedicated DNs.

[0075] Figure 5 A schematic diagram of a network architecture for implementing secondary authentication of a UE proposed in the related art, referring to Figure 5 The coverage of the campus 301 can be represented as a list including at least one base station, or can be represented as a list including at least one TA. The UE 302 can interact with the base stations in the campus 301; the AMF entity can interact with the base stations in the campus 301, and the AMF entity can interact with the UDM entity and the UPF entity through the SMF entity. The AAA server 501 can establish a direct communication path with the SMF entity, and the authentication, authorization and accounting (Authentication Authorization Accounting, AAA) server 501 can also interact with the SMF entity through the UPF entity. The AAA server 501 can determine the legitimacy of the UE 302 by interacting with the SMF entity to decide whether to allow the UE 302 to establish a PDU session.

[0076] Figure 6 The interactive flow chart of performing secondary authentication on UE proposed in the related technology is as follows: Figure 6 As shown, the process may include:

[0077] Step B1: UE accesses a specific private network service.

[0078] Here, the UE can send a request to access a specific private network service to the UPF entity or the Packet Data Network Gateway-User Plane (PGW-U).

[0079] Step B2: The UPF entity or PGW-U detects a private network service access event and reports the private network service access event to the SMF entity or the Packet Data Network Gateway-Control Plane (PGW-C).

[0080] Step B3: The SMF entity or PGW-C reports the UE-related information to the PCF entity.

[0081] Here, the UE-related information may include the UE's current location and / or the time when the UE accesses the private network service.

[0082] Step B4: The PCF entity sends secondary authentication data to the SMF entity or PGW-C.

[0083] Exemplarily, the PCF entity may issue secondary authentication data of the BP or ULCL node based on local subscription data, where the secondary authentication data includes data indicating whether to perform secondary authentication or secondary authorization, a specific AAA server address, and other information.

[0084] Step B5: The SMF entity or PGW-C initiates a secondary authentication and authorization request to the AAA server.

[0085] Here, the SMF entity or PGW-C can obtain a secondary authentication and authorization request from the corresponding PCF entity.

[0086] Step B6: The AAA server returns the response information of the secondary authentication and authorization request to the SMF entity or PGW-C.

[0087] Here, the response information of the secondary authentication and authorization request may include secondary authentication result and / or secondary authorization related information.

[0088] Step B7: The SMF entity or PGW-C performs subsequent processing.

[0089] Here, the SMF entity or PGW-C can perform at least one of the following based on the response information of the secondary authentication and authorization request: decide whether to execute the subsequent uplink diversion strategy, and install the service access policy locally based on the relevant information of the secondary authorization.

[0090] In the related art, when the industry customer has signed a contract for the intranet service, the industry customer can access the intranet based on the contract; however, if the temporary visitor has not signed a contract for the intranet service, the visitor cannot access the intranet. For example, in a campus scenario, campus teachers and students can access the campus network (intranet) in a designated business area (such as the campus) and can also access the Internet. For temporary visitors to the school, since there is no corresponding business contract, it is impossible to access the campus network by executing the ULCL policy, so visitors to the school can only access the Internet and cannot access the intranet; in the related art, there is a lack of an interactive notification mechanism between the client side and the network to enable visitors to the school to access the intranet.

[0091] In the related technology, enterprise personnel or campus personnel can be authenticated through the interaction between the SMF entity and the AAA server; the interaction between the SMF entity and the AAA server is based on the Remote Authentication Dial In User Service (Radius) protocol, and the Radius protocol is a protocol based on the client / server (Client / Server, C / S) architecture, so there are some disadvantages. For example, it cannot support temporary personnel in business demand scenarios to access the intranet. When adding personnel on the AAA server side, the network side device cannot be notified, and can only passively wait for the network side device to authenticate. Temporary personnel cannot be actively identified on the network side, and secondary authentication of temporary personnel cannot be achieved, which cannot meet business needs.

[0092] In order to solve the above technical problems, a technical solution of the embodiment of the present application is proposed.

[0093] The following is a further detailed description of the embodiments of the present application in conjunction with the accompanying drawings and examples. It should be understood that the embodiments provided herein are only used to explain the embodiments of the present application and are not intended to limit the embodiments of the present application. In addition, the embodiments provided below are partial embodiments for implementing the present application, rather than providing all embodiments for implementing the present application. In the absence of conflict, the technical solutions recorded in the embodiments of the present application can be implemented in any combination.

[0094] It should be noted that, in the embodiments of the present application, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method or device including a series of elements includes not only the elements explicitly recorded, but also includes other elements not explicitly listed, or also includes elements inherent to the implementation of the method or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other related elements (such as steps in a method or units in a device, for example, a unit may be a part of a circuit, a part of a processor, a part of a program or software, etc.) in the method or device including the element.

[0095] The access authentication method provided in the embodiment of the present application includes a series of steps, but the access authentication method provided in the embodiment of the present application is not limited to the recorded steps. Similarly, the access authentication device provided in the embodiment of the present application includes a series of modules, but the device provided in the embodiment of the present application is not limited to including the modules explicitly recorded, and may also include modules that need to be set for obtaining relevant information or processing based on information.

[0096] Figure 7 A flow chart of the access authentication method applied to the NEF entity in the embodiment of the present application is shown as follows: Figure 7 As shown, the process may include:

[0097] Step 701: Receive a report message from the SMF entity based on subscription message feedback; the subscription message includes the location of the target area and a list of mobile terminal numbers pre-received by the NEF entity, and the report message is used to indicate that the first user has entered the target area. The first user is a user corresponding to any mobile terminal number in the mobile terminal number list and the first user is a user who has not signed a service contract for the intranet.

[0098] In some embodiments, the location of the target area may be predetermined information, for example, the target area may be a campus or other area. The mobile terminal may be an electronic device such as a mobile phone.

[0099] In some embodiments, before receiving the report message based on the subscription message feedback from the SMF entity, a number list and service identifier of the mobile terminal sent by the client-side server can also be received; then, based on the service identifier and the correspondence between the pre-configured service identifier and the regional location, the location of the target area is determined.

[0100] Exemplarily, based on the service identifier and the pre-configured correspondence between the service identifier and the regional location, the regional location corresponding to the service identifier may be determined, and the regional location corresponding to the service identifier may be determined as the location of the target area.

[0101] It can be seen that the NEF entity can receive the number list and service identifier of the mobile terminal from the client-side server in advance, so as to determine the location of the target area more accurately in combination with the correspondence between the pre-configured service identifier and the area location.

[0102] In some embodiments, the NEF entity can obtain the location of the target area and a list of numbers of mobile terminals pre-received by the NEF entity through interaction with a client-side server, and then send a subscription message to the SMF entity, where the subscription message is used to indicate monitoring of location events, where the location event indicates an event in which a person corresponding to a number in the number list enters the location of the target area.

[0103] The SMF entity can initiate a location event subscription to the AMF entity. The AMF entity is used to feedback a report message to the SMF entity after the first user enters and leaves the target area. The report message is used to indicate that the first user enters and leaves the target area. The SMF entity can feedback the report message to the NEF entity.

[0104] Step 702: Initiate an authentication request to the client-side server, where the authentication request carries at least the mobile terminal number of the first user.

[0105] In the embodiment of the present application, after receiving the reporting message, the NEF entity may send an authentication request to the client-side server, where the authentication request is used to request authentication of the mobile terminal number of the first user.

[0106] Step 703: Receive authentication indication information sent by the client-side server, where the authentication indication information is used to indicate whether the first user has passed the access authentication of the intranet.

[0107] In the embodiment of the present application, the intranet refers to a local area network of the target area. For example, the intranet may be a local area network within a campus, an internal network of an enterprise, etc.

[0108] In the embodiment of the present application, after receiving the authentication request, the client-side server may generate authentication indication information according to the authentication request, and then send the authentication indication information to the NEF entity.

[0109] In practical applications, steps 701 to 703 can be implemented based on a processor of the NEF entity, and the above-mentioned processor can be at least one of an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller, and a microprocessor.

[0110] It can be seen that the NEF entity can determine the user corresponding to any mobile terminal number in the mobile terminal number list based on the pre-received mobile terminal number list, that is, determine the first user, and then after receiving the report message indicating that the first user has entered the target area, send an authentication request to the client-side server, so that the client-side server authenticates the request for a specific person to access the intranet, that is, access authentication for the intranet can be performed for the first user; thus, in the case where the first user does not sign a service contract for the intranet, the first user's request to access the intranet can be authenticated, which is conducive to meeting the first user's need to access the intranet.

[0111] In some embodiments of the present application, after receiving the authentication indication information, the method further includes:

[0112] When the authentication indication information indicates that the first user has passed the access authentication of the intranet and the authentication indication information does not carry the waiting time, the AF session establishment process is initiated and the ULCL policy is sent to the SMF entity; the ULCL policy represents the data diversion strategy when the first user accesses the intranet and the Internet;

[0113] When the authentication indication information indicates that the first user has not passed the access authentication of the intranet and the authentication indication information does not carry the waiting time, it is determined that there is no need to send the ULCL policy to the SMF entity.

[0114] In an embodiment of the present application, when the authentication indication information indicates that the first user has passed the access authentication of the intranet, and the authentication indication information does not carry the waiting time, by initiating the AF session establishment process and sending the ULCL policy to the SMF entity, the first user's terminal can access the intranet and the Internet at the same time based on the ULCL policy, thereby meeting the first user's terminal access to the intranet. When the authentication indication information indicates that the first user has not passed the access authentication of the intranet, and the authentication indication information does not carry the waiting time, since there is no need to send the ULCL policy to the SMF entity, the first user's terminal cannot access the intranet at the same time based on the ULCL policy, that is, the first user's terminal can be reasonably denied access to the intranet based on the authentication indication information.

[0115] In some embodiments of the present application, the authentication request also carries a timestamp; after receiving the authentication indication information, the method further includes:

[0116] When the authentication indication information indicates that the first user has passed the access authentication of the intranet, and the authentication indication information carries the waiting time, the timing is started, and the AF session establishment process is initiated, and the ULCL policy is sent to the SMF entity; when the timing time is equal to the waiting time, the established AF session is deleted; wherein the waiting time is determined based on the timestamp, and the ULCL policy represents the data diversion strategy when the first user accesses the intranet and the Internet;

[0117] When the authentication indication information indicates that the first user has not passed the access authentication of the intranet and the authentication indication information carries the waiting time, start timing; when the timing time is equal to the waiting time, determine whether the first user is in the target area; when the first user is in the target area, initiate the AF session establishment process and send the ULCL policy to the SMF entity.

[0118] In an embodiment of the present application, after receiving the authentication request, the client-side server can determine the waiting time based on the timestamp in the authentication request and the predetermined allowed access time period, where the allowed access time period represents the time period during which the first user's mobile terminal is allowed to access the intranet; the client-side server can generate authentication indication information based on the first user's mobile terminal number carried in the authentication request and the waiting time, and send the authentication indication information to the NEF entity.

[0119] In an embodiment of the present application, when the authentication indication information indicates that the first user has passed the access authentication of the intranet, and the authentication indication information carries the waiting time, the AF session establishment process can be initiated, and the ULCL policy can be sent to the SMF entity, so that the first user's terminal can access the intranet and the Internet at the same time based on the ULCL policy, and after waiting for a period of time, the established AF session can be deleted, thereby realizing the first user's terminal's limited-time access to the intranet, thereby meeting the first user's terminal's limited-time access to the intranet. In the case where the authentication indication information indicates that the first user has not passed the access authentication of the intranet, and the authentication indication information carries the waiting time, it can be considered that the current moment is not in the time period in which the first user's mobile terminal is allowed to access the intranet. After waiting for a period of time, if the first user is in the target area, the AF session establishment process can be initiated, and the ULCL policy can be sent to the SMF entity, so that the first user's terminal can access the intranet and the Internet at the same time in an appropriate time period, thereby meeting the first user's terminal's limited-time access to the intranet.

[0120] Figure 8 A flow chart of the access authentication method applied to the SMF entity in the embodiment of the present application is shown as follows: Figure 8 As shown, the process may include:

[0121] Step 801: receiving a subscription message sent by a NEF entity, where the subscription message includes the location of a target area and a number list of mobile terminals pre-received by the NEF entity.

[0122] Step 802: Based on the subscription message, a reporting message is fed back to the NEF entity, so that the NEF entity initiates an authentication request to the client-side server and receives authentication indication information sent by the client-side server; wherein the reporting message is used to indicate that the first user has entered the target area, the first user is a user corresponding to any mobile terminal number in the mobile terminal number list, and the first user is a user who has not signed a service contract for the intranet; the authentication request carries at least the mobile terminal number of the first user, and the authentication indication information is used to indicate whether the first user has passed the access authentication of the intranet.

[0123] In practical applications, steps 801 to 802 may be implemented based on a processor of the SMF entity, and the processor may be at least one of ASIC, DSP, DSPD, PLD, FPGA, CPU, controller, microcontroller, and microprocessor.

[0124] It can be seen that the NEF entity can send a subscription message to the SMF entity, thereby receiving a report message from the SMF entity based on the subscription message feedback. When the report message is used to indicate that the first user has entered the target area, the client-side server sends an authentication request to the client-side server, so that the client-side server authenticates the request for access to the intranet by a specific person, that is, access authentication to the intranet can be performed for the first user; therefore, in an embodiment of the present application, a request for access to the intranet by a specific person can be authenticated without the first user signing a service contract for the intranet, which is conducive to meeting the needs of specific personnel to access the intranet.

[0125] In some embodiments of the present application, after feeding back the reporting message to the NEF entity, the method further includes: upon receiving the ULCL policy, connecting the mobile terminal of the first user to the intranet and the Internet based on the ULCL policy.

[0126] It can be seen that when the SMF entity receives the ULCL policy, the first user's mobile terminal can be connected to the intranet and the Internet according to the ULCL policy, thereby meeting the needs of specific personnel to access the intranet and the Internet.

[0127] Fig. 9 A flow chart of an access authentication method applied to a client-side server in an embodiment of the present application is shown in FIG. Fig. 9 As shown, the process may include:

[0128] Step 901: Receive an authentication request sent by the NEF entity; the authentication request is a request sent by the NEF entity after receiving a report message fed back by the SMF entity, and the report message is a message fed back by the SMF entity based on a subscription message; the subscription message includes the location of the target area and a list of mobile terminal numbers pre-received by the NEF entity, and the report message is used to indicate that a first user enters the target area, and the first user is a user corresponding to any mobile terminal number in the mobile terminal number list, and the first user is a user who has not signed a service contract for the intranet; the authentication request carries at least the mobile terminal number of the first user.

[0129] Step 902: Send authentication indication information to the NEF entity, where the authentication indication information is used to indicate whether the first user has passed the intranet access authentication.

[0130] In practical applications, steps 901 to 902 may be implemented based on a processor of a client-side server, and the processor may be at least one of ASIC, DSP, DSPD, PLD, FPGA, CPU, controller, microcontroller, and microprocessor.

[0131] It can be seen that the NEF entity can send a subscription message to the SMF entity, thereby receiving a report message from the SMF entity based on the subscription message feedback. When the report message is used to indicate that the first user has entered the target area, the client-side server sends an authentication request to the client-side server, so that the client-side server authenticates the request for access to the intranet by a specific person, that is, access authentication to the intranet can be performed for the first user; therefore, in an embodiment of the present application, a request for access to the intranet by a specific person can be authenticated without the first user signing a service contract for the intranet, which is conducive to meeting the needs of specific personnel to access the intranet.

[0132] In some embodiments of the present application, the authentication request also carries a timestamp; after receiving the authentication request, the method further includes:

[0133] An access-allowed time period corresponding to the mobile terminal number of the first user is determined, where the access-allowed time period indicates a time period during which the mobile terminal of the first user is allowed to access the intranet.

[0134] The waiting time is determined based on the timestamp and the allowed access time period; the waiting time indicates the time during which the first user's mobile terminal is allowed to access the intranet from the moment indicated by the timestamp, or the waiting time indicates the time required to wait before the first user's mobile terminal is connected to the intranet.

[0135] In the embodiment of the present application, the waiting time can be determined more accurately based on the timestamp and the allowed access time period, which is conducive to achieving time-limited access to the intranet by the first user's terminal and meeting the first user's terminal's need for time-limited access to the intranet.

[0136] In some embodiments of the present application, before receiving an authentication request, a number list and service identifier of a mobile terminal may also be sent to the NEF entity, so that the NEF entity can determine the location of the target area based on the service identifier and the correspondence between the pre-configured service identifier and the area location; the location of the target area is the area location corresponding to the service identifier.

[0137] It can be seen that the NEF entity can receive the number list and service identifier of the mobile terminal from the client-side server in advance, so as to determine the location of the target area more accurately in combination with the correspondence between the pre-configured service identifier and the area location.

[0138] The embodiment of the present application can be based on a general data network and ULCL strategy, and through the interaction between the NEF entity and the client-side server, the access authentication capability of the network side can be opened to the client-side server, so as to realize intranet access for temporary users (such as temporary visiting communication personnel), and at the same time, based on the interaction mechanism, it is convenient to realize the authority control of temporary personnel by the client-side server.

[0139] In view of the technical problems existing in the related technologies, the embodiments of the present application can propose the following solutions: the client-side server exchanges information with the NEF entity through the Restful interface, thereby realizing the addition and deletion operations of temporary personnel on the network side; the NEF entity initiates a time subscription based on location and mobile phone number to the SMF entity, and the SMF entity can report to the NEF entity after the temporary user enters the designated business area. After that, the NEF entity conducts a secondary authentication interaction with the client-side server to obtain the result of whether intranet access is allowed. If allowed, the NEF entity establishes an AF session with the PCF entity, passes the ULCL policy control parameters, and the PCF entity issues the ULCL policy through the N7 interface. The SMF entity executes the ULCL insertion process, thereby providing temporary users with intranet access services, and based on the interaction mechanism between the NEF entity and the client-side server, the access rights of temporary users can be controlled. Exemplarily, the designated business area is the target area recorded above, and the client-side server can set the time period for allowed access.

[0140] Fig.10 A schematic diagram of a network architecture for implementing access authentication provided in an embodiment of the present application, referring to Fig.10 UE 302 can interact with the base stations in the park 301, the AMF entity can interact with the base stations in the park 301, and can also interact with the PCF entity through the SMF entity, and the PCF entity can interact with the BOSS and UDR.

[0141] Combine the following Fig.10 The interactive process of access authentication in an embodiment of the present application is described, and the interactive process may include:

[0142] Step C1: The client-side server transmits temporary personnel information to the NEF entity.

[0143] In this step, the client-side server can pass temporary personnel information to the NEF entity through the Restful interface, so as to realize the addition, deletion and modification of temporary personnel information. Exemplarily, temporary personnel information may include: business application identity document (ID), business-level temporary access permission switch, temporary personnel list and access time limit, etc. Here, the business application ID is the business-level ID, the temporary access permission is used to indicate the temporary personnel's permission to access the intranet, the temporary personnel list indicates the mobile phone number list, and the access time limit indicates the above-mentioned record of the allowed access time period.

[0144] After the client-side server determines the temporary personnel information, it can send the temporary personnel information to the NEF entity. For example, the temporary personnel plans to visit the target area on January 3; after the temporary personnel's mobile phone number is collected, the client-side server can send the temporary personnel information to the NEF entity. For example, the temporary personnel information sent by the client-side server may include: business application bjcampus1, information indicating that the temporary access permission switch is in the on state, added mobile phone number 1, etc. Here, the business application bjcampu1 is the business application ID.

[0145] In an embodiment of the present application, the NEF entity maintains a business-level temporary personnel access and authentication list (i.e., a mobile phone number list) based on the business application ID. Based on the business application, the NEF entity can support local configuration of the TA corresponding to its target area. The NEF entity should have the temporary personnel information and target area list of the business application.

[0146] Step C2: The NEF entity sends a subscription message to the SMF entity.

[0147] In an embodiment of the present application, the NEF entity may initiate a subscription message based on location plus mobile phone number to the SMF entity. The subscription message may include a list of mobile phone numbers of temporary personnel and the location of the target area. For example, the target area may be TA. The NEF entity sends a subscription message to the SMF entity to instruct monitoring of events in which temporary personnel enter the target area.

[0148] Step C3: The SMF entity feeds back a reporting message to the NEF entity.

[0149] Step C4: The NEF entity performs secondary authentication interaction with the client-side server.

[0150] In an embodiment of the present application, after receiving the report message, the NEF entity may send a secondary authentication request to the client-side server for the first user entering the target area, and the secondary authentication request may carry a timestamp. The client-side server may return authentication indication information to the NEF entity. Since the secondary authentication request may carry a timestamp. Therefore, the client-side server may support authentication based on the time dimension. Here, if access time control is required for temporary personnel, feedback may be provided based on the configuration of the client-side server; illustratively, for temporary user 1, access to the target area is allowed from January 3 to January 7, 2023, and in step C1, temporary personnel information is sent to the NEF entity on January 2, 2023. If the user arrives at the target area on January 2, the authentication indication information returned by the client-side server to the NEF entity may indicate that temporary user 1 has not passed the intranet access authentication, and the authentication indication information carries the waiting time.

[0151] Step C5: The NEF entity establishes an AF session and transfers control parameters of the ULCL policy.

[0152] In the embodiment of the present application, the NEF entity may initiate the AF session establishment process with the PCF entity and pass the control parameters of the ULCL policy to the UDR.

[0153] In the first example, if the authentication indication information indicates that the first user has passed the access authentication of the intranet, and the authentication indication information does not carry the waiting time, then the AF session establishment process is triggered to initiate the PCF entity based on the mobile phone number list.

[0154] In the second example, if the authentication indication information indicates that the first user has passed the access authentication of the intranet, and the authentication indication information carries the waiting time, the timing starts at the same time as the AF session establishment process is triggered to the PCF entity. When the timing time is equal to the waiting time, the deletion process of the established AF session is triggered for the first user.

[0155] In the third example, if the authentication indication information indicates that the first user has not passed the access authentication of the intranet, and the authentication indication information carries the waiting time, the AF session will not be established temporarily and the timing will start. When the timing time is equal to the waiting time, if the first user is still in the target area, the AF session establishment process will be triggered to the PCF entity.

[0156] In the fourth example, if the authentication indication information indicates that the first user has not passed the access authentication of the intranet, and the authentication indication information does not carry the waiting time, the process is terminated, that is, the ULCL policy will not be sent to the first user who has not passed the authentication, the first user cannot access the intranet, and the first user's Internet access process is not affected.

[0157] Step C6: The PCF entity sends the ULCL policy to the SMF entity.

[0158] Here, the PCF entity can send the ULCL policy to the SMF entity through the N7 interface.

[0159] Step C7: The SMF entity executes the ULCL insertion process for the first user.

[0160] One implementation of this step is: the SMF entity sends the ULCL policy to PSA0 UPF and PSA1 UPF, thereby enabling UE 302 to access the intranet and the Internet.

[0161] After the SMF entity executes the ULCL insertion process for the first user, the first user's terminal (i.e., UE301) can access the intranet and the Internet; after the temporary personnel leaves the area or receives the ULCL session deletion instruction, the SMF entity executes the ULCL deletion process, and the first user's terminal cannot access the intranet, but can access the Internet.

[0162] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0163] Based on the access authentication method proposed in the above-mentioned embodiment, the embodiment of the present application further proposes an access authentication device.

[0164] Fig.11 FIG. 1 is a schematic diagram of a structure of an access authentication device applied to a NEF entity according to an embodiment of the present application. Fig.11 As shown, the device may include:

[0165] The first receiving module 1101 is used to receive a report message fed back by a session management function SMF entity based on a subscription message; the subscription message includes the location of a target area and a number list of mobile terminals pre-received by the NEF entity, and the report message is used to indicate that a first user has entered the target area, the first user is a user corresponding to any mobile terminal number in the number list of the mobile terminal, and the first user is a user who has not signed a service contract for the intranet;

[0166] The first processing module 1102 is used to initiate an authentication request to the client-side server and receive authentication indication information sent by the client-side server. The authentication request carries at least the mobile terminal number of the first user; the authentication indication information is used to indicate whether the first user has passed the access authentication of the intranet.

[0167] In some embodiments, the first processing module 1102 is further configured to, after receiving the authentication indication information, initiate an application function AF session establishment process and send a ULCL policy to the SMF entity when the authentication indication information indicates that the first user has passed the access authentication of the intranet and the authentication indication information does not carry a waiting time; the ULCL policy indicates a data diversion strategy when the first user accesses the intranet and the Internet;

[0168] When the authentication indication information indicates that the first user has not passed the access authentication of the intranet and the authentication indication information does not carry the waiting time, it is determined that there is no need to send the ULCL policy to the SMF entity.

[0169] In some embodiments, the authentication request also carries a timestamp; the first processing module 1102 is further used to, after receiving the authentication indication information, start timing when the authentication indication information indicates that the first user has passed the access authentication of the intranet and the authentication indication information carries a waiting time, initiate an AF session establishment process, and send a ULCL policy to the SMF entity; when the timing time is equal to the waiting time, delete the established AF session; wherein the waiting time is determined based on the timestamp, and the ULCL policy represents a data diversion strategy when the first user accesses the intranet and the Internet;

[0170] When the authentication indication information indicates that the first user has not passed the access authentication of the intranet and the authentication indication information carries the waiting time, start timing; when the timing time is equal to the waiting time, determine whether the first user is in the target area; when the first user is in the target area, initiate an AF session establishment process and send a ULCL policy to the SMF entity.

[0171] In some embodiments, the first processing module 1102 is also used to receive the number list and service identifier of the mobile terminal sent by the client-side server before receiving the report message based on the subscription message feedback of the SMF entity; determine the location of the target area based on the service identifier and the pre-configured correspondence between the service identifier and the area location; the location of the target area is the area location corresponding to the service identifier.

[0172] Fig.12 This is a schematic diagram of the structure of an access authentication device applied to an SMF entity in an embodiment of the present application, such as Fig.12 As shown, the device may include:

[0173] The second receiving module 1201 is used to receive a subscription message sent by the NEF entity, where the subscription message includes the location of the target area and a number list of mobile terminals pre-received by the NEF entity;

[0174] The second processing module 1202 is used to feed back a reporting message to the NEF entity based on the subscription message, so that the NEF entity initiates an authentication request to the client-side server and receives authentication indication information sent by the client-side server; wherein the reporting message is used to indicate that a first user has entered the target area, and the first user is a user corresponding to any mobile terminal number in the number list of the mobile terminal, and the first user is a user who has not signed a service contract for the intranet; the authentication request carries at least the mobile terminal number of the first user, and the authentication indication information is used to indicate whether the first user has passed the access authentication of the intranet.

[0175] In some embodiments, the second processing module 1202 is further configured to, after feeding back the reporting message to the NEF entity, connect the mobile terminal of the first user to the intranet and the Internet based on the ULCL policy when receiving the ULCL policy.

[0176] Fig.13 Schematic diagram of the structure of an access authentication device applied to a client-side server in an embodiment of the present application. Fig.13 As shown, the device may include:

[0177] The third receiving module 1301 is used to receive an authentication request sent by a network exposure function NEF entity; the authentication request is a request sent by the NEF entity after receiving a report message fed back by a session management function SMF entity, and the report message is a message fed back by the SMF entity based on a subscription message; wherein the subscription message includes the location of the target area and a number list of mobile terminals pre-received by the NEF entity, and the report message is used to indicate that a first user has entered the target area, and the first user is a user corresponding to any mobile terminal number in the number list of the mobile terminal, and the first user is a user who has not signed a service contract for the intranet; the authentication request carries at least the mobile terminal number of the first user;

[0178] The third processing module 1302 is used to send authentication indication information to the NEF entity, where the authentication indication information is used to indicate whether the first user has passed the access authentication of the intranet.

[0179] In some embodiments, the authentication request also carries a timestamp; the third processing module 1302 is also used to determine the allowed access time period corresponding to the mobile terminal number of the first user, and determine the waiting time based on the timestamp and the allowed access time period; the allowed access time period indicates the time period in which the mobile terminal of the first user is allowed to access the intranet, and the waiting time period indicates the time period in which the mobile terminal of the first user is allowed to access the intranet from the moment indicated by the timestamp, or the waiting time period indicates the time period required to wait before the mobile terminal of the first user is connected to the intranet.

[0180] In some embodiments, the third processing module 1302 is also used to send the number list and service identifier of the mobile terminal to the NEF entity, so that the NEF entity determines the location of the target area based on the service identifier and the correspondence between the pre-configured service identifier and the area location; the location of the target area is the area location corresponding to the service identifier.

[0181] In practical applications, the first receiving module 1101 , the first processing module 1102 , the second receiving module 1201 , the second processing module 1202 , the third receiving module 1301 and the third processing module 1302 may all be implemented based on a processor.

[0182] It should be noted that the description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0183] It should be noted that in the embodiments of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a computer device (which can be a terminal, a server, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.

[0184] Correspondingly, an embodiment of the present application further provides a computer program product, which includes computer executable instructions, and the computer executable instructions are used to implement any access authentication method provided in the embodiment of the present application.

[0185] Accordingly, an embodiment of the present application further provides a computer storage medium, on which computer executable instructions are stored, and the computer executable instructions are used to implement any one of the access authentication methods provided in the above embodiments.

[0186] An embodiment of the present application also provides an electronic device, which is applied to a NEF entity, an SMF entity or a client-side server. Fig.14 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Fig.14 As shown, the electronic device 140 may include:

[0187] Memory 141, used for storing executable instructions;

[0188] The processor 142 is configured to implement any one of the above access authentication methods when executing the executable instructions stored in the memory 141.

[0189] The processor 142 may be at least one of an ASIC, a DSP, a DSPD, a PLD, a FPGA, a CPU, a controller, a microcontroller, and a microprocessor.

[0190] The above-mentioned computer-readable storage medium / memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM) and the like; it can also be various terminals including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.

[0191] In some embodiments, the functions or modules included in the device provided in the embodiments of the present application can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments. For the sake of brevity, it will not be repeated here.

[0192] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0193] The methods disclosed in the various method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0194] The features disclosed in the various product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0195] The features disclosed in the various method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0196] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0197] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. An access authentication method, characterized in that: Applied to a network exposure function (NEF) entity, the method comprises: Receive a report message fed back by a session management function SMF entity based on a subscription message; the subscription message includes the location of a target area and a number list of mobile terminals pre-received by the NEF entity, the report message is used to indicate that a first user has entered the target area, the first user is a user corresponding to any mobile terminal number in the number list of the mobile terminal, and the first user is a user who has not signed a service contract for the intranet; Initiate an authentication request to the client-side server, wherein the authentication request carries at least the mobile terminal number of the first specific user; Receive authentication indication information sent by the client-side server, where the authentication indication information is used to indicate whether the first user has passed the access authentication of the intranet.

2. The method according to claim 1, characterized in that After receiving the authentication instruction information, the method further includes: When the authentication indication information indicates that the first user has passed the access authentication of the intranet, and the authentication indication information does not carry the waiting time, an application function AF session establishment process is initiated, and an uplink shunt ULCL policy is sent to the SMF entity; the ULCL policy represents a data shunt strategy when the first user accesses the intranet and the Internet; When the authentication indication information indicates that the first user has not passed the access authentication of the intranet and the authentication indication information does not carry the waiting time, it is determined that there is no need to send the ULCL policy to the SMF entity.

3. The method according to claim 1, characterized in that: The authentication request also carries a timestamp; after receiving the authentication indication information, the method further includes: When the authentication indication information indicates that the first user has passed the access authentication of the intranet, and the authentication indication information carries the waiting time, start timing, initiate the application function AF session establishment process, and send the uplink offload ULCL policy to the SMF entity; when the timing time is equal to the waiting time, delete the established AF session; wherein the waiting time is determined based on the timestamp, and the ULCL policy represents the data offload strategy when the first user accesses the intranet and the Internet; When the authentication indication information indicates that the first user has not passed the access authentication of the intranet and the authentication indication information carries the waiting time, start timing; when the timing time is equal to the waiting time, determine whether the first user is in the target area; when the first user is in the target area, initiate an AF session establishment process and send a ULCL policy to the SMF entity.

4. The method according to any one of claims 1 to 3, characterized in that: Before receiving the report message fed back by the SMF entity based on the subscription message, the method further includes: Receiving the number list and service identifier of the mobile terminal sent by the client-side server; Based on the service identifier and the pre-configured correspondence between the service identifier and the area location, the location of the target area is determined; the location of the target area is the area location corresponding to the service identifier.

5. An access authentication method, characterized in that: Applied to a session management function SMF entity, the method comprises: Receiving a subscription message sent by a network exposure function NEF entity, the subscription message including a location of a target area and a number list of mobile terminals pre-received by the NEF entity; Based on the subscription message, a reporting message is fed back to the NEF entity, so that the NEF entity initiates an authentication request to the client-side server and receives authentication indication information sent by the client-side server; wherein the reporting message is used to indicate that a first user enters the target area, and the first user is a user corresponding to any mobile terminal number in the number list of the mobile terminal, and the first user is a user who has not signed a service contract for the intranet; the authentication request carries at least the mobile terminal number of the first user, and the authentication indication information is used to indicate whether the first user has passed the access authentication of the intranet.

6. The method according to claim 5, characterized in that After feeding back the reporting message to the NEF entity, the method further includes: When the uplink offload ULCL policy is received, the mobile terminal of the first user is connected to the intranet and the Internet based on the ULCL policy.

7. An access authentication method, characterized in that: Applied to a client-side server, the method comprises: Receive an authentication request sent by a network exposure function NEF entity; the authentication request is a request sent by the NEF entity after receiving a report message fed back by a session management function SMF entity, and the report message is a message fed back by the SMF entity based on a subscription message; wherein the subscription message includes the location of the target area and a number list of mobile terminals pre-received by the NEF entity, and the report message is used to indicate that a first user enters the target area, the first user is a user corresponding to any mobile terminal number in the number list of the mobile terminal, and the first user is a user who has not signed a service contract for the intranet; the authentication request carries at least the mobile terminal number of the first user; Send authentication indication information to the NEF entity, where the authentication indication information is used to indicate whether the first user has passed the access authentication of the intranet.

8. The method according to claim 7, characterized in that The authentication request also carries a timestamp; after receiving the authentication request, the method further includes: Determine an allowed access time period corresponding to the mobile terminal number of the first user, wherein the allowed access time period indicates a time period during which the mobile terminal of the first user is allowed to access the intranet; Based on the timestamp and the allowed access time period, the waiting time is determined; the waiting time indicates the time during which the mobile terminal of the first user is allowed to access the intranet from the moment indicated by the timestamp, or the waiting time indicates the time required to wait before the mobile terminal of the first user is connected to the intranet.

9. The method according to claim 7 or 8, characterized in that: Before receiving the authentication request, the method further includes: Send the number list and service identifier of the mobile terminal to the NEF entity, so that the NEF entity determines the location of the target area based on the service identifier and the pre-configured correspondence between the service identifier and the area location; the location of the target area is the area location corresponding to the service identifier.

10. An access authentication device, characterized in that: Applied to a network exposure function NEF entity, the device comprises: A first receiving module is used to receive a report message fed back by a session management function SMF entity based on a subscription message; the subscription message includes the location of a target area and a number list of mobile terminals pre-received by the NEF entity, and the report message is used to indicate that a first user has entered the target area, the first user is a user corresponding to any mobile terminal number in the number list of the mobile terminal, and the first user is a user who has not signed a service contract for the intranet; The first processing module is used to initiate an authentication request to the client-side server and receive authentication indication information sent by the client-side server. The authentication request carries at least the mobile terminal number of the first user; the authentication indication information is used to indicate whether the first user has passed the access authentication of the intranet.

11. An access authentication device, characterized in that: Applied to a session management function SMF entity, the device comprises: A second receiving module is used to receive a subscription message sent by a network exposure function NEF entity, wherein the subscription message includes a location of a target area and a number list of mobile terminals pre-received by the NEF entity; The second processing module is used to feed back a reporting message to the NEF entity based on the subscription message, so that the NEF entity initiates an authentication request to the client-side server and receives authentication indication information sent by the client-side server; wherein the reporting message is used to indicate that a first user enters the target area, and the first user is a user corresponding to any mobile terminal number in the number list of the mobile terminal, and the first user is a user who has not signed a service contract for the intranet; the authentication request carries at least the mobile terminal number of the first user, and the authentication indication information is used to indicate whether the first user has passed the access authentication of the intranet.

12. An access authentication device, characterized in that: Applied in a client-side server, the device comprises: The third receiving module is used to receive an authentication request sent by a network exposure function NEF entity; the authentication request is a request sent by the NEF entity after receiving a report message fed back by a session management function SMF entity, and the report message is a message fed back by the SMF entity based on a subscription message; wherein the subscription message includes the location of the target area and a number list of mobile terminals pre-received by the NEF entity, and the report message is used to indicate that a first user has entered the target area, and the first user is a user corresponding to any mobile terminal number in the number list of the mobile terminal, and the first user is a user who has not signed a service contract for the intranet; the authentication request carries at least the mobile terminal number of the first user; The third processing module is used to send authentication indication information to the NEF entity, where the authentication indication information is used to indicate whether the first user has passed the access authentication of the intranet.

13. An electronic device, characterized in that: Applied to a network exposure function NEF entity, a session management function SMF entity or a client-side server, the electronic device comprises a processor and a memory for storing a computer program that can be run on the processor; wherein, The processor is used to run the computer program to execute the access authentication method according to any one of claims 1 to 9.

14. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the access authentication method according to any one of claims 1 to 9 is implemented.