Access control method, device and storage medium
By constructing an access control device to dynamically manage the terminal's access rights on the mobile network side, it solves the flexibility and security issues of terminal access control in mobile communications, realizes automated authentication without software and manual participation, simplifies operations and improves efficiency. Data network security.
Patent Information
- Application Number
- CN202410177872.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-08
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-02-08
AI Technical Summary
The existing AAA-based secondary authentication method in mobile communications lacks refined access control capabilities for terminals to access data networks, and terminals are assigned dynamic IP addresses each time they access the mobile network, which cannot be effectively controlled by traditional firewalls and pose security risks. The operation is complex and the flexibility is poor.
Construct an access control device, configure its connection relationship with other network elements of the system, pre-configure terminal-accessible resource information, receive terminal access requests and update messages, generate access control policies, dynamically manage terminal access rights to data network resources, and replace Existing AAA secondary authentication and 'zero trust' authentication realize automated access rights management.
It improves the flexibility and security of access control, reduces the difficulty of user operations, realizes the terminal authentication process without installing software and manual participation, ensures the security of the data network, and simplifies system upgrades.
Smart Images

Figure CN118200923B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile communication technology, and in particular to an access control method, device and storage medium. Background Art
[0002] At present, in order to improve the security of mobile communications, it is usually necessary to perform core network authentication when the terminal accesses the mobile network, and perform secondary authentication when the terminal accesses the data network through the mobile private network. Taking the 5G industry private network as an example, the industry usually uses AAA servers for secondary authentication, that is, the terminal is used as the authenticated end, the SMF network element is used as the authenticating end, and AAA is used as the authentication server to implement secondary authentication. However, the existing AAA-based secondary authentication method lacks the refined access control capability of the terminal accessing the data network, and the terminal is assigned a dynamic IP address each time it accesses the mobile network. The traditional firewall cannot effectively control the access to the dynamic IP; in addition, this method may maliciously attack the data network after the terminal accesses the data network, bringing security risks to the data network. In order to enable the terminal to have the ability to access the Internet and the data network at the same time, the industry usually adopts the UL-CL (Uplink Classifier) diversion technology solution. In this scenario, the security protection of the terminal and the data network is usually implemented based on the "zero trust" proxy gateway. Although this method can improve the security of terminals and data networks to a certain extent, the terminals need to install the client software corresponding to the proxy gateway and complete the manual identity authentication before they can access the network, which is cumbersome. In addition, the proxy gateway cannot transmit the real IP of the terminal to the data network side, resulting in the application system being unable to obtain the real IP of the terminal requesting access, and thus it is difficult to ensure the refined hierarchical management of target resources.
[0003] For example, a prior application with patent application number 202311211162.5 and titled “Access Permission Adjustment Method, Device and Storage Medium” discloses an access permission adjustment method, including obtaining the current access permission of a terminal device and the behavior information of the terminal device accessing a target resource; when the behavior information exceeds the current access permission of the terminal device, adjusting the current access permission to a preset permission; the access range corresponding to the preset permission is smaller than the access range corresponding to the current access permission of the terminal device. Figure 1As shown, although the technical solution of this patent can simultaneously meet the conditions of realizing user login-free authentication and data network security protection, the secondary authentication of this solution needs to be implemented with the help of an external AAA server, and the "access right adjustment device" needs to receive the authentication message of AAA and obtain the terminal information before it can adjust the access rights. Once the "access right adjustment device" fails to normally receive the radius message sent by AAA, the legitimate terminal will not be able to access the data network resources normally. There are many factors that can cause this failure, such as: abnormal network communication between the AAA server and the "access right adjustment device", or failure of the AAA server.
[0004] In summary, existing security authentication methods have problems such as poor flexibility in access control, difficulty in ensuring resource security, complex user operations, and poor data service compatibility. Summary of the invention
[0005] The object of the present invention is to provide an access control method, device and storage medium to at least solve the problem of how to improve the flexibility and security of access control and reduce the difficulty of user operation.
[0006] In order to solve the above technical problems, the present invention provides an access control method, comprising:
[0007] Build access control devices, configure their connection relationships with other network elements in the system, and pre-configure accessible resource information for each terminal;
[0008] receiving an access request message and / or an update message from a terminal using an access control device;
[0009] According to the received access request message and / or update message, query and match the corresponding accessible resource information and generate an access control policy;
[0010] According to the status information of the terminal, the access control device is used to dynamically manage the authority of the authorized terminal to access the data network resources.
[0011] Optionally, in the access control method, the access request message includes an authentication request message and a billing request message; and the update message includes a billing message.
[0012] Optionally, in the access control method, the method for generating an access control policy according to the received access request message and / or update message includes:
[0013] Acquire terminal firmware information according to the received access request message and / or update message;
[0014] According to the known firmware information of the terminal, the corresponding accessible resource information is queried and matched, and the corresponding access control policy is generated, wherein the policy item parameters of the access control policy include the source address, source port, target address, target port and protocol of the network access.
[0015] Optionally, in the access control method, the method for generating an access control policy according to the received access request message and / or update message further includes:
[0016] The effectiveness of access control policies is dynamically maintained based on the online status of the terminal.
[0017] Optionally, in the access control method, the online status is determined according to an access request message and / or an update message, and the billing message includes a billing start message, a billing update message, and a billing end message; and the method for dynamically maintaining the validity of the access control policy based on the online status of the terminal includes:
[0018] Upon receiving an access request message or a charging message, the access control device generates an access control policy based on the accessible resource information of the pre-configured terminal;
[0019] If a billing update message is received within the preset aging time, the access control policy remains valid;
[0020] If no billing update message or billing end message is received within the preset aging time, the access control policy is revoked.
[0021] Optionally, in the access control method, the access request message and the update message are sent by the core network session management network element to the access control device in a primary sending manner, or the access request message and the update message are sent to the access control device in a carbon copy manner;
[0022] In the master-send mode, the access control device performs access authentication, authorization and billing on the terminal, and dynamically manages the terminal's access rights to data network resources based on the received access request message and / or update message;
[0023] In the copy mode, the access control device only dynamically manages the terminal's access rights to data network resources based on the received access request message and / or update message, and does not participate in the access authentication, authorization and billing of the terminal.
[0024] Optionally, in the access control method, the method of dynamically managing the authority of the authorized terminal to access data network resources by using the access control device according to the terminal status information includes:
[0025] Obtain the geographical location and access time of the authorized terminal;
[0026] According to the geographical location and access time of the terminal, the access control device manages the terminal's access rights to data network resources within a specified geographical location range and a specified time range through an access control policy.
[0027] Optionally, in the access control method, the method of dynamically managing the authority of the authorized terminal to access data network resources by using the access control device according to the terminal status information further includes:
[0028] When no charging message is received within the preset aging time or a charging end message is received, the access control device immediately revokes the access control policy of the terminal.
[0029] In order to solve the above technical problems, the present invention also provides a terminal access control device, which is applied to the access control method as described in any of the above items, and the access control device includes an authentication unit and an access control management unit; the authentication unit is used to perform access authentication, authorization and billing on the terminal when accessing the mobile network; the access control management unit is used to dynamically allocate corresponding access rights to data network resources to each legitimate terminal by querying the resource information accessible to each terminal pre-configured in the system, and dynamically manage the access control policy according to the terminal's online status, so as to realize dynamic management of the authorized terminal's access rights to data network resources.
[0030] In order to solve the above technical problems, the present invention further provides a storage medium, wherein the storage medium stores an executable program; when the executable program is executed, the access control method as described in any one of the above items is implemented.
[0031] The access control method, device and storage medium provided by the present invention include: constructing an access control device, configuring its connection relationship with other network elements in the system, and pre-configuring the resource information accessible to each terminal; using the access control device to receive the access request message and / or update message of the terminal; querying and matching the corresponding accessible resource information according to the received access request message and / or update message, and generating an access control policy; using the access control device to dynamically manage the access rights of the authorized terminal to the data network resources according to the terminal status information. Through the constructed access control device, the access rights of the authorized terminal can be automatically managed dynamically and flexibly according to the access request message and / or update message on the mobile network side, thereby improving the flexibility of access control; at the same time, the access control device can replace the existing AAA secondary authentication and "zero trust" authentication, while ensuring the security of the data network, without the need to install any software, without the need for manual participation in the terminal authentication and authorization process, and without the need for large-scale changes to the existing network system, making the system upgrade easy to implement and the user operation simple, solving the problem of how to improve the flexibility and security of access control and reduce the difficulty of user operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A group architecture diagram of a system for adjusting access rights previously applied for in the background art;
[0033] Figure 2 A flowchart of the access control method provided in this embodiment;
[0034] Figure 3 A schematic diagram of the structure of the access control device provided in this embodiment;
[0035] Figure 4 A network architecture diagram corresponding to the access control method provided in this embodiment;
[0036] Figure 5 A schematic diagram of a method for configuring a network element provided in this embodiment;
[0037] Figure 6 A schematic diagram of an implementation scheme for deploying SMF and UPF provided in this embodiment;
[0038] Figure 7 A schematic diagram of another implementation scheme for deploying SMF and UPF provided in this embodiment;
[0039] Figure 8 This is a schematic diagram of the structure of the terminal access control system provided in this embodiment. DETAILED DESCRIPTION
[0040] The access control method and terminal access control system proposed in the present invention are further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the accompanying drawings are all in a very simplified form and use non-precise proportions, which are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention. In addition, the structure shown in the accompanying drawings is often a part of the actual structure. In particular, the emphasis of each accompanying drawing is different, and sometimes different proportions are used.
[0041] It should be noted that the terms "first", "second", etc. in the specification, claims and drawings of the present invention are used to distinguish similar objects in order to describe the embodiments of the present invention, rather than to describe a specific order or sequence. It should be understood that the structures used in this way can be interchanged under appropriate circumstances. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0042] First, the abbreviations of various professional terms used in this application are explained as follows:
[0043] AUSF: Authentication Server Function, authentication service function;
[0044] UDM: Unified Data Management, unified data management function;
[0045] AMF: Access and Management Function, access and mobility management function;
[0046] SMF: Session Management Function, session management function;
[0047] P-SMF: Policy-SMF, intelligent session management function (original to this application);
[0048] I-SMF: intermediate session management function;
[0049] UE: User Equipment, user terminal (referred to as terminal in this application);
[0050] RAN: Radio Access Network, wireless access network;
[0051] UPF: User Plane Function, user plane function;
[0052] P-UPF: Policy-UPF, intelligent user plane function (original to this application);
[0053] I-UPF: intermediate user plane function;
[0054] URSP: UE Route Selection Policy, user route selection policy;
[0055] PCF: Policy Control Function, policy control function;
[0056] PDU: Protocol Data Unit, protocol data unit;
[0057] S-NSSAI: Single-Network Slice Selection Assistance Information, single network slice selection assistance information;
[0058] NRF: NF Repository Function, network storage function;
[0059] GTP-U: GPRS Tunneling Protocol for the user plane, GPRS tunneling protocol for the user plane
[0060] RSD: Route Selection Descriptor, route selection descriptor;
[0061] TD: Traffic Descriptor, traffic descriptor;
[0062] DN: Data Network, data network;
[0063] MSISDN: Mobile Station international ISDN number, mobile station international ISDN number; ISDN: Integrated Services Digital Network, integrated services digital network;
[0064] IMSI: International Mobile Subscriber Identity, international mobile subscriber identification code;
[0065] IMEI: International Mobile Equipment Identity, International Mobile Equipment Identity;
[0066] PDU: Protocol Data Unit, protocol data unit;
[0067] EAP: Extensive Authentication Protocol, extensible authentication protocol;
[0068] NAS: Non-Access Stratum, non-access layer.
[0069] Based on the problems existing in the prior applications mentioned in the background technology, this embodiment provides an access control method, such as Figure 2 As shown, including:
[0070] S1, constructing an access control device, configuring its connection relationship with other network elements in the system, and pre-configuring the accessible resource information of each terminal;
[0071] S2, using the access control device to receive an access request message and / or an update message from the terminal;
[0072] S3, according to the received access request message and / or update message, query and match the corresponding accessible resource information, and generate an access control policy;
[0073] S4, according to the terminal status information, using the access control device to dynamically manage the authority of the authorized terminal to access resources in the data network.
[0074] The access control method provided in this embodiment, through the constructed access control device, can dynamically and flexibly manage the access rights of the authorized terminal automatically according to the access request message and / or update message on the mobile network side, thereby improving the flexibility of access control; at the same time, the access control device can replace the existing AAA secondary authentication and "zero trust" authentication, while ensuring the security of the data network, without the need to install any software, without manual participation in the terminal authentication and authorization process, and without the need for large-scale changes to the existing network system, making system upgrades easy to implement and simple for users to operate, solving the problem of how to improve the flexibility and security of access control and reduce the difficulty of user operation.
[0075] Specifically, in this embodiment, step S1 is to construct an access control device, configure its connection relationship with other network elements in the system, and pre-configure resource information accessible to each terminal, where Figure 3 As shown, the constructed access control device includes an authentication unit and an access control management unit; the authentication unit is used to perform access authentication, authorization and billing for the terminal when accessing the mobile network; the access control management unit is used to dynamically allocate the corresponding access rights to data network resources to each legitimate terminal by querying the resource information accessible to each terminal pre-configured in the system, and dynamically manage the access control policy according to the terminal's online status to achieve dynamic management of the authorized terminal's access rights to data network resources.
[0076] Preferably, in actual applications, in addition to authenticating and managing terminals that request access, the authentication unit also has the ability to manage the status of terminals on the network. For example, in addition to authenticating and managing terminal access based on terminal location information, user identity information, device fingerprints, time points, and other information, the authentication unit can also manually manage the terminal's online status through the authentication unit, such as forcing the terminal to go offline; in addition, the administrator can also configure a blacklist or whitelist in the authentication unit to enable the authentication unit to manage the specified terminal in a specified manner. In this way, for a legitimate terminal that has successfully accessed the network after being authenticated by the authentication unit, the access control management unit will dynamically manage the terminal's network access rights and release the terminal's access to authorized resources.
[0077] Furthermore, the access control management unit has a terminal access control authority configuration interface, which can pre-configure the resource information accessible to each terminal by manual configuration or by receiving it through an API interface.
[0078] In a specific embodiment, if Figure 4 As shown, the access control device is connected to the UPF and the data network respectively, so as to realize the secondary authentication of the terminal, wherein the access control device is connected to the UPF via the N6 interface. For other network elements, such as AUSF, UDM, AMF and SMF, the networking architecture mainly includes: the user terminal UE is connected to the AMF via the N1 interface; the AMF is connected to the AUSF via the N12 interface, the UDM via the N8 interface, the SMF via the N11 interface, and the RAN via the N2 interface; the AUSF is connected to the UDM via the N13 interface; the UDM is connected to the SMF via the N10 interface; the SMF is connected to the UPF via the N4 interface; and the RAN is connected to the UPF via the N3 interface.
[0079] In this way, the user terminal UE first needs to complete the primary authentication with the UDM and AUSF through AMF before accessing the data network; then the SMF network element will decide whether to initiate a secondary identity authentication based on the contract information when establishing a user plane data channel for it, that is, to perform a secondary authentication through SMF and UPF to the access control device constructed in this application.
[0080] In order to implement the authentication method proposed in this application, in this embodiment, Figure 5 As shown, the method for configuring the connection relationship of other network elements in the system also includes:
[0081] A1, deploy SMF and UPF to enable user terminals to support URSP policies.
[0082] Specifically, in this embodiment, there are two ways to deploy SMF and UPF:
[0083] One of the ways is Figure 6 As shown, it includes: deploying P-SMF and P-UPF separately according to needs, so that P-SMF also has I-SMF functions, and P-UPF also has I-UPF functions; maintaining the existing deployment mode of other 5G network elements; establishing a signaling plane connection between P-SMF and other 5G network elements; establishing a user plane connection between P-UPF and base station, and between P-UPF and other UPFs.
[0084] Another way is Figure 7As shown, it includes: upgrading the existing SMF and UPF so that the SMF has both P-SMF and I-SMF functions, and the UPF has both P-UPF and I-UPF functions; maintaining the existing deployment method of other 5G network elements.
[0085] In the above two methods, P-SMF and P-UPF are original to this embodiment. By having both I-SMF and I-UPF functions, the user terminal can perform routing selection and network management based on the UPRS policy without supporting the URSP policy.
[0086] A2, configure the execution strategy of AMF, SMF and UPF.
[0087] Specifically, the execution strategies for AMF configuration include:
[0088] When the URSP policy fails to be issued to the user terminal, the AMF stores the current URSP policy and marks the user terminal as the first user, where the first user is a user who needs to implement URSP on the network side;
[0089] When the first user initiates a PDU establishment request, AMF selects P-SMF to establish a PDU session for the first user and transmits the URSP policy of the first user to P-SMF.
[0090] And, the execution strategy for SMF configuration (mainly the execution strategy for P-SMF configuration) includes:
[0091] Instruct P-SMF to store and identify URSP policies;
[0092] Based on the S-NSSAI in the URSP policy, the P-SMF queries the NRF for the SMF serving the S-NSSAI and triggers a PDU establishment request, where the S-NSSAI is specifically the S-NSSAI in the RSD in the URSP policy;
[0093] After receiving the SMF response, the P-SMF instructs the P-UPF to establish a GTP-U channel with the UPF serving the S-NSSAI, where the SMF response includes the N9 interface information of the UPF serving the S-NSSAI.
[0094] And, the execution strategy for UPF configuration (mainly the execution strategy for P-UPF configuration) includes:
[0095] Instruct P-UPF to store and identify URSP policies;
[0096] Based on the instruction of P-SMF, P-UPF establishes a GTP-U channel with the UPF serving S-NSSAI;
[0097] The P-UPF parses and identifies the uplink traffic of the user terminal and directs the traffic to the GTP-U channel based on the URSP policy;
[0098] The P-UPF aggregates the downlink traffic of the user terminal and sends it to the PDU channel established between the user and the P-UPF.
[0099] Through the configuration of the above execution strategy, in service management, each functional network element can act according to the configured execution strategy, thereby achieving dynamic and flexible routing selection and network management for user traffic based on URSP in the scenario where the user terminal does not support URSP.
[0100] A3: According to the business scenario of the user terminal, sign at least one execution policy.
[0101] Specifically, in this embodiment, according to the business scenarios of the user terminals, PCF can be used to subscribe multiple TD and RSD policy combinations for the user terminals. For example, the traffic of IP segment 1 / APP1 is routed to S-NSSAI1, and the traffic of IP segment 2 / APP2 is routed to S-NSSAI2.
[0102] At this point, the network architecture corresponding to the access control method proposed in this application is completed, and then access control to the terminal can be implemented based on the network architecture.
[0103] Furthermore, in this embodiment, in step S2, an access request message and / or an update message of a terminal is received by using an access control device.
[0104] Specifically, in this embodiment, the access request message mainly includes an authentication request message and a billing request message; the update message mainly includes a billing message. Of course, in actual applications, other information can be added as an access request message or an update message according to actual needs, thereby improving the accuracy of authentication.
[0105] Furthermore, in this embodiment, S3, the method for generating an access control policy according to the received access request message and / or update message includes:
[0106] S31, obtaining the firmware information of the terminal according to the received access request message and / or update message.
[0107] The firmware information includes the terminal's MSISDN, IMSI, temporary IP address, IMEI, geographic location and other information; the temporary IP address is dynamically allocated, that is, the IP address allocated to the user terminal each time it accesses the network may be different.
[0108] S32, querying and matching the corresponding accessible resource information according to the acquired terminal firmware information, and generating a corresponding access control policy.
[0109] Specifically, in this embodiment, the access control policy can be a five-tuple access control policy, that is, the access control policy includes elements such as the source address, source port, destination address, destination port, and protocol of network access. Of course, in actual applications, the access control policy can also include other elements, and the selection of each element can be set according to actual needs, but the number of elements is at least 2, so as to ensure the effectiveness of access control.
[0110] It should be noted that the “generating” access control policy mentioned here does not only refer to generating an access control policy from scratch, but also includes dynamically adjusting an existing access control policy.
[0111] In actual applications, access authentication, authorization and billing can also be performed on the terminal based on the terminal status information.
[0112] Different from AAA's secondary authentication and "zero trust" authentication, the access authentication, authorization and billing methods provided in this embodiment can not only perform access authentication, authorization and billing for user terminals on the mobile network side, but also match the accessible target network and resources according to the identity information of the terminal on the mobile network side, and jointly control the access rights of the terminal; and can dynamically manage access control policies in the case of dynamic IP, so as to correctly match the corresponding access rights of the terminal; in addition, this embodiment does not need to install any software or plug-ins for authentication, and can automatically perform authentication and access policy control based on the terminal number card information (such as terminal SIM card, eSIM card, iSIM card, etc.) when the user is not logged in, that is, there is no need for manual participation in the authentication process, which improves the convenience and efficiency of authentication.
[0113] Preferably, in this embodiment, in step S3, the method for generating an access control policy according to the received access request message and / or update message further includes:
[0114] S33, dynamically maintaining the effectiveness of the access control policy based on the online status of the terminal.
[0115] Specifically, in this embodiment, the online status is determined based on the access request message and / or the update message, wherein the billing message in the update message includes information such as the billing message type, geographic location, and temporary IP address, and the billing message type mainly includes billing start message, billing update message, and billing end message. The online status can be determined through the access request and the billing message, and then the effectiveness of the access control policy is maintained according to the online status, including:
[0116] A. Upon receiving an access request or a charging message, the access control device generates an access control policy according to preset terminal access data network permissions, wherein the terminal access data network permissions can be pre-collected and stored in the access control device to facilitate the retrieval of corresponding data.
[0117] B. If a billing update message is received within the preset aging time, the access control policy is kept valid, wherein the preset aging time can be reasonably set according to actual needs, and this application does not impose any restrictions on this.
[0118] C. If no billing update message or billing end message is received within the preset aging time, the access control policy is revoked to ensure the security of network access.
[0119] In actual application, the access request message and the update message can be sent by the core network session management network element to the access control device in a primary sending manner, that is, Figure 4 As shown, the SMF sends the access request message and / or the update message to the access control device via the UPF. At this time, the access control device performs access authentication, authorization and billing on the terminal, and dynamically manages the terminal's access rights to data network resources based on the received access request message and / or update message.
[0120] In the main sending mode, in actual application, the process of secondary authentication using the access control device generally includes: the user terminal that has signed a contract to execute the policy registers on the network, triggering the PCF to send the URSP policy to the AMF; the AMF sends the URSP policy to the user terminal. If the user terminal does not support URSP, it returns the policy update failure information to the AMF; the AMF marks the user terminal as a user who needs to implement URSP on the network side and stores the current URSP policy; when the user initiates a PDU establishment request, the AMF sends a PDU session establishment request to the SMF and transmits the user's URSP policy to the SMF; after receiving the PDU session establishment request and the URSP policy, the SMF saves the URSP policy and selects the UPF to establish a PDU session for the user, so that the access control device receives the access request message and the update message, thereby realizing access authentication, authorization and billing for the terminal, as well as dynamic management of the terminal's access rights to data network resources.
[0121] Or, in other application processes, the access request message and the update message may also be sent to the access control device in a copy mode, that is, the access control device does not process the access request message and the update message, but only reads the information of interest in the message. In this case, the access control device only dynamically manages the terminal's access rights to data network resources based on the received access request message and / or update message, and does not participate in the access authentication, authorization and billing of the terminal.
[0122] In the copy mode, in actual application, the access authentication, authorization and billing of the terminal equipment are completed by other functional modules in the mobile communication system. The authentication unit of the access control device is only used to receive the terminal access request messages and update messages (mainly including access authentication messages and billing messages) copied from other functional modules. The authentication unit extracts the information of interest from these messages to trigger the access control management unit to control the network access of the terminal.
[0123] Further, in this embodiment, S4, the method of dynamically managing the permission of the authorized terminal to access the data network resources by using the access control device according to the terminal status information includes:
[0124] S41, obtaining the authorized geographical location and access time of the terminal.
[0125] Specifically, in actual applications, when in the application scenario of a dedicated mobile communication network, the core network needs to send or copy the authentication information and billing information of the terminal accessing the network. This information must carry the terminal identity information, location information, timestamp and terminal IP address, etc. The identity information includes MSISDN, IMSI, IMEI, etc.
[0126] S42, according to the geographical location and access time of the terminal, the access control device manages the terminal's access rights to data network resources within a specified geographical location range and a specified time range according to the terminal's state information through an access control policy.
[0127] Specifically, in this embodiment, the target resources that the terminal can access are determined based on the terminal identity information, and then a list of access control policies based on two to five tuples is generated in combination with the terminal IP address. Then, based on the terminal location and access time, the terminal's authority to access resources in the data network within a specified geographical location range and a specified time range can be dynamically and flexibly controlled.
[0128] Since the IP address of the terminal changes each time it accesses the network, it is necessary to dynamically manage the access control policy corresponding to the terminal. This can ensure that, on the one hand, the counterfeit terminal uses the IP of the offline legitimate terminal to access resources, and on the other hand, it can ensure that the terminal can match the correct access control policy to access the corresponding resources each time it accesses the network.
[0129] S43, after the terminal goes offline, the access control device immediately cancels the access control policy of the terminal. In this way, by reducing the access rights, the risk of data network being attacked and invaded is reduced, thereby ensuring the security of network access.
[0130] In this embodiment, if Figure 4As shown in the figure, when the terminal accesses the 5G private network, the UDM primary authentication is performed first to ensure that the terminal accessing the 5G private network has access rights, thereby ensuring the security of the 5G private network. For specific networks with higher security requirements (for example, corporate intranet), if the terminal accesses the above specific network, the access control device can be used to perform secondary authentication and dynamic access control after the terminal accesses the 5G private network, further ensuring the security of the specific network.
[0131] Specifically, in the actual application process, after the user terminal registers the network and passes the primary authentication, a PDU session is initiated. The secondary identity authentication of the 5G terminal follows EAP, and the authentication message is carried by NAS signaling, in which the terminal UE serves as the authenticated end, the SMF network element serves as the authentication end, and the access control device provided by the present invention serves as the authentication server. At the same time, the access control device provided by the present invention also serves as a gateway for the terminal to access the data network, and all traffic that needs to pass through the system to access the intranet is disabled by default.
[0132] In this way, the access control method provided in this embodiment avoids the deficiencies in the patent technical solution with patent application number 202311211162.5 and name “Access Rights Adjustment Method, Device and Storage Medium” mentioned in the background technology. Figure 4 As shown, the access control device provided in this embodiment has the capabilities of terminal access authentication, authorization and billing. After SMF turns on the main sending mode of authentication and billing messages, when SMF times out and does not receive a response message from the access control device, it can generate an alarm message to remind the system administrator to troubleshoot the fault, thereby avoiding the problem of not being able to perceive the occurrence of a fault.
[0133] This embodiment also provides a terminal access control system, which is used to implement the access control method as described above. Figure 8 As shown, the terminal access control system includes a business service module, a business management module, an access control module, a dynamic policy management module, an audit module and a data forwarding module. Among them, the business service module is used to receive Radius messages through the Radius interface, and the dynamic policy management module stores the terminal access rights entered in the system; then the access control module queries the resource rights that the terminal has access to from the dynamic policy management module through the MSISDN or IMSI information in the Radius message, and dynamically manages the business management module according to the pre-configured resource access rights, so that the business management module controls the data forwarding module to realize data forwarding; the audit module can record the behavior log of the terminal accessing the intranet resources, network tracing and auditing.
[0134] The terminal access control system provided in this embodiment can provide a secure way for terminals to access the data network without login or authentication, while providing real-time protection for the data network, and realizes the ability to securely access the 5G private network and efficiently access data network services without increasing user operations, affecting 5G network performance, and being compatible with various types of 5G terminals.
[0135] Furthermore, this embodiment further provides a storage medium, wherein the storage medium stores an executable program; when the executable program is executed, the access control method as described above is implemented.
[0136] Furthermore, this embodiment further provides an electronic device, comprising a memory, a processor, and an executable program stored in the memory and capable of being run by the processor; when the processor runs the executable program, the access control method as described above is executed.
[0137] Furthermore, this embodiment further provides a chip or a chip module, wherein the chip or the chip module is coupled to a memory and is used to execute a computer program stored in the memory to execute the access control method as described above.
[0138] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other. In addition, the different parts between the various embodiments can also be used in combination with each other, and the present invention is not limited to this.
[0139] The above description is only a description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.
Claims
1. An access control method, characterized in that: include: Build an access control device, configure its connection relationship with other network elements in the system, and pre-configure the accessible resource information of each terminal, including: the access control device is connected to the UPF and the data network respectively, the terminal is connected to the AMF, the AMF is connected to the AUSF, UDM, SMF, and RAN, the AUSF is connected to the UDM, the UDM is connected to the SMF, the SMF is connected to the UPF, and the RAN is connected to the UPF; deploy SMF and UPF to enable the terminal to support the URSP policy; configure the execution policy of AMF, SMF, and UPF; according to the business scenario of the terminal, sign at least one execution policy; receiving an access request message and / or an update message from a terminal using an access control device; According to the received access request message and / or update message, query and match the corresponding accessible resource information, and generate an access control policy; According to the status information of the terminal, the access control device is used to dynamically manage the authority of the authorized terminal to access the data network resources.
2. The access control method according to claim 1, characterized in that: The access request message includes an authentication request message and a charging request message; the update message includes a charging message.
3. The access control method according to claim 2, characterized in that: The method for generating an access control policy according to a received access request message and / or update message includes: Acquire the firmware information of the terminal according to the received access request message and / or update message; According to the known firmware information of the terminal, the corresponding accessible resource information is queried and matched, and the corresponding access control policy is generated, wherein the policy item parameters of the access control policy include the source address, source port, target address, target port and protocol of the network access.
4. The access control method according to claim 3, characterized in that: The method for generating an access control policy according to the received access request message and / or update message further includes: The effectiveness of access control policies is dynamically maintained based on the online status of the terminal.
5. The access control method according to claim 4, characterized in that: The online status is determined according to an access request message and / or an update message, and the billing message includes a billing start message, a billing update message, and a billing end message; the method for dynamically maintaining the validity of the access control policy based on the online status of the terminal includes: Upon receiving an access request message or a charging message, the access control device generates an access control policy based on the accessible resource information of the pre-configured terminal; If a billing update message is received within the preset aging time, the access control policy remains valid; If no billing update message or billing end message is received within the preset aging time, the access control policy is revoked.
6. The access control method according to claim 5, characterized in that: The access request message and the charging update message are sent by the core network session management network element to the access control device in a primary sending manner, or the access request message and the charging update message are sent to the access control device in a carbon copy sending manner; In the master-send mode, the access control device performs access authentication, authorization and billing on the terminal, and dynamically manages the terminal's access rights to data network resources based on the received access request message and / or update message; In the copy mode, the access control device only dynamically manages the terminal's access rights to data network resources based on the received access request message and / or update message, and does not participate in the access authentication, authorization and billing of the terminal.
7. The access control method according to claim 1, characterized in that: The method for dynamically managing the authority of the authorized terminal to access data network resources by using the access control device according to the terminal status information includes: Obtain the geographical location and access time of the authorized terminal; According to the geographical location and access time of the terminal, the access control device manages the terminal's access rights to data network resources within a specified geographical location range and a specified time range through an access control policy.
8. The access control method according to claim 1, characterized in that: The method of dynamically managing the authority of the authorized terminal to access data network resources by using the access control device according to the terminal status information also includes: When no charging message is received within the preset aging time or a charging end message is received, the access control device immediately revokes the access control policy of the terminal.
9. An access control device, applied to the access control method according to any one of claims 1 to 8, characterized in that: The access control device includes an authentication unit and an access control management unit; the authentication unit is used to perform access authentication, authorization and billing on the terminal when accessing the mobile network; the access control management unit is used to dynamically allocate the corresponding access rights to data network resources to each legitimate terminal by querying the resource information accessible to each terminal pre-configured in the system, and dynamically manage the access control policy according to the terminal's online status to achieve dynamic management of the authorized terminal's access rights to data network resources.
10. A storage medium, characterized in that: The storage medium stores an executable program; when the executable program is executed, the access control method according to any one of claims 1 to 8 is implemented.
