Control methods, devices, related equipment and storage media
By interacting with the RADIUS protocol and the AAA system, the legitimacy of the terminal location area is determined and resources are reclaimed in illegal areas, solving the problem of terminal resource waste in 4G or 5G core networks and achieving efficient resource utilization.
Patent Information
- Application Number
- CN202210571202.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-24
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2042-05-24
AI Technical Summary
In the PCC system architecture of 4G or 5G core networks, terminals still occupy network resources when they are in illegal location areas, resulting in resource waste.
An AAA system that introduces the RADIUS protocol determines the legitimacy of a region through terminal location information and reclaims allocated network resources when the region is in an illegal area.
This reduces the waste of network resources by terminals in illegal areas and avoids the occupation of bearer and user plane bandwidth resources.
Smart Images

Figure CN117177175B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of core network technology, and in particular to a control method, apparatus, related equipment and storage medium. Background Technology
[0002] In mobile communication networks, network elements of the core network for fourth-generation (4G) or fifth-generation (5G) mobile communication technologies can control whether a terminal can access network resources through equipment information (such as interface addresses) of the base station or lower-level core network elements to which the terminal is connected. These accessed network resources include those corresponding to services. Related technologies primarily control the network resources accessed by the terminal through Policy and Charging Control (PCC) systems, i.e., allowing or prohibiting the terminal from accessing network resources.
[0003] However, when implementing control over network resources accessed by terminals under the PCC system architecture, there is a problem of resource waste. Summary of the Invention
[0004] To address the related technical problems, embodiments of this application provide a control method, apparatus, related equipment, and storage medium; The technical solution of this application embodiment is implemented as follows: This application provides a control method applied to a first function, including: Send a first message to the Authentication, Authorization, Accounting (AAA) system; the first message contains at least the location information of the terminal; the location information is used to determine whether the area where the terminal is located is a legal area or an illegal area; Receive the response from the AAA system to the first message; If the response indicates that the area where the terminal is located is an illegal area, the network resources allocated to the terminal are reclaimed; wherein... The first function communicates with the AAA system based on the Remote Authentication Dial In User Service (RADIUS) protocol.
[0005] In the above scheme, during the process of the terminal accessing the network, the first message is sent to the AAA system.
[0006] The method in the above scheme further includes: Receive a second message, the second message being used to request the allocation of network resources for the terminal; Send a third message to the AAA system, the third message being used to request authentication of the terminal, the third message containing at least the identifier of the terminal and / or the name of the network accessed by the terminal; The system receives the authentication result sent by the AAA system, and if the authentication result indicates that the authentication is successful, it responds to the second message and allocates network resources to the terminal.
[0007] In the above scheme, the terminal accesses the network, and during the location update process of the terminal, it sends a first message to the AAA system.
[0008] In the above scheme, the first message also includes at least one of the following information: The identifier of the terminal; The name of the network accessed by the terminal.
[0009] This application also provides a control method applied to an AAA system, including: Receive a first message sent by a first function; the first message contains at least the location information of the terminal; the location information is used to determine whether the area where the terminal is located is a legal area or an illegal area; Using the location information of the terminal, determine whether the area where the terminal is located is a legal or illegal area; Send a response to the first message to the first function; wherein, The first function communicates with the AAA system based on the RADIUS protocol.
[0010] In the above scheme, during the process of the terminal accessing the network, it receives the first message sent by the first function.
[0011] The method in the above scheme further includes: The system receives a third message sent by the first function, the third message being used to request authentication of the terminal, and the third message containing at least the identifier of the terminal and / or the name of the network accessed by the terminal. The terminal is authenticated using its identifier and / or the name of the network it accesses, and the authentication result is obtained and sent to the first function.
[0012] In the above scheme, the terminal accesses the network, and during the location update process of the terminal, it receives the first message sent by the first function.
[0013] In the above scheme, the first message also includes at least one of the following information: The identifier of the terminal; The name of the network accessed by the terminal; The step of using the location information of the terminal to determine whether the area where the terminal is located is a legal or illegal area includes: The system retrieves subscription information from a local database that corresponds to the terminal's identifier and / or the network name accessed by the terminal; the local database contains at least the association between the terminal's identifier and / or the network name accessed by the terminal and the subscription information; the subscription information contains at least the terminal's legal regions or the terminal's illegal regions. The location information of the terminal is matched with the found contract information to obtain the matching result; Using the matching results, it is determined whether the area where the terminal is located is a legal area or an illegal area.
[0014] This application embodiment also provides a control device, including: The first sending unit is configured to send a first message to the AAA system, the first message containing at least the location information of the terminal; the location information is used to determine whether the area where the terminal is located is a legal area or an illegal area; The first receiving unit is configured to receive the response sent by the AAA system to the first message; A first processing unit is configured to reclaim network resources allocated to the terminal if the response indicates that the area where the terminal is located is an illegal area; wherein... The first function communicates with the AAA system based on the RADIUS protocol.
[0015] This application embodiment also provides a control device, including: The second receiving unit is configured to receive a first message sent by the first function; the first message contains at least the location information of the terminal; the location information is used to determine whether the area where the terminal is located is a legal area or an illegal area; The second processing unit is used to determine whether the area where the terminal is located is a legal area or an illegal area using the location information of the terminal. The second sending unit is configured to send a response to the first message to the first function; wherein, The first function communicates with the AAA system based on the RADIUS protocol.
[0016] This application embodiment also provides a first function, including: a first processor and a first communication interface; wherein, The first communication interface is used to send a first message to the AAA system; the first message includes at least the location information of the terminal; the location information is used to determine whether the area where the terminal is located is a legal area or an illegal area; and to receive a response from the AAA system in response to the first message; The first processor is configured to reclaim network resources allocated to the terminal if the response indicates that the area where the terminal is located is an illegal area; wherein, The first function communicates with the AAA system based on the RADIUS protocol.
[0017] This application also provides an AAA system, including: a second processor and a second communication interface; wherein, The second communication interface is used to receive a first message sent by the first function; the first message includes at least the location information of the terminal; the location information is used to determine whether the area where the terminal is located is a legal area or an illegal area; and to send a response to the first function in response to the first message; The second processor is configured to use the location information of the terminal to determine whether the area where the terminal is located is a legal or illegal area; wherein, The first function communicates with the AAA system based on the RADIUS protocol.
[0018] This application embodiment also provides a storage medium storing a computer program thereon, wherein when the computer program is executed by a processor, it implements the steps of any of the methods on the first functional side or the steps of any of the methods on the AAA system side.
[0019] The control method, apparatus, related devices, and storage medium provided in this application embodiment include a first function that sends a first message to an AAA system; the first message at least includes the location information of the terminal; the location information is used to determine whether the area where the terminal is located is a legal or illegal area; the AAA system uses the location information of the terminal to determine whether the area where the terminal is located is a legal or illegal area; sends a response to the first function in response to the first message; if the response indicates that the area where the terminal is located is an illegal area, the first function reclaims the network resources allocated to the terminal; wherein, the first function communicates with the AAA system based on the RADIUS protocol. The solution provided in this application embodiment allows the first function to interact with the AAA system via the RADIUS protocol, enabling it to determine the legality of the area where the terminal is located. Thus, when the terminal is in an illegal area, the first function can promptly reclaim the network resources allocated to the terminal, thereby reducing the waste of allocated network resources. Attached Figure Description
[0020] Figure 1 This is a schematic flowchart of the first control method according to an embodiment of this application; Figure 2 This is a schematic flowchart of the second control method according to an embodiment of this application; Figure 3 This is a schematic diagram of the node structure in the application embodiment of this application; Figure 4 This is a schematic flowchart illustrating the method for establishing a bearer for terminal network access in an application embodiment of this application. Figure 5 This is a schematic flowchart illustrating a method for updating the location area of a terminal that is already connected to the network, as described in an application embodiment of this application. Figure 6 This is a schematic diagram of the structure of the first control device according to an embodiment of this application; Figure 7 This is a schematic diagram of the structure of the second type of control device according to an embodiment of this application; Figure 8 This is a schematic diagram of the first functional structure of an embodiment of this application; Figure 9 This is a schematic diagram of the AAA system structure according to an embodiment of this application; Figure 10 This is a schematic diagram of the control system structure according to an embodiment of this application. Detailed Implementation
[0021] The present application will now be described in further detail with reference to the accompanying drawings and embodiments.
[0022] In related technologies, under the PCC system architecture, the network elements of the 4G or 5G core network control whether the terminal can access network resources based on the terminal's location area.
[0023] Specifically, in a 4G architecture, when a terminal first requests to establish a bearer, it sends a bearer establishment request to the Packet Data Network (PDN) gateway (PGW) through the base station and the Serving Gateway (SGW). This bearer establishment request carries the terminal's location area information, such as the Tracking Area Code (TAC), Location Area Code (LAC), and the Internet Protocol (IP) address of the Serving Gateway (SGW). After receiving the bearer establishment request from the terminal, the PGW allocates a corresponding IP address to the terminal to establish the bearer. Simultaneously, the PGW uses the Policy and Charging Rules Function (PCRF) to find the access policy corresponding to the terminal's location area information and determines whether the terminal can access network resources at its current location based on the found access policy. If the PGW determines that the terminal is in a legal location area, it will allow the terminal to transmit request messages for accessing network resources, i.e., allow the terminal to access network resources; if the PGW determines that the terminal is in an illegal location area, it will discard the request messages for accessing network resources, i.e., prohibit the terminal from accessing network resources.
[0024] Furthermore, when a terminal's location changes, causing a corresponding change in the tracking area, a Tracking Area Update (TAU) process is typically triggered, enabling the PGW to obtain the terminal's updated location area information in real time. Based on this updated location area information, the PGW updates the corresponding access policy via the PCRF, and then determines whether the terminal can access network resources at the updated location according to the updated access policy.
[0025] In a 5G architecture, when a terminal first requests to establish a bearer, it can send a bearer establishment request to the Session Management Function (SMF) through the Base Station and Access and Mobility Management Function (AMF). This request carries the terminal's location area information, such as the TAC, LAC, and the AMF's IP address. Upon receiving the bearer establishment request, the SMF allocates a corresponding IP address to the terminal to establish the bearer. Simultaneously, the SMF uses the Policy Control Function (PCF) to determine the access policy corresponding to the terminal's location area information and, based on the found access policy, determines whether the terminal can access network resources at its current location. The SMF then synchronizes the determination result to the User Plane Function (UPF). If the terminal is determined to be in a legitimate location area, the UPF will allow the terminal's request to access network resources; otherwise, the UPF will discard the request, prohibiting the terminal from accessing network resources. When the terminal's location changes, causing a change in the tracking area, the terminal triggers the TAU procedure, enabling the SMF to obtain the updated location area information. Based on the updated location area information, the SMF can update the corresponding access policy through the PCF, and then determine whether the terminal can access network resources at the updated location according to the updated access policy.
[0026] In summary, under the 4G or 5G core network architecture, when the PCC system controls the terminal, the PGW or SMF allocates network resources, such as bearer resources, to the terminal. Then, when the terminal is in an illegal location area, the terminal's request packets to access network resources will be discarded by the PGW or UPF, thereby achieving the purpose of controlling the terminal to access network resources within a legal location area.
[0027] However, the above process suffers from resource waste by the terminal. On one hand, regardless of whether the terminal is in a legal location area, the PGW or SMF will establish a bearer for it. When the terminal is in an illegal location area, request packets for accessing network resources are discarded, preventing the terminal from accessing network resources through the established bearer, thus wasting the bearer resources. On the other hand, after establishing a bearer for the terminal, when the terminal is in an illegal location area, the embedded program or application program (APP) on the terminal will continuously attempt to interact with the service server, thus consuming user plane bandwidth resources from the base station air interface, SGW, PGW, or UPF, resulting in wasted user plane resources.
[0028] Based on this, in various embodiments of this application, a first function acting as a RADIUS client and an AAA system acting as a RADIUS server are introduced, based on the RADIUS protocol. The first function communicates with the AAA system via the RADIUS protocol to determine the legitimacy of the region where the terminal is located. Thus, when it is determined that the region where the terminal is located is an illegal region, the first function can reclaim the network resources allocated to the terminal, thereby reducing the waste of network resources (i.e., the network resources allocated to the terminal) occupied during the terminal's access to network resources.
[0029] This application provides a control method, such as... Figure 1 As shown, the first function includes the following steps: Step 101: Send a first message to the AAA system; the first message contains at least the location information of the terminal; the location information is used to determine whether the area where the terminal is located is a legal area or an illegal area; Step 102: Receive the response from the AAA system to the first message; Step 103: If the response indicates that the area where the terminal is located is an illegal area, reclaim the network resources allocated to the terminal; wherein, The first function communicates with the AAA system based on the RADIUS protocol.
[0030] In a 4G network, the first function may include PGW; in a 5G network, the first function may include SMF. This application embodiment does not limit this, as long as the function of the first function is implemented.
[0031] In practical applications, before step 101, during the network access process, the terminal sends a message to the first function through the base station to request the allocation of network resources. Before responding to the message sent by the terminal, the first function needs to authenticate the terminal through the AAA system to verify whether the terminal has the authority to access network resources.
[0032] Based on this, in one embodiment, the method may further include: Receive a second message, the second message being used to request the allocation of network resources for the terminal; Send a third message to the AAA system, the third message being used to request authentication of the terminal, the third message containing at least the identifier of the terminal and / or the name of the network accessed by the terminal; The system receives the authentication result sent by the AAA system, and if the authentication result indicates that the authentication is successful, it responds to the second message and allocates network resources to the terminal.
[0033] The second message may include the terminal's identifier (e.g., terminal number), the name of the network the terminal accesses (e.g., the access point name (APN) in a 4G network or the data network name (DNN) in a 5G network), and the terminal's location information.
[0034] In practical applications, during the process of the terminal accessing the network, the terminal will send the second message to the second function through the base station, and then the second function will send it to the first function. In a 4G network, the second function may include SGW and Mobility Management Entity (MME); in a 5G network, the second function may include AMF. This application embodiment does not limit the specific function, as long as the function of the second function is implemented.
[0035] Here, after receiving the second message, the first function sends the third message to the AAA system to request authentication of the terminal. Then, based on the authentication result returned by the AAA system, the first function can allocate network resources to the terminal when authentication is successful, so that the terminal can access the network resources; the allocated network resources may include bearer resources, session resources (such as IP addresses, Domain Name System (DNS) addresses, or Quality of Service (QoS)), etc.
[0036] After allocating network resources to the terminal, the first function can send the first message to the AAA system to determine the legitimacy of the area where the terminal is located when accessing the network.
[0037] Specifically, in one embodiment, during the process of the terminal accessing the network, the first message is sent to the AAA system.
[0038] In practical applications, besides the scenario where the terminal is already connected to the network, there are also scenarios where the terminal is already connected to the network, but its location changes, causing a change in the corresponding tracking area. Therefore, when the terminal's location changes, the first function also needs to use the AAA system to determine the legitimacy of the area after the location update.
[0039] Based on this, in one embodiment, the terminal accesses the network and, during the location update process of the terminal, sends a first message to the AAA system.
[0040] In practical application, when the terminal's location changes, causing a corresponding change in the tracking area, the terminal triggers the TAU procedure, sending an update message to the second function. This update message carries the updated location information. Then, the second function sends the update message to the first function, causing the first function to send a first message to the AAA system.
[0041] In related technologies, to enable the ability to control terminal access to network resources based on regional location, a regional location restriction function is subscribed to for the user's USIM card when the USIM card is activated. The PCRF or PCF stores the subscription information corresponding to each USIM card number as the dimension. Thus, when a terminal requests network resource allocation or its location information changes, the PCRF or PCF can, based on the request sent by the PGW or SMF, feed back the subscription information corresponding to the number included in the request to the PGW or UPF. The PGW or UPF then determines the legitimacy of the terminal's location based on the feedback subscription information, thereby allowing or prohibiting the terminal from accessing network resources. However, currently, the regional location restriction function can only be subscribed to in the form of a number, resulting in a single control dimension.
[0042] Based on this, in this embodiment of the application, multiple dimensions of contract information are introduced into the AAA system. Specifically, when the first function sends the first message to the AAA system, the first message may also contain relevant information of different dimensions, so that the AAA system can determine the contract information corresponding to the terminal, and then determine the legality of the region where the terminal is located based on the contract information.
[0043] More specifically, in one embodiment, the first message further includes at least one of the following: The identifier of the terminal; The name of the network accessed by the terminal.
[0044] The terminal identifier may include the International Mobile Subscriber Identity (IMSI), the Mobile Station international ISDN number (MSISDN), etc., but this application embodiment does not limit this.
[0045] In practical applications, in step 103, after the first function receives the response sent by the AAA system, if the response indicates that the area where the terminal is located is an illegal area, it will reclaim the network resources allocated to the terminal; the reclaimed network resources may include allocated bearer resources, session resources, etc.
[0046] For example, during the process of the first function reclaiming network resources allocated to the terminal, the first function may send a bearer deletion request to the second function based on the RADIUS disconnection request sent by the AAA system. Upon receiving the bearer deletion request, the second function sends a Packet Data Protocol (PDP) context release request to the terminal, requesting the terminal to release the PDP context. After the terminal releases the PDP context, it returns a response to the bearer context release request to the second function, which then sends the response back to the first function.
[0047] In this way, when the terminal cannot access network resources, it can avoid occupying a large amount of allocated bearer resources, reducing the waste of resources. At the same time, since the bearer resources are reclaimed, the embedded programs or applications on the terminal will also stop interacting with the service server, thereby reducing the waste of user plane bandwidth resources.
[0048] Here, if the response indicates that the area where the terminal is located is a legal area, the first function will not reclaim the allocated network resources until the location information of the terminal changes or the terminal no longer needs to use the allocated network resources. Only then will the first function repeat the above steps 101 to 103 or reclaim the network resources allocated to the terminal.
[0049] In practical applications, when the terminal no longer needs to use the allocated network resources, such as when the terminal is powered off, the first function can reclaim the network resources allocated to the terminal to reduce the waste of network resources occupied by the terminal.
[0050] Based on this, in one embodiment, the method may further include: Receive a fourth message; the fourth message is used to indicate that the terminal has stopped using the allocated network resources; Based on the fourth message, the network resources allocated to the terminal are reclaimed.
[0051] In practical application, before the terminal stops using the allocated network resources, the terminal can send a notification to the second function via a base station, causing the second function to send a fourth message to the first function based on the notification. Upon receiving the fourth message, the first function can determine that the terminal has stopped using the allocated network resources, and at this point, the first function can reclaim the network resources allocated to the terminal.
[0052] Accordingly, embodiments of this application also provide a control method applied to an AAA system, such as... Figure 2 As shown, it includes the following steps: Step 201: Receive a first message sent by the first function; the first message contains at least the location information of the terminal; the location information is used to determine whether the area where the terminal is located is a legal area or an illegal area. Step 202: Using the location information of the terminal, determine whether the area where the terminal is located is a legal area or an illegal area; Step 203: Send a response to the first message to the first function; wherein, The first function communicates with the AAA system based on the RADIUS protocol.
[0053] In practical applications, when implementing location restriction functionality for multiple terminals, subscription information can be generated not only by the terminal's identifier but also by the network name the terminal accesses, enabling multi-dimensional control over the subscription information. For a single terminal identifier subscribed to multiple network names, each network name can correspond to one subscription information. If the subscription information corresponding to the terminal's identifier and the subscribed network name differs, the subscription information corresponding to the terminal's identifier takes precedence over the subscription information corresponding to the subscribed network name. Then, the AAA system introduces these different dimensions of subscription information, storing the association between the terminal's identifier and / or the network name accessed by the terminal and the subscription information in a local database. The subscription information at least includes either the terminal's legal region or its illegal region.
[0054] Then, before step 201, during the process of the terminal accessing the network, the terminal will request the allocation of network resources. In this case, the AAA system needs to verify whether the terminal has the right to access network resources through the message sent by the first function.
[0055] Based on this, in one embodiment, the method may further include: The system receives a third message sent by the first function, the third message being used to request authentication of the terminal, and the third message containing at least the identifier of the terminal and / or the name of the network accessed by the terminal. The terminal is authenticated using its identifier and / or the network name it accesses, an authentication result is obtained, and the authentication result is sent to the first function. In practical applications, after receiving the third message, the AAA system can search for the corresponding subscription information in the local database based on the terminal's identifier and / or the network name accessed by the terminal, obtain the authentication result, and return the authentication result to the first function.
[0056] Specifically, if the AAA system can find the corresponding contract information, the authentication is successful; if it cannot find the corresponding contract information, the authentication fails.
[0057] In the case where authentication is successful, the AAA system can receive the first message sent by the first function to determine the legitimacy of the area where the terminal is located when it begins to access the network.
[0058] Specifically, in one embodiment, during the process of the terminal accessing the network, it receives a first message sent by the first function.
[0059] Furthermore, in scenarios where the terminal has already connected to the network and the terminal's location changes, resulting in a change in the corresponding tracking area, the AAA system can also receive the first information sent by the first function to determine the legitimacy of the area where the terminal is located after the location update.
[0060] Specifically, in one embodiment, the terminal accesses the network and receives a first message sent by the first function during the location update process of the terminal.
[0061] In practical applications, to achieve multi-dimensional control over contract information, the AAA system introduces contract information corresponding to multiple dimensions. Specifically, when the AAA system receives the first message sent by the first function, the first message may contain relevant information of different dimensions, so that the AAA system can determine the corresponding contract information based on the relevant information of different dimensions, and thus determine the legitimacy of the region where the terminal is located.
[0062] More specifically, in one embodiment, the first message further includes at least one of the following: The identifier of the terminal; The name of the network accessed by the terminal; The step of using the location information of the terminal to determine whether the area where the terminal is located is a legal or illegal area includes: The system retrieves subscription information from a local database that corresponds to the terminal's identifier and / or the network name accessed by the terminal; the local database contains at least the association between the terminal's identifier and / or the network name accessed by the terminal and the subscription information; the subscription information contains at least the terminal's legal regions or the terminal's illegal regions. The location information of the terminal is matched with the found contract information to obtain the matching result; Using the matching results, it is determined whether the area where the terminal is located is a legal area or an illegal area.
[0063] In practical applications, the AAA system can search for matching subscription information in the local database based on the terminal's identifier and / or the network name accessed by the terminal. Then, the AAA system matches the terminal's location information with the terminal's legal or illegal region in the subscription information to obtain a matching result, thereby determining whether the region where the terminal is located is a legal or illegal region.
[0064] Specifically, if the location information of the terminal matches a legal area in the contract information, the AAA system can determine that the area where the terminal is located is a legal area; if the location information of the terminal matches an illegal area, the system can determine that the area where the terminal is located is an illegal area.
[0065] Then, the AAA system will send a response to the first message to the first function to indicate whether the area where the terminal is located is a legal area or an illegal area.
[0066] The control method provided in this application embodiment includes a first function sending a first message to an AAA system; the first message at least includes the location information of the terminal; the location information is used to determine whether the area where the terminal is located is a legal or illegal area; the AAA system uses the location information of the terminal to determine whether the area where the terminal is located is a legal or illegal area; and sends a response to the first function in response to the first message; if the response indicates that the area where the terminal is located is an illegal area, the first function reclaims the network resources allocated to the terminal; wherein, the first function communicates with the AAA system based on the RADIUS protocol. The solution provided in this application embodiment, by communicating with the AAA system through the RADIUS protocol, enables the first function to determine the legality of the area where the terminal is located. Thus, when the terminal is in an illegal area, the first function can promptly reclaim the network resources allocated to the terminal, thereby reducing the waste of allocated network resources.
[0067] The present application will be further described in detail below with reference to application examples.
[0068] In this application embodiment, based on the RADIUS protocol, a method for restricting terminal access in a mobile communication network based on location area is proposed. This method can prevent terminals from occupying established bearers and accessing network resources in location areas outside of legal location areas, thereby reducing resource waste. Furthermore, in addition to controlling access policies based on the terminal's number, this method can also control access policies based on APN or DNN, thus avoiding the problem of a single control dimension.
[0069] The above method mainly involves the interaction between PGW / SMF, acting as a RADIUS client, and the AAA system, acting as a RADIUS server. For example... Figure 3 As shown, the key nodes involved in the interaction process may include the terminal (UE), base station, SGW / AMF, PGW / SMF, and AAA system; wherein, the AAA system pre-subscribes the terminal's number (i.e., the terminal's identifier) or the APN / DNN (i.e., the network name accessed by the terminal) with regional location restriction function; in other words, the AAA system pre-configures the association between the terminal's number or the APN / DNN and the access policy (i.e., subscription information), and the access policy includes the terminal's legal area information and illegal area information.
[0070] Based on the characteristics of mobile communication networks, the application embodiments of this application mainly involve the message interaction process in two scenarios, specifically including the service scenario of a terminal requesting to establish a bearer and the service scenario of a terminal changing its location area after joining the network.
[0071] Specifically, in the service scenario where a terminal requests to establish a bearer for network access, the message interaction process of the application embodiments of this application is as follows: Figure 4 As shown, it includes the following steps: Step 401: SGW / AMF sends a Create Session Request (i.e., the second message) to PGW / SMF; The session creation request is used to request the establishment of a bearer for the terminal. The session creation request includes at least terminal-related information and location area information. The terminal-related information includes the terminal's number, the APN / DNN subscribed to by the terminal's number, and the PDP terminal address type (PDP-type). The PDP terminal address type is used to indicate the type of IP address allocated when establishing a bearer for the terminal, such as IPv4, IPv6, or a dual-stack address. The location area information includes the TAC or LAC where the terminal is located in the Protocol Configuration Options (PCO) field, and the IP address of the SGW / AMF interface S5-S8 / N11.
[0072] In practical applications, before step 401, the terminal will initiate the session creation request to the SGW / AMF through the base station, so that after the SGW / AMF receives the session creation request, it can send the session creation request to the PGW / SMF.
[0073] Step 402: After receiving the session creation request, PGW / SMF sends a RADIUS Access Request (i.e., a third message) to the AAA system according to the session creation request. The RADIUS access request is used to request authentication of the terminal; the RADIUS access request includes the terminal's number and / or the APN / DNN of the number's subscription.
[0074] Step 403: After receiving the RADIUS access request, the AAA system authenticates the terminal and, after completing the authentication, returns a RADIUS access-Accept response to the PGW / SMF. In practical applications, since the AAA system pre-configures the association between the terminal's number or the APN / DNN of the number's subscription and the access policy, the AAA system can search for the access policy corresponding to the terminal's number and / or the APN / DNN of the number's subscription from the pre-configured association based on the RADIUS access request, and obtain the authentication result. If the corresponding access policy can be found, it means that the authentication is successful and the terminal has the right to access network resources; if the corresponding access policy cannot be found, it means that the authentication has failed, that is, the terminal does not have the right to access network resources.
[0075] The AAA system then returns a RADIUS access response to the PGW / SMF; the RADIUS access response contains the authentication result.
[0076] Step 404: After receiving the RADIUS access response from the AAA system, the PGW / SMF sends a Start Accounting Request (Start) message (i.e., the first message) to the AAA system based on the received access response. In practical applications, if the access response indicates that the authentication is successful, PGW / SMF will allocate network resources to the terminal, such as allocating session resources to the terminal and generating a corresponding session ID, and allocating bearer resources (including IP addresses); wherein, the session ID can indicate the network resources allocated to the terminal.
[0077] Next, the PGW / SMF can send a start billing message to the AAA system and execute step 405; wherein the start billing information includes the terminal's location information and session identifier.
[0078] Step 405: PGW / SMF sends a response to the SGW / AMF request to create a session (Create SessionResponse); The response to the session creation request includes a session identifier.
[0079] In practical applications, after receiving the response to the session creation request, the SGW / AMF sends the response to the terminal via the base station to indicate that a bearer has been successfully established for the terminal. Then, step 406 is executed.
[0080] Step 406: After receiving the start billing message sent by PGW / SMF, the AAA system will send a response to the start billing message (RADIUS Accounting-Response (Start)) to PGW / SMF. At the same time, it will also verify the terminal location information carried in the start billing message. In practical applications, the AAA system, based on the terminal's number and / or the APN / DNN subscribed to in the start billing message, can determine whether the terminal has subscribed to a regional location restriction function on the AAA system; that is, whether the AAA system can find an access policy corresponding to the terminal's number and / or the APN / DNN subscribed to. If a corresponding access policy is found, the AAA system can mark the session identifier in the start billing message and simultaneously parse the location area information in the start billing message to obtain a parsing result. Then, by matching the parsing result with the found access policy, the AAA system can obtain a matching result and, based on the matching result, determine the legitimacy of the region where the terminal is located.
[0081] For example, the AAA system matches the parsing result with the location area information in the blacklist and / or whitelist corresponding to the access policy. If the parsing result matches the location area information in the blacklist, it can determine that the location area where the terminal is located is an illegal area; if the parsing result matches the location area information in the whitelist, it can determine that the location area where the terminal is located is a legal area.
[0082] Step 407: If it is determined that the location area of the terminal is an illegal area, the AAA system will send a RADIUS Disconnect Message Request to the PGW / SMF. The disconnection request message includes information such as the terminal's number and / or the APN / DNN subscribed to by the number, session identifier, etc.
[0083] Step 408: After receiving the disconnection request message, the PGW / SMF sends a delete bearer request message to the SGW / AMF. Here, the PGW / SMF can initiate a bearer deletion message to the SGW / AMF based on the session identifier to notify the terminal that the network resources allocated to it have been reclaimed. Simultaneously, the PGW / SMF will also respond to a disconnection request message, reclaiming the network resources allocated to the terminal.
[0084] Step 409: After receiving the disconnection request message, the PGW / SMF sends a response to the disconnection request message (RADIUS Disconnect Message Response) to the AAA system. It should be noted that the execution order of steps 408 and 409 above is not important.
[0085] Step 410: After receiving the delete bearer message, the SGW / AMF sends a delete bearer response to the PGW / SMF.
[0086] In practical applications, after receiving the bearer deletion message, the SGW / AMF can send the bearer deletion message to the terminal through the base station.
[0087] In addition, if the location area of the terminal is determined to be a legal area, the AAA system will store the terminal's status information and then not perform any further processing until it receives an intermediate billing message or a termination billing message (i.e., the fourth message) sent by the PGW / SMF, at which point it will respond. The intermediate billing message is sent when the location area of the terminal changes; the termination billing message is sent when the terminal stops using the allocated network resources (e.g., when it is powered off); and the status information can indicate the terminal's online status.
[0088] Here, when the PGW / SMF receives the end-of-billing message sent by the terminal, on the one hand, it will respond to the end-of-billing message and delete the network resources allocated to the terminal; on the other hand, the PGW / SMF will send the end-of-billing message to the AAA system, so that the AAA system can delete the stored user status information.
[0089] In the application embodiments of this application, in a business scenario where the terminal is already on the network and the location of the terminal changes, such as... Figure 5 As shown, the information exchange process includes the following steps: Step 501: SGW / AMF sends an Update PDP context Request to PGW / SMF. The Update Packet Data Protocol Context Request includes at least the updated location region information of the terminal.
[0090] In practical applications, before step 501, when the location area of the terminal changes, causing a change in the tracking area, the TAU procedure is triggered. The base station sends updated location area information, such as TAC or LAC information, and the IP addresses of the SGW / AMF's S5-S8 / N11 interfaces, to the SGW / AMF. Upon receiving the updated location area information, the SGW / AMF can then send an Update Packet Data Protocol Context Request to the PGW / SMF.
[0091] Step 502: After receiving the request to update the packet data protocol context, the PGW / SMF will trigger an intermediate accounting message (RADIUS Accounting-Request (Interim-Update)) and send it to the AAA system; The intermediate billing message includes at least the updated location area information, the terminal's number and / or the APN / DNN of the number subscription and the session identifier.
[0092] Step 503: After receiving the Update Packet Data Protocol Context request, the PGW / SMF sends a response to the Update Packet Data Protocol Context request to the SGW / AMF; It should be noted that the execution order of steps 502 and 503 is not important.
[0093] Step 504: After receiving the intermediate billing message, the AAA system verifies the location area information; In practical applications, the AAA system can quickly query the session identifier in the intermediate billing message to determine if a relevant marker exists, thus identifying whether the session has subscribed to the regional location restriction function. If no relevant marker exists, the AAA system returns a response to the intermediate billing message to the PGW / SMF, indicating that the terminal does not have permission to access network resources. If a relevant marker exists, the AAA system parses the updated location area information in the intermediate billing message to obtain the parsing result. Then, by matching the parsing result with the access policy corresponding to the terminal's number and / or the APN / DNN subscribed to by the number, the AAA system can determine the legitimacy of the terminal's updated region.
[0094] For example, the AAA system matches the parsing result with the location area information in the blacklist and / or whitelist corresponding to the access policy. If the parsing result matches the location area information in the blacklist, the updated location area can be determined to be an illegal area; if the parsing result matches the location area information in the whitelist, the updated location area can be determined to be a legal area.
[0095] Step 505: If the updated location area is determined to be an illegal area, the AAA system will send a disconnection request message to the PGW / SMF; The disconnection request message includes information such as the terminal's number and / or the APN / DNN subscribed to by the number, session identifier, etc.
[0096] Step 506: After receiving the disconnection request message, the PGW / SMF sends a bearer deletion message to the SGW / AMF; Here, the implementation process of step 506 can be referred to the implementation process of step 408 above.
[0097] Step 507: After receiving the disconnection request message, the PGW / SMF sends a response to the disconnection request message to the AAA system; It should be noted that the execution order of steps 506 and 507 is not important.
[0098] Step 508: After receiving the bearer deletion message, the SGW / AMF sends a response message to the PGW / SMF.
[0099] In this application embodiment, addressing the resource waste problem inherent in current mobile communication networks using the PCC architecture to implement location area access restriction functions, a method using the RADIUS protocol is proposed to achieve the aforementioned function. Specifically, the method primarily uses APN information (obtainable from the Called-Station-Id field), number information (obtainable from the Calling-Station-Id field), location area information (obtainable from the 3GPP-User-Location-Info field), and the IP address of the S5-S8 / N11 interface of the SGW / AMF (obtainable from the 3GPP-SGSN-Address) in the Accounting-Request message of the RADIUS protocol as the judgment criteria, and uses the RADIUS DisconnectMessage function as the control means. This enables the restriction of terminal access to network resources based on the terminal's location area by reclaiming network resources (such as bearer resources) allocated to the terminal. Thus, the problem of wasted network resources occupied by the terminal during the restriction of terminal access to network resources is solved, reducing resource consumption.
[0100] Furthermore, in the application embodiments of this application, an APN / DNN dimension is introduced to control the terminal access policy. That is, in addition to controlling the terminal's access policy through the terminal's number, control of the terminal's access policy is also achieved through the APN / DNN dimension. Moreover, for a terminal subscribed to multiple APN / DNN numbers, different access policies can be applied when using different APN / DNNs under the same number. Thus, multi-dimensional control of the access policy can be achieved.
[0101] To implement the solution of the first functional side of the embodiments of this application, the embodiments of this application also provide a control device, which is disposed on the first function, such as... Figure 6 As shown, the device includes: The first sending unit 601 is used to send a first message to the AAA system, the first message containing at least the location information of the terminal; the location information is used to determine whether the area where the terminal is located is a legal area or an illegal area; The first receiving unit 602 is used to receive the response sent by the AAA system to the first message; The first processing unit 603 is configured to reclaim network resources allocated to the terminal when the response indicates that the area where the terminal is located is an illegal area; wherein... The first function communicates with the AAA system based on the RADIUS protocol.
[0102] In one embodiment, the first sending unit 601 is used to send the first message to the AAA system during the process of the terminal accessing the network.
[0103] In one embodiment, the first receiving unit 602 is further configured to receive a second message, the second message being used to request the allocation of network resources for the terminal; The first sending unit 601 is further configured to send a third message to the AAA system, the third message being used to request authentication of the terminal, and the third message containing at least the identifier of the terminal and / or the name of the network accessed by the terminal; The first processing unit 603 is further configured to receive the authentication result sent by the AAA system, and, if the authentication result indicates that the authentication is successful, respond to the second message and allocate network resources to the terminal.
[0104] In one embodiment, the first sending unit 601 is used to send a first message to the AAA system during the process of the terminal accessing the network and the terminal updating its location.
[0105] In one embodiment, the first receiving unit 602 is further configured to receive a fourth message, the fourth message being used to indicate that the terminal has stopped using the allocated network resources; The first processing unit 603 is further configured to reclaim network resources allocated to the terminal based on the fourth message.
[0106] In practical applications, the first sending unit 601 and the first receiving unit 602 can be implemented by the communication interface in the control device; the first processing unit 603 can be implemented by the communication interface in the control device in combination with a processor.
[0107] To implement the AAA system-side solution of this application embodiment, this application embodiment also provides a control device, which is installed on the AAA system, such as... Figure 7 As shown, the device includes: The second receiving unit 701 is configured to receive a first message sent by the first function; the first message includes at least the location information of the terminal; the location information is used to determine whether the area where the terminal is located is a legal area or an illegal area; The second processing unit 702 is used to determine whether the area where the terminal is located is a legal area or an illegal area using the location information of the terminal; The second sending unit 703 is configured to send a response to the first message to the first function; wherein, The first function communicates with the AAA system based on the RADIUS protocol.
[0108] In one embodiment, during the process of the terminal accessing the network, it receives a first message sent by the first function.
[0109] In one embodiment, the second receiving unit 701 is further configured to receive a third message sent by the first function, the third message being used to request authentication of the terminal, and the third message containing at least the identifier of the terminal and / or the name of the network accessed by the terminal; The second processing unit 702 uses the terminal's identifier and / or the network name accessed by the terminal to authenticate the terminal, obtain the authentication result, and send the authentication result to the first function.
[0110] In one embodiment, the terminal accesses the network, and during the location update process of the terminal, it receives a first message sent by the first function.
[0111] In one embodiment, the first message further includes at least one of the following: The identifier of the terminal; The name of the network accessed by the terminal; The second processing unit 702 is used for: The system retrieves subscription information from a local database that corresponds to the terminal's identifier and / or the network name accessed by the terminal; the local database contains at least the association between the terminal's identifier and / or the network name accessed by the terminal and the subscription information; the subscription information contains at least the terminal's legal regions or the terminal's illegal regions. The location information of the terminal is matched with the found contract information to obtain the matching result; Using the matching results, it is determined whether the area where the terminal is located is a legal area or an illegal area.
[0112] In practical applications, the second receiving unit 701 and the second sending unit 703 can be implemented by the communication interface in the control device; the second processing unit 702 can be implemented by the communication interface in the control device combined with a processor.
[0113] It should be noted that the control device provided in the above embodiments is only illustrated by the division of the above-described program units. In practical applications, the above processing can be assigned to different program units as needed, that is, the internal structure of the device can be divided into different program units to complete all or part of the processing described above. In addition, the control device and control method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.
[0114] Based on the hardware implementation of the above program modules, and in order to implement the method of the first functional side of the embodiments of this application, the embodiments of this application also provide a function, such as... Figure 8 As shown, the first function 800 includes: The first communication interface 801 is capable of exchanging information with the AAA system; The first processor 802 is connected to the first communication interface 801 to enable information interaction with the AAA system and to execute the methods provided by one or more technical solutions of the first functional side when running a computer program. The computer program is stored in the first memory 803.
[0115] Specifically, the first communication interface 801 is used to send a first message to the AAA system; the first message includes at least the location information of the terminal; the location information is used to determine whether the area where the terminal is located is a legal area or an illegal area; and to receive a response from the AAA system to the first message; The first processor 802 is configured to reclaim network resources allocated to the terminal when the response indicates that the area where the terminal is located is an illegal area; wherein, The first function communicates with the AAA system based on the RADIUS protocol.
[0116] In one embodiment, the first communication interface 801 is used to send a first message to the AAA system during the process of the terminal accessing the network.
[0117] In one embodiment, the first communication interface 801 is further configured to: Receive a second message, the second message being used to request the allocation of network resources for the terminal; Send a third message to the AAA system, the third message being used to request authentication of the terminal, the third message containing at least the identifier of the terminal and / or the name of the network accessed by the terminal; The first processor 802 is further configured to receive the authentication result sent by the AAA system through the first communication interface 801, and, if the authentication result indicates that the authentication is successful, respond to the second message and allocate network resources to the terminal.
[0118] In one embodiment, the first communication interface 801 is used for the terminal to access the network and, during the location update process of the terminal, to send a first message to the AAA system.
[0119] In one embodiment, the first communication interface 801 is further configured to receive a fourth message; the fourth message is configured to indicate that the terminal has stopped using the allocated network resources. The first processor 802 is further configured to reclaim network resources allocated to the terminal based on the fourth message.
[0120] It should be noted that the specific processing procedures of the first processor 802 and the first communication interface 801 can be understood by referring to the above method.
[0121] Of course, in practical applications, the various components in the first function are coupled together through the bus system 804. It can be understood that the bus system 804 is used to implement communication between these components. In addition to the data bus, the bus system 804 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 8 The general labeled all buses as Bus System 804.
[0122] In this embodiment, the first memory 803 is used to store various types of data to support the operation of the first function 800. Examples of such data include any computer program used to operate on the first function 800.
[0123] The methods disclosed in the embodiments of this application can be applied to the first processor 802, or implemented by the first processor 802. The first processor 802 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware or by instructions in the form of software in the first processor 802. The first processor 802 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The first processor 802 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this application can be directly reflected as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in the first memory 803. The first processor 802 reads the information in the first memory 803 and completes the steps of the aforementioned method in combination with its hardware.
[0124] In an exemplary embodiment, the first function 800 may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.
[0125] Based on the hardware implementation of the above program modules, and in order to implement the AAA system method of the embodiments of this application, the embodiments of this application also provide an AAA system, such as... Figure 9 As shown, the AAA system 900 includes: The second communication interface 901 is capable of exchanging information with the first function; The second processor 902 is connected to the second communication interface 901 to enable information interaction with the first function, and is used to execute the methods provided by one or more technical solutions on the AAA system side when running a computer program; The computer program is stored in the second memory 903.
[0126] Specifically, the second communication interface 901 is used to receive a first message sent by the first function; the first message includes at least the location information of the terminal; the location information is used to determine whether the area where the terminal is located is a legal area or an illegal area; and to send a response to the first function in response to the first message; The second processor 902 is used to determine whether the area where the terminal is located is a legal or illegal area using the location information of the terminal; wherein, The first function communicates with the AAA system based on the RADIUS protocol.
[0127] In one embodiment, during the process of the terminal accessing the network, it receives the first message sent by the first function through the second communication interface 901.
[0128] In one embodiment, the second communication interface 901 is further configured to receive a third message sent by the first function, the third message being used to request authentication of the terminal, and the third message containing at least the identifier of the terminal and / or the name of the network accessed by the terminal; The second processor 902 is further configured to authenticate the terminal using the terminal's identifier and / or the network name accessed by the terminal, obtain an authentication result, and send the authentication result to the first function through the second communication interface 901.
[0129] In one embodiment, the terminal accesses the network, and during the location update process of the terminal, it receives the first message sent by the first function through the second communication interface 901.
[0130] In one embodiment, the first message further includes at least one of the following: The identifier of the terminal; The name of the network accessed by the terminal; The second processor 902 is used for: The system retrieves subscription information from a local database that corresponds to the terminal's identifier and / or the network name accessed by the terminal; the local database contains at least the association between the terminal's identifier and / or the network name accessed by the terminal and the subscription information; the subscription information contains at least the terminal's legal regions or the terminal's illegal regions. The location information of the terminal is matched with the found contract information to obtain the matching result; Using the matching results, it is determined whether the area where the terminal is located is a legal area or an illegal area.
[0131] It should be noted that the specific processing procedures of the second communication interface 901 and the second processor 902 can be understood by referring to the above method.
[0132] Of course, in practical applications, the various components in the terminal are coupled together through the bus system 904. It can be understood that the bus system 904 is used to implement communication between these components. In addition to the data bus, the bus system 904 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 9 The general labeled all buses as Bus System 904.
[0133] The second memory 903 in this embodiment is used to store various types of data to support the operation of the AAA system 900. Examples of such data include any computer program used to operate on the AAA system 900.
[0134] The methods disclosed in the embodiments of this application can be applied to, or implemented by, the second processor 902. The second processor 902 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by the integrated logic circuitry of the hardware or by instructions in the form of software within the second processor 902. The second processor 902 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The second processor 902 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this application can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, specifically a second memory 903. The second processor 902 reads information from the second memory 903 and, in conjunction with its hardware, completes the steps of the aforementioned method.
[0135] In an exemplary embodiment, the AAA system 900 may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general-purpose processors, controllers, MCUs, microprocessors, or other electronic components to perform the aforementioned method.
[0136] It is understood that the memories (first memory 803, second memory 903) in the embodiments of this application can be volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), ferromagnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memories described in the embodiments of this application are intended to include, but are not limited to, these and any other suitable types of memories.
[0137] To implement the method of the embodiments of this application, the embodiments of this application also provide a control system, such as... Figure 10 As shown, the system includes: a first function 1001 and an AAA system 1002.
[0138] It should be noted that the specific processing procedures of the first function 1001 and the AAA system 1002 have been detailed above and will not be repeated here.
[0139] In an exemplary embodiment, this application also provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium. For example, it may include a first memory 803 storing a computer program, which can be executed by a first processor 802 of a first function 800 to complete the steps described in the aforementioned first function-side method. Another example is a second memory 903 storing a computer program, which can be executed by a second processor 902 of an AAA system 900 to complete the steps described in the aforementioned AAA system-side method. The computer-readable storage medium may be ROM, PROM, EPROM, EEPROM, FRAM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM; the magnetic surface memory may be a disk storage device or a magnetic tape storage device.
[0140] It should be noted that terms such as "first" and "second" are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0141] Furthermore, the technical solutions described in the embodiments of this application can be combined arbitrarily without conflict.
[0142] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A control method, characterized in that, Applied to the first function, including: Send a first message to the Authentication, Authorization, and Billing (AAA) system; the first message contains at least the location information of the terminal; the location information is used to determine whether the area where the terminal is located is a legal area or an illegal area; Receive the response from the AAA system to the first message; If the response indicates that the area where the terminal is located is an illegal area, the network resources allocated to the terminal are revoked. The first function communicates with the AAA system based on the Remote User Dial-up Authentication Service (RADIUS) protocol.
2. The method according to claim 1, characterized in that, During the process of the terminal accessing the network, the first message is sent to the AAA system.
3. The method according to claim 2, characterized in that, The method further includes: Receive a second message, the second message being used to request the allocation of network resources for the terminal; Send a third message to the AAA system, the third message being used to request authentication of the terminal, the third message containing at least the identifier of the terminal and / or the name of the network accessed by the terminal; The system receives the authentication result sent by the AAA system, and if the authentication result indicates that the authentication is successful, it responds to the second message and allocates network resources to the terminal.
4. The method according to claim 1, characterized in that, When the terminal accesses the network and its location is updated, it sends a first message to the AAA system.
5. The method according to any one of claims 1 to 4, characterized in that, The first message also includes at least one of the following: The identifier of the terminal; The name of the network accessed by the terminal.
6. A control method, characterized in that, Applied to AAA systems, including: The system receives a first message sent by a first function; the first message contains at least the location information of the terminal, and the first message is a billing message sent by the first function after allocating network resources to the terminal; the location information is used to determine whether the area where the terminal is located is a legal area or an illegal area; Using the location information of the terminal, determine whether the area where the terminal is located is a legal or illegal area; If it is determined that the area where the terminal is located is an illegal area, a disconnection request message is sent to the first function so that the first function can reclaim the network resources allocated to the terminal. The first function communicates with the AAA system based on the RADIUS protocol.
7. The method according to claim 6, characterized in that, During the process of the terminal accessing the network, it receives the first message sent by the first function.
8. The method according to claim 7, characterized in that, The method further includes: The system receives a third message sent by the first function, the third message being used to request authentication of the terminal, and the third message containing at least the identifier of the terminal and / or the name of the network accessed by the terminal. The terminal is authenticated using its identifier and / or the name of the network it accesses, and the authentication result is obtained and sent to the first function.
9. The method according to claim 6, characterized in that, The terminal accesses the network, and during the location update process of the terminal, it receives the first message sent by the first function.
10. The method according to any one of claims 6 to 9, characterized in that, The first message also includes at least one of the following: The identifier of the terminal; The name of the network accessed by the terminal; The step of using the location information of the terminal to determine whether the area where the terminal is located is a legal or illegal area includes: The system retrieves subscription information from a local database that corresponds to the terminal's identifier and / or the network name accessed by the terminal; the local database contains at least the association between the terminal's identifier and / or the network name accessed by the terminal and the subscription information; the subscription information contains at least the terminal's legal regions or the terminal's illegal regions. The location information of the terminal is matched with the found contract information to obtain the matching result; Using the matching results, it is determined whether the area where the terminal is located is a legal area or an illegal area.
11. A control device, characterized in that, Applied to the first function, including: The first sending unit is configured to send a first message to the AAA system, the first message containing at least the location information of the terminal; the location information is used to determine whether the area where the terminal is located is a legal area or an illegal area; The first receiving unit is configured to receive the response sent by the AAA system to the first message; A first processing unit is configured to reclaim network resources allocated to the terminal if the response indicates that the area where the terminal is located is an illegal area; wherein the first function communicates with the AAA system based on the RADIUS protocol.
12. A control device, characterized in that, Applied to AAA systems, including: The second receiving unit is configured to receive a first message sent by the first function; the first message contains at least the location information of the terminal, and the first message is a billing message sent by the first function after allocating network resources to the terminal; the location information is used to determine whether the area where the terminal is located is a legal area or an illegal area; The second processing unit is used to determine whether the area where the terminal is located is a legal area or an illegal area using the location information of the terminal. The second sending unit is configured to send a disconnection request message to the first function when it is determined that the area where the terminal is located is an illegal area, so that the first function can reclaim the network resources allocated to the terminal; wherein the first function communicates with the AAA system based on the RADIUS protocol.
13. A first function, characterized in that, include: A first processor and a first communication interface; wherein... The first communication interface is used to send a first message to the AAA system; the first message includes at least the location information of the terminal; the location information is used to determine whether the area where the terminal is located is a legal area or an illegal area; and to receive a response from the AAA system to the first message; The first processor is configured to reclaim network resources allocated to the terminal if the response indicates that the area where the terminal is located is an illegal area; wherein the first function communicates with the AAA system based on the RADIUS protocol.
14. An AAA system, characterized in that, include: A second processor and a second communication interface; wherein... The second communication interface is used to receive a first message sent by the first function; the first message contains at least the location information of the terminal, and the first message is a billing message sent by the first function after allocating network resources to the terminal; the location information is used to determine whether the area where the terminal is located is a legal area or an illegal area; and if it is determined that the area where the terminal is located is an illegal area, a disconnection request message is sent to the first function so that the first function can reclaim the network resources allocated to the terminal; The second processor is used to determine whether the area where the terminal is located is a legal or illegal area using the location information of the terminal; wherein, the first function communicates with the AAA system based on the RADIUS protocol.
15. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5, or the steps of the method according to any one of claims 6 to 10.
Citation Information
Patent Citations
Method, system and equipment for packet network roaming limitation
CN101198186A
