Communication method and apparatus
By setting the working information of the second counter on the AUSF network element side, the SoR/UPU service counter on the AUSF network element side is reset before reaching the threshold, which solves the problem of service suspension during UE access to the core network and ensures service of normal operation.
Patent Information
- Application Number
- PCT/CN2024/089171
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-27
- Filing Date
- 2024-04-22
- Publication Date
- 2024-10-31
AI Technical Summary
When the user equipment (UE) accesses the core network, the counter rollover of the roaming guidance (SoR) service and the UE parameter update (UPU) service causes the service to be suspended, causing the AUSF network element side service to fail to work properly.
By receiving the counter working information of the AMF network element on the AUSF network element side, and setting the working information of the second counter based on this information, so that the time it stops counting is later than that of the first counter, ensuring that the second counter is reset before reaching the threshold. , to avoid service suspension.
It effectively ensures that the target services provided by the AUSF network element side can be used normally, prevents the SoR/UPU service from being suspended due to counter rollover, and ensures that the UE can continue to use the service while accessing the core network.
Smart Images

Figure CN2024089171_31102024_PF_FP_ABST
Abstract
Description
Communication method and device
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on April 27, 2023, with application number 202310481375.3 and application name “A Communication Method and Device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of communication technology, and in particular to a communication method and device. Background Art
[0004] In a communications system, the steering of roaming (SoR) service occurs in a roaming scenario and is related to the public land mobile network (PLMN) selection of the user equipment (UE). The SoR process typically occurs during or after the UE is registered with the network, and can support the home public land mobile network (HPLMN) to guide the UE to a visited public land mobile network (VPLMN). For example, if the HPLMN updates the UE with a list of preferred PLMN / access technology combinations, the UE can then select a PLMN based on the list of preferred PLMN / access technology combinations.
[0005] In order to prevent the list of PLMN / access technology combinations from being intercepted or deleted by malicious VPLMNs, the art proposes to protect the integrity of the SoR message. The principle is as follows: the SoR message carries the SoR header and the list of "PLMN ID / access technology" combinations, and the SoR counter calculates the message authentication code; wherein, the generation of the message authentication code calculated by the SoR counter depends on the key K stored in the AUSF AUSF , and the SoR counter is in the key K AUSF The SoR counter is created and initialized when it is derived. It is used to count the number of times the SoR process is executed (if it is executed once, the value of the counter is increased by 1). When the value of the SoR counter is about to roll over, the SoR service will be suspended until the new key K AUSF is created, the SoR counter will be reset so that AUSF can resume the SoR service.
[0006] The UE parameter update (UPU) service uses unified data management (UDM) to pass the parameters to be updated to the UE through the control plane process. The UPU process usually occurs after the UE has completed network registration, and can support UDM to send UE update parameter data from the home network to the UE. In order to protect the UPU data, it is proposed to protect the integrity of the UE parameter update data and the UPU counter calculation message authentication code. The generation of the UPU counter calculation message authentication code depends on the key K stored in the AUSF. AUSF , and the UPU counter is in the key K AUSF The UPU counter is created and initialized when the UE is deduced. It is used to count the number of times the UPU process is executed (for example, if it is executed once, the counter value is increased by 1). When the value of the UPU counter is about to roll over, the UPU service will be suspended until the UE main authentication process is re-executed and the UPU counter is reset. At this time, the UPU service will be resumed.
[0007] However, if the SoR counter / UPU counter rolls over and causes the SoR service / UPU service to be suspended, and the SoR counter / UPU counter cannot be reset, the UE will be unable to use the SoR / UPU service while it is connected to the core network. Therefore, how to effectively ensure that the services on the AUSF network element side can work normally while the UE is connected to the core network is one of the current problems that need to be solved.
[0008] Summary of the Invention
[0009] The present application provides a communication method and device that can effectively ensure that the services provided by the AUSF network element side can be used normally.
[0010] In the first aspect, the present application provides a communication method, which can be executed by an authentication service function AUSF network element, or by a chip corresponding to the AUSF network element, without limitation. The method specifically includes the following steps: the authentication service function AUSF network element receives the working information of the first counter in the access and mobility management function AMF network element from the AMF network element; the AUSF network element sets the working information of the second counter according to the working information of the first counter, so that the time when the second counter stops counting is later than the time when the first counter stops counting; wherein, the first counter is used to count the number of network transmissions between the AMF network element and the terminal device; the second counter is used to count the number of target services provided by the AUSF network element, and the working status of the target service is associated with the working status of the second counter; when the first counter stops counting, the value of the second counter is reset.
[0011] In the embodiment of the present application, the first counter may be, but is not limited to, a non-access stratum (NAS) counter in the AMF network element; the second counter may be, but is not limited to, a roaming guidance / network preferred SoR counter or a UE parameter update UPU counter in the AUSF network element. Furthermore, the first counter or the second counter may stop counting when one of the following conditions is met:
[0012] The counter value reaches the maximum value of the counter, and the counter value reaches the corresponding switching threshold; wherein the switching threshold is the critical value for switching the service working state corresponding to the counter. The service working state can include: normal working state (normal use) and suspended working state (suspended use).
[0013] In addition, the working status of the target service provided by the AUSF network element side is associated with the working status of the second counter, which may include: when the second counter does not reach the counting threshold (such as the maximum value of the counter, the switching threshold), the target service provided by the AUSF network element side is used normally; when the second counter reaches the threshold (such as the maximum value of the counter, the switching threshold), the target service provided by the AUSF network element is suspended.
[0014] In the present application scheme, the AUSF network element receives the working information of the first counter in the AMF network element from the AMF network element; the AUSF network element sets the working information of the second counter according to the working information of the first counter, so that the time when the second counter stops counting is later than the time when the first counter stops counting. Since the first counter will trigger the reset of the second counter when it stops counting, this can ensure that the value of the second counter is reset before reaching the counting threshold to avoid the second counter stopping counting; since the working status of the target service provided by the AUSF network element side is associated with the working status of the second counter, this method can effectively ensure that the target service of the AUSF network element can be used normally.
[0015] In one possible implementation, when the working information of the first counter is used to indicate the maximum value of the first counter; the AUSF network element sets the working information of the second counter according to the working information of the first counter, including: according to the maximum value of the first counter, setting the maximum value of the second counter to a value equal to or greater than the maximum value of the first counter.
[0016] Through this implementation, the time when the second counter stops counting can be made later than the time when the first counter stops counting.
[0017] In one possible implementation, the working information of the first counter is used to indicate the current value of the first counter and the corresponding switching threshold; the AUSF network element sets the working information of the second counter according to the working information of the first counter, including: taking the difference between the switching threshold corresponding to the first counter and the current value of the first counter as the first difference of the first counter; determining the current value of the second counter; setting the switching threshold corresponding to the second counter according to the first difference and the current value of the second counter, and the switching threshold corresponding to the second counter should satisfy one of the following: the difference between the switching threshold corresponding to the second counter and the current value of the second counter is equal to the first difference, and the difference between the switching threshold corresponding to the second counter and the current value of the second counter is greater than the first difference.
[0018] Through this implementation, the time when the second counter stops counting can be made later than the time when the first counter stops counting.
[0019] In one possible implementation, before the AUSF network element receives the working information of the first counter of the AMF network element from the AMF network element, the method further includes: the AUSF network element sends a first request message to the AMF network element, and the first request message is used to request to obtain the working information of the first counter of the AMF network element.
[0020] Through this implementation, the AUSF network element actively requests the AMF network element to obtain the working information of the first counter.
[0021] In a possible implementation, the AUSF network element receives the working information of the first counter from the AMF network element, including: the AUSF network element receives a second request message from the AMF network element, and the second request message includes the working information of the first counter.
[0022] Through this implementation, the working information of the first counter can be carried in the request message sent by the AMF network element to the AUSF network element, so that the AUSF network element can effectively obtain the working information of the first counter.
[0023] On the second aspect, the present application implements a communication method, which can be executed by an access and mobility management function AMF network element, or by a chip corresponding to the AMF network element, without limitation. The method specifically includes the following steps: the access and mobility management function AMF network element determines the working information of a first counter; the AMF network element sends the working information of the first counter to the authentication service function AUSF network element, and the working information of the first counter is used to set the working information of a second counter; wherein, the first counter is used to count the number of network transmissions between the AMF network element and the terminal device; the second counter is used to count the number of target services provided by the AUSF network element, and the working status of the target service is associated with the working status of the second counter; when the first counter stops counting, the value of the second counter is reset.
[0024] In the embodiment of the present application, the first counter may be, but is not limited to, a non-access stratum (NAS) counter in the AMF network element; the second counter may be, but is not limited to, a roaming guidance / network preferred SoR counter or a UE parameter update UPU counter in the AUSF network element. Furthermore, the first counter or the second counter may stop counting when one of the following conditions is met:
[0025] The counter value reaches the maximum value of the counter, or the counter value reaches the corresponding switching threshold; wherein the switching threshold is the critical value for switching the service working state corresponding to the counter. The service working state can include: normal working state (normal use) and suspended working state (suspended use).
[0026] In addition, the working status of the target service provided by the AUSF network element side is associated with the working status of the second counter, which may include: when the second counter does not reach the counting threshold (such as the maximum value of the counter, the switching threshold), the target service provided by the AUSF network element side is used normally; when the second counter reaches the threshold (such as the maximum value of the counter, the switching threshold), the target service provided by the AUSF network element is suspended.
[0027] In the present application scheme, the AMF network element sends the working information of the first counter to the AUSF network element, and the working information of the first counter is used to set the working information of the second counter; in this way, the AUSF network element can effectively set the working information of the second counter on its own side according to the working information of the first counter, so that the time when the second counter stops counting is later than the time when the first counter stops counting. Since the first counter will trigger the reset of the second counter when it stops counting, it can ensure that the value of the second counter is reset before reaching the counting threshold to avoid the second counter stopping counting; since the working status of the target service on the AUSF network element side is associated with the working status of the second counter, this method can effectively ensure that the target service on the AUSF network element side can work normally.
[0028] In a possible implementation manner, the working information of the first counter is used to indicate the maximum value of the first counter; or the working information of the first counter is used to indicate the current value of the first counter and the corresponding switching threshold.
[0029] Through this implementation, the AUSF network element can use the working information of the first counter to effectively set the second counter on the AUSF network element side.
[0030] In one possible implementation, before the AMF network element sends the working information of the first counter of the AMF network element to the authentication service function AUSF network element, the method also includes: the AMF network element receives a first request message from the AUSF network element, and the first request message is used to request to obtain the working information of the first counter.
[0031] Through this implementation, the AUSF network element actively requests the AMF network element to obtain the working information of the first counter.
[0032] In one possible implementation, the AMF network element sends the working information of the first counter of the AMF network element to the AUSF network element, including: the AMF network element sends a second request message to the AUSF network element, and the second request message includes the working information of the first counter.
[0033] Through this implementation, the working information of the first counter can be carried in the request message sent by the AMF network element to the AUSF network element, so that the AUSF network element can effectively obtain the working information of the first counter.
[0034] In the third aspect, an embodiment of the present application also provides a communication device, which can be used to execute the method of the first aspect. The device can be an authentication service function AUSF network element, or can be a component of the AUSF network element (for example, a chip, or a chip system, or a circuit), or can be a device that can be used in combination with the AUSF network element.
[0035] In one possible implementation, the apparatus may include a module or unit corresponding to each of the methods / operations / steps / actions described in the first aspect. The module or unit may be implemented as hardware circuitry, software, or a combination of hardware circuitry and software. In one possible implementation, the apparatus may include a processing module and a communication module. The processing module is configured to invoke the communication module to perform receiving and / or transmitting functions.
[0036] In one possible implementation, the device includes a communication unit and a processing unit; the processing unit can be used to call the communication unit to perform receiving and / or sending functions; wherein the communication unit is used to receive the working information of the first counter from the access and mobility management function AMF network element; the processing unit is used to set the working information of the second counter in the AUSF network element according to the working information of the first counter, so that the time when the second counter stops counting is later than the time when the first counter stops counting; wherein the first counter is used to count the number of network transmissions between the AMF network element and the terminal device; the second counter is used to count the number of target services provided by the AUSF network element, and the working status of the target service is associated with the working status of the second counter; when the first counter stops counting, the value of the second counter is reset.
[0037] In one possible implementation, the first counter or the second counter stops counting when one of the following conditions is met: the value of the counter reaches the maximum value of the counter, or the value of the counter reaches the corresponding switching threshold; wherein the switching threshold is the critical value for switching the service working state corresponding to the counter.
[0038] In one possible implementation, when the working information of the first counter is used to indicate the maximum value of the first counter; when the processing unit sets the working information of the second counter in the AUSF network element according to the working information of the first counter, it is specifically used to: set the maximum value of the second counter to a value equal to or greater than the maximum value of the first counter according to the maximum value of the first counter.
[0039] In one possible implementation, the working information of the first counter is used to indicate the current value of the first counter and the corresponding switching threshold; the processing unit, when setting the working information of the second counter in the AUSF network element according to the working information of the first counter, is specifically used to: take the difference between the switching threshold corresponding to the first counter and the current value of the first counter as the first difference of the first counter; determine the current value of the second counter; set the switching threshold corresponding to the second counter according to the first difference and the current value of the second counter, and the switching threshold corresponding to the second counter should satisfy one of the following: the difference between the switching threshold corresponding to the second counter and the current value of the second counter is equal to the first difference, and the difference between the switching threshold corresponding to the second counter and the current value of the second counter is greater than the first difference.
[0040] In one possible implementation, the communication unit is also used to: before receiving the working information of the first counter from the AMF network element, send a first request message to the AMF network element, where the first request message is used to request the working information of the first counter.
[0041] In one possible implementation, when the communication unit receives the working information of the first counter from the AMF network element, it is specifically used to: receive a second request message from the AMF network element, where the second request message includes the working information of the first counter.
[0042] In one possible implementation, the first counter is a non-access layer NAS counter in the AMF network element; the second counter is a roaming guidance / network preferred SoR counter or a UE parameter update UPU counter in the AUSF network element.
[0043] In a fourth aspect, an embodiment of the present application also provides a communication device, which can be used to execute the method of the second aspect. The device can be an access and mobility management function AMF network element, or can be a component of the AMF network element (for example, a chip, or a chip system, or a circuit), or can be a device that can be used in conjunction with the AMF network element.
[0044] In one possible implementation, the apparatus may include a module or unit corresponding to each of the methods / operations / steps / actions described in the first aspect. The module or unit may be implemented as hardware circuitry, software, or a combination of hardware circuitry and software. In one possible implementation, the apparatus may include a processing module and a communication module. The processing module is configured to invoke the communication module to perform receiving and / or transmitting functions.
[0045] In one possible implementation, the device includes a communication unit and a processing unit; the processing unit can be used to call the communication unit to perform receiving and / or sending functions; wherein, the processing unit is used to determine the working information of the first counter; the communication unit is used to send the working information of the first counter to the authentication service function AUSF network element, and the working information of the first counter is used to set the working information of the second counter; wherein, the first counter is used to count the number of network transmissions between the AMF network element and the terminal device; the second counter is used to count the number of target services provided by the AUSF network element, and the working status of the target service is associated with the working status of the second counter; when the first counter stops counting, it triggers the resetting of the value of the second counter.
[0046] In one possible implementation, the first counter or the second counter stops counting when one of the following conditions is met: the value of the counter reaches the maximum value of the counter, or the value of the counter reaches the switching threshold; wherein the switching threshold is the critical value for switching the service working state corresponding to the counter.
[0047] In a possible implementation, the working information of the first counter is used to indicate the maximum value of the first counter; or the working information of the first counter is used to indicate the current value of the first counter and the corresponding switching threshold.
[0048] In one possible implementation, the communication unit is further used to: receive a first request message before sending the working information of the first counter to the authentication service function AUSF network element, where the first request message is used to request to obtain the working information of the first counter.
[0049] In one possible implementation, when the communication unit sends the working information of the first counter to the authentication service function AUSF network element, it is specifically used to: send a second request message to the AUSF network element, where the second request message includes the working information of the first counter.
[0050] In one possible implementation, the first counter is a non-access layer NAS counter in the AMF network element; the second counter is a roaming guidance / network preferred SoR counter or a UE parameter update UPU counter in the AUSF network element.
[0051] In a fifth aspect, the present application further provides a communication device, which can be applied to an AUSF network element and has the function of implementing the first aspect or any possible implementation of the first aspect; or, the device can be applied to an AMF network element and has the function of implementing the method in the second aspect or any possible design of the second aspect. The device may include: a receiving module, a processing module, and a sending module.
[0052] In a sixth aspect, the present application also provides a communication system, which includes an AUSF network element for executing the method provided in the first aspect and an AMF network element for executing the method provided in the second aspect.
[0053] In the seventh aspect, an embodiment of the present application also provides a computer storage medium, which stores a software program. When the software program is read and executed by one or more processors, it can implement the method provided by the above-mentioned first aspect or any possible implementation method thereof, or implement the method provided by the above-mentioned second aspect or any possible implementation method thereof.
[0054] In an eighth aspect, an embodiment of the present application further provides a computer program product comprising instructions, which, when run on a computer, enables the execution of the method provided in the above-mentioned first aspect or any possible implementation method thereof, or enables the execution of the method provided in the above-mentioned second aspect or any possible implementation method thereof.
[0055] In the ninth aspect, an embodiment of the present application also provides a chip system, which includes a processor for supporting the AUSF network element to implement the functions involved in the above-mentioned first aspect; or for supporting the AMF network element to implement the functions involved in the above-mentioned second aspect.
[0056] In one possible design, the chip system further includes a memory for storing necessary program instructions and data for execution by the loading device. The chip system can be composed of a chip or include a chip and other discrete devices.
[0057] It should be noted that the technical effects that can be achieved by any possible implementation method of the above-mentioned fourth to ninth aspects or the fourth to ninth aspects can be correspondingly described with reference to the technical effects that can be achieved by any possible implementation method of the above-mentioned first to second aspects or the first to second aspects; they will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] FIG1 is a schematic diagram of a network architecture applicable to a communication method provided in an embodiment of the present application;
[0059] FIG2 is a flow chart of a communication method provided in an embodiment of the present application;
[0060] FIG3 is a specific flow chart of the first embodiment provided in the embodiments of the present application;
[0061] FIG4 is a specific flow chart of a second embodiment provided in the embodiments of the present application;
[0062] FIG5 is a schematic structural diagram of a communication device provided in an embodiment of the present application;
[0063] FIG6 is a schematic structural diagram of another communication device provided in an embodiment of the present application;
[0064] FIG7 is a schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION
[0065] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to be limiting of the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the embodiments of the present application, "one or more" refers to one, two or more; "and / or" describes the association relationship of associated objects, indicating that three relationships may exist; for example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the related objects before and after are in an "or" relationship.
[0066] References to "one embodiment" or "some embodiments" etc. described in this specification mean that the specific features, structures or characteristics described in conjunction with the embodiment are included in one or more embodiments of the present application. Therefore, the phrases "in one embodiment", "in some embodiments", "in other embodiments", "in other embodiments", etc. that appear in different places in this specification do not necessarily all refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in another way. Words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions, and any embodiment or design described as "exemplary" or "for example" should not be interpreted as being more preferred or more advantageous than other embodiments or designs. The use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete way for easy understanding.
[0067] The multiple involved in the embodiments of the present application refers to greater than or equal to two. It should be noted that in the description of the embodiments of the present application, words such as "first" and "second", or specific numbers "1", "2", "3", etc., are used to distinguish the purpose of description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order. In addition, the term "used for indication" mentioned in the description of the embodiments of the present application can include being used for direct indication and being used for indirect indication. When describing a certain indication information used to indicate A, it can include that the indication information directly indicates A or indirectly indicates A, and it does not mean that the indication information must carry A.
[0068] This application provides a communication method. To better understand the embodiments of this application, the following first explains the relevant technical features involved in the embodiments of this application. It should be noted that these explanations are intended to make the embodiments of this application easier to understand and should not be regarded as limiting the scope of protection claimed by this application.
[0069] 1. SoR Service
[0070] (1) Counters for SoR services:
[0071] In a communication system, the steering of roaming (SoR) service occurs in a roaming scenario and is related to the public land mobile network (PLMN) selection of the user equipment (UE). The SoR process usually occurs during the UE registration process or after the network registration is completed, and can support the home public land mobile network (HPLMN) to guide the visited public land mobile network (VPLMN) accessed by the UE to roam. Through the SoR function, the HPLMN can dynamically manage which VPLMN the UE is registered to. The SoR list includes a list of "preferred PLMN / access technology combinations"; or includes an indication of the PLHMN, indicating that the "preferred PLMN / access technology" list controlled by the operator and stored in the UE does not need to be changed. For example, if the HPLMN updates the UE with a list of preferred PLMN / access technology combinations, the UE can select a PLMN based on the list of preferred PLMN / access technology combinations.
[0072] In order to prevent the list of PLMN / access technology combinations from being intercepted or deleted by malicious VPLMNs, this technical field proposes to protect the integrity of the SoR message. The SoR message is defined in Section 1.2 of TS23.122. The SoR message can carry the SoR header and the list of "PLMN ID / access technology" combinations, as well as the SoR counter to calculate the message authentication code. The generation of the SoR counter to calculate the message authentication code depends on the key K stored in the AUSF. AUSF , and the SoR counter is in the key K AUSF The SoR counter is created and initialized when the SoR is derived. It is used to count the number of times the SoR process is executed (for example, if it is executed once, the counter value is increased by 1). When the value of the SoR counter is about to roll over, the SoR service will be suspended until the new key KAUSF is created, the SoR counter will be reset, and then AUSF can resume the SoR service.
[0073] (2) Counter setting and use of SoR service:
[0074] AUSF and UE use the 16-bit counter (SoR counter, CounterSoR) and the key K AUSF When storing the newly exported K AUSF When the SoR counter is initialized to 0x00 0x00, the UE shall store the value of the SoR counter.
[0075] The AUSF uses the SoR counter as an input parameter to generate the SoR-MAC-IAUSF. Each time the AUSF calculates a new SoR-MAC-IAUSF, the AUSF shall increment the SoR. The SoR counter can be used as a freshness input for the SoR-MAC-IAUSF and SoR-MAC-IUE derivations to mitigate replay attacks.
[0076] The AUSF shall send the SoR counter value (used to generate the SoR-MAC-IAUSF) along with the SoR-MAC-IAUSF to the UE. The UE shall only accept SoR counter values that are greater than the value of its own stored SoR counter. The UE shall store the received SoR counter only if the validation of the received SoR-MAC-IAUSF is successful. When the UE needs to create the SoR-MAC-IUE in the SoR Confirm message, the UE shall use the stored SoR counter value received from the HPLMN as an input parameter for calculation.
[0077] In addition, AUSF and UE shall use the key K AUSF Maintain the SoR counter during the life cycle of the
[0078] When storing the newly derived key KAUSF When the AUSF supports control plane roaming guidance services, the SoR counter shall be initialized to 0x00 0x01. The AUSF shall set the SoR counter to 0x00 x02 after the first calculated SoR-MAC-IAUSF and monotonically increase it for each additional calculated SoR-MAC-IAUSF. However, when the SoR counter is 0x00 0x00, it shall not be used to calculate SoR-MAC-IAUSF and SoR-MAC-IUE.
[0079] If the key K AUSF When the associated SoR counter is about to roll over, the AUSF will suspend the UE's SoR protection service (ie, SoR service suspension).
[0080] When a new key K is generated for the UE AUSF As described above, the value of the SoR counter at the AUSF will be reset to 0x00 0x01, and the AUSF will resume the SoR protection service of the UE (i.e., resume the SoR service).
[0081] 2. UPU Service:
[0082] (1) Counter for UPU service:
[0083] The UE Parameter Update (UPU) service uses unified data management (UDM) to deliver updated parameters to the UE via control plane procedures. The UPU procedure can typically be triggered at any time after the UE has registered with the network. The UPU supports UDM to deliver updated UE parameters from the home network to the UE.
[0084] In order to protect the UPU data, the present technical field proposes to protect the integrity of the UE parameter update data and the UPU counter calculation message authentication code. The generation of the UPU counter calculation message authentication code depends on the key K stored in the AUSF. AUSF , and the UPU counter is in the key K AUSF The UPU counter is created and initialized when the UE is deduced. It is used to count the number of times the UPU process is executed (for example, if it is executed once, the counter value is increased by 1). When the value of the UPU counter is about to roll over, the UPU service will be suspended until the UE main authentication process is re-executed and the UPU counter is reset. At this time, the UPU service will be resumed.
[0085] (2) Setting and using the counter of UPU service:
[0086] AUSF and UE use the 16-bit length counter (UPU counter, CounterUPU) and the key K AUSF associated.
[0087] When storing the newly derived key K AUSF When the UE initializes the value of the UPU counter to 0x00 0x00, the UE stores the value of the UPU counter.
[0088] When storing the newly derived key K AUSF When the AUSF supports control plane UE parameter update, the UPU counter value shall be initialized to 0x00 0x01. The AUSF shall set the UPU counter value to 0x00 0x02 after the first calculation of UPU-MAC-IAUSF and monotonically increase it for each additional calculation of UPU MAC-IAUFF.
[0089] The AUSF shall use the value of the UPU counter as an input parameter when generating the UPU-MAC-IAUSF. The AUSF shall increment the UPU counter each time a new UPU-MAC-IAUSF is calculated. The value of the UPU counter can be used as the freshness input for calculating the UPU-MAC-IAUSF and UPU-MAC-IUE, respectively, to mitigate replay attacks.
[0090] The AUSF shall send the UPU counter value (i.e., used to generate the UPU-MAC-IAUSF) along with the UPU-MAC-IAUSF to the UE. The UE shall only accept UPU counter values that are greater than its own stored value of CounterUPU. Only if the validation of the received UPU-MAC-IAUSF is successful shall the UE use the received UPU counter value to update the locally stored UPU counter value. When updating data for UE parameters and calculating the UPU-MAC-IUE, the UE shall use the UPU counter value received from the UDM.
[0091] In addition, AUSF and UE should be in K AUSF The UPU counter is maintained during the life cycle of the UPU. When the value of the UPU counter is 0x00 0x00, it cannot be used to calculate UPU-MAC-IAUSF and UPU-MAC-IUE.
[0092] If the key K AUSF When the associated UPU counter is about to roll over, the AUSF will suspend the UPU service of the UE.
[0093] When a new key K is generated for the UE AUSFAs described above, the value of the UPU counter at the AUSF will be reset to 0x00 0x01, and the AUSF will resume the UE parameter update protection service of the UE (i.e., resume the UPU service).
[0094] 3. NAS Counter:
[0095] Each 5G non-access stratum (NAS) security context is typically associated with two independent counters (referred to as NAS counters, NAS COUNT) for each access type in the same PLMN, where one NAS counter (referred to as NAS uplink counter) is associated with uplink NAS messages and the other NAS counter (referred to as NAS downlink counter) is associated with downlink NAS messages.
[0096] If a 5G NAS security context is used for both 3GPP access and non-3GPP access in the same PLMN, there are two NAS counter pairs associated with the 5G NAS security context. The NAS counters may use a 24-bit internal representation and are maintained independently by the UE and the AMF.
[0097] The NAS counter can be constructed as: a NAS sequence number (8 least significant bits) concatenated with a NAS overflow counter (16 most significant bits). When the NAS counter is input to a NAS encryption or NAS integrity algorithm, it shall be treated as a 32-bit entity which shall be constructed into a 24-bit internal representation by padding the most significant bits with 8 zeros.
[0098] In addition, the maximum uplink NAS counter used in the successful integrity check NAS message is the value of the NAS uplink counter stored in the AMF (also expressed as uplink NAS COUNT or NAS UL COUNT).
[0099] The NAS downlink counter stored in the AMF can also be represented by downlink NAS COUNT or NASDL COUNT. The value of the NAS downlink counter is the value used in the next NAS message.
[0100] The NAS sequence number portion of the NAS counter shall be exchanged between the UE and the AMF as part of the NAS signalling. After each new or retransmitted outbound security protected 5GS NAS message, the sender shall increase the value of the NAS counter by 1 (if it is the initial NAS message and the lower layer indicates that the establishment of the RRC connection has failed, then the value of the NAS counter does not need to be increased by 1). Specifically, on the sender side, the NAS sequence number shall be increased by 1, and if the result is zero (due to rollover), the stored NAS overflow counter shall also be increased by 1.
[0101] The NAS security context created during the first access type registration includes NAS integrity and encryption keys, as well as the selected algorithms common to all NAS connections. In addition, each NAS connection should have a unique NAS connection identifier and a pair of distinct NAS counts, one for the uplink and one for the downlink. In the NAS security context, the NAS connection identifier is a parameter used to distinguish a specific connection.
[0102] It should be noted that the specific K AMF The value of the NAS counter cannot be reset to the starting value (i.e., the NAS counter can only be reset when a new K is generated). AMF The purpose is to prevent security issues such as key stream reuse caused by using the same counter with the same NAS key when the UE moves back and forth between two AMFs and re-derives the same NAS key.
[0103] In the AMF, the values of all different NAS counters of the 5G NAS security context may be set to initial values only in the following cases:
[0104] (1) For a local 5GC NAS security context established between the same AMF and UE, a primary authentication is successfully performed on one of the NAS connections to create a partial local 5GC NAS security context.
[0105] (2) For the mapped 5G security context generated when the UE moves from the MME to the AMF during mobility in idle and connected states.
[0106] (3) New key K for use in the target AMF during mobility registration update or handover AMF .
[0107] The initial value of the NAS counter is set to 0.
[0108] Based on the existing technologies described in 1 to 3 above, it is known that before the UE re-executes the main authentication process, the counter of the SoR / UPU service on the AUSF network element side may roll over, triggering the suspension of the SoR / UPU service, thereby causing the UE to be unable to use the SoR / UPU service on the AUSF network element side during access to the core network. Therefore, this application proposes a communication method that can effectively ensure that the services provided by the AUSF network element side can be used normally.
[0109] The communication method provided in the embodiments of the present application can be applied to a fourth generation (4G) communication system, a fifth generation (5G) communication system, or various future communication systems.
[0110] To facilitate understanding of the technical solutions of the embodiments of the present application, FIG1 exemplarily shows a schematic diagram of a network architecture applicable to the embodiments of the present application. As shown in FIG1 , in the network architecture, a terminal device 101 can communicate with a core network via an access network 102. The terminal device 101 can refer to user equipment (UE), an access terminal, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent, or a user device. The access terminal can be a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, an in-vehicle device, a wearable device, a terminal device in a future 5G network, etc. For ease of description, FIG1 only illustrates one terminal device 101. In an actual network, multiple terminal devices may coexist, which will not be described in detail here.
[0111] The access network 102 may also be referred to as a radio access network (RAN), and may be collectively referred to as an AN. It is primarily responsible for providing a wireless connection for the terminal device 101 and ensuring reliable transmission of uplink and downlink data of the terminal device 101. The access network 102 may be a next-generation base station (gNB) in a 5G new radio (NR) system, or an evolved-UMTS terrestrial radio access (E-UTRA) network (E-UTRAN), such as an evolved base station (eNB or eNodeB) in a long-term evolution (LTE) system.
[0112] The session management function (SMF) network element 103 is mainly responsible for establishing and managing sessions for the terminal device 101. A suitable UPF can be selected for the terminal device 101 according to the location information of the terminal device 101.
[0113] User plane function (UPF) network element 104: This is a functional network element on the user plane of terminal device 101. Its main functions include packet routing and forwarding, and quality of service (QoS) processing for user plane data. The 5G system can support the insertion of multiple session anchor points (UPFs) on the user plane path of a protocol data unit (PDU) session to support connection to the local data network (DN), allowing the terminal device to access applications in the local DN. Specifically, multiple UPFs can be included between the terminal device and the DN, some of which can serve as uplink classifiers (ULCL) or branching points (BP); and some can serve as PDU session anchors (PSAs).
[0114] Access and mobility management function (AMF) network element 105: It is mainly responsible for the encryption and protection of NAS messages, as well as registration, access, mobility, authentication, and transparent transmission of SMS messages.
[0115] Policy control function (PCF) network element 106: mainly responsible for functions such as establishing, releasing and changing the user plane transmission path.
[0116] Authentication server function (AUSF) network element 107: Its main functions include user authentication, etc.
[0117] User data management (UDM) network element 108: mainly responsible for managing user subscription data, etc.
[0118] The data network (DN) 109 may refer to a network that provides services to the terminal device 101 .
[0119] The application server (AS) 110 can provide data services for applications in the terminal device.
[0120] Figure 1 also shows possible implementation methods of the interfaces in each entity, such as the N4 interface between the access network 102 and the AMF network element 105, the N9 interface between the access network 102 and the UPF network element 104, etc., which are not repeated here.
[0121] It is understandable that the above-mentioned network elements or functions can be network elements in hardware devices, software functions running on dedicated hardware, or virtualized functions instantiated on a platform (for example, a cloud platform). As a possible implementation method, the above-mentioned network elements or functions can be implemented by one device, or by multiple devices together, or can be a functional module within a device. The embodiments of the present application do not specifically limit this. In addition, for the convenience of explanation, in the embodiments of the present application, "xxx network element" can also be referred to as "xxx", for example, the AMF network element can be referred to as AMF.
[0122] The network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field will know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0123] Some scenarios in the embodiments of the present application are illustrated using the scenarios of the 5G network in the wireless communication network as an example. It should be pointed out that the solutions in the embodiments of the present application can also be applied to other wireless communication networks, and the corresponding names can also be replaced by the names of corresponding functions in other wireless communication networks.
[0124] The technical solution of this application is introduced below in conjunction with specific embodiments.
[0125] The present application provides a communication method, which is applicable to but not limited to the network architecture of Figure 1. The method can be executed by the network element involved in the present application, or by the chip corresponding to the network element involved. The network element in the present application can be a physical entity network element or a virtual network element. The present application does not specifically limit the form of the network element involved. Referring to Figure 2, the method can specifically include the following steps:
[0126] S201: The access and mobility management function AMF network element sends the working information of the first counter to the authentication service function AUSF network element.
[0127] Correspondingly, the AUSF network element receives the working information of the first counter from the AMF network element.
[0128] In one embodiment, before executing step S201, the AMF network element determines the working information of the first counter, and the working information of the first counter is used to set the working information of the second counter.
[0129] In an embodiment of the present application, the first counter is used to count the number of network transmissions between the AMF network element and the terminal device, and the second counter is used to count the number of target services provided by the AUSF network element. The working status of the target service is associated with the working status of the second counter; when the first counter stops counting, it triggers the resetting of the value of the second counter.
[0130] In the embodiment of the present application, the first counter may be, but is not limited to, a non-access stratum (NAS) counter in the AMF network element; the second counter may be, but is not limited to, a roaming guidance / network preferred SoR counter or a UE parameter update UPU counter in the AUSF network element. Furthermore, the first counter or the second counter may stop counting when one of the following conditions is met:
[0131] The counter value reaches the maximum value of the counter, or the counter value reaches the corresponding switching threshold; wherein the switching threshold is the critical value for switching the service working state corresponding to the counter. The service working state can include: normal working state (normal use) and suspended working state (suspended use).
[0132] In addition, the working status of the target service provided by the AUSF network element side is associated with the working status of the second counter, which may include: when the second counter does not reach the counting threshold (such as the maximum value of the counter, the switching threshold), the target service provided by the AUSF network element side is used normally; when the second counter reaches the threshold (such as the maximum value of the counter, the switching threshold), the target service provided by the AUSF network element is suspended.
[0133] Exemplarily, when the first counter is a NAS counter, the network transmission between the AUSF network element and the terminal device is NAS transmission; when the second counter is a SoR counter, the target service provided by the corresponding AUSF network element side is a SoR service; when the second counter is a UPU counter, the target service provided by the corresponding AUSF network element side is a UPU service.
[0134] In one possible implementation, the working information of the first counter is used to indicate a maximum value of the first counter. In another possible implementation, the working information of the first counter is used to indicate a current value of the first counter and a corresponding switching threshold.
[0135] In an embodiment of the present application, the working information of the first counter on the AMF network element side may be pre-configured or set and known to the AMF network element. This application does not make any specific limitations on this.
[0136] In a possible implementation, before the AMF network element sends the working information of the first counter to the AUSF network element, the method also includes: the AUSF network element sends a first request message to the AMF network element, and the first request message is used to request to obtain the working information of the first counter; accordingly, the AMF network element receives the first request message from the AUSF network element.
[0137] In another possible implementation, the AMF network element sending the working information of the first counter to the AUSF network element may include: the AMF network element sending a second request message to the AUSF network element, and the second request message includes the working information of the first counter.
[0138] S202: The AUSF network element sets the working information of the second counter according to the working information of the first counter, so that the time when the second counter stops counting is later than the time when the first counter stops counting.
[0139] In the embodiment of the present application, when the AUSF network element performs step S202 (i.e., the AUSF network element sets the working information of the second counter according to the working information of the first counter), it can be implemented by but not limited to the following implementation methods:
[0140] Implementation method 1: When the working information of the first counter is used to indicate the maximum value of the first counter, the AUSF network element performs the following:
[0141] The maximum value of the second counter is set to a value equal to or greater than the maximum value of the first counter according to the maximum value of the first counter.
[0142] In the embodiment of the present application, the maximum value of the first counter may refer to the top value or threshold that the first counter can reach.
[0143] Implementation method 2: The working information of the first counter is used to indicate the current value of the first counter and the corresponding switching threshold; in this embodiment of the application, the switching threshold is a critical value for switching the working state of the target service (normal use state, suspended use state); then the AUSF network element performs the following:
[0144] The difference between the switching threshold corresponding to the first counter and the current value of the first counter is used as the first difference value of the first counter; the current value of the second counter is then determined; and further, the switching threshold corresponding to the second counter is set based on the first difference value and the current value of the second counter. The switching threshold corresponding to the second counter must satisfy one of the following conditions: the difference between the switching threshold corresponding to the second counter and the current value of the second counter is equal to the first difference value, and the difference between the switching threshold corresponding to the second counter and the current value of the second counter is greater than the first difference value.
[0145] In summary, a communication method and apparatus include: an AUSF network element receives working information of a first counter from an AMF network element; the AUSF network element sets working information of a second counter according to the working information of the first counter, so that the time when the second counter stops counting is later than the time when the first counter stops counting; the first counter is used to count the number of network transmissions between the AMF network element and the terminal device; the second counter is used to count the number of target services provided by the AUSF network element, and the working status of the target service is associated with the working status of the second counter; the first counter triggers resetting the value of the second counter when it stops counting. This method can ensure that the value of the second counter on the AUSF network element side is reset before reaching the counting threshold to avoid the second counter stopping counting, thereby ensuring that the target service provided by the AUSF network element side can work normally.
[0146] The communication method proposed in the present application is further described in detail below through several specific embodiments.
[0147] Example 1:
[0148] In the first embodiment, the first embodiment of step S202 of the above-mentioned solution of the present application is specifically described in detail, wherein the first counter is a NAS downlink counter and the second counter is a SoR counter and / or a UPU counter. Referring to Figure 3, the specific process of the first embodiment is as follows:
[0149] S301: When the UE registers, the main authentication process is executed, and after the main authentication process is completed, the AUSF network element generates a key K AUSF .
[0150] This step S301 can be implemented by referring to the main authentication process performed when the UE registers in the prior art, and will not be described in detail here.
[0151] In one possible implementation, the AMF network element initiates a request message 1 (equivalent to the second request message in the scheme described in FIG. 2 above) to the AUSF network element. The request message 1 carries the maximum value of the NAS downlink counter in the AMF network element, which is sent to the AUSF network element together with the request message 1.
[0152] If the AMF network element sends a request message 1 carrying the maximum value of the NAS downlink counter in the AMF network element to the AUSF network element, the following steps S303-S304 are no longer executed (i.e., the AUSF network element does not need to request the AMF network element to obtain the maximum value of the NAS downlink counter in the AMF network element). If the AMF network element does not send a request message 1 carrying the maximum value of the NAS downlink counter in the AMF network element to the AUSF network element, the following steps S303-S304 are executed.
[0153] S302: AUSF network element uses the key K AUSF After generation, the value of the SoR counter and / or UPU counter is initialized to 1.
[0154] For example, the AUSF network element may create a key K according to the provisions of the prior art (33.501). AUSF Afterwards, the values of the SoR counter and / or UPU counter in the AUSF network element are initialized to 1.
[0155] S303: The AUSF network element sends a request message 2 to the AMF network element, where the request message 2 is used to request the maximum value of the NAS downlink counter in the AMF network element.
[0156] Correspondingly, the AMF network element receives the request message 2 (equivalent to the first request message in the scheme described in Figure 2 above).
[0157] S304: The AMF network element sends the maximum value of the NAS downlink counter to the AUSF network element based on the request message 2.
[0158] Accordingly, the AUSF network element receives the maximum value of the NAS downlink counter.
[0159] S305: The AUSF network element sets the maximum value of the SoR counter and / or the UPU counter to the maximum value of the NAS downlink counter, or to a value greater than the maximum value of the NAS downlink counter.
[0160] Exemplarily, when the maximum value of the NAS downlink counter received by the AUSF network element is 10, the AUSF network element should set the maximum value of the SoR counter and / or the maximum value of the UPU counter to 10, or to a positive integer value greater than 10. For example, the AUSF network element sets the maximum value of the SoR counter and / or the maximum value of the UPU counter to 11 or 12, and so on.
[0161] In this first embodiment, the AUSF network element sets the maximum value of the SoR counter and / or UPU counter to a value that is consistent with the maximum value of the NAS downlink counter, or to a value that is greater than the maximum value of the NAS downlink counter. Since a downlink transmission must be performed once in the SoR process and / or UPU process, when the value of the SoR counter and / or UPU counter is incremented by 1, the value of the NAS downlink counter is also incremented by 1. At this time, since the time when the SoR counter and / or UPU counter rolls over (pauses) is later than the time when the NAS downlink counter rolls over (pauses), the main authentication process will be triggered after the NAS downlink counter rolls over, and the SoR counter and / or UPU counter that are about to roll over will be reset, thereby effectively avoiding or resolving the problem of SoR service and / or UPU service suspension caused by the rollover of the SoR counter and / or UPU counter.
[0162] Example 2:
[0163] In the second embodiment, the second embodiment of step S202 of the above-mentioned solution of the present application is specifically described in detail, wherein the first counter is a NAS downlink counter and the second counter is a SoR counter and / or a UPU counter. Referring to Figure 4, the specific process of the second embodiment is as follows:
[0164] S401: When the UE registers, the main authentication process is executed, and after the main authentication process is completed, the AUSF network element generates a key K AUSF .
[0165] This step S401 can be implemented by referring to the main authentication process performed when the UE registers in the prior art, and will not be described in detail here.
[0166] In one possible implementation, the AMF network element initiates a request message 1 (equivalent to the second request message in the scheme described in FIG2 above) to the AUSF network element. The request message 1 carries the current value of the NAS downlink counter in the AMF network element (equivalent to the current value of the first counter in the scheme described in FIG2 above) and the rollover threshold (equivalent to the switching threshold corresponding to the first counter in the scheme described in FIG2 above), that is, it is sent to the AUSF network element together with the request message 1.
[0167] If the AMF network element sends a request message 1 carrying the current value and rollover threshold of the NAS downlink counter to the AUSF network element, the following steps S403-S404 are no longer executed (i.e., the AUSF network element does not need to request the AMF network element to obtain the current value and rollover threshold of the NAS downlink counter). If the AMF network element does not send a request message 1 carrying the current value and rollover threshold of the NAS downlink counter to the AUSF network element, the following steps S403-S404 are executed.
[0168] S402: After the key KAUSF is generated, the AUSF network element initializes the value of the SoR counter and / or the UPU counter to 1.
[0169] For example, the AUSF network element may, according to the provisions of the prior art (33.501), AUSF After creation, the values of the SoR counter and / or UPU counter in the AUSF network element are initialized to 1.
[0170] S403: The AUSF network element sends a request message 2 to the AMF network element, where the request message 2 is used to request the current value and rollover threshold of the NAS downlink counter.
[0171] Correspondingly, the AMF network element receives the request message 2 (equivalent to the first request message in the scheme described in Figure 2 above).
[0172] S404: The AMF network element sends the current value and rollover threshold of the NAS downlink counter to the AUSF network element.
[0173] Accordingly, the AUSF network element receives the current value and rollover threshold of the NAS downlink counter.
[0174] S405: The AUSF network element calculates the rollover interval value of the NAS downlink counter based on the current value and the rollover threshold of the NAS downlink counter, sets the rollover threshold of the SoR counter and / or UPU counter, and makes the rollover interval value of the SoR counter and / or UPU counter equal to or greater than the rollover interval value of the NAS downlink counter.
[0175] For example, if the current value of the NAS downlink counter is 3 and the rollover threshold of the NAS downlink counter is 10, then the rollover interval value X of the NAS downlink counter is 7, which is obtained by subtracting the current value of the NAS downlink counter 3 from the rollover threshold of the NAS downlink counter 10. Furthermore, if the current value of the SoR counter and / or UPU counter is 4, and the rollover interval value X of the NAS downlink counter is 7, the AUSF network element should set the rollover threshold of the SoR counter and / or UPU counter to 11 or a positive integer value later than 11, so that the rollover interval value Y of the SoR counter and / or UPU counter can be equal to or greater than the rollover interval value X of the NAS downlink counter. Where X and Y are positive integers.
[0176] Since a downlink transmission must be performed during the SoR process and / or UPU process, the value of the SoR counter and / or UPU counter increases by 1, and the value of the NAS downlink counter also increases by 1. Therefore, the current value of the SoR counter and / or UPU counter is usually equal to or greater than the current value of the NAS downlink counter.
[0177] If the current value of the SoR counter and / or UPU counter is 2 (i.e., less than the current value of the NAS downlink counter 3), the rollover interval value Y of the SoR counter and / or UPU counter should be equal to or greater than the rollover interval value X of the NAS downlink counter, then the AUSF network element should set the rollover threshold of the SoR counter and / or UPU counter to a positive integer value of 9 or greater.
[0178] In this second embodiment, the AUSF sets a rollover threshold for the SoR counter and / or UPU counter so that the rollover interval of the SoR counter and / or UPU counter is equal to or greater than the rollover interval of the NAS downlink counter, thereby causing the SoR counter and / or UPU counter to roll over later than the NAS downlink counter. When the NAS downlink counter rolls over, the main authentication process is triggered, which in turn resets the SoR counter and / or UPU counter that is about to roll over. This effectively avoids or resolves the issue of SoR service and / or UPU service suspension caused by SoR counter and / or UPU counter rollover.
[0179] In the above embodiments provided by the present application, the methods provided by the embodiments of the present application are introduced from the perspective of the interaction between various devices. In order to implement the various functions in the methods provided by the above embodiments of the present application, the authentication service function AUSF network element or the access and mobility management function AMF network element may include a hardware structure and / or a software module to implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
[0180] The division of modules in the embodiments of the present application is illustrative and is merely a logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional modules in the various embodiments of the present application may be integrated into a single processor, or may exist physically separately, or two or more modules may be integrated into a single module. The aforementioned integrated modules may be implemented in the form of hardware or software functional modules.
[0181] Similar to the above concept, as shown in FIG5 , an embodiment of the present application further provides a communication device 500 for implementing the functions of the AUSF network element in the above method. For example, the communication device 500 may be a software module or a chip system. In the embodiment of the present application, the chip system may be composed of a chip, or may include a chip and other discrete devices. The communication device 500 may include: a communication unit 501 and a processing unit 502.
[0182] In the embodiment of the present application, the communication unit 501 may also be referred to as a transceiver unit, and may include a sending unit and / or a receiving unit, respectively configured to execute the steps of sending and receiving the AUSF network element in the above method embodiment. The processing unit 502 may be configured to read instructions and / or data in the storage module so that the communication device 500 implements the above method embodiment.
[0183] Optionally, the communication device 500 may further include a storage unit 503 , which is equivalent to a storage module and may be used to store instructions and / or data.
[0184] The communication device provided in the embodiment of the present application is described in detail below in conjunction with Figures 5 and 6. It should be understood that the description of the device embodiment corresponds to the description of the method embodiment. Therefore, for matters not described in detail, please refer to the method embodiment above. For the sake of brevity, it will not be repeated here.
[0185] The communication unit 501 may also be referred to as a transceiver, transceiver, or transceiver device. The processing unit may also be referred to as a processor, processing board, processing module, or processing device. Alternatively, the device in the communication unit 501 that implements the receiving function may be considered a receiving unit, and the device in the communication unit 501 that implements the transmitting function may be considered a transmitting unit. That is, the communication unit 501 includes both a receiving unit and a transmitting unit. A communication unit may also be referred to as a transceiver, transceiver, or transceiver circuit. A receiving unit may also be referred to as a receiver, receiver, or receiving circuit. A transmitting unit may also be referred to as a transmitter, transmitter, or transmitting circuit.
[0186] When the communication device 500 performs the function of the authentication service function AUSF network element in the process shown in FIG. 2 in the above embodiment:
[0187] The communication unit 501 is configured to receive working information of the first counter from an access and mobility management function AMF network element;
[0188] The processing unit 502 is used to set the working information of the second counter according to the working information of the first counter, so that the time when the second counter stops counting is later than the time when the first counter stops counting; wherein, the first counter is used to count the number of network transmissions between the AMF network element and the terminal device; the second counter is used to count the number of target services provided by the AUSF network element, and the working status of the target service is associated with the working status of the second counter; when the first counter stops counting, it triggers the resetting of the value of the second counter.
[0189] When the communication device 500 performs the function of the access and mobility management function AMF network element in the process shown in FIG. 2 in the above embodiment:
[0190] The processing unit 502 is used to determine the working information of the first counter; the communication unit 501 is used to send the working information of the first counter to the authentication service function AUSF network element, and the working information of the first counter is used to set the working information of the second counter; wherein, the first counter is used to count the number of network transmissions between the AMF network element and the terminal device; the second counter is used to count the number of target services provided by the AUSF network element, and the working status of the target service is associated with the working status of the second counter; when the first counter stops counting, it triggers the resetting of the value of the second counter.
[0191] The above is just an example. The processing unit 502 and the communication unit 501 can also perform other functions. For more detailed description, please refer to the relevant description in the method embodiment shown in Figure 2, which is not repeated here.
[0192] FIG6 shows a communication device 600 provided in an embodiment of the present application. The communication device shown in FIG6 may be a hardware circuit implementation of the communication device shown in FIG5 . The communication device 600 may be applicable to the flowchart shown above to perform the functions of the AUSF network element or AMF network element in the above-mentioned method embodiment. For ease of explanation, FIG6 only shows the main components of the communication device.
[0193] As shown in Figure 6, communication device 600 includes a communication interface 601 and a processor 602. Communication interface 601 and processor 602 are coupled to each other. It is understood that communication interface 601 can be a transceiver or an input / output interface, or an interface circuit such as a transceiver circuit. Optionally, communication device 600 can also include a memory 603 for storing instructions executed by processor 602, input data required by processor 602 to execute instructions, or data generated by processor 602 after executing instructions.
[0194] When the communication device 600 is used to implement the method shown in FIG. 3 , the processor 602 is used to implement the functions of the processing unit 502 , and the communication interface 601 is used to implement the functions of the communication unit 501 .
[0195] The specific connection medium between the communication interface 601, processor 602, and memory 603 is not limited in the embodiments of the present application. In Figure 6, the memory 603, processor 602, and communication interface 601 are connected via a communication bus 604. The communication bus 604 is represented by a bold line in Figure 6. The connection methods between other components are only for schematic illustration and are not limiting. The communication bus 604 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one bold line is used in Figure 6, but this does not mean that there is only one bus or one type of bus.
[0196] When the communication device is a chip, FIG7 shows a simplified schematic diagram of the chip structure, wherein the chip 700 includes an interface circuit 701 and one or more processors 702. Optionally, the chip 700 may further include a bus.
[0197] The processor 702 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above-mentioned communication method can be completed by an integrated logic circuit of hardware in the processor 702 or instructions in the form of software. The above-mentioned processor 702 can be a general-purpose processor, a digital communicator (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The various methods and steps disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.
[0198] The interface circuit 701 can be used to send or receive data, instructions or information. The processor 702 can use the data, instructions or other information received by the interface circuit 701 to process it, and can send the processing completion information through the interface circuit 701.
[0199] Optionally, the chip further includes a memory 703, which may include a read-only memory and a random access memory, and provides operating instructions and data to the processor. A portion of the memory 703 may also include a non-volatile random access memory (NVRAM).
[0200] Optionally, the memory stores an executable software module or a data structure, and the processor can perform corresponding operations by calling an operation instruction stored in the memory (the operation instruction may be stored in an operating system).
[0201] Optionally, the chip can be used in the AUSF network element or AMF network element involved in the embodiments of the present application. Optionally, the interface circuit 701 can be used to output the execution result of the processor 702. For the communication method provided in one or more embodiments of the present application, reference can be made to the aforementioned embodiments, which will not be repeated here.
[0202] It should be noted that the corresponding functions of the interface circuit 701 and the processor 702 can be implemented through hardware design, software design, or a combination of hardware and software, which is not limited here.
[0203] An embodiment of the present application also provides a computer-readable storage medium on which computer instructions are stored for implementing the method executed by the AUSF network element or the AMF network element in the above method embodiment.
[0204] For example, when the computer program is executed by a computer, the computer can implement the method performed by the AUSF network element or the AMF network element in the above method embodiment.
[0205] An embodiment of the present application also provides a computer program product comprising instructions, which, when executed by a computer, enables the computer to implement the method performed by the AUSF network element or the AMF network element in the above method embodiment.
[0206] An embodiment of the present application further provides a chip device, including a processor, configured to call a computer program or computer instruction stored in the memory so that the processor executes the communication method of the embodiment shown in FIG. 2 .
[0207] In a possible implementation, the input of the chip device corresponds to the receiving operation in the embodiment shown in FIG. 2 , and the output of the chip device corresponds to the sending operation in the embodiment shown in FIG. 2 .
[0208] Optionally, the processor is coupled to the memory via an interface.
[0209] Optionally, the chip device further includes a memory, in which computer programs or computer instructions are stored.
[0210] The processor mentioned in any of the above may be a general-purpose central processing unit, a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of a program of a communication method according to the embodiment shown in FIG3 . The memory mentioned in any of the above may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, a random access memory (RAM), etc.
[0211] It should be noted that, for the sake of convenience and brevity of description, the explanation and beneficial effects of the relevant contents in any of the communication devices provided above may refer to the corresponding network energy saving method embodiments provided above, and will not be repeated here.
[0212] In the present application, the communication devices may further include a hardware layer, an operating system layer running on top of the hardware layer, and an application layer running on the operating system layer. The hardware layer may include hardware such as a central processing unit (CPU), a memory management unit (MMU), and memory (also known as main memory). The operating system of the operating system layer may be any one or more computer operating systems that implement business processing through processes, such as the Linux operating system, Unix operating system, Android operating system, iOS operating system, or Windows operating system. The application layer may include applications such as browsers, address books, word processing software, and instant messaging software.
[0213] The division of modules in the embodiments of the present application is illustrative and is merely a logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional modules in the various embodiments of the present application may be integrated into a single processor, or may exist physically separately, or two or more modules may be integrated into a single module. The aforementioned integrated modules may be implemented in the form of hardware or software functional modules.
[0214] Through the description of the above embodiments, it will be clear to those skilled in the art that the embodiments of the present application can be implemented in hardware, firmware, or a combination thereof. When software is used for implementation, the above functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any medium that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a computer can access. For example, but not limited to: a computer-readable medium may include RAM, ROM, electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer. In addition, any connection can be appropriately a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of the medium. As used in the embodiments of the present application, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, and Blu-ray disc, where disks typically reproduce data magnetically and discs use lasers to reproduce data optically. Combinations of the above should also be included within the scope of protection of computer-readable media.
[0215] In short, the above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made based on the disclosure of the present application should be included in the scope of protection of the present application.
Claims
1. A communication method, characterized in that: include: The authentication service function AUSF network element receives the working information of the first counter from the access and mobility management function AMF network element; The AUSF network element sets the working information of the second counter according to the working information of the first counter, so that the time when the second counter stops counting is later than the time when the first counter stops counting; The first counter is used to count the number of network transmissions between the AMF network element and the terminal device; the second counter is used to count the number of target services provided by the AUSF network element, and the working state of the target service is associated with the working state of the second counter; When the first counter stops counting, the value of the second counter is reset.
2. The method according to claim 1, characterized in that The first counter or the second counter stops counting when one of the following is satisfied: The value of the counter reaches the maximum value of the counter, and the value of the counter reaches the switching threshold; The switching threshold is a critical value for switching the service working state corresponding to the counter.
3. The method according to claim 1 or 2, characterized in that: When the working information of the first counter is used to indicate the maximum value of the first counter; The AUSF network element sets the working information of the second counter according to the working information of the first counter, including: setting the maximum value of the second counter to a value equal to or greater than the maximum value of the first counter according to the maximum value of the first counter.
4. The method according to claim 1 or 2, characterized in that: When the working information of the first counter is used to indicate the current value of the first counter and the corresponding switching threshold; The AUSF network element sets the working information of the second counter according to the working information of the first counter, including: taking the difference between the switching threshold corresponding to the first counter and the current value of the first counter as the first difference of the first counter; determining the current value of the second counter; and setting the switching threshold corresponding to the second counter according to the first difference and the current value of the second counter, wherein the switching threshold corresponding to the second counter shall satisfy one of the following: The difference between the switching threshold corresponding to the second counter and the current value of the second counter is equal to the first difference, and the difference between the switching threshold corresponding to the second counter and the current value of the second counter is greater than the first difference.
5. The method according to any one of claims 1 to 4, characterized in that: Before the AUSF network element receives the working information of the first counter from the AMF network element, the method further includes: The AUSF network element sends a first request message to the AMF network element, where the first request message is used to request the working information of the first counter.
6. The method according to any one of claims 1 to 4, characterized in that: The AUSF network element receives working information of the first counter from the AMF network element, including: The AUSF network element receives a second request message from the AMF network element, and the second request message includes working information of the first counter.
7. The method according to any one of claims 1 to 6, characterized in that: The first counter is the non-access layer NAS counter in the AMF network element; the second counter is the roaming guidance / network preferred SoR counter or the UE parameter update UPU counter in the AUSF network element.
8. A communication method, characterized in that: include: The access and mobility management function AMF network element determines the working information of the first counter; The AMF network element sends the working information of the first counter to the authentication service function AUSF network element, where the working information of the first counter is used to set the working information of the second counter; The first counter is used to count the number of network transmissions between the AMF network element and the terminal device; the second counter is used to count the number of target services provided by the AUSF network element, and the working state of the target service is associated with the working state of the second counter; When the first counter stops counting, the value of the second counter is reset.
9. The method according to claim 8, characterized in that The first counter or the second counter stops counting when one of the following is satisfied: The value of the counter reaches the maximum value of the counter, and the value of the counter reaches the switching threshold; The switching threshold is a critical value for switching the service working state corresponding to the counter.
10. The method according to claim 8 or 9, characterized in that: The working information of the first counter is used to indicate the maximum value of the first counter; or The working information of the first counter is used to indicate the current value of the first counter and the corresponding switching threshold.
11. The method according to any one of claims 8 to 10, characterized in that: Before the AMF network element sends the working information of the first counter to the authentication service function AUSF network element, the method further includes: The AMF network element receives a first request message, where the first request message is used to request the working information of the first counter.
12. The method according to any one of claims 8 to 10, characterized in that The AMF network element sends the working information of the first counter to the authentication service function AUSF network element, including: the AMF network element sends a second request message to the AUSF network element, and the second request message includes the working information of the first counter.
13. The method according to any one of claims 8 to 12, characterized in that: The first counter is the non-access layer NAS counter in the AMF network element; the second counter is the roaming guidance / network preferred SoR counter or the UE parameter update UPU counter in the AUSF network element.
14. A communication device, characterized in that: The method comprises a module or a unit for executing the method according to any one of claims 1 to 7, or comprises a module or a unit for executing the method according to any one of claims 8 to 13.
15. A communication device, characterized in that: include: A communication interface, a memory and a processor; wherein the communication interface is used to receive and send data; the memory is used to store program instructions and data; the processor is used to read the program instructions and data in the memory to implement the method described in any one of claims 1 to 7, or to implement the method described in any one of claims 8 to 13.
16. A computer-readable storage medium, characterized in that: A computer program is stored, which, when executed on a processor, causes the method according to any one of claims 1 to 13 to be performed.
17. A chip, characterized in that: The chip includes a processor and a memory; the processor is coupled to the memory and is used to read the computer program stored in the memory to execute the method according to any one of claims 1 to 13.
18. A computer program product comprising instructions, characterized in that When the method is executed on a computer, the method according to any one of claims 1 to 13 is executed.
Citation Information
Patent Citations
Network operation to update user equipment parameters
CN114143805A
Counter resetting method and device based on user equipment parameter updating service
CN116017396A
Method and apparatus for service process for user equipment
WO2021185316A1
