Communication method and apparatus and storage medium

By sending instruction messages to the terminal in the GBA and AKMA systems, re-executing the boot process and pushing new keys, the problem of the network service side being unable to proactively update the session key is solved, achieving the continuity of security associations and reducing operation and maintenance costs. reduce.

WO2024193360A1PCT designated stage expired Publication Date: 2024-09-26CHINA MOBILE COMM LTD RES INST +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/080605
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-20
Filing Date
2024-03-07
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

In the Enhanced General Boot Architecture (GBA) and Application Layer Authentication and Key Management (AKMA) systems, the network service side cannot actively require the terminal to re-authenticate its identity and regenerate the session key, making it difficult to reset the security association.

Method used

The first device sends an instruction message to the terminal, instructing the terminal to perform a reboot operation, re-execute the GBA or AKMA boot process, generate a new session key, and negotiate and push the new session key through the second device (such as NAF or AP) if necessary. key.

Benefits of technology

It realizes the security association reset of the GBA or AKMA system on the network service side, ensures the continuity of key updates and secure communications, and reduces the operation and maintenance costs and the operation and maintenance complexity of the operator's network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024080605_26092024_PF_FP
    Figure CN2024080605_26092024_PF_FP
Patent Text Reader

Abstract

The present application discloses a communication method and apparatus and a storage medium, the method comprising: a first device sends an instruction message to a terminal, the instruction message being used for instructing the terminal to perform a re-boot operation.
Need to check novelty before this filing date? Find Prior Art

Description

Communication method, device and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on the Chinese patent application with application number 202310273426.3 and application date of March 20, 2023, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this application as a reference. Technical Field

[0003] The present application relates to the field of wireless communications, and in particular to a communication method, device, and storage medium. Background Art

[0004] In existing systems with an enhanced Generic Bootstrapping Architecture (GBA), after the enhanced GBA security process is complete, the network service and the user equipment (UE) can communicate using a shared session key K*. This session key K* must be generated after the terminal proactively requests authentication. The network service cannot request re-authentication of the terminal and regenerate a new GBA application-layer session key K*.

[0005] Similar to the enhanced GBA system, the session key KA* used in the enhanced Authentication and Key Management for Applications (AKMA) system must also be generated after the terminal actively requests authentication. The network service side cannot require re-authentication of the terminal identity and regeneration of a new session key KA*.

[0006] Summary of the Invention

[0007] In view of this, the main purpose of this application is to provide a communication method, device and storage medium.

[0008] To achieve the above objectives, the technical solution of this application is implemented as follows:

[0009] In a first aspect, an embodiment of the present application provides a communication method, performed by a first device, the method comprising:

[0010] An instruction message is sent to the terminal; the instruction message is used to instruct the terminal to perform a reboot operation.

[0011] In one embodiment, the method further includes: receiving uplink data from the terminal, the uplink data at least including data encrypted by a first key; the first key is a GBA application session key or an AKMA application session key;

[0012] The sending the indication message to the terminal includes:

[0013] When the first key cannot satisfy the key validity condition set by the first device according to the security policy, or when it is necessary to trigger the update of the first key, the indication message is sent to the terminal.

[0014] In one embodiment, the first key cannot satisfy the key validity condition set by the first device according to the security policy, including at least one of the following:

[0015] The first key has reached an upper limit on the number of reuses;

[0016] The first key has reached the usage time allowed by the application;

[0017] The first key has been exposed externally.

[0018] In one embodiment, the sending the indication message to the terminal includes one of the following:

[0019] directly sending the indication message to the terminal;

[0020] The indication message is sent to the second device, and the indication message is sent by the second device to the terminal.

[0021] In one embodiment, the receiving the uplink data from the terminal includes one of the following:

[0022] receiving the uplink data directly sent by the terminal;

[0023] The uplink data sent by the second device is received, where the uplink data is sent by the terminal to the second device.

[0024] In one embodiment, when the first device communicates directly with the terminal, the uplink data and / or the indication message are transmitted based on at least one of the following protocols:

[0025] Hypertext Transfer Protocol (HTTP), Constrained Application Protocol (CoAP), Message Queuing Telemetry Transport (MQTT) protocol, and preset private protocols.

[0026] In one embodiment, when the first device communicates with the terminal via the second device, the uplink data and / or the indication message are transmitted based on the HTTP protocol.

[0027] In one embodiment, the method further comprises:

[0028] Receive a new first key and / or key lifetime sent by the second device, and update the local first key and / or key lifetime.

[0029] In one embodiment, when the method is applied to a Generic Bootstrapping Architecture (GBA) system, the first device is a server, and the second device includes a Network Application Function (NAF) and / or an Authentication Proxy (AP).

[0030] In one embodiment, when the method is applied to an AKMA system, the first device includes an application function (AF) and / or a server;

[0031] The second device includes at least one of the following: an AKMA anchor function (AAnF), an AKMA authentication proxy (AAP), an AP, and a network element application function (NEF).

[0032] In a second aspect, an embodiment of the present application provides a communication method, performed by a terminal, the method comprising:

[0033] receiving an instruction message from the first device; wherein the instruction message is used to instruct the terminal to perform a reboot operation;

[0034] A reboot request message is sent to the third device.

[0035] In one embodiment, the receiving the indication message from the first device includes one of the following:

[0036] receiving the indication message directly sent by the first device;

[0037] The indication message sent by the second device is received, where the indication message is sent by the first device to the second device.

[0038] In one embodiment, the method further comprises:

[0039] Uplink data is sent to the first device, where the uplink data at least includes data encrypted by a first key; the first key is a GBA application session key or an AKMA application session key.

[0040] In one embodiment, the sending uplink data to the first device includes one of the following:

[0041] directly sending the uplink data to the first device;

[0042] The uplink data is sent to the second device, and the uplink data is sent by the second device to the first device.

[0043] In one embodiment, when the first device communicates directly with the terminal, the uplink data and / or the indication message are transmitted based on at least one of the following communication protocols:

[0044] HTTP, CoAP, MQTT, and preset private protocols.

[0045] In one embodiment, when the first device communicates with the terminal via the second device, the uplink data and / or the indication message are transmitted based on the HTTP communication protocol.

[0046] In one embodiment, the method further comprises:

[0047] A first message is sent to a second device; the first message carries identification information of at least one first device; the at least one first device refers to: at least one first device that has established an application security association with the terminal and is served by the second device.

[0048] In one embodiment, the method further includes: receiving a second message sent by the second device; the second message carries all or part of the update result of the first device updating the first key and / or key lifetime.

[0049] In one embodiment, the method further comprises:

[0050] Based on the second key, generating a corresponding new first key for each first device in the at least one first device, and saving the new key;

[0051] The second key is a shared key negotiated between the terminal and the second device by re-executing the GBA boot process and the GBA boot security association usage process.

[0052] In one embodiment, when the method is applied to a GBA system, the first device is a server, the second device includes a NAF and / or an AP, and the third device is a bootstrapping server function (BSF).

[0053] In one embodiment, when the method is applied to an AKMA system, the first device includes an AF and / or a server, the second device includes at least one of the following: AAnF, AAP, AP, NEF, and the third device includes: AAnF and / or AAP.

[0054] In a third aspect, an embodiment of the present application provides a communication method, performed by a second device, the method comprising:

[0055] A first message sent by a receiving terminal; the first message carries identification information of at least one first device; the at least one first device is: at least one first device that has established an application security association with the terminal and is provided with services by the second device.

[0056] In one embodiment, the method further comprises:

[0057] generating, according to identification information of at least one first device in the first message, a new first key and / or key lifetime corresponding to each first device;

[0058] The new first key and / or the key lifetime is sent to the corresponding first device.

[0059] In one embodiment, the method further comprises:

[0060] sending a third message to each first device according to the identification information of at least one first device in the first message, where the third message carries the identification information of the corresponding first device;

[0061] receiving a fourth message sent by each first device;

[0062] Generate a corresponding new first key and / or key lifetime for each first device respectively;

[0063] The corresponding new first key and / or key lifetime is sent to each first device.

[0064] In one embodiment, the method further comprises:

[0065] Determining a key transmission mode adopted by the at least one first device;

[0066] If the first device adopts the push mode, generating a new first key and / or key lifetime corresponding to the first device according to the identification information of the first device, and sending the new first key and / or key lifetime to the corresponding first device;

[0067] and / or,

[0068] If the first device adopts the request mode, sending a third message to the first device according to the identification information of the first device, where the third message carries the identification information of the first device;

[0069] receiving a fourth message sent by the first device;

[0070] generating a new first key and / or key lifetime corresponding to the first device;

[0071] A new first key and / or a key lifetime is sent to the first device.

[0072] In one embodiment, the method further comprises:

[0073] Based on the second key, generate a corresponding new first key for each first device and save the key;

[0074] The second key is a shared key negotiated between the terminal and the second device by re-executing the GBA boot process and the GBA boot security association usage process.

[0075] In one embodiment, the method further comprises at least one of the following:

[0076] receiving a result from each first device regarding successful reception of a new first key and / or key lifetime;

[0077] receiving a result of each first device failing to receive a new first key and / or a key lifetime;

[0078] A result regarding successful reception of the new first key and / or key lifetime by the first device is not received.

[0079] In one embodiment, the method further comprises:

[0080] A second message is sent to the terminal, where the second message carries an update result of all or part of the first device updating the first key and / or the key lifetime.

[0081] In one embodiment, the method further comprises:

[0082] receiving an instruction message from the first device; wherein the instruction message is used to instruct the terminal to perform a reboot operation;

[0083] The instruction message is sent to the terminal.

[0084] In one embodiment, the method further comprises:

[0085] receiving uplink data from a terminal, wherein the uplink data includes at least service data encrypted by a first key;

[0086] The uplink data is sent to the first device.

[0087] In one embodiment, when the method is applied to a GBA system, the first device is a server, and the second device includes a NAF and / or an AP.

[0088] In one embodiment, when the method is applied to an AKMA system, the first device includes an AF and / or a server, and the second device includes at least one of the following: AAnF, AAP, AP, NEF.

[0089] In a fourth aspect, an embodiment of the present application provides a communication apparatus, applied to a first device, the apparatus comprising:

[0090] The first sending module is used to send an instruction message to the terminal; the instruction message is used to instruct the terminal to perform a reboot operation.

[0091] In one embodiment, the apparatus further includes: a first receiving module, configured to receive uplink data from the terminal, wherein the uplink data at least includes data encrypted by a first key; the first key is a GBA application session key or an AKMA application session key;

[0092] The first sending module is configured to send an indication message to the terminal when the first key fails to meet a key validity condition set by the first device according to a security policy, or when an update of the first key needs to be triggered.

[0093] In one embodiment, the first key cannot satisfy the key validity condition set by the server according to the security policy, including at least one of the following:

[0094] The first key has reached an upper limit on the number of reuses;

[0095] The first key has reached the usage time allowed by the application;

[0096] The first key has been exposed externally.

[0097] In one embodiment, the first sending module is configured to perform one of the following:

[0098] directly sending the indication message to the terminal;

[0099] The indication message is sent to the second device, and the indication message is sent by the second device to the terminal.

[0100] In one embodiment, the first receiving module is configured to perform one of the following:

[0101] receiving the uplink data directly sent by the terminal;

[0102] The uplink data sent by the second device is received, where the uplink data is sent by the terminal to the second device.

[0103] In one embodiment, when the first device communicates directly with the terminal, the uplink data and / or the indication message are transmitted based on at least one of the following protocols:

[0104] HTTP, CoAP, MQTT, and preset private protocols.

[0105] In one embodiment, when the first device communicates with the terminal via the second device, the uplink data and / or the indication message are transmitted based on the HTTP protocol.

[0106] In one embodiment, the first receiving module is further configured to receive a new first key and / or key lifetime sent by the second device, and update the local first key and / or key lifetime.

[0107] In one embodiment, when the apparatus is applied to a Generic Bootstrapping Architecture (GBA) system, the first device is a server, and the second device includes a NAF and / or an AP.

[0108] In one embodiment, when the apparatus is applied to an AKMA system, the first device includes an AF and / or a server, and the second device includes at least one of the following: AAnF, AAP, AP, NEF.

[0109] In a fifth aspect, an embodiment of the present application provides a communication device, applied to a terminal, the device comprising:

[0110] A second receiving module is configured to receive an instruction message from the first device; the instruction message is configured to instruct the terminal to perform a reboot operation;

[0111] The second sending module is configured to send a redirection request message to the third device.

[0112] In one embodiment, the second receiving module is configured to perform one of the following:

[0113] receiving the indication message directly sent by the first device;

[0114] The indication message sent by the second device is received, where the indication message is sent by the first device to the second device.

[0115] In one embodiment, the second sending module is further configured to send uplink data to the first device, where the uplink data at least includes data encrypted by a first key; the first key is a GBA application session key or an AKMA application session key.

[0116] In one embodiment, the second sending module is configured to perform one of the following:

[0117] directly sending the uplink data to the first device;

[0118] The uplink data is sent to the second device, and the uplink data is sent by the second device to the first device.

[0119] In one embodiment, when the first device communicates directly with the terminal, the uplink data and / or the indication message are transmitted based on at least one of the following communication protocols:

[0120] HTTP, CoAP, MQTT, and preset private protocols.

[0121] In one embodiment, when the first device communicates with the terminal via the second device, the uplink data and / or the indication message are transmitted based on the HTTP communication protocol.

[0122] In one embodiment, the second sending module is further used to send a first message to the second device; the first message carries identification information of at least one first device; the at least one first device refers to: at least one first device that has established an application security association with the terminal and is provided with services by the second device.

[0123] In one embodiment, the second receiving module is further configured to receive a second message sent by the second device; the second message carries all or part of the update result of the first key and / or key lifetime updated by the first device.

[0124] In one embodiment, the apparatus further includes: a second processing module, configured to generate a corresponding new first key for each first device in the at least one first device based on the second key, and save the new first key;

[0125] The second key is a shared key negotiated between the terminal and the second device by re-executing the GBA boot process and the GBA boot security association usage process.

[0126] In one embodiment, when the apparatus is applied to a GBA system, the first device is a server, the second device includes a NAF and / or an AP, and the third device is a BSF.

[0127] In one embodiment, when the apparatus is applied to an AKMA system, the first device includes an AF and / or a server, the second device includes at least one of the following: AAnF, AAP, AP, NEF, and the third device includes: AAnF and / or AAP.

[0128] In a sixth aspect, an embodiment of the present application provides a communication apparatus, executed by a second device, the apparatus including:

[0129] The third receiving module is used to receive a first message sent by the terminal; the first message carries identification information of at least one first device; the at least one first device refers to: at least one first device that has established an application security association with the terminal and is provided with services by the second device.

[0130] In one embodiment, the apparatus further includes: a third processing module, configured to generate a new first key and / or key lifetime corresponding to each first device according to identification information of the plurality of first devices in the first message;

[0131] The apparatus further includes: a third sending module, configured to send the new first key and / or the key lifetime to the corresponding first device.

[0132] In one embodiment, the third sending module is further configured to send a third message to each first device respectively according to identification information of at least one first device in the first message, wherein the third message carries identification information of the corresponding first device;

[0133] The third receiving module is further configured to receive a fourth message sent by each first device;

[0134] The third processing module is further configured to generate a corresponding new first key and / or key lifetime for each first device respectively;

[0135] The third sending module is further configured to send the corresponding new first key and / or key lifetime to each first device.

[0136] In one embodiment, the third processing module is further configured to determine a key transmission mode adopted by the at least one first device; if the first device adopts a push mode, generating a new first key and / or key lifetime corresponding to the first device based on the identification information of the first device; and the third sending module is further configured to send the new first key and / or key lifetime to the corresponding first device.

[0137] and / or,

[0138] The third sending module is further configured to send a third message to the first device according to the identification information of the first device if the first device adopts the request mode, where the third message carries the identification information of the first device;

[0139] The third receiving module is further configured to receive a fourth message sent by the first device;

[0140] The third processing module is further configured to generate a new first key and / or key lifetime corresponding to the first device;

[0141] The third sending module is further configured to send a new first key and / or key lifetime to the first device.

[0142] In one embodiment, the third processing module is further configured to generate a corresponding new first key for each first device based on the second key, and save the new key;

[0143] The second key is a shared key negotiated between the terminal and the second device by re-executing the GBA boot process and the GBA boot security association usage process.

[0144] In one embodiment, the third receiving module is further configured to perform at least one of the following:

[0145] receiving a result from each first device regarding successful reception of a new first key and / or key lifetime;

[0146] receiving a result of each first device failing to receive a new first key and / or a key lifetime;

[0147] A result regarding successful reception of the new first key and / or key lifetime by the first device is not received.

[0148] In one embodiment, the third sending module is further configured to send a second message to the terminal, wherein the second message carries all or part of an update result of the first device updating the first key and / or the key lifetime.

[0149] In one embodiment, the third receiving module is further configured to receive an instruction message from the first device; the instruction message is configured to instruct the terminal to perform a reboot operation;

[0150] The third sending module is further configured to send the indication message to the terminal.

[0151] In one embodiment, the third receiving module is further configured to receive uplink data from the terminal, wherein the uplink data at least includes service data encrypted by the first key;

[0152] The third sending module is further configured to send the uplink data to the first device.

[0153] In one embodiment, when the apparatus is applied to a GBA system, the first device is a server, and the second device includes a NAF and / or an AP.

[0154] In one embodiment, when the apparatus is applied to an AKMA system, the first device includes an AF and / or a server, and the second device includes at least one of the following: AAnF, AAP, AP, NEF.

[0155] In the seventh aspect, an embodiment of the present application provides a communication device, comprising a memory, a processor, and a computer program stored in the memory and runnable on the processor, wherein when the processor executes the program, the first device side executes the steps of any one of the methods described; or, when the processor executes the program, the terminal side executes the steps of any one of the methods described; or, when the processor executes the program, the second device side executes the steps of any one of the methods described.

[0156] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the computer program implements the steps of any one of the methods described above executed on the first device side; or, when the computer program is executed by a processor, the computer program implements the steps of any one of the methods described above executed on the terminal side; or, when the computer program is executed by a processor, the computer program implements the steps of any one of the methods described above executed on the second device side.

[0157] The embodiments of the present application provide a communication method, apparatus, and storage medium, the method comprising: a first device sending an indication message to a terminal; the indication message being used to instruct the terminal to perform a reboot; the terminal correspondingly receiving the indication message from the first device; sending a reboot request message to a third device; and a second device receiving the first message sent by the terminal; the first message carrying identification information of at least one first device, the at least one first device being at least one first device with which the terminal has established an application security association and which is provided services by the second device. In this manner, the first device can proactively send a reboot indication message to the terminal, causing the terminal to re-execute security mechanisms and re-establish the application layer security association. BRIEF DESCRIPTION OF THE DRAWINGS

[0158] Figure 1 is a diagram of the GBA system network architecture in a 4G network environment;

[0159] FIG2 is a diagram of an enhanced GBA system architecture;

[0160] Figure 3 is a diagram of the basic architecture of AKMA;

[0161] Figure 4 shows an enhanced AKMA system architecture;

[0162] FIG5 is a flow chart of a 3GPP standard guided re-negotiation method;

[0163] FIG6 is a flow chart of a communication method provided in an embodiment of the present application;

[0164] FIG7 is a flow chart of another communication method provided in an embodiment of the present application;

[0165] FIG8 is a flow chart of another communication method provided in an embodiment of the present application;

[0166] FIG9 is a schematic flow chart of a reboot method of a GBA system provided in an embodiment of the present application;

[0167] FIG10 is a schematic flow chart of another GBA system reboot method provided in an embodiment of the present application;

[0168] FIG11 is a flow chart of a reboot method of an enhanced AKMA system provided in an embodiment of the present application;

[0169] FIG12 is a flow chart of another enhanced AKMA system reboot method provided in an embodiment of the present application;

[0170] FIG13 is a schematic flow chart of a reboot method for a GBA system with multiple servers provided in an embodiment of the present application;

[0171] FIG14 is a flow chart of another method for rebooting a GBA system with multiple servers according to an embodiment of the present application;

[0172] FIG15 is a schematic diagram of a flow chart of a method for determining a second key provided in an embodiment of the present application;

[0173] FIG16 is a schematic structural diagram of a communication device provided in an embodiment of the present application;

[0174] FIG17 is a schematic diagram of the structure of another communication device provided in an embodiment of the present application;

[0175] FIG18 is a schematic structural diagram of another communication device provided in an embodiment of the present application;

[0176] FIG19 is a schematic structural diagram of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0177] Before describing the present application in detail, the related art methods are described first.

[0178] The Generic Bootstrapping Architecture (GBA), defined by the 3rd Generation Partnership Project (3GPP), is a universal authentication and session key agreement method based on mobile communication networks and the Universal Subscriber Identity Module (USIM). It provides complete security authentication and application-layer session channel encryption for application-layer services. The GBA system can be built on either 4G or 5G networks. Figure 1 shows the GBA system architecture for 4G networks. The system architecture for 5G networks is similar, replacing the Home Subscriber Server (HSS) with the Unified Data Management (UDM).

[0179] In the standard GBA architecture, the Network Application Function (NAF) network element is integrated with the server and deployed externally on the service provider side. The NAF network element uses the GBA security mechanism of the 4G / 5G cellular network to authenticate and negotiate the key identity of the terminal device accessing the server. After successful authentication, it obtains the GBA session key Ks_NAF shared with the terminal from the Bootstrapping Server Function (BSF) network element, establishes a security association, and implements secure communication between the terminal and the server based on the Ks_NAF.

[0180] However, under the 3GPP standard GBA architecture, NAF network elements are deployed externally and integrated with external servers on the service provider side. A single NAF element can only provide GBA security services for its associated application services and cannot serve multiple applications. Therefore, this deployment method increases GBA application costs and hinders the large-scale deployment and promotion of GBA technology.

[0181] To improve NAF network element utilization and reduce mobile operator network operation and maintenance costs, an enhanced GBA system architecture has been proposed, as shown in Figure 2. In this system, NAF network elements are deployed on the operator network side, rather than at the service provider side. This allows operators to build a GBA service platform based on the NAF network element and provide security services to multiple servers. The server interacts with the NAF network element through an integrated and streamlined NAF' service function processing module, implementing an enhanced GBA security authentication and key agreement mechanism. After performing GBA AKA identity authentication on the UE, the server obtains the GBA application layer session key K* derived from Ks_NAF from the NAF network element, establishes an application layer security association, and securely communicates with the terminal based on K*. In Figure 2, Zh, Ub, Zn, Ua, and Zn' are all interfaces involved in the communication process.

[0182] To better integrate with 5G networks based on the Service-Based Architecture (SBA), 3GPP has defined the Authentication and Key Management for Applications (AKMA) process, referencing the GBA process. AKMA is an upgrade of GBA in 5G systems. Similar to GBA, it authenticates the UE based on 3GPP security credentials and negotiates an AKMA session key, KAF, for shared use between the server and UE. KAF is equivalent to Ks_NAF in GBA. Figure 3 shows a basic AKMA architecture. As shown in Figure 3, the functions of the main AKMA network elements are largely the same as those of the GBA network elements. The AKMA Anchor Function (AAnF) is similar to the BSF, and the Application Function (AF) network element is similar to the NAF. These details are not further explained here. In Figure 3, N13, N12, N2, N61, N62, N1, and Ua* are all interfaces involved in the communication process.

[0183] In order to reduce the operator's operation and maintenance costs and realize one-to-many security business services, an enhanced AKMA mechanism has been proposed with reference to the enhanced GBA mechanism. Its architecture is shown in Figure 4. This mechanism adds an AKMA authentication proxy (AAP) network element between AAnF and AF. It can be based on a K AF Generate different AKMA application layer session keys K for different servers A *, thus serving multiple servers. At this time, the AAP network element is equivalent to the NAF in the enhanced GBA, and the AF is equivalent to the NAF', KA *Equivalent to K*.

[0184] In the enhanced GBA system, after the enhanced GBA security processing flow is completed, if the server and the terminal UE already have a shared GBA application layer session key K*, there is a situation where the server, for security reasons, proactively requests re-authentication of the terminal UE identity and regenerates a new GBA application layer session key K*, thereby completely resetting the GBA operating mechanism.

[0185] To meet the service application requirements of re-establishing security associations, the 3GPP standard proposes a "Bootstrapping renegotiation request" process, which requires the terminal UE to re-execute the GBA security mechanism and, after re-completing GBA AKA authentication, obtain and use the new GBA session key Ks_NAF to achieve secure communication. As shown in Figure 5, the 3GPP standard bootstrapping renegotiation request process includes the following steps:

[0186] 501. The terminal (UE) sends a service request (Request) to the NAF network element (ie, server); the service request may be a Hyper Text Transfer Protocol (HTTP) message.

[0187] 502. After receiving the service request from the UE, the NAF network element sends a bootstrapping renegotiation request to the UE, requesting the UE to re-execute the GBA security mechanism to obtain a new key.

[0188] However, the above solution is only applicable to the standard 3GPP GBA system and not to the enhanced GBA system. Therefore, when targeting the enhanced GBA system architecture, a technical solution is needed to support the server to re-establish the GBA application layer security association.

[0189] In addition, the enhanced AKMA system also has similar problems.

[0190] Based on this, in the method provided in an embodiment of the present application, the first device sends an indication message to the terminal; the indication message is used to instruct the terminal to perform a reboot operation; accordingly, the terminal receives the indication message from the first device; sends a reboot request message to the third device; and the terminal sends a first message to the second device; the first message carries identification information of several first devices, and the several first devices refer to: several first devices that have established application security associations with the terminal and are provided with services by the second device.

[0191] FIG6 is a flow chart of a communication method provided in an embodiment of the present application. As shown in FIG6 , the method can be applied to a first device, and the method includes:

[0192] Step 601: Send an instruction message to the terminal; the instruction message is used to instruct the terminal to perform a reboot operation.

[0193] In actual application, when the method is applied to a GBA system or an enhanced GBA system, the first device may be a server, and the second device may include a network application function (NAF) and / or an authentication proxy (AP).

[0194] The reboot operation can also be referred to as a boot renegotiation process. Its purpose is to cause the terminal device to re-execute the GBA boot process, re-authenticate, and negotiate a new GBA session key (Ks_NAF). This embodiment of the application does not limit the name of the reboot operation, as long as it can achieve the corresponding function.

[0195] In actual application, when the method is applied to an AKMA system or an enhanced AKMA system, the first device may include an application function (AF) and / or a server. The second device may include at least one of the following: an AKMA anchor function (AAnF), an AKMA authentication proxy (AAP), an AP, and an application function network element (NEF). In one example, the second device may include: an AAnF, an AAP, and / or an NEF; in another example, the second device may include: an AAnF, an AP, and / or an NEF; in yet another example, the second device may include one or more of an AAnF, an AAP, an AP, and an NEF. This is not limited here.

[0196] The reboot operation can also be described as re-initiating the AKMA process. The embodiment of the present application does not limit the name of the reboot operation, as long as the corresponding function can be achieved.

[0197] It should be noted that the embodiments of the present application do not limit the names of the first device and the second device, as long as the functions of the first device and the second device can be realized.

[0198] In some embodiments, the instruction message is used to instruct the terminal to perform a reboot operation.

[0199] In one example, the indication message may be an HTTP 401 Unauthorized message; in another example, the indication message may be in other formats or a message carrying a corresponding reboot operation instruction; this is not limited here.

[0200] In some embodiments, the method further comprises:

[0201] receiving uplink data from the terminal, the uplink data including at least data encrypted by a first key;

[0202] The first key is a GBA application session key or an AKMA application session key;

[0203] The sending of the instruction message to the terminal includes:

[0204] When the first key cannot meet the key validity condition set by the server according to the security policy, or when the update of the first key needs to be triggered, an indication message is sent to the terminal.

[0205] In some embodiments, the first key cannot satisfy a key validity condition set by the server according to a security policy, including at least one of the following:

[0206] The first key has reached an upper limit on the number of reuses;

[0207] The first key has reached the usage time allowed by the application;

[0208] The first key has been exposed externally.

[0209] Exemplarily, the method is applied to a server in an enhanced GBA system. After the enhanced GBA security processing process is completed and the server and the terminal already have a shared GBA application layer session key K* (i.e., the first key), there is a situation where the server, for security reasons, proactively requests re-authentication of the terminal identity and regenerates a new GBA application layer session key K*, thereby resetting the operating state of the GBA mechanism so that the server can re-establish a GBA application layer security association with the terminal. For example:

[0210] The first key has reached the upper limit of the number of reuses, such as K* has reached the upper limit of the number of reuses;

[0211] The first key has reached the usage time allowed by the application, such as K* is invalid or no longer fresh, K* has exceeded the key lifetime or is about to exceed the key lifetime, etc.

[0212] The server fails to obtain K*, for example, because the Bootstrapping Transaction IDentifier (B-TID) for obtaining K* is invalid, resulting in the server failing to obtain K* from the second device (such as NAF);

[0213] After recovering from an abnormal situation, the server needs to actively re-establish the application layer security association with the terminal, the K* shared between the server and the terminal is inconsistent, and other situations.

[0214] For the above situation where the server needs to actively re-establish the security association, this application proposes a GBA reboot process to enable the server to actively restart the enhanced GBA security mechanism.

[0215] In some embodiments, the sending of the indication message to the terminal includes one of the following:

[0216] directly sending the indication message to the terminal;

[0217] The indication message is sent to the second device, and the indication message is sent by the second device to the terminal.

[0218] Here, the first device sends the indication message to the terminal, which may be sent directly to the terminal, or forwarded to the terminal via the second device.

[0219] Here, the second device may send the indication message to the terminal by transparently transmitting the indication message to the terminal, or may perform corresponding modification on the indication message before sending the indication message to the terminal.

[0220] The following sending of other messages through the second device is similar to this. The second device may directly transparently transmit the other messages to the terminal, or may perform corresponding modifications on the other messages before sending them to the terminal. Details are not given here.

[0221] In some embodiments, the receiving uplink data from the terminal includes one of the following:

[0222] receiving uplink data directly sent by the terminal;

[0223] Receive uplink data sent by a second device, where the uplink data is sent by the terminal to the second device.

[0224] Here, the terminal sends uplink data to the first device, which may be sent directly to the first device, or forwarded to the first device via the second device.

[0225] Here, the second device sends the uplink data sent by the terminal to the first device. The second device may directly transmit the uplink data to the first device, or may perform corresponding modification on the first data and then send it to the first device. Details are not given here.

[0226] The following sending of other data or messages through the second device is similar to this. The second device may directly transparently transmit the other data or messages to the first device, or may perform corresponding modification on the other data or messages before sending them to the first device.

[0227] In some embodiments, when the first device communicates directly with the terminal, the uplink data and / or the indication message is transmitted based on at least one of the following protocols:

[0228] Hypertext Transfer Protocol (HTTP), Constrained Application Protocol (CoAP), Message Queuing Telemetry Transport (MQTT) protocol, and preset private protocols.

[0229] In some embodiments, when the first device communicates with the terminal via the second device, the uplink data and / or the indication message is transmitted based on the HTTP protocol.

[0230] In some embodiments, the method further comprises:

[0231] Receive a new first key and / or key lifetime sent by the second device, and update the local first key and / or key lifetime.

[0232] Here, after receiving the new first key and / or key lifetime, the first device may perform a corresponding update operation to ensure that the used key is the latest key.

[0233] In some embodiments, the method may further include at least one of the following:

[0234] Sending a result regarding successful receipt of the new first key and / or key lifetime to the second device;

[0235] A result regarding the failure to receive the new first key and / or the key lifetime is sent to the second device.

[0236] Here, after receiving the new first key and / or key lifetime, the first device may notify the second device of the result. If the new first key and / or key lifetime is not received within a period of time, the second device may also be notified of the result of failed reception or non-receipt.

[0237] FIG7 is a flow chart of another communication method provided in an embodiment of the present application. As shown in FIG7 , the method can be applied to a terminal, and the method includes:

[0238] Step 701: Receive an instruction message from a first device; the instruction message is used to instruct the terminal to perform a reboot operation;

[0239] Step 702: Send a reboot request message to the third device.

[0240] In actual application, when the method is applied to a GBA system or an enhanced GBA system, the first device may be a server, the second device may include a NAF and / or an AP, and the third device may be a Bootstrapping Server Function (BSF).

[0241] The reboot operation can also be referred to as a boot renegotiation process. Its purpose is to cause the terminal device to re-execute the GBA boot process, re-authenticate, and negotiate a new GBA session key (Ks_NAF). This embodiment of the application does not limit the name of the reboot operation, as long as it can achieve the corresponding function.

[0242] In practical applications, when the method is applied to an AKMA system or an enhanced AKMA system, the first device may include an AF and / or a server. The second device may include at least one of the following: an AAnF, an AAP, an AP, or an NEF. The third device may include an AAnF and / or an AAP, or the third device may include an AAnF and / or an AP, or the third device may include an AAnF, an AAP, and / or an AP; these are not limited herein.

[0243] The reboot operation can also be described as re-initiating the AKMA process. The embodiment of the present application does not limit the name of the reboot operation, as long as the corresponding function can be achieved.

[0244] It should be noted that the embodiments of the present application do not limit the names of the first device, the second device, and the third device, as long as the functions of the first device, the second device, and the third device can be realized.

[0245] In some embodiments, the receiving an indication message from the first device includes one of the following:

[0246] receiving the indication message directly sent by the first device;

[0247] The indication message sent by the second device is received, where the indication message is sent by the first device to the second device.

[0248] Here, the second device may send the indication message to the terminal by transparently transmitting the indication message to the terminal, or may perform corresponding modification on the indication message before sending the indication message to the terminal.

[0249] In some embodiments, the method further comprises:

[0250] Uplink data is sent to the first device, where the uplink data at least includes data encrypted by a first key; the first key is a GBA application session key or an AKMA application session key.

[0251] Here, when the method is applied to a GBA system, the first key is a GBA application session key;

[0252] When the method is applied to an AKMA system, the first key is an AKMA application session key.

[0253] In some embodiments, sending uplink data to the first device includes one of the following:

[0254] Sending uplink data directly to the first device;

[0255] Uplink data is sent to the second device, where the uplink data is sent by the second device to the first device.

[0256] Here, the second device may transmit the uplink data to the first device transparently, or may perform corresponding modification on the uplink data before sending it to the first device.

[0257] In some embodiments, when the first device communicates directly with the terminal, the uplink data and / or the indication message is transmitted based on at least one of the following communication protocols:

[0258] HTTP, CoAP, MQTT, and preset private protocols.

[0259] In some embodiments, when the first device communicates with the terminal via the second device, the uplink data and / or the indication message is transmitted based on the HTTP communication protocol.

[0260] In some embodiments, the method further comprises:

[0261] A first message is sent to a second device; the first message carries identification information of several first devices; the several first devices refer to: several first devices that have established application security associations with the terminal and are served by the second device.

[0262] Here, the several first devices refer to: several first devices that have established application security associations with the terminal and are provided with services by the second device; it can also be described as, the several first devices include: several first devices that have established application security associations with the terminal and are provided with services by the second device.

[0263] The several may also be described as at least one, meaning one or more, where the multiple is two or more.

[0264] The service refers to: the second device provides it with security services such as identity authentication and application session keys.

[0265] When the method is applied to a GBA system or an enhanced GBA system, establishing an application security association means that, before initiating the reboot execution process, the terminal has completed identity authentication through the enhanced GBA mechanism and established a secure channel with the first device (e.g., a server) based on the shared first key obtained from the second device (e.g., a NAF and / or an AP), thereby achieving secure communication with the first device.

[0266] In some embodiments, the method further comprises:

[0267] Receive a second message sent by the second device; the second message carries all or part of the update results of the first device updating the first key and / or key lifetime.

[0268] In some embodiments, the method further comprises:

[0269] Based on the second key, generate a corresponding new first key for each first device and save the key;

[0270] The second key is a shared key negotiated between the terminal and the second device by re-executing the GBA boot process and the GBA boot security association usage process.

[0271] Here, if there are multiple first devices, assuming the first device is a server, when one of the multiple servers triggers the terminal to reboot, then after the first key of the server is updated on the server side, the first keys of the remaining servers also need to be updated. The updated first key becomes the shared key between the terminal and each server.

[0272] Here, the terminal can calculate the new first key corresponding to the server based on the second key. For example, a method of generating a GBA application session key based on a shared key (such as a GBA session key) can be used, and the calculation method is not limited here.

[0273] FIG8 is a flow chart of another communication method provided in an embodiment of the present application. As shown in FIG8 , the method can be applied to a second device, and the method includes:

[0274] Step 801: Receive a first message sent by a terminal, where the first message carries identification information of multiple first devices;

[0275] The multiple first devices refer to: multiple first devices that have established application security associations with the terminal and are provided with services by the second device.

[0276] In actual application, when the method is applied to a GBA system or an enhanced GBA system, the first device may be a server, and the second device may include a NAF and / or an AP.

[0277] In actual application, when the method is applied to an AKMA system or an enhanced AKMA system, the first device may include an AF and / or a server, and the second device may include at least one of the following: AAnF, AAP, AP, NEF.

[0278] It should be noted that the embodiments of the present application do not limit the names of the first device and the second device, as long as the functions of the first device and the second device can be realized.

[0279] In actual application, a key push method is provided to achieve key update and push. In some embodiments, the method further includes:

[0280] generating, according to the identification information of the plurality of first devices in the first message, a new first key and / or a key lifetime corresponding to each first device;

[0281] The new first key and / or the key lifetime is sent to the corresponding first device.

[0282] Here, a first key push method is provided. Assuming that the second device includes a NAF and / or an AP, and the first device is a server, upon receiving a first message from a terminal carrying identification information of each first device (e.g., a server), the second device (e.g., the NAF and / or AP) generates an updated first key and / or key lifetime for each server based on the identification information of each server, and proactively pushes the updated first key and / or key lifetime to each server.

[0283] In actual application, in order to achieve key update and push, another key push method is provided. In some embodiments, the method further includes:

[0284] Sending a third message to each first device according to the identification information of the plurality of first devices in the first message, wherein the third message carries the identification information of the corresponding first device;

[0285] receiving a fourth message sent by each first device;

[0286] Generate a corresponding new first key and / or key lifetime for each first device respectively;

[0287] The corresponding new first key and / or key lifetime is sent to each first device.

[0288] Here, a second key push method is provided. Assuming that the second device includes a NAF and / or AP, and the first device is a server, the second device (e.g., the NAF and / or AP) receives identification information of each server from a terminal and first sends an application request (Application Request) to the server based on the identification information of each server. Each server then returns a fourth message (e.g., a User Info Request). Upon receiving the User Info Request from each server, the NAF and / or AP generates a corresponding new first key and / or key lifetime for each server and proactively pushes the new first key and / or key lifetime to each server.

[0289] The key generation and key push processes for each server may be performed together, that is, after receiving all User Info Requests, the NAF and / or AP uniformly generates a new first key and / or key lifetime for each server and then uniformly pushes them; or they may be performed separately, that is, a new first key and / or key lifetime is generated for the server whose User Info Request is received and pushed immediately.

[0290] In some embodiments, the method further comprises:

[0291] Determining a key transmission mode adopted by the plurality of first devices;

[0292] If the first device adopts the push mode, generating a new first key and / or key lifetime corresponding to the first device according to the identification information of the first device, and sending the new first key and / or key lifetime to the corresponding first device;

[0293] and / or,

[0294] If the first device adopts the request mode, sending a third message to the first device according to the identification information of the first device, where the third message carries the identification information of the first device;

[0295] receiving a fourth message sent by the first device;

[0296] generating a new first key and / or key lifetime corresponding to the first device;

[0297] A new first key and / or a key lifetime is sent to the first device.

[0298] Here, the second device may first determine whether the first device (server) adopts a push mode or a request mode, and if the push mode is adopted, adopt the first key push mode; if the request mode is adopted, adopt the second key push mode.

[0299] In some embodiments, the method further comprises:

[0300] Based on the second key, generate a corresponding new first key for each first device and save the key;

[0301] The second key is a shared key negotiated between the terminal and the second device by re-executing the GBA boot process and the GBA boot security association usage process.

[0302] Here, the second device can calculate the new first key corresponding to the server based on the second key. For example, a method of generating a GBA application session key based on a shared key (such as a GBA session key) can be used. The calculation method is not limited here.

[0303] In some embodiments, the method further comprises at least one of the following:

[0304] receiving a result from each first device regarding successful reception of a new first key and / or key lifetime;

[0305] receiving a result of each first device failing to receive a new first key and / or a key lifetime;

[0306] A result regarding successful reception of the new first key and / or key lifetime by the first device is not received.

[0307] In some embodiments, the method further comprises:

[0308] A second message is sent to the terminal, where the second message carries an update result of all or part of the first device updating the first key and / or the key lifetime.

[0309] Here, if there are multiple first devices (such as servers), when one of the multiple servers triggers the terminal to perform a reboot process, then after the first key of the server is updated on the server side, the first keys of the remaining servers also need to be updated. Accordingly, the terminal can obtain the update results of the first keys and / or key lifetimes of all or some of the first devices.

[0310] In some embodiments, the method further comprises:

[0311] receiving an instruction message from the first device; wherein the instruction message is used to instruct the terminal to perform a reboot operation;

[0312] The instruction message is sent to the terminal.

[0313] In some embodiments, the method further comprises:

[0314] receiving uplink data from a terminal, wherein the uplink data includes at least service data encrypted by a first key;

[0315] The uplink data is sent to the first device.

[0316] FIG9 is a flow chart of a reboot method of an enhanced GBA system provided in an embodiment of the present application. As shown in FIG9 , the method includes:

[0317] Step 901: The UE sends uplink data to the server, which may carry service data information encrypted and protected by the GBA application session key K*.

[0318] Here, data transmission can be implemented using any application layer communication protocol, for example, HTTP, CoAP, MQTT, or a private protocol.

[0319] Step 902: For some reason, the server triggers the UE to re-execute the GBA authentication mechanism and renegotiate to obtain the GBA application session key K*.

[0320] Here, we provide the following reasons as examples. In actual application, you can set the following reasons, but not limited to them:

[0321] The server does not have a valid GBA application session key K* locally. For example, K* is invalid or no longer fresh, or K* has exceeded its key lifetime or is about to expire.

[0322] K* fails to meet the key validity conditions set by the server based on the security policy, for example, K* has reached the upper limit of the number of reuses, etc.

[0323] K* acquisition failure, for example, the server fails to obtain K* from the NAF and / or AP because the B-TID used to obtain K* is invalid.

[0324] In other cases, for example, after recovering from an abnormal situation, the server needs to actively re-establish the application layer security association with the UE, the K* shared between the server and the UE is inconsistent, etc.

[0325] Step 903: The server replies to the UE with a GBA redirection indication message.

[0326] The specific form of the GBA redirection indication message depends on the adopted application layer communication protocol and is not limited here.

[0327] Step 904: After receiving the GBA redirection indication message, the UE re-initiates the GBA bootstrapping process to the BSF.

[0328] At this point, the UE can directly access the server through the IP network routing. The UE and the server can use any application layer communication protocol for data exchange without limitation, such as HTTP, CoAP, MQTT, proprietary protocols, etc.

[0329] FIG10 is a flow chart of another method for rebooting an enhanced GBA system according to an embodiment of the present application. As shown in FIG10 , the method includes:

[0330] Step 1001: The UE sends an HTTP message to the server through the NAF and / or AP, which may carry service data information encrypted and protected by the GBA application layer session key K*.

[0331] Step 1002: The NAF and / or AP forwards the HTTP message sent by the UE to the server.

[0332] Step 1003: For some reason, the server triggers the UE to re-execute the GBA authentication mechanism and renegotiate to obtain the GBA application layer session key K*;

[0333] Here, the reason may be any one or more of the methods shown in FIG9 , which will not be described in detail here.

[0334] Step 1004: The server returns an HTTP 401 Unauthorized message (equivalent to an indication message).

[0335] Step 1005: The NAF and / or AP forwards an HTTP 401 Unauthorized message to the UE.

[0336] Step 1006: After receiving the HTTP 401 Unauthorized message, the UE re-initiates the GBA bootstrapping process to the BSF.

[0337] At this point, the UE can access the server via the IP network routing through the NAF and / or AP network elements. The network elements interact using the HTTP protocol. In this case, the uplink encrypted data transmission message carrying user service data is an HTTP message, and the GBA redirection indication message is an HTTP 401 Unauthorized message.

[0338] In the method provided in this embodiment of the application, after the UE and server complete GBA security authentication and securely exchange data based on the negotiated GBA application layer session key K*, if a situation arises that requires restarting the GBA mechanism, the server executes a GBA reboot process to re-establish a security association between the UE and server. Depending on the message transmission method, there are two specific implementation methods. The first is direct transmission, as shown in Figure 9, which specifically illustrates a GBA reboot process for direct transmission of application layer data. The second is NAF and / or AP relay transmission, as shown in Figure 10, which specifically illustrates a GBA reboot process for relaying application layer data through NAF and / or AP network elements.

[0339] FIG11 is a flow chart of a reboot method of an enhanced AKMA system provided in an embodiment of the present application. As shown in FIG11 , the method includes:

[0340] Step 1101: The UE sends uplink data to the AF and / or the Server, which may carry service data information encrypted and protected by the AKMA application layer session key KA*.

[0341] Data transmission can be implemented using any application layer communication protocol, for example, HTTP, CoAP, MQTT, or a proprietary protocol.

[0342] Step 1102: For some reason, the AF and / or the Server triggers the UE to re-execute the AKMA security access and authentication mechanism and renegotiate to obtain the AKMA application layer session key KA*;

[0343] Here, we provide the following reasons as examples. In actual application, you can set the following reasons, but not limited to them:

[0344] The server does not have a valid AKMA application layer session key KA* locally. For example, KA* is invalid or no longer fresh, KA* has exceeded its key lifetime or is about to exceed its key lifetime, etc.

[0345] KA* fails to meet the key validity conditions set by AF and / or Server according to the security policy, for example, KA* has reached the upper limit of the number of reuses, etc.

[0346] KA* acquisition failure, for example, due to the invalid B-TID for obtaining KA*, resulting in the AF and / or Server failing to obtain KA* from the AAnF and / or AAP, etc.

[0347] Other situations include, for example, after recovery from an abnormal situation, the AF and / or Server needs to actively re-establish the application layer security association with the UE, the KA* shared between the AF and / or Server and the UE is inconsistent, etc.

[0348] Step 1103: The AF and / or the Server responds to the UE with an AKMA redirection indication message.

[0349] Here, the specific form of the AKMA redirection indication message depends on the adopted application layer communication protocol and is not limited here.

[0350] Step 1104: After receiving the redirection indication message, the UE re-initiates the AKMA processing flow to the AAnF and / or AAP to implement AKMA redirection.

[0351] For the enhanced AKMA system, when the AF and / or Server need to reset the AKMA operating status, a reboot process can be used to enable the terminal to re-execute the AKMA security access and authentication process to implement AKMA reset for the UE.

[0352] FIG12 is a flow chart of another enhanced AKMA system reboot method provided in an embodiment of the present application. As shown in FIG12 , the method includes:

[0353] Step 1201: The UE sends uplink data to the AAnF and / or AAP, which may carry service data information encrypted and protected by the AKMA application layer session key KA*.

[0354] Step 1202: The AAnF and / or AAP forwards the HTTP message sent by the UE to the AF and / or Server.

[0355] Step 1203: For some reason, the AF and / or the Server triggers the UE to re-execute the AKMA security access and authentication mechanism and renegotiate to obtain the AKMA application layer session key KA*;

[0356] Here, the reason may be any one or more of the methods shown in FIG11 , which will not be described in detail here.

[0357] Step 1204: The AF and / or Server responds with an AKMA redirection instruction message to the AAnF and / or AAP.

[0358] Step 1205: The AAnF and / or AAP forwards the AKMA redirection indication message to the UE.

[0359] Step 1206: After receiving the AKMA redirection indication message, the UE re-initiates the AKMA processing flow to the AAnF and / or AAP to implement AKMA redirection.

[0360] In addition to the direct transmission method shown in Figure 11, in an enhanced AKMA system, messages exchanged between the UE and the AF and / or Server may also be forwarded via network elements such as the AAP and NEF. This means that the AKMA system can also implement the redirection process by forwarding messages via network elements such as the AAP and NEF, as shown in Figure 12.

[0361] The following provides a specific process for a reboot method of a GBA system with multiple servers. As shown in FIG13 , the third device is a BSF, the second device includes a NAF and / or an AP, and the first device includes: Server1, Server2, and Server3. The method includes:

[0362] Step 1301: The UE sends an HTTP message to Server 1 through the NAF and / or AP, which may carry service data information protected by K* encryption.

[0363] Step 1302: Server 1 triggers the UE to re-execute the GBA authentication mechanism for some reason and renegotiate to obtain the GBA application layer session key K*1;

[0364] Here, the reason may be any one or more of the methods shown in Figure 9, which will not be described in detail here. For example, the server does not have a valid GBA application layer session key K*1 locally.

[0365] Step 1303: Server 1 sends an HTTP / 1.1 401 Unauthorized message to the UE through the NAF and / or AP.

[0366] Here, the Unauthorized message is equivalent to an indication message, and may carry the reason for triggering the re-execution of the GBA authentication mechanism determined by Server1.

[0367] Step 1304: The UE re-initiates the GBA bootstrapping process to the BSF;

[0368] Step 1305: The UE and the NAF and / or AP re-initiate the GBA bootstrapping security association usage procedure;

[0369] It should be noted that the re-initiation of the GBA bootstrapping process can be triggered by a server (such as Server1 in Figure 13), that is, step 1304 is executed after steps 1301 to 1303; or it can be actively triggered by the UE, that is, the UE actively executes step 1304.

[0370] It is understandable that the method may include steps 1301 to 1303, that is, a server triggers the UE to initiate a GBA bootstrapping process;

[0371] The method may also not include steps 1301 to 1303 and directly execute step 1304, that is, the UE actively re-initiates the GBA bootstrapping process.

[0372] After executing steps 1304 and 1305, the UE and the NAF and / or AP obtain a new GBA session key (equivalent to a second key), that is, a shared key negotiated by the UE and the NAF and / or AP by re-executing the GBA bootstrapping process and the GBA bootstrapping security association usage process.

[0373] Step 1306: The UE calculates a new GBA application session key K* based on the new GBA session key for each server that has established a GBA application security association before the reboot, for example:

[0374] For Server1, calculate the new K*1;

[0375] For Server2, calculate the new K*2;

[0376] For Server3, calculate the new K*3;

[0377] Step 1307: The UE sends an application request to the NAF and / or AP.

[0378] Here, the Application Request is equivalent to a first message, which may carry identification information of several first devices; the several first devices refer to: several servers that have established application security associations with the terminal and are provided with services by the second device.

[0379] For example, an Application Request may carry: B-TID, Server1 FQDN, Server2 FQDN, and Server3 FQDN.

[0380] The FQDN represents the fully qualified domain name (FQDN) of the server, and the FQDN of each server is globally unique.

[0381] Step 1308: The NAF and / or AP calculates a new GBA application session key K* for each server based on the new GBA session key. For example:

[0382] For Server1, calculate the new K*1;

[0383] For Server2, calculate the new K*2;

[0384] For Server3, calculate the new K*3;

[0385] Here, the method for calculating K*1, K*2, and K*3 may be determined in advance through negotiation between the UE and the NAF and / or AP, and both may use the same mechanism.

[0386] Step 1309a: NAF and / or AP sends Key Update to Server 1.

[0387] Here, Key Update may carry the updated GBA application session key K*1 and / or key lifetime;

[0388] For example, the Key Update message can carry: B-TID, Server1 FQDN, new K*1, and key lifetime.

[0389] Here, Key Update indicates a key update message; key lifetime indicates a key lifetime.

[0390] Step 1310a: Server 1 returns HTTP 200 OK to the NAF and / or AP.

[0391] Step 1309b: NAF and / or AP sends Key Update to Server2.

[0392] Here, the Key Update field can contain: B-TID, Server2 FQDN, new K*2, and key lifetime.

[0393] Step 1310b: Server 2 returns HTTP 200 OK to the NAF and / or AP.

[0394] Step 1309c: NAF and / or AP sends Key Update to Server 3.

[0395] Here, the Key Update field can contain: B-TID, Server3 FQDN, new K*3, and key lifetime.

[0396] Step 1310c: Server 3 returns HTTP 200 OK to the NAF and / or AP.

[0397] Step 1310: The NAF and / or AP sends an HTTP 200 OK (Server1 FQDN, Server2 FQDN, Server3 FQDN) to the UE.

[0398] Here, the NAF and / or AP may send a key update result (equivalent to a second message) to the UE to inform the UE whether some or all servers have successfully updated the key and / or key lifetime.

[0399] Step 1311a: UE and Server 1 communicate securely based on the new K*1;

[0400] Step 1311b: UE and Server2 communicate securely based on the new K*2;

[0401] Step 1311c: UE and Server3 communicate securely based on the new K*3.

[0402] The following provides another specific process for rebooting a GBA system with multiple servers. As shown in FIG14 , the third device is a BSF, the second device includes a NAF and / or an AP, and the first device includes: Server1, Server2, and Server3. The method includes:

[0403] Step 1401: The UE sends an HTTP message to Server 1 through the NAF and / or AP, which may carry service data information protected by K* encryption.

[0404] Step 1402: Server 1 triggers the UE to re-execute the GBA authentication mechanism for some reason and renegotiate to obtain the GBA application layer session key K*1;

[0405] Here, the reason may be any one or more of the methods shown in Figure 9, which will not be described in detail here. For example, the server does not have a valid GBA application layer session key K*1 locally.

[0406] Step 1403: Server 1 sends an HTTP / 1.1 401 Unauthorized message to the UE through the NAF and / or AP.

[0407] Here, the Unauthorized message is equivalent to an indication message, and may carry the reason for triggering the re-execution of the GBA authentication mechanism determined by Server1.

[0408] Step 1404: The UE re-initiates the GBA bootstrapping process to the BSF;

[0409] Step 1405: The UE and the NAF and / or AP re-initiate the GBA bootstrapping security association usage procedure;

[0410] It should be noted that the re-initiation of the GBA bootstrapping process can be triggered by a server (such as Server1 in Figure 13), that is, step 1404 is executed after steps 1401 to 1403; or it can be actively triggered by the UE, that is, the UE actively executes step 1404.

[0411] It is understandable that the method may include steps 1401 to 1403, i.e., a server triggers the UE to initiate a GBA bootstrapping process;

[0412] The method may also not include steps 1401 to 1403 and directly execute step 1404, that is, the UE actively re-initiates the GBA bootstrapping process.

[0413] After executing steps 1404 and 1405, the UE and the NAF and / or AP obtain a new GBA session key (equivalent to a second key), that is, a shared key negotiated by the UE and the NAF and / or AP by re-executing the GBA bootstrapping process and the GBA bootstrapping security association usage process.

[0414] Step 1406: Based on the new GBA session key, calculate a new GBA application session key K* for each server that has established a GBA application security association before the reboot, for example:

[0415] For Server1, calculate the new K*1;

[0416] For Server2, calculate the new K*2;

[0417] For Server3, calculate the new K*3;

[0418] Step 1407: The UE sends an Application Request to the NAF and / or AP.

[0419] Here, the Application Request carries: B-TID, Server1 FQDN, Server2 FQDN, Server3 FQDN;

[0420] Step 1408a: The NAF and / or AP sends an Application Request to Server 1. The Application Request carries: B-TID and Server 1 FQDN.

[0421] Step 1409a: Server 1 sends a User Info Request to the NAF and / or AP. The User Info Request carries: B-TID and Server 1 FQDN.

[0422] Step 1410a: The NAF and / or AP calculates a new GBA application session key K*1 for Server1 based on the new GBA session key.

[0423] Step 1411a: NAF and / or AP sends HTTP 200 OK to Server 1, carrying: new K*1, key lifetime;

[0424] Step 1412a: Server 1 sends an HTTP 200 OK response to the NAF and / or AP.

[0425] Step 1408b: The NAF and / or AP sends an Application Request to Server 2. The Application Request carries: B-TID and Server 2 FQDN.

[0426] Step 1409b: Server2 sends a User Info Request to the NAF and / or AP. The User Info Request carries: B-TID and Server2 FQDN.

[0427] Step 1410b: The NAF and / or AP calculates a new GBA application session key K*2 for Server2 based on the new GBA session key.

[0428] Step 1411b: NAF and / or AP sends HTTP 200 OK to Server2, carrying: new K*2, key lifetime;

[0429] Step 1412b: Server 2 sends an HTTP 200 OK to the NAF and / or AP.

[0430] Step 1408c: The NAF and / or AP sends an Application Request to Server 3. The Application Request carries: B-TID and Server 3 FQDN.

[0431] Step 1409c: Server 3 sends a User Info Request to the NAF and / or AP. The User Info Request carries: B-TID and Server 3 FQDN.

[0432] Step 1410c: The NAF and / or AP calculates a new GBA application session key K*3 for Server3 based on the new GBA session key.

[0433] Step 1411c: NAF and / or AP sends HTTP 200 OK to Server2, carrying: new K*3, key lifetime;

[0434] Step 1412c: Server 3 sends an HTTP 200 OK to the NAF and / or AP.

[0435] Here, as shown in steps 1408 to 1412 (such as steps 1408a to 1412a, steps 1408b to 1412b, and steps 1408c to 1412c), after the NAF and / or AP receives the identification information of each server from the UE (i.e., the UE executes step 1407), it first sends an Application Request to the server based on the identification information of each server (such as steps 1408a, 1408b, and 1408c). Then, each server returns a User Info Request (such as steps 1409a, 1409b, and 1409c). After receiving the User Info Request returned by each server, the NAF and / or AP generates a corresponding new first key for each server (such as steps 1410a, 1410b, and 1410c) and actively pushes the new first key to each server (such as steps 1411a, 1411b, and 1411c).

[0436] The key generation and key push processes for each server can be performed together, that is, the NAF and / or AP generates a new key for each server after receiving all User Info Requests and then pushes it uniformly; or they can be performed separately, that is, a new key is generated for the server whose User Info Request is received and pushed immediately.

[0437] Step 1413: The NAF and / or AP sends an HTTP 200 OK message to the UE, carrying the Server1 FQDN, Server2 FQDN, and Server3 FQDN.

[0438] Step 1414a: secure communication based on the new K*1;

[0439] Step 1414b: secure communication based on the new K*2;

[0440] Step 1414c: secure communication based on the new K*3.

[0441] FIG15 is a flow chart illustrating a method for determining a second key according to an embodiment of the present application. As shown in FIG15 , a terminal and a second device (e.g., a NAF and / or an AP) re-execute the GBA bootstrapping process and the GBA bootstrapping security association usage process. Ultimately, the terminal and the second device negotiate and determine a shared key (i.e., a second key, also referred to as a GBA session key). The method includes:

[0442] Step 151: GBA boot process. Specifically, step 151 includes:

[0443] Step 1511: The UE sends an authentication request to the BSF, carrying the user identity (UE ID);

[0444] Step 1512: The BSF obtains an authentication vector (AV) from the HSS or UDM based on the user identity.

[0445] The authentication vector is used by BSF to derive the GBA session intermediate key Ks.

[0446] Step 1513: The BSF responds to the UE by sending an HTTP 401 message (carrying RAND and AUTN) and instructing the UE to use GBA authentication.

[0447] Among them, RAND is a random number and AUTN is an authentication token.

[0448] Step 1514: UE performs AKA verification AUTH and generates RES; requests BSF to authorize RES;

[0449] Step 1515: BSF checks RES and calculates Ks=CK||IK;

[0450] RES is the user response (user Response), CK is the encryption key (Cipher Key), and IK is the integrity protection key (Integrity key).

[0451] Step 1516: Send HTTP 200 OK to the UE, carrying the B-TID and the key lifetime corresponding to Ks.

[0452] Step 1517: The UE calculates Ks=CK||IK, and then derives Ks_NAF.

[0453] Step 152: GBA guides the use of security associations. Specifically, step 152 includes:

[0454] Step 1521: The UE sends an application request to the NAF, carrying the B-TID.

[0455] Step 1522: NAF sends a Ks_NAF generation request to BSF, carrying B-TID.

[0456] Step 1523: The BSF generates Ks_NAF (i.e., GBA session key) based on the Ks corresponding to the B-TID, and sends Ks_NAF to the NAF.

[0457] Step 1524: NAF saves Ks_NAF and sends HTTP 200 OK to UE.

[0458] It should be noted that the method for determining the second key can adopt the method shown in Figure 15 above, or can be determined by other methods, such as the UE and the second device (NAF and / or AP) negotiate and determine according to a certain rule, or determine through a predefined protocol, and there is no limitation on the method for determining the second key.

[0459] FIG16 is a schematic diagram of the structure of a communication device provided in an embodiment of the present application. As shown in FIG16 , the device is applied to a first device, and the device includes:

[0460] The first sending module is used to send an instruction message to the terminal; the instruction message is used to instruct the terminal to perform a reboot operation.

[0461] It should be noted that the communication device provided in the above embodiment, when implementing the corresponding communication method, uses the division of the above-mentioned program modules as an example only. In actual applications, the above-mentioned processing can be assigned to different program modules as needed. That is, the internal structure of the first device can be divided into different program modules to complete all or part of the above-described processing. In addition, the device provided in the above embodiment and the embodiment of the corresponding method shown in Figure 6 are based on the same concept. The specific implementation process is detailed in the method embodiment and is not repeated here.

[0462] FIG17 is a schematic diagram of the structure of another communication device provided in an embodiment of the present application. As shown in FIG17 , the device is applied to a terminal, and the device includes:

[0463] A second receiving module is configured to receive an instruction message from the first device; the instruction message is configured to instruct the terminal to perform a reboot operation;

[0464] The second sending module is configured to send a redirection request message to the third device.

[0465] It should be noted that the communication device provided in the above embodiment, when implementing the corresponding communication method, only uses the division of the above-mentioned program modules as an example. In actual applications, the above-mentioned processing can be assigned to different program modules as needed, that is, the internal structure of the terminal can be divided into different program modules to complete all or part of the above-described processing. In addition, the device provided in the above embodiment and the embodiment of the corresponding method shown in Figure 7 are based on the same concept. The specific implementation process is detailed in the method embodiment and is not repeated here.

[0466] FIG18 is a schematic diagram of the structure of another communication device provided in an embodiment of the present application. As shown in FIG18 , the device is applied to a second device, and the device includes:

[0467] The third receiving module is used to receive a first message sent by the terminal; the first message carries identification information of several first devices; the several first devices refer to: several first devices that have established application security associations with the terminal and are provided with services by the second device.

[0468] It should be noted that the communication device provided in the above embodiment, when implementing the corresponding communication method, uses the division of the aforementioned program modules as an example only. In actual applications, the aforementioned processing can be assigned to different program modules as needed, that is, the internal structure of the second device can be divided into different program modules to complete all or part of the aforementioned processing. In addition, the device provided in the above embodiment and the corresponding method embodiment shown in FIG8 are based on the same concept. The specific implementation process is detailed in the method embodiment and is not repeated here.

[0469] FIG19 is a schematic structural diagram of a communication device provided in an embodiment of the present application. As shown in FIG19 , the communication device 190 includes: a processor 1901 and a memory 1902 for storing a computer program that can be run on the processor;

[0470] When the communication device is the first device, the processor 1901 is configured to execute, when running the computer program, the following steps: sending an instruction message to the terminal; the instruction message is configured to instruct the terminal to perform a reboot operation. Specifically, the communication device may also execute the method shown in FIG6 , which is based on the same concept as the method embodiment shown in FIG6 . The specific implementation process is detailed in the method embodiment and is not further described here.

[0471] When the communication device is a terminal, the processor 1901 is configured to execute the computer program to: receive an instruction message from a first device; the instruction message is configured to instruct the terminal to perform a reboot operation; and send a reboot request message to a third device. Specifically, the communication device may also execute the method shown in FIG7 , which shares the same concept as the method embodiment shown in FIG7 . The specific implementation process is detailed in the method embodiment and is not further described here.

[0472] When the communication device is used in a second device, the processor 1901 is configured to execute the computer program to: receive a first message sent by a terminal; the first message carries identification information of multiple first devices; the multiple first devices are multiple first devices that have established application security associations with the terminal and are provided with services by the second device. Specifically, the communication device may also execute the method shown in Figure 8 , which is based on the same concept as the method embodiment shown in Figure 8 . The specific implementation process is detailed in the method embodiment and is not further described here.

[0473] In actual application, the communication device 190 may further include: at least one network interface 1903. The various components in the communication device 190 are coupled together via a bus system 1904. It will be understood that the bus system 1904 is used to implement connection and communication between these components. In addition to the data bus, the bus system 1904 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, various buses are labeled as bus system 1904 in Figure 19. The number of processors 1901 can be at least one. The network interface 1903 is used for wired or wireless communication between the communication device 190 and other devices.

[0474] The memory 1902 in the embodiment of the present application is used to store various types of data to support the operation of the communication device 190.

[0475] The methods disclosed in the above embodiments of the present application can be applied to or implemented by processor 1901. Processor 1901 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in processor 1901 or by software instructions. The above processor 1901 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 1901 can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly implemented as being executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium located in memory 1902. Processor 1901 reads the information in memory 1902 and completes the steps of the above method in conjunction with its hardware.

[0476] In an exemplary embodiment, the communication device 190 can be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.

[0477] The embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon;

[0478] When the computer-readable storage medium is applied to the first device, the computer program, when executed by the processor, performs the following steps: sending an instruction message to the terminal; the instruction message is used to instruct the terminal to perform a reboot operation. Specifically, the computer program can also perform the method shown in Figure 6, which is based on the same concept as the method embodiment shown in Figure 6. The specific implementation process is detailed in the method embodiment and is not further described here.

[0479] When the computer-readable storage medium is applied to a terminal, the computer program, when executed by a processor, performs the following operations: receiving an instruction message from a first device; the instruction message is used to instruct the terminal to perform a reboot operation; and sending a reboot request message to a third device. Specifically, the computer program can also execute the method shown in Figure 7, which is based on the same concept as the method embodiment shown in Figure 7. The specific implementation process is detailed in the method embodiment and is not further described here.

[0480] When the computer-readable storage medium is applied to a second device, the computer program, when executed by a processor, performs the following steps: receiving a first message sent by a terminal; the first message carries identification information of several first devices; the several first devices are: several first devices that have established application security associations with the terminal and are provided with services by the second device. Specifically, the computer program can also execute the method shown in Figure 8, which is based on the same concept as the method embodiment shown in Figure 8. The specific implementation process is detailed in the method embodiment and is not further described here.

[0481] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0482] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0483] In addition, all functional units in the embodiments of the present application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the above-mentioned integrated units can be implemented in the form of hardware or in the form of hardware plus software functional units.

[0484] Those skilled in the art will appreciate that all or part of the steps of the above-mentioned method embodiments may be implemented by hardware associated with program instructions, and the aforementioned program may be stored in a computer-readable storage medium. When the program is executed, the program executes the steps of the above-mentioned method embodiments. The aforementioned storage medium includes various media that can store program codes, such as mobile storage devices, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical disks.

[0485] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

[0486] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not used to describe a specific order or sequence.

[0487] In addition, the technical solutions described in the embodiments of the present application can be arbitrarily combined without conflict.

[0488] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A communication method, performed by a first device, the method comprising: Sending an instruction message to the terminal; The instruction message is used to instruct the terminal to perform a reboot operation.

2. The method according to claim 1, wherein: The method further includes: receiving uplink data from the terminal, the uplink data at least including data encrypted by a first key; the first key is a GBA application session key or an AKMA application session key; The sending the indication message to the terminal includes: When the first key cannot satisfy the key validity condition set by the first device according to the security policy, or when it is necessary to trigger the update of the first key, the indication message is sent to the terminal.

3. The method according to claim 2, characterized in that The first key cannot satisfy the key validity condition set by the first device according to the security policy, including at least one of the following: The first key has reached an upper limit of the number of times it can be reused; The first key has reached the usage time allowed by the application; The first key has been exposed externally.

4. The method according to claim 1, characterized in that The sending the indication message to the terminal includes one of the following: directly sending the indication message to the terminal; The indication message is sent to the second device, and the indication message is sent by the second device to the terminal.

5. The method according to claim 2, characterized in that: The receiving the uplink data from the terminal includes one of the following: receiving the uplink data directly sent by the terminal; The uplink data sent by the second device is received, where the uplink data is sent by the terminal to the second device.

6. The method according to any one of claims 1 to 5, characterized in that: In the case where the first device communicates directly with the terminal, the uplink data and / or the indication message is transmitted based on at least one of the following protocols: Hypertext Transfer Protocol HTTP, Restricted Application Protocol CoAP, Message Queue Telemetry Transmission MQTT Protocol, and preset private protocols.

7. The method according to any one of claims 1 to 5, characterized in that: In the case where the first device communicates with the terminal via the second device, the uplink data and / or the indication message are transmitted based on the HTTP protocol.

8. The method according to claim 1, characterized in that: The method further comprises: Receive a new first key and / or key lifetime sent by the second device, and update the local first key and / or key lifetime.

9. The method according to any one of claims 1 to 8, characterized in that: When the method is applied to a general bootstrapping architecture (GBA) system, the first device is a server, and the second device includes a network application function (NAF) and / or an authentication agent (AP).

10. The method according to any one of claims 1 to 8, characterized in that: When the method is applied to an application layer authentication and key management AKMA system, the first device includes an AF and / or a server, and the second device includes at least one of the following: an AKMA anchor function AAnF, an AKMA authentication agent AAP, an AP, and an application function network element NEF.

11. A communication method, executed by a terminal, the method comprising: receiving an indication message from the first device; The instruction message is used to instruct the terminal to perform a reboot operation; A reboot request message is sent to the third device.

12. The method according to claim 11, characterized in that The receiving the indication message from the first device includes one of the following: receiving the indication message directly sent by the first device; The indication message sent by the second device is received, where the indication message is sent by the first device to the second device.

13. The method according to claim 11, wherein: The method further comprises: Uplink data is sent to the first device, where the uplink data at least includes data encrypted by a first key; the first key is a GBA application session key or an AKMA application session key.

14. The method according to claim 13, wherein: The sending the uplink data to the first device includes one of the following: directly sending the uplink data to the first device; The uplink data is sent to the second device, and the uplink data is sent by the second device to the first device.

15. The method according to any one of claims 11 to 14, wherein: In the case where the first device communicates directly with the terminal, the uplink data and / or the indication message is transmitted based on at least one of the following communication protocols: HTTP, CoAP, MQTT, preset private protocols.

16. The method according to any one of claims 11 to 14, wherein: In the case where the first device communicates with the terminal via the second device, the uplink data and / or the indication message is transmitted based on the HTTP communication protocol.

17. The method according to claim 11, wherein: The method further comprises: A first message is sent to a second device; the first message carries identification information of at least one first device; the at least one first device refers to: at least one first device that has established an application security association with the terminal and is provided with services by the second device.

18. The method according to claim 17, wherein: The method further comprises: A second message sent by a second device is received; the second message carries all or part of the update result of the first device updating the first key and / or the key lifetime.

19. The method according to claim 17, wherein: The method further comprises: Based on the second key, generating a corresponding new first key for each first device in the at least one first device, and saving the new first key; The second key is a shared key negotiated between the terminal and the second device by re-executing the GBA boot process and the GBA boot security association use process.

20. The method according to any one of claims 11 to 18, wherein: When the method is applied to a GBA system, the first device is a server, the second device includes a NAF and / or an AP, and the third device is a bootstrap server function BSF.

21. The method according to any one of claims 11 to 18, wherein: When the method is applied to an AKMA system, the first device includes an AF and / or a server, the second device includes at least one of the following: AAnF, AAP, AP, NEF, and the third device includes: AAnF and / or AAP.

22. A communication method, performed by a second device, the method comprising: receiving a first message sent by a terminal; The first message carries identification information of at least one first device; The at least one first device is: at least one first device that has established an application security association with the terminal and is provided with services by the second device.

23. The method according to claim 22, wherein: The method further comprises: Generate a new first key and / or key lifetime corresponding to each first device according to the identification information of at least one first device in the first message; The new first key and / or the key lifetime is sent to the corresponding first device.

24. The method according to claim 22, wherein: The method further comprises: According to the identification information of at least one first device in the first message, send a third message to each first device respectively, where the third message carries the identification information of the corresponding first device; receiving a fourth message sent by each first device; Generate a corresponding new first key and / or key lifetime for each first device respectively; A corresponding new first key and / or key lifetime is sent to each first device.

25. The method according to claim 22, wherein: The method further comprises: Determining a key transmission mode adopted by the at least one first device; If the first device adopts the push mode, a new first key and / or key lifetime corresponding to the first device is generated according to the identification information of the first device, and the new first key and / or key lifetime is sent to the corresponding first device; and / or, If the first device adopts the request mode, sending a third message to the first device according to the identification information of the first device, where the third message carries the identification information of the first device; receiving a fourth message sent by the first device; generating a new first key and / or a key lifetime corresponding to the first device; A new first key and / or a key lifetime is sent to the first device.

26. The method according to any one of claims 22 to 25, wherein: The method further comprises: Based on the second key, generate a corresponding new first key for each first device and save it; The second key is a shared key negotiated between the terminal and the second device by re-executing the GBA boot process and the GBA boot security association use process.

27. The method according to any one of claims 23 to 25, wherein: The method further comprises at least one of the following: Receiving a result from each first device regarding successful reception of a new first key and / or a key lifetime; Receiving a result of each first device failing to receive a new first key and / or a key lifetime; A result of successful reception of a new first key and / or a key lifetime by the first device is not received.

28. The method according to claim 27, wherein: The method further comprises: A second message is sent to the terminal, where the second message carries an update result of all or part of the first device updating the first key and / or the key lifetime.

29. The method of claim 22, wherein: The method further comprises: Receiving an instruction message from the first device; the instruction message is used to instruct the terminal to perform a reboot operation; The indication message is sent to the terminal.

30. The method of claim 22, wherein: The method further comprises: Receiving uplink data from a terminal, the uplink data at least including service data encrypted by a first key; The uplink data is sent to the first device.

31. The method of claim 22, wherein: When the method is applied to a GBA system, the first device is a server, and the second device includes a NAF and / or an AP.

32. The method of claim 22, wherein: When the method is applied to an AKMA system, the first device includes an AF and / or a server, and the second device includes at least one of the following: AAnF, AAP, AP, NEF.

33. A communication device, applied to a first device, the device comprising: A first sending module, used for sending an indication message to a terminal; The instruction message is used to instruct the terminal to perform a reboot operation.

34. A communication device, applied to a terminal, comprising: A second receiving module, used to receive an indication message from the first device; The instruction message is used to instruct the terminal to perform a reboot operation; The second sending module is used to send a redirection request message to the third device.

35. A communication device, applied to a second device, the device comprising: A third receiving module, used to receive a first message sent by the terminal; The first message carries identification information of at least one first device; The at least one first device refers to: at least one first device that has established an application security association with the terminal and is provided with services by the second device.

36. A communication device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method described in any one of claims 1 to 10 are implemented; or, when the processor executes the program, the steps of the method described in any one of claims 11 to 21 are implemented; or, when the processor executes the program, the steps of the method described in any one of claims 22 to 32 are implemented.

37. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the steps of the method described in any one of claims 1 to 10; or, when the computer program is executed by a processor, it implements the steps of the method described in any one of claims 11 to 21; or, when the computer program is executed by a processor, it implements the steps of the method described in any one of claims 22 to 32.

Citation Information

Patent Citations

  • Method, device and system for updating key of general guide architecture

    CN102238540A

  • Method for generating secret key and device thereof

    CN111464287A

  • Updating method, network side equipment, terminal and computer readable storage medium

    CN115706663A

  • Application Function Key Derivation and Refresh

    US20220278835A1

  • Authentication method and authentication system

    WO2018010150A1