Subscription processing method and device of group secret key and server
By adding a secret key label field to the subscription message, notification messages are only sent when the secret key labels are different, which solves the problem of air interface resource occupation and delay caused by the large amount of GMK information data, and improves server push efficiency.
Patent Information
- Application Number
- CN202310294396.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2024-09-24
AI Technical Summary
In the existing technology, the amount of group key (GMK) information is large, which causes the server to occupy more air interface resources and increase air interface delay when pushing to the terminal.
Add a key label field to the subscription message. If the key label carried in the subscription information is different from the key label maintained in the server, a notification message will be sent to enable the terminal to update the local group group key and key label. Reduce the number of notification messages sent and reduce air interface resource occupation and delay.
By reducing the number of notification messages sent, air interface resource usage and delay are reduced, and server push efficiency is improved.
Smart Images

Figure CN118695250A
Abstract
Description
Technical Field
[0001] The present disclosure relates to wireless communication technology, and more particularly to a method, device and server for processing subscription of a group key. Background Art
[0002] The 3rd Generation Partnership Project (3GPP) is a wireless communication protocol organization whose functions include formulating communication protocols for the second generation mobile communication technology (2G) network, the third generation mobile communication technology (3G) network, the fourth generation mobile communication technology (4G) network and the fifth generation mobile communication technology (5G) network.
[0003] In the prior art, the 3GPP 24481 protocol defines a standard group master key (GMK) subscription and push scheme. Specifically, when the group is an encrypted group, the terminal needs to initiate a subscription message for the GMK information of the encrypted group to the server for the first time and periodically. After receiving the subscription message, the server pushes the GMK information to the terminal.
[0004] However, since the GMK information has a large amount of data, when the server pushes the GMK information to the terminal, it will occupy more air interface resources and increase the air interface delay to a certain extent. Summary of the invention
[0005] The present disclosure provides a subscription processing method, device and server for a group key to solve the problem in the prior art that due to the large amount of GMK information data, when the server pushes GMK information to the terminal, it will occupy more air interface resources and increase the air interface delay to a certain extent.
[0006] According to a first aspect of the present disclosure, a method for processing a subscription of a group key is provided, which is applied to a server and includes:
[0007] Receiving a subscription message sent by a terminal, wherein the subscription message includes a group number of an encryption group, terminal information, and a local key tag;
[0008] Querying a preset maintenance table to obtain a current key tag corresponding to the group number; wherein the preset maintenance table includes a mapping relationship between the group number, the key tag, and the group key information;
[0009] If it is determined that the local key label is different from the current key label, a notification message is generated according to the preset maintenance table, and the notification message is sent to the terminal according to the terminal information, so that the terminal receives and updates the local group key information according to the current group key information, and receives and updates the local key label according to the current key label; wherein the notification message includes the current group key information corresponding to the group number and the current key label.
[0010] According to a second aspect of the present disclosure, a group key subscription processing device is provided, which is applied to a server and includes:
[0011] A receiving unit, configured to receive a subscription message sent by a terminal, wherein the subscription message includes a group number of an encryption group, terminal information, and a local key tag;
[0012] A query unit, used to query a preset maintenance table to obtain a current key label corresponding to the group number; wherein the preset maintenance table includes a mapping relationship between the group number, the key label, and the group key information;
[0013] A matching unit, for generating a notification message according to the preset maintenance table and sending the notification message to the terminal if it is determined that the local key label is different from the current key label; so that the terminal receives and updates the local group key information according to the current group key information, and receives and updates the local key label according to the current key label; wherein the notification message includes the current group key information corresponding to the group number and the current key label.
[0014] According to a third aspect of the present disclosure, a server is provided, including a memory and a processor; wherein:
[0015] The memory is used to store computer programs;
[0016] The processor is used to read the computer program stored in the memory, and execute the subscription processing method for the group key as described in the first aspect according to the computer program in the memory.
[0017] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the subscription processing method for the group key as described in the first aspect is implemented.
[0018] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the subscription processing method for the group key as described in the first aspect.
[0019] The subscription processing method, device and server of the group key provided by the present disclosure include: receiving a subscription message sent by a terminal, the subscription message includes the group number of the encryption group, the terminal information, and the local key tag; querying a preset maintenance table to obtain the current key tag corresponding to the group number; wherein the preset maintenance table includes the mapping relationship between the group number, the key tag, and the group key information; if it is determined that the local key tag is different from the current key tag, a notification message is generated according to the preset maintenance table, and a notification message is sent to the terminal according to the terminal information, so that the terminal receives and updates the local group key information according to the current group key information, and receives and updates the local key tag according to the current key tag; wherein the notification message includes the current group key information corresponding to the group number and the current key tag. In the subscription processing method, device and server of the group key provided by the present solution, a key tag field can be added to the subscription message, and a notification message is sent only if it is determined that the key tag carried in the subscription information is different from the key tag maintained in the server. To a certain extent, the number of notification messages sent can be reduced, which in turn can reduce the air interface resource usage and air interface delay to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0021] Figure 1 A schematic diagram of a process flow of a group key subscription processing method shown in an exemplary embodiment of the present disclosure;
[0022] Figure 2 A schematic diagram of a process flow of a group key subscription processing method according to another exemplary embodiment of the present disclosure;
[0023] Figure 3 A schematic diagram of a subscription process for a group key according to an exemplary embodiment of the present disclosure;
[0024] Figure 4 A structural diagram of a subscription processing device for a group key according to an exemplary embodiment of the present disclosure;
[0025] Figure 5 The present invention is a structural diagram of a server according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0026] 3GPP is a wireless communication protocol organization whose functions include developing communication protocols for 2G networks, 3G networks, 4G networks, and 5G networks.
[0027] In the prior art, the 3GPP 24481 protocol defines a standard GMK subscription and push solution. Specifically, when the group is an encrypted group, the terminal needs to initiate a subscription message for the GMK information of the encrypted group to the server for the first time and periodically, and the server pushes the GMK information to the terminal after receiving the subscription message.
[0028] If the GMK information on the server has not changed, it does not need to be sent again from the perspective of saving resources. However, the 3GPP protocol does not define how the server decides whether it needs to push the GMK information to the terminal again after receiving the subscription message this time. The amount of data in the GMK information is relatively large. One GMK message is about 1M, and there may be multiple encryption groups corresponding to each terminal. If the total amount of data reaches 10M, it needs to be pushed in pieces. Therefore, in the prior art, when the server pushes the GMK information to the terminal, it will, to a certain extent, occupy more air interface resources and increase the air interface delay.
[0029] In order to solve the above technical problems, the solution provided by the present disclosure can add a key tag field in the subscription message, and only send a notification message if it is determined that the key tag carried in the subscription information is different from the key tag maintained in the server. To a certain extent, the number of notification messages sent can be reduced, thereby reducing the air interface resource usage and air interface delay to a certain extent.
[0030] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0031] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.
[0032] Figure 1The following is a flow chart of a method for subscribing to a group key according to an exemplary embodiment of the present disclosure. The method for subscribing to a group key provided in this embodiment can be applied to a server. The method for subscribing to a group key provided in this embodiment can be applied to a 4G network.
[0033] like Figure 1 As shown, the subscription processing method for the group key provided in this embodiment includes:
[0034] Step 101: Receive a subscription message sent by a terminal, where the subscription message includes the group number of the encryption group, terminal information, and a local key tag.
[0035] Among them, the execution entity of the method provided by the present disclosure can be a server.
[0036] The server can obtain subscription messages sent by the terminal.
[0037] The subscription message may include the group number of the encryption group, the terminal information of the terminal, and the local key tag.
[0038] Specifically, multiple terminals may belong to the same encryption group, wherein the group number of the encryption group may be used to identify the encryption group.
[0039] The terminal information may be, for example, a cluster short number of the terminal, wherein the cluster short number of the terminal may be used to identify the terminal.
[0040] The local key tag is the key tag stored in the terminal.
[0041] Step 102, querying a preset maintenance table to obtain a current key label corresponding to the group number; wherein the preset maintenance table includes a mapping relationship between the group number, the key label, and the group key information.
[0042] The preset maintenance table is a maintenance table preset according to actual conditions, and includes a mapping relationship between the group number of the encryption group and the key label.
[0043] Specifically, the preset maintenance table may be queried according to the group number of the encryption group included in the received subscription message to obtain the key tag corresponding to the group number, and the key tag may be determined as the current key tag corresponding to the group number.
[0044] Step 103, if it is determined that the local key label is different from the current key label, a notification message is generated according to a preset maintenance table, and a notification message is sent to the terminal according to the terminal information, so that the terminal receives and updates the local group key information according to the current group key information, and receives and updates the local key label according to the current key label; wherein the notification message includes the current group key information corresponding to the group number and the current key label.
[0045] Specifically, the local key tag corresponding to the group number may be matched with the current key tag, and whether to send a notification message to the terminal may be determined according to the matching result.
[0046] Specifically, if it is determined that the local key tag is different from the current key tag, it can be determined to send a notification message to the terminal.
[0047] Specifically, if it is determined to send a notification message to the terminal, the current group key information and the current key tag corresponding to the group number can be obtained from the preset maintenance table. And a notification message is generated based on the current group key information and the current key tag. Then, a notification message can be sent to the terminal based on the terminal information.
[0048] Specifically, the terminal may receive the notification message, and update the locally stored local group key information according to the current group key information included in the notification message; and at the same time, update the locally stored local key tag according to the current key tag included in the notification message.
[0049] Specifically, the current group key information in the notification message is encrypted information. After receiving the current group key information, the terminal can decrypt it.
[0050] The subscription processing method of the group key provided by the present disclosure includes: receiving a subscription message sent by a terminal, the subscription message includes the group number of the encryption group, the terminal information, and the local key tag; querying a preset maintenance table to obtain the current key tag corresponding to the group number; wherein the preset maintenance table includes the mapping relationship between the group number, the key tag, and the group key information; if it is determined that the local key tag is different from the current key tag, a notification message is generated according to the preset maintenance table, and a notification message is sent to the terminal according to the terminal information, so that the terminal receives and updates the local group key information according to the current group key information, and receives and updates the local key tag according to the current key tag; wherein the notification message includes the current group key information corresponding to the group number and the current key tag. In the method adopted by the present disclosure, a key tag field can be added to the subscription message, and the notification message is sent only if it is determined that the key tag carried in the subscription information is different from the key tag maintained in the server. To a certain extent, the number of notification messages sent can be reduced, and thus to a certain extent, the air interface resource occupancy can be reduced, and the air interface delay can be reduced.
[0051] Figure 2 The flowchart of the group key subscription processing method shown in another exemplary embodiment of the present disclosure is as follows. The group key subscription processing method provided in this embodiment can be applied to a server. The group key subscription processing method provided in this embodiment can be applied to a 4G network.
[0052] like Figure 2 As shown, the subscription processing method for the group key provided in this embodiment includes:
[0053] Step 201, generate group key information of the encryption group, and set the key tag of the encryption group to 1; generate a notification message according to the group key information of the encryption group and the key tag, and send the notification message to the terminal.
[0054] Specifically, the server may respond to an instruction to create an encryption group, create an encryption group according to the instruction, generate group key information of the encryption group, and set the key tag of the encryption group to 1.
[0055] Next, a notification message may be generated according to the group key information and the key tag of the encryption group, and the notification message may be sent to all terminals belonging to the encryption group.
[0056] Specifically, the terminal may receive the notification message sent by the server, and save the group key information and the key label corresponding to the encryption group included in the notification message locally.
[0057] Step 202: Receive a subscription message sent by a terminal, where the subscription message includes the group number of the encryption group, terminal information, and a local key tag.
[0058] Specifically, the principle and implementation of step 202 are similar to those of step 101 and will not be described in detail.
[0059] Step 203: Send a response message indicating receipt of the subscription message to the terminal.
[0060] Specifically, after receiving the subscription message sent by the terminal, the server may send a response message indicating that the subscription message has been received to the terminal.
[0061] The terminal may receive the response message.
[0062] Step 204, query the preset maintenance table to obtain the current key label corresponding to the group number; wherein the preset maintenance table includes the mapping relationship between the group number, the key label, and the group key information.
[0063] Specifically, after step 204, step 205 or step 206 may be executed.
[0064] Specifically, the preset maintenance table may be queried according to the group number of the encryption group included in the received subscription message to obtain the key tag corresponding to the group number, and the key tag may be determined as the current key tag corresponding to the group number.
[0065] In one achievable manner, if it is determined that the group key information in the preset maintenance table is changed, a key tag corresponding to the changed group key information in the preset maintenance table is self-incremented.
[0066] Specifically, if it is determined that the group key information in the preset maintenance table is changed, the key tag corresponding to the changed group key information in the preset maintenance table may be incremented.
[0067] Step 205: If it is determined that the local key tag is the same as the current key tag, no notification message is sent to the terminal.
[0068] Specifically, the local key tag corresponding to the group number may be matched with the current key tag. If it is determined that the local key tag is the same as the current key tag, no notification message is sent to the terminal.
[0069] Step 206, if it is determined that the local key label is different from the current key label, query the preset maintenance table to obtain the current key label corresponding to the group number and the current group key information; generate a notification message based on the current group key information and the current key label; send a notification message to the terminal based on the terminal information, so that the terminal receives and updates the local group key information according to the current group key information, and receives and updates the local key label according to the current key label; wherein the notification message includes the current group key information corresponding to the group number and the current key label.
[0070] Specifically, if it is determined that the local key tag is different from the current key tag, the preset maintenance table can be queried according to the group number of the encryption group included in the subscription message to obtain the current key tag corresponding to the group number and the current group key information.
[0071] Then, a notification message may be generated according to the current key tag and the current group key information, and then the notification message may be sent to the terminal.
[0072] Specifically, the terminal may receive the notification message, and update the local key tag according to the current key tag included in the notification message; and at the same time, update the local group key information according to the current group key information included in the notification message.
[0073] Figure 3 The figure is a schematic diagram of a subscription process of a group key according to an exemplary embodiment of the present disclosure.
[0074] The GMK key tag identifier can be maintained in the group management server (GMS) subsystem (i.e., server) of the common service core (CSC) defined by 3GPP. The key tag can be an etag identifier. The group management client (GMC), i.e., the terminal, needs to carry the latest etag when subscribing to the GMK. The server distinguishes whether it does not need to be pushed to the terminal side based on the etag.
[0075] like Figure 3 As shown, GMS represents the server; GMC represents the terminal. First, before the terminal subscribes to GMK for the first time, the server first generates an encryption group (for example, the encryption group can be encryption group 1), generates the GMK information of the encryption group (the GMK information can be GMK1, for example), and sets the key tag corresponding to the encryption group to 1; and generates a notification message based on the GMK information and the key tag = 1, and sends the notification message to the terminal.
[0076] If the terminal does not receive the notification message, the terminal will send a GMK subscription message to the server for the first time (i.e., the terminal subscribes for the first time) to subscribe to the GMK of encryption group 1. The subscription message for the first subscription includes the group number, terminal information, and local key tag. At this time, the local key tag can be set to 0. The server can receive the subscription message and send a 200OK message to the terminal, indicating that the subscription message has been received.
[0077] At the same time, the server compares the key tag in the server with the key tag carried in the subscription message (i.e., the local key tag). At this time, the key tag in the server = 1, and the key tag carried in the subscription message = 0, which are inconsistent, then a notification message is sent to the terminal, which includes the current GMK encrypted content (i.e., the derived GMK1), key tag = 1; at the same time, the notification message can also include the group number. The terminal can receive the notification message and save it.
[0078] Then, the terminal can send a GMK subscription message to the server regularly (i.e., the effective duration of the subscription, such as 2 hours) according to the preset time interval (i.e., the effective duration of the subscription, such as 2 hours). The local key tag in the subscription message = 1. After receiving the subscription message, the server can send a 200OK message to the terminal to indicate that the subscription message has been received.
[0079] At the same time, the server compares the key tag in the server with the local key tag carried in the subscription message to see if they are consistent. At this time, the key tag in the server = 1, the local key tag carried in the subscription message = 1 (that is, the key tag stored locally by the terminal = 1), if they are consistent, there is no need to send a notification message to the terminal.
[0080] If the server determines that the GMK information maintained in the server has been changed through manual or periodic updates, such as being changed to GMK2. Then the key tag corresponding to the GMK1 is self-incremented, so that the key tag changes from 1 to 2. If a GMK subscription message is received from the terminal at this time, and the subscription message includes the group number, terminal information, and local key tag, and the local key tag carried in the subscription message = 1, a 200OK message can be sent to the terminal to indicate that the subscription message has been received. At the same time, if it is determined that the local key tag carried in the subscription message is inconsistent with the key tag in the server, a notification message is sent to the terminal. The notification message includes the encrypted content of GMK2 (i.e., the derived GMK2), and the key tag = 2; at the same time, the notification message can also include the group number. The terminal can receive the notification message and update the GMK information and key tag stored in the terminal according to the notification message.
[0081] Figure 4The structure diagram of the group key subscription processing device shown in an exemplary embodiment of the present disclosure. The group key subscription processing device provided in this embodiment can be applied to a server. The group key subscription processing device provided in this embodiment can be applied to a 4G network.
[0082] like Figure 4 As shown, the subscription processing device 400 of the group key provided by the present disclosure includes:
[0083] The receiving unit 410 is used to receive a subscription message sent by a terminal, where the subscription message includes a group number of an encryption group, terminal information, and a local key tag;
[0084] The query unit 420 is used to query a preset maintenance table to obtain a current key tag corresponding to the group number; wherein the preset maintenance table includes a mapping relationship between the group number, the key tag, and the group key information;
[0085] The matching unit 430 is used to generate a notification message according to a preset maintenance table if it is determined that the local key label is different from the current key label, and send the notification message to the terminal according to the terminal information, so that the terminal receives and updates the local group key information according to the current group key information, and receives and updates the local key label according to the current key label; wherein the notification message includes the current group key information corresponding to the group number and the current key label.
[0086] The matching unit 430 is specifically used to query the preset maintenance table to obtain the current key label corresponding to the group number and the current group key information;
[0087] Generate a notification message based on the current group key information and the current key tag.
[0088] The query unit 420 is further configured to, if it is determined that the group key information in the preset maintenance table has changed, perform a self-increment process on the key tag corresponding to the changed group key information in the preset maintenance table.
[0089] The matching unit 430 is further configured to not send a notification message to the terminal if it is determined that the local key tag is the same as the current key tag.
[0090] The matching unit 430 is further configured to generate group key information of the encryption group before receiving the subscription message sent by the terminal, and set the key tag of the encryption group to 1;
[0091] A notification message is generated based on the group key information and key tag of the encryption group, and the notification message is sent to the terminal.
[0092] The receiving unit 410 is further configured to send a response message indicating that the subscription message has been received to the terminal after receiving the subscription message sent by the terminal.
[0093] Figure 5 The present invention is a structural diagram of a server according to an exemplary embodiment of the present invention.
[0094] like Figure 5 As shown, the server provided in this embodiment includes:
[0095] Memory 501;
[0096] Processor 502; and
[0097] Computer programs;
[0098] The computer program is stored in the memory 501 and is configured to be executed by the processor 502 to implement any of the above group key subscription processing methods.
[0099] This embodiment further provides a computer-readable storage medium on which a computer program is stored. The computer program is executed by a processor to implement any of the above group key subscription processing methods.
[0100] This embodiment further provides a computer program product, including a computer program. When the computer program is executed by a processor, the computer program implements any of the above-mentioned group key subscription processing methods.
[0101] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0102] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A subscription processing method for a group key, characterized in that: Applicable to servers, including: Receiving a subscription message sent by a terminal, wherein the subscription message includes a group number of an encryption group, terminal information, and a local key tag; Querying a preset maintenance table to obtain a current key tag corresponding to the group number; wherein the preset maintenance table includes a mapping relationship between the group number, the key tag, and the group key information; If it is determined that the local key label is different from the current key label, a notification message is generated according to the preset maintenance table, and the notification message is sent to the terminal according to the terminal information, so that the terminal receives and updates the local group key information according to the current group key information, and receives and updates the local key label according to the current key label; wherein the notification message includes the current group key information corresponding to the group number and the current key label.
2. The method according to claim 1, characterized in that The generating a notification message according to the preset maintenance table includes: Query the preset maintenance table to obtain the current key label corresponding to the group number and the current group key information; A notification message is generated according to the current group key information and the current key tag.
3. The method according to any one of claims 1 to 2, characterized in that: Also includes: If it is determined that the group key information in the preset maintenance table is changed, a key tag corresponding to the changed group key information in the preset maintenance table is automatically incremented.
4. The method according to any one of claims 1 to 2, characterized in that: Also includes: If it is determined that the local key tag is the same as the current key tag, no notification message is sent to the terminal.
5. The method according to any one of claims 1-2, characterized in that: Before receiving the subscription message sent by the terminal, it also includes: Generate group key information of the encryption group, and set the key label of the encryption group to 1; A notification message is generated according to the group key information and the key tag of the encryption group, and the notification message is sent to the terminal.
6. The method according to any one of claims 1-2, characterized in that: After receiving the subscription message sent by the terminal, it also includes: A response message indicating receipt of the subscription message is sent to the terminal.
7. A subscription processing device for a group key, characterized in that: Applicable to servers, including: A receiving unit, configured to receive a subscription message sent by a terminal, wherein the subscription message includes a group number of an encryption group, terminal information, and a local key tag; A query unit, used to query a preset maintenance table to obtain a current key label corresponding to the group number; wherein the preset maintenance table includes a mapping relationship between the group number, the key label, and the group key information; A matching unit, for generating a notification message according to the preset maintenance table and sending the notification message to the terminal if it is determined that the local key label is different from the current key label; so that the terminal receives and updates the local group key information according to the current group key information, and receives and updates the local key label according to the current key label; wherein the notification message includes the current group key information corresponding to the group number and the current key label.
8. A server, characterized in that: comprising a memory and a processor; wherein, The memory is used to store computer programs; The processor is used to read the computer program stored in the memory and execute the method according to any one of claims 1 to 6 according to the computer program in the memory.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the method described in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method described in any one of claims 1 to 6 is implemented.
