Group management method and device and wireless communication terminal
By introducing a majority-agreement decision-making mechanism into the self-organizing network, allowing each node to participate in the allocation of group management permissions, the problem of poor adaptability to changes in the network environment in traditional methods is solved, and more efficient and stable group management is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- XIAN FENGYU INFORMATION TECH CO LTD
- Filing Date
- 2024-11-08
- Publication Date
- 2026-05-08
AI Technical Summary
Traditional group management methods rely on a single control center or predefined rules, which are difficult to adapt to rapidly changing network environments. This results in untimely updates of group keys, affecting communication stability and flexibility, and lacks an effective node joining management mechanism.
By adopting a majority-agreement-based decision-making mechanism, and broadcasting permission request information and voting status information, the network allows each node to participate in the allocation of group management permissions, dynamically adjusts the network structure and resource allocation, and achieves decentralized group management.
It improves the network's robustness and resistance to attacks, enhances the network's flexibility and scalability, reduces the risk of single points of failure, and improves decision-making efficiency and network stability.
Smart Images

Figure CN122002225A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communication technology, and more specifically, to a group management method, apparatus and wireless communication terminal. Background Technology
[0002] With the rapid development of wireless communication technology, communication networking technology has been widely applied in fields such as the Internet of Things, intelligent transportation, and wireless sensor networks. These systems often consist of multiple nodes that are interconnected via wireless communication to achieve data transmission, resource sharing, and collaborative work. In distributed networks, each node possesses a certain degree of autonomy and decision-making ability, participating in the organization and management of the network.
[0003] In self-organizing networks, to ensure secure transmission of information within a group, encryption is typically used. Each group has a unique group key, which only group members can access and decrypt. Traditional group management methods often rely on a single, fixed node responsible for sending the group key and allocating management permissions. When this fixed node malfunctions, the group key may not be updated or sent in a timely manner, thus affecting normal group communication.
[0004] Furthermore, traditional self-organizing networks often rely on a single control center or predefined rules, which lacks flexibility and struggles to adapt to rapidly changing network environments. Especially when dynamic adjustments to network structure or size are needed, the process of node joining becomes difficult to manage effectively, failing to meet the needs of dynamically changing group members. Therefore, how to achieve efficient transmission of group keys and reasonable allocation of management permissions has become a pressing technical problem that needs to be solved. Summary of the Invention
[0005] Firstly, a group management method is provided, the method being applied to a first node in a target group, comprising: broadcasting permission request information on a working channel, the permission request information including the identification information of the first node, the permission request information being used to request management permission of the target group, the management permission including the permission to send a group key to nodes outside the target group; obtaining voting status information, the voting status information including the identification information and voting information of participating nodes, the voting information indicating agreement or rejection; and determining that the first node has obtained management permission of the target group if the voting status information meets the first preset condition, the first preset condition including: the proportion of voting information indicating agreement is greater than a first preset value.
[0006] When acquiring voting status information, the identification and voting information of participating nodes can be collected. By statistically analyzing the number of nodes that agree that the first node should acquire management authority over the target group, the decision-making results of the majority of nodes in the network can be accurately reflected. When the voting status information meets the first preset condition, it can be determined that the first node has acquired management authority over the target group. Adopting a majority-agreement-based decision-making mechanism to achieve a decentralized solution helps reduce the control of a single node over the network formation process, breaking the limitations of a single control center or predefined rules in traditional network construction. This allows every node in the network to participate in voting, jointly determining the allocation of network permissions and network structure, effectively allocating management authority for groups, and improving the stability of self-organizing networks. The decentralized nature helps reduce the risk of single points of failure and improves the network's robustness and resistance to attacks. Simultaneously, it supports a distributed decision-making process, allowing each node in the target group to respond to the first node's permission request information in parallel, thereby improving decision-making efficiency.
[0007] In one implementation, after determining that the first node has obtained management authority over the target group, the method further includes: broadcasting group information of the target group on a public channel, the group information including channel parameters of the working channel; receiving network request information from a third node, the network request information being used to request joining the target group, the third node not belonging to the target group; and, if the number of nodes in the target group is less than a second preset value, sending a group key to the third node, so that the third node uses the group key to establish a communication connection with the nodes in the target group.
[0008] When acquiring voting status information, the identification and voting information of participating nodes can be collected. By counting the number of nodes that agree that the first node should acquire management authority over the target group, the decision-making result of the majority of nodes in the network can be accurately reflected. When the voting status information meets the first preset condition, that is, the percentage of nodes that agree that the first node should acquire management authority over the target group is greater than the first preset value, a third node can be added to the target group. This enhances the flexibility and scalability of the network, allowing its structure to be adaptively adjusted according to the current network status, resource usage, and other factors. By dynamically managing the addition of new nodes, the network connectivity and functionality can be maintained in real time, thereby effectively managing the node joining process and improving the stability of the self-organizing network.
[0009] In the above scheme, by broadcasting permission request information, various nodes in the network are allowed to participate in the allocation process of group management permissions. This breaks the limitations of a single control center or predefined rules in traditional network construction, enabling the network to adaptively adjust its structure based on factors such as current network status, resource usage, and security policies, thereby enhancing the network's flexibility and scalability.
[0010] By controlling the allocation of group management permissions through a voting mechanism among nodes, unauthorized or potentially threatening nodes can be effectively prevented from accessing the network without permission. Only when a sufficient number of nodes (or under specific conditions) agree will the first node acquire management permissions for the target group, thus improving network security to some extent. Simultaneously, the dynamic adjustment of the network structure, based on multi-node consensus, enhances network stability and reliability.
[0011] In one implementation, obtaining voting status information includes: obtaining initial voting status information, the initial voting status information including the identification information of each node in the target group; receiving voting information corresponding to at least one participating voting node; updating the initial voting status information according to the voting information of the participating voting node to obtain the voting status information, wherein the participating voting node belongs to any node in the target group.
[0012] In the above scheme, initial voting status information containing the identifiers of each node is obtained, and the voting process can cover all nodes in the target group. After receiving voting information from participating nodes, the initial voting status information can be updated in real time, dynamically reflecting the voting status of each node in the target group. Any number of participating nodes are allowed to vote, and the voting status information is updated based on their voting information. This flexibility allows the network to adapt to different needs and scenarios. By considering the voting information of each node when updating the voting status information, conflicts caused by inconsistencies between nodes can be reduced. Simultaneously, it provides more accurate and reliable data support for subsequent decision-making processes.
[0013] In one implementation, the voting status information is a response to the permission request information of the target node; updating the initial voting status information according to the voting information of the participating nodes includes: determining the identification information of the target node; if the identification information of the target node is the same as the identification information of the first node, updating the initial voting status information according to the voting information of the participating nodes.
[0014] The above scheme introduces a node voting mechanism. The voting information includes the target node's identification information, ensuring that each node's vote clearly targets a specific goal, reducing the possibility of misunderstanding or misoperation. Furthermore, statistical analysis is only performed based on the voting information of each node when the target node's identification information matches that of a specific requester. This improves the targeting and accuracy of voting, enhances network flexibility and scalability, maintains network connectivity and functionality, reduces the risk of single points of failure, and improves decision-making efficiency.
[0015] In distributed systems, there is no centralized control point; all decisions are made through the collaboration of all nodes. This scheme achieves distributed decision-making by having each node provide voting information, which is then aggregated to determine the final voting result. This helps improve the system's flexibility and scalability while avoiding the risk of single points of failure.
[0016] In one implementation, the voting status information meeting a first preset condition includes: reading target voting information from the voting status information, wherein the target voting information indicates agreement; counting the number of target voting information, and determining that the voting status information meets the first preset condition if the proportion of the number of target voting information is greater than a first preset value.
[0017] In the above scheme, during group management, each node votes based on the permission request information broadcast by the first node, obtaining and broadcasting its own voting status information. By reading the target voting information from these voting status information, the number or proportion of nodes supporting the first node's request can be clearly identified. Simultaneously, counting the number of target voting messages quantifies the number of nodes supporting the first node's request, providing objective data support for subsequent decision-making. Focusing only on data related to the target voting information reduces data processing volume and time.
[0018] Setting target voting information indicates specific information indicating agreement for the first node to acquire management rights over the target group. The system can flexibly adjust voting rules and conditions according to actual needs. For example, a certain number or proportion of votes can be set to pass a request, providing the system with more configuration options and adaptability. In communication networking scenarios, voting mechanisms are an important means of coordinating the behavior of different nodes and promoting network collaboration. In scenarios requiring control over network access permissions or resource allocation, a decision-making mechanism based on voting status information ensures that the first node can only acquire management rights over the target group if the voting status information meets a first preset condition. This system can prevent unauthorized intrusion by malicious nodes and resource abuse.
[0019] In one implementation, if the voting status information does not meet the first preset condition, the voting status information is broadcast; or, after broadcasting the permission request information, a timer is started to obtain a timer result, and if the timer result is less than a first preset time value, the voting status information is broadcast.
[0020] In the above scheme, by broadcasting voting status information, regardless of whether the voting status information meets preset conditions, all nodes in the network can synchronize information in a timely manner, reducing misunderstandings and potential conflicts, and ensuring that all nodes perform subsequent operations based on the same information. When the voting status information indicates that the first node has not obtained management authority over the target group, broadcasting the voting status information can prompt other nodes to participate in the voting process. Similarly, if the first node is still within a preset time period after broadcasting the authority request information, broadcasting the voting status information can serve as a confirmation mechanism, ensuring that all nodes receive the same decision result and adjust their behavior accordingly.
[0021] In rapidly changing network environments, timely broadcasting of voting status information can reduce decision-making delays and uncertainties. This helps nodes adapt to network changes more quickly and respond more accurately. In distributed systems, each node can potentially influence network decisions. By broadcasting voting status information, all participating nodes are informed of the final result, supporting the smooth progress of the distributed decision-making process.
[0022] In the above scheme, frequent broadcast messages in network communication can lead to network congestion, especially when multiple nodes attempt to send information simultaneously. By setting a time interval threshold and restricting the first node from repeatedly broadcasting permission request information within this period, the problem of repeated broadcasting of voting status information can be effectively reduced, thereby alleviating or avoiding network congestion. Limiting the broadcast frequency by setting a preset time period can give the system a buffer time to process incomplete communications, thereby enhancing system stability. By setting a time interval threshold and selecting to broadcast voting status information under this condition, the repeated processing of duplicate or similar voting information within a short period of time can be avoided.
[0023] In one implementation, the broadcast permission request information includes: determining a second preset value for the target group, and broadcasting the permission request information when the number of nodes in the target group is less than the second preset value.
[0024] In the above scheme, by setting a second preset value, permission request information is broadcast when the number of nodes already in the target group has not reached this threshold. This prevents the group from becoming overloaded due to too many nodes. It helps maintain network stability and response speed, preventing communication delays or data loss caused by excessively large group sizes. Controlling the group size within a reasonable range helps optimize overall network performance. By limiting the number of nodes in the group, each node can obtain sufficient network resources to support its communication needs when the group size is moderate, improving resource utilization and network efficiency.
[0025] Secondly, a group management method is provided, the method being applied to a second node in a target group, comprising: acquiring permission request information of a first node on a working channel, the permission request information being used to request management permission of the target group, the management permission including the permission to send a group key to nodes outside the target group; voting on the permission request information of the first node according to preset rules to obtain voting information of the second node, the voting information indicating agreement or rejection; broadcasting the voting information of the second node, causing the first node to update voting status information based on the voting information of the second node, the voting status information including identification information and voting information of participating nodes; wherein, the first node is configured to determine that the first node has obtained management permission of the target group when the voting status information meets a first preset condition, the first preset condition including: the proportion of voting information indicating agreement is greater than a first preset value.
[0026] In the above scheme, the second node (and other nodes in the target group) is allowed to obtain and respond to the first node's permission request information or first voting status information. The entire network can adaptively adjust its structure based on factors such as the current network state, resource usage, and security policies. When the first node initiates a request for management permissions for the target group, the second node and other nodes can participate in the voting to jointly decide whether a new node (the third node) can join the target group. This allows the network to dynamically adjust its size and membership as needed, thereby improving the network's flexibility and scalability.
[0027] A voting mechanism is introduced to manage node joining and network formation decisions. A first node must obtain a sufficient number of votes (i.e., greater than a preset threshold) to gain management access to the target group. This majority-based decision-making mechanism helps reduce the control of a single node over the network formation process, preventing unauthorized intrusion and resource abuse by malicious nodes. By limiting unnecessary node joining, redundancy and conflicts in the network can be reduced, thereby improving overall network efficiency and stability. Simultaneously, a distributed decision-making process is supported, allowing multiple nodes to process permission request information in parallel, improving decision-making efficiency.
[0028] In one implementation, voting on the permission request information of the first node according to preset rules includes: obtaining permission request information of a fourth node, wherein the permission request information of the fourth node is earlier than the permission request information of the first node; when the time interval between the permission request information of the first node and the permission request information of the fourth node is greater than a second preset time value, voting on the permission request information of the first node is performed, and the voting information of the second node indicates agreement; when the time interval between the permission request information of the first node and the permission request information of the fourth node is less than the second preset time value, voting on the permission request information of the first node is performed, and the voting information of the second node indicates rejection.
[0029] In the above scheme, when multiple nodes in the network (such as the first node and the fourth node) initiate voting requests or broadcast voting status almost simultaneously, network congestion and conflicts may occur if not controlled, thus affecting the efficiency and stability of network synchronization. By setting a third preset condition—that is, when the first node and the fourth node are not the same node, and the time interval between obtaining the first voting status information and the permission request information is less than a second preset time value—the permission request information is not responded to. This effectively avoids the repeated processing of duplicate or similar voting information in a short period of time, ensuring that only one node in the target group obtains management authority for the target group at any given time. This prevents multiple nodes in the group from having management authority for the target group, thus avoiding the situation where the number of nodes in the group exceeds the limit, thereby improving the stability of the communication network.
[0030] Thirdly, this disclosure provides a group management device, which is applied to a first node in a target group, the device comprising:
[0031] The sending module is used to broadcast permission request information on the working channel. The permission request information includes the identification information of the first node. The permission request information is used to request management permission for the target group. The management permission includes the permission to send a group key to nodes outside the target group.
[0032] The receiving module is used to acquire voting status information, which includes the identification information and voting information of the participating voting nodes, and the voting information indicates whether they agree or disagree.
[0033] The response module is used to determine that the first node has obtained management authority over the target group when the voting status information meets the first preset condition. The first preset condition includes: the proportion of voting information indicating agreement is greater than a first preset value.
[0034] Fourthly, this disclosure provides a group management device, which is applied to a second node in a target group, the device comprising:
[0035] The receiving module is used to obtain first voting status information or first node permission request information. The receiving module is used to obtain first node permission request information on the working channel. The permission request information is used to request management permission of the target group. The management permission includes the permission to send group key to nodes outside the target group.
[0036] The response module is used to vote on the permission request information of the first node according to preset rules, and obtain the voting information of the second node, wherein the voting information indicates agreement or rejection;
[0037] The sending module is used to broadcast the voting information of the second node, so that the first node updates the voting status information based on the voting information of the second node. The voting status information includes the identification information and voting information of the participating voting nodes.
[0038] The first node is configured to determine that it has obtained management authority over the target group when the voting status information meets the first preset condition. The management authority includes the authority to send group keys to nodes outside the target group.
[0039] Fifthly, an electronic device is provided, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the group management method described in any of the preceding aspects.
[0040] In a sixth aspect, a computer-readable storage medium is provided, which stores computer-executable instructions that, when executed by a processor, are used to implement the group management method described in any of the preceding aspects.
[0041] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0042] The above and / or additional aspects and advantages of this disclosure will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, in which:
[0043] Figure 1 Application scenarios of a group management method provided in this disclosure embodiment Figure 1 ;
[0044] Figure 2 A flowchart illustrating a group management method provided in an embodiment of this disclosure;
[0045] Figure 3Application scenarios of a group management method provided in this disclosure embodiment Figure 2 ;
[0046] Figure 4 A flowchart illustrating a group management method provided in an embodiment of this disclosure;
[0047] Figure 5 This is a schematic diagram of the structure of a group management device provided in an embodiment of the present disclosure;
[0048] Figure 6 This is a schematic diagram of the structure of a group management device provided in an embodiment of the present disclosure. Detailed Implementation
[0049] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in this embodiment will be clearly and completely described below with reference to the accompanying drawings.
[0050] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
[0051] Figure 1 This is a flowchart illustrating the group management method provided in an embodiment of the present disclosure. See also... Figure 1 The group management method provided in this disclosure can be applied to self-organizing networks. For example... Figure 1 As shown, the first node corresponds to Node1, the second node to Node2, the third node to Node3, the fourth node to Node4, the fifth node to Node5, the sixth node to Node6, the seventh node to Node7, and the eighth node to Node8. The self-organizing network includes Node1, Node2, Node4, Node5, Node6, Node7, and Node8. Each node corresponds to one node device. Node1, Node2, Node4, Node5, Node6, Node7, and Node8 belong to the target group, while Node3 does not belong to the target group.
[0052] This disclosure provides a detailed description of the business process of the group management method executed by the first node, as provided in the embodiments of this disclosure.
[0053] Figure 2 This is a flowchart illustrating a group management method provided in an embodiment of the present disclosure, as shown below. Figure 2 As shown, this group management method includes the following steps:
[0054] Step 201: Broadcast permission request information on the working channel. The permission request information includes the identification information of the first node. The permission request information is used to request management permission for the target group. The management permission includes the permission to send the group key to nodes outside the target group.
[0055] In this embodiment, all nodes in the target group belong to the same group, and the target group corresponds to a communication channel. Nodes in the target group can communicate with each other based on the communication channel. In the target group, one node corresponds to one network communication device. See also Figure 1 Node1, Node2, Node4, Node5, Node6, Node7, and Node8 belong to the target group.
[0056] The permission request information includes Node1's identification information, indicating that the permission request is for voting on Node1. Node1 can determine whether to enter permission request mode in response to a specific user action. For example, Node1 can determine whether to enter permission request mode in response to a long press of a key. After entering permission request mode, Node1 can broadcast permission request information via its working channel.
[0057] Step 202: Obtain voting status information, which includes the identification information and voting information of the participating nodes, indicating whether they agree or disagree;
[0058] Table 1 Initial Voting Status Information
[0059]
[0060] According to Table 1, after receiving the permission request information on the working channel, Node2 votes, parses the permission request information, updates the voting information corresponding to Node2 in the initial voting status information to 1, and obtains the voting information. Node2 then sends the voting response information to Node1, which includes Node2's identification information and Node2's voting information.
[0061] Similarly, after receiving the permission request information on the working channel, Node5 votes, parses the permission request information, updates the voting information corresponding to Node5 in the initial voting status information to 1, obtains the voting information, and sends the voting response information to Node1. The voting response information includes Node5's identification information and Node5's voting information.
[0062] Node1 obtains the voting status information based on the identification information and voting information of the participating nodes. Voting information 0 indicates no vote or disagreement, while voting information 1 indicates agreement.
[0063] Table 2 Voting Status Information
[0064]
[0065] Step 203: If the voting status information meets the first preset condition, determine that the first node has obtained the management authority of the target group. The first preset condition includes: the proportion of voting information indicating agreement is greater than the first preset value.
[0066] In this embodiment, the voting information corresponding to each node is obtained. When the voting information is represented by 0 or 1, the target voting information is 1. Assuming the voting information corresponding to Node2 is 1, the voting information corresponding to Node2 in the initial voting status information is updated to 1. After obtaining the voting status information, based on the voting information of each node in the voting status information, and if the voting status information meets the first preset condition, it is determined that Node1 obtains the management authority of the target group.
[0067] The following is a detailed description of the business process after the first node obtains management permissions for the target group.
[0068] In one implementation, after determining that the first node has obtained management authority over the target group, the group management method further includes: broadcasting the group information of the target group on a public channel, the group information including the channel parameters of the working channel; receiving the networking request information of the third node, the networking request information being used to request to join the target group, the third node not belonging to the target group; and if the number of nodes in the target group is less than a second preset value, sending a group key to the third node, so that the third node uses the group key to establish a communication connection with the nodes in the target group.
[0069] Once the first node gains administrative privileges, it can broadcast group information for the target group on public channels (such as public Wi-Fi, Bluetooth broadcasts, or a publicly available communication protocol channel). This group information includes channel parameters (such as channel number, encryption method, and communication protocol version), as well as a basic description of the group and its group ID. In this case, new nodes can identify and attempt to join the group.
[0070] When a third node (which may be a new user device) receives group information on a public channel, it will send a network request message to the first node if it wishes to join the group. The network request message may contain the third node's identification information (such as device ID, MAC address, etc.) and possible user authentication information (such as password, verification code, etc.).
[0071] After receiving the networking request from the third node, the first node checks whether the current number of nodes in the target group is below a preset threshold. This threshold is set to ensure the efficiency and security of group communication, preventing communication delays caused by an excessive number of nodes. If the number of nodes in the target group is less than a second preset value, the first node can send a group key to the third node. The group key is used to encrypt and decrypt internal group communication, ensuring that only group members can read and understand the information within the group.
[0072] After receiving the group key from the first node, the third node can use the target group's group key to establish a secure communication connection with each node in the target group. During this process, the third node can configure parameters according to the target group's working channel parameters to receive and send information on the correct working channel.
[0073] See Figure 1 Node3 refers to a node that has not joined the target group. If the voting status information meets the first preset condition, Node1 is determined to have management authority over the target group. Node1 broadcasts the target group's group information on a public channel, including the channel parameters of the working channel; Node1 receives the network request information from Node3, which is used to request joining the target group; see [link to relevant documentation]. Figure 3 If the number of nodes in the target group is less than 10, Node1 sends the group key to Node3, enabling Node3 to establish a communication connection with the nodes in the target group using the group key.
[0074] In related technologies, during the expansion of the number of nodes in a self-organizing network, the lack of real-time synchronization of group information can easily lead to multiple nodes adding new nodes to the group at the same time, causing the number of nodes in the group to exceed the network's load capacity, thereby affecting the stability and performance of the network.
[0075] In this embodiment of the disclosure, the nodes requesting management permissions for the target group are voted on based on the permission request information, so that only one node in the target group can obtain management permissions for the target group at the same time, avoiding the situation where multiple nodes in the group add new nodes at the same time, and effectively controlling the number of nodes in the target group.
[0076] The following provides a detailed description of the business process for obtaining voting status information provided in the embodiments of this disclosure.
[0077] In one implementation, obtaining voting status information includes: obtaining initial voting status information, which includes the identification information of each node in the target group; receiving voting information corresponding to at least one participating voting node; updating the initial voting status information according to the voting information of the participating voting node; and obtaining the voting status information, wherein the participating voting node belongs to any node in the target group.
[0078] At the start of the network setup process, or when the network topology changes (such as a new node joining or an old node leaving), the system first collects the identification information of each node in the target group. This information may include the node's IP address, MAC address, or other unique identifier. Then, this information is organized into an initial voting status table, where each entry corresponds to a node, and its voting information is initialized to unvoted or pending.
[0079] Each node in the system is equipped with a network communication module to listen for broadcast messages on the network. When a node (a voting node) broadcasts its voting information, the network communication modules of other nodes (including receiving nodes) capture this information. The receiving nodes parse this information, extracting the voting information (such as agree or disagree) and the corresponding node identifier.
[0080] After parsing the voting information and the corresponding node identifier, the receiving node searches for the node's entry in the initial voting status information. Then, it updates the entry's status based on the received voting information. If a node's voting information indicates agreement with the target group's management permission request, the node's voting information is updated to "1"; if it indicates rejection, it is updated to "0". This process continues until all participating nodes have completed their votes, and all voting information has been received and updated in the voting status information.
[0081] After updating the voting information of all participating nodes, the receiving node receives a final voting status message. This message includes the identifiers and corresponding voting information of each node in the target group. The receiving node then broadcasts this voting status message to the other nodes in the target group, ensuring that each node receives the latest voting status information.
[0082] When voting on management authority within a target group, the system can accurately and promptly collect and update voting information from each node. This improves the transparency and fairness of network decision-making, while also enhancing network stability and scalability. Furthermore, the scheme offers flexibility and adaptability, allowing for dynamic adjustments based on changes in network size and the number of nodes.
[0083] The following provides a detailed description of the business process for determining voting status information provided in the embodiments of this disclosure.
[0084] In one implementation, the voting status information is a response to the permission request information of the target node; updating the initial voting status information based on the voting information of the participating nodes includes: determining the identification information of the target node; if the identification information of the target node is the same as the identification information of the first node, updating the initial voting status information based on the voting information of the participating nodes.
[0085] The identification information of the target node is determined. If the identification information of the target node is the same as that of Node1, the voting status information is determined based on the voting information corresponding to each node. By comparing the identification information of the target node in the voting status information with the identification information of Node1, it can be determined whether the voting status information is a table obtained from voting on Node1, thereby accurately counting the votes for Node1.
[0086] In this embodiment, when there are multiple permission request messages in the target group, the voting information includes the identification information of the target node. When Node1 obtains the voting status information, it determines whether the voting status information is a response to the permission request message broadcast by Node1 based on the identification information of the target node.
[0087] In this embodiment, when there are multiple nodes in the target group requesting management rights for the target group, it is possible that some nodes in the target group vote for one of the nodes requesting management rights for the target group, while some nodes vote for another node requesting management rights for the target group. In order to obtain the voting information of Node1, after obtaining the voting status information, the identification information of the target node included in the voting information can be compared with the identification information of Node1 to determine whether the voting status information is a table obtained by voting for Node1.
[0088] The following provides a detailed description of the business process for determining voting status information provided in the embodiments of this disclosure.
[0089] In one implementation, the voting status information meets a first preset condition, including: reading target voting information from the voting status information, where the target voting information indicates agreement; counting the number of target voting information, and determining that the voting status information meets the first preset condition if the proportion of the number of target voting information is greater than a first preset value.
[0090] In this embodiment, referring to Table 3, the number of target voting information entries is counted in the voting status information. If the number of target voting information entries is greater than a first preset value, the voting status information indicates that Node1 has obtained management authority over the target group. If the number of target voting information entries is less than or equal to the first preset value, the voting status information indicates that Node1 has not obtained management authority over the target group. To avoid two or more nodes in the target group simultaneously obtaining management authority over the target group, the first preset value can be set to 50%.
[0091] Table 3 Voting Status Information
[0092]
[0093] The following section details the situations where the voting status information does not meet the first preset condition.
[0094] In one implementation, if the voting status information does not meet the first preset condition, the voting status information is broadcast; or, after broadcasting the permission request information, a timer is started to obtain the timer result, and if the timer result is less than the first preset time value, the voting status information is broadcast.
[0095] After receiving the permission request from the first node, each node votes according to preset rules and generates its own voting information. The first node or a designated node is responsible for collecting and integrating this voting information to form complete voting status information. The voting status information should include the identifiers of the participating nodes and the voting information (agree or disagreement).
[0096] The first node or a designated node analyzes the integrated voting status information and calculates the number of votes indicating agreement. This number is compared with a preset threshold (i.e., the first preset condition). If the number of agreement votes does not reach the threshold, the voting status information is determined to not meet the first preset condition. When the voting status information does not meet the first preset condition, the first node or the designated node encapsulates the voting status information into a broadcast message. A suitable broadcast channel (such as a network channel, physical channel, etc.) is selected, and the broadcast message is sent to that channel so that all group members can receive it.
[0097] The first node broadcasts the permission request information to all group members. This is typically done via a network channel, such as a local area network (LAN), wide area network (WAN), or the internet. Simultaneously or after broadcasting the permission request information, the first node or a designated node starts a timer. The purpose of the timer is to record the elapsed time from the start of the permission request broadcast to the current moment. During the timer, the first node or the designated node continuously receives and processes voting information from other nodes. This information is integrated into the voting status information and updated in real time.
[0098] When the timer reaches a preset time point (i.e., the first preset time value), the first node or a designated node will check the timing result. If the timing result is less than the first preset time value, it means there is still enough time for other members to participate in the vote or to understand the current voting progress. In this case, the current voting status information needs to be broadcast. When broadcasting the voting status information, some additional information can be attached, such as the broadcast timestamp and the sender's identity, so that the receiver can verify the authenticity and completeness of the information and ensure that group members can understand the current voting progress and results in a timely manner.
[0099] The following provides a detailed description of the number of nodes in the target group for management provided in the embodiments of this disclosure.
[0100] In one implementation, broadcasting permission request information includes: determining a second preset value for the target group, and broadcasting permission request information if the number of nodes already in the target group is less than the second preset value.
[0101] During system initialization or configuration, a second preset value is set for the target group based on network design requirements and resource constraints. This threshold represents the maximum number of nodes the group can operate stably and efficiently. Node1 (or the designated management node) in the target group is responsible for monitoring the number of nodes currently joined to the group. Changes in group membership can be tracked by maintaining a node list or using other data structures.
[0102] When the number of nodes already in the group is detected to be less than a second preset value, Node1 will construct a message containing permission request information and broadcast it through the communication channel corresponding to the target group. The permission request information should include Node1's identification information to indicate that this is a request for a vote on Node1. It may also include the purpose of the request, the validity period of the vote, and other information. Upon receiving the permission request information, other nodes in the target group will vote according to their own status and policies, generating corresponding voting information. Node1 will collect this voting information to obtain voting status information and determine the voting status based on this information. If the voting status information meets the first preset condition, Node1 is determined to have obtained management privileges for the target group.
[0103] This disclosure provides a detailed description of the business process of the group management method executed by the second node, as provided in the embodiments of this disclosure.
[0104] Figure 4 This is a flowchart illustrating a group management method provided in an embodiment of the present disclosure. The method is applied to a second node in a target group, such as... Figure 4 As shown, the group management method may include the following steps:
[0105] Step 401: Obtain the permission request information of the first node in the working channel. The permission request information is used to request management permissions for the target group. The management permissions include the permission to send the group key to nodes outside the target group.
[0106] The working channel can be a network channel based on a certain communication protocol (such as TCP / IP, UDP, etc.). Node2 can capture information from Node1 or other nodes in real time by listening to the working channel. When Node2 receives information from Node1, it parses the information. The parsing process includes identifying the information format, verifying the integrity of the information (such as through checksums or digital signatures), and extracting key content from the information, such as the type of permission request, the identity of the requester, and the content of the request.
[0107] Step 402: Vote on the permission request information of the first node according to the preset rules to obtain the voting information of the second node, which indicates agreement or rejection;
[0108] See 1. After receiving the permission request information on the working channel, Node2 votes, parses the permission request information, updates the voting information corresponding to Node2 in the initial voting status information to 1, and obtains the voting information. Node2 sends the voting response information to Node1. The voting response information includes Node2's identification information and Node2's voting information.
[0109] Step 403: Broadcast the voting information of the second node, so that the first node updates the voting status information based on the voting information of the second node. The voting status information includes the identification information and voting information of the participating voting nodes. The first node is configured to determine that it has obtained management authority over the target group if the voting status information meets the first preset condition. The first preset condition includes: the proportion of voting information indicating agreement is greater than the first preset value.
[0110] Node2 can construct its voting information into a broadcast message. The broadcast message includes Node2's identity, voting information, and any other relevant information (such as the vote timestamp). Node2 can choose a suitable broadcast channel to send its voting information. This channel can be the same network or physical channel as its working channel, or a channel specifically designed for broadcast messages. Node2 then sends its constructed broadcast message to the selected broadcast channel.
[0111] In one implementation, voting on the permission request information of the first node according to preset rules includes: obtaining the permission request information of the fourth node, wherein the permission request information of the fourth node is earlier than the permission request information of the first node; when the time interval between the permission request information of the first node and the permission request information of the fourth node is greater than a second preset time value, voting on the permission request information of the first node, wherein the voting information of the second node indicates agreement; when the time interval between the permission request information of the first node and the permission request information of the fourth node is less than the second preset time value, voting on the permission request information of the first node, wherein the voting information of the second node indicates rejection.
[0112] In this embodiment, Node2 (or any node configured to receive voting information) continuously listens for broadcast messages on the network. These broadcast messages may contain permission request information or voting information from different nodes. When Node2 receives a broadcast message, it parses the message content to determine its type (whether it is permission request information or voting information) and the identifier of the node that sent the message (in this example, the fourth node).
[0113] If a broadcast message meets the conditions for being used as voting status information (i.e., it contains a valid voting request or voting information), then Node2 stores the information as permission request information and records the time of receipt.
[0114] Within a preset time period after Node1 broadcasts permission request information, if Node2 receives permission request information or voting status information broadcast by other nodes, Node2 will not vote to avoid multiple permission request information in the target group, which would result in multiple nodes having management permissions for the target group.
[0115] In this embodiment, after receiving the permission request information, Node2 calculates the time interval between receiving the first voting status information (which may be the permission request information or voting information broadcast by Node1) and the currently received permission request information. This time interval needs to be compared with a preset time value. If the time interval is less than the preset time value, it means that the reception times of the two voting status information are very close, which may indicate some form of congestion in the network or rapid interaction between nodes. To avoid potential conflicts or unnecessary processing overhead, Node2 decides not to respond to the permission request information.
[0116] Figure 5 This is a schematic diagram of a group management device executed by a first node, provided as an embodiment of this disclosure. Figure 5 As shown, the group management device includes:
[0117] The sending module 501 is used to broadcast permission request information on the working channel. The permission request information includes the identification information of the first node. The permission request information is used to request management permission of the target group. The management permission includes the permission to send a group key to nodes outside the target group.
[0118] The receiving module 502 is used to obtain voting status information, which includes the identification information of the participating voting nodes and voting information, wherein the voting information indicates agreement or rejection.
[0119] The response module 503 is used to determine that the first node has obtained management authority over the target group when the voting status information meets the first preset condition. The first preset condition includes: the proportion of voting information indicating agreement is greater than a first preset value.
[0120] Figure 6 This is a schematic diagram of a group management device executed by a second node, provided as an embodiment of this disclosure. Figure 6 As shown, the group management device includes:
[0121] The receiving module 601 is used to obtain first voting status information or first node permission request information. The receiving module is used to obtain first node permission request information on the working channel. The permission request information is used to request management permission of the target group.
[0122] The response module 602 is used to vote on the permission request information of the first node according to preset rules to obtain the voting information of the second node, wherein the voting information indicates agreement or rejection;
[0123] The sending module 603 is used to broadcast the voting information of the second node, so that the first node updates the voting status information based on the voting information of the second node. The voting status information includes the identification information of the participating voting nodes and the voting information. The first node is configured to determine that the first node has obtained the management authority of the target group when the voting status information meets the first preset condition. The first preset condition includes: the proportion of voting information indicating agreement is greater than the first preset value.
[0124] This disclosure provides a computer program product, including a computer program that, when executed by a processor, implements the methods provided in the foregoing embodiments.
[0125] The description of the various embodiments above tends to emphasize the differences between the various embodiments, while the similarities or commonalities can be referred to each other. The features disclosed in the various product embodiments provided in this disclosure can be arbitrarily combined to obtain new product embodiments without conflict.
[0126] The product embodiments described above are merely illustrative. For example, the division of units is only a logical functional division. In actual implementation, there may be other division methods, such as multiple units or components being combined, integrated into another system, or some features being ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed may be through some interfaces. The indirect coupling or communication connection between units may be electrical or mechanical.
[0127] This specification uses the phrase "in embodiments," which may refer to one or more embodiments in the same or different embodiments. The terms "comprising," "including," "having," etc., used with respect to embodiments of this disclosure are synonymous. The ordinal adjectives "first," "second," and "third" indicate only different instances of similar objects being referenced and are not intended to imply that the objects so described must be in a given sequence in time, space, order, or any other way.
[0128] The above are merely specific embodiments of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any changes or substitutions within the technical scope disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.
Claims
1. A group management method, characterized in that, The method is applied to the first node in the target group, and the method includes: The permission request information is broadcast on the working channel. The permission request information includes the identification information of the first node. The permission request information is used to request management permission of the target group. The management permission includes the permission to send the group key to nodes outside the target group. Obtain voting status information, which includes the identification information and voting information of the participating voting nodes, and the voting information indicates whether they agree or disagree; If the voting status information meets the first preset condition, it is determined that the first node has obtained the management authority of the target group. The first preset condition includes: the proportion of voting information indicating agreement is greater than a first preset value.
2. The group management method according to claim 1, characterized in that, After determining that the first node has obtained management permissions for the target group, the method further includes: The group information of the target group is broadcast on a public channel, and the group information includes the channel parameters of the working channel; Receive network request information from a third node, the network request information being used to request to join the target group, the third node not belonging to the target group; If the number of nodes in the target group is less than a second preset value, a group key is sent to the third node, so that the third node uses the group key to establish a communication connection with the nodes in the target group.
3. The group management method according to claim 1, characterized in that, Obtain voting status information, including: Obtain initial voting status information, which includes the identification information of each node in the target group; Receive voting information corresponding to at least one participating voting node, update the initial voting status information according to the voting information of the participating voting node, and obtain the voting status information, wherein the participating voting node belongs to any node in the target group.
4. The group management method according to claim 3, characterized in that, The voting status information is a response to the permission request information of the target node; updating the initial voting status information according to the voting information of the participating nodes includes: Determine the identification information of the target node; If the identification information of the target node is the same as the identification information of the first node, the initial voting status information is updated according to the voting information of the participating voting nodes.
5. The group management method according to claim 1, characterized in that, The voting status information meets the first preset condition, including: Read the target voting information from the voting status information, where the target voting information indicates agreement; The number of target voting information is counted, and if the proportion of the number of target voting information is greater than a first preset value, the voting status information is determined to meet the first preset condition.
6. The group management method according to claim 1, characterized in that, The method further includes: If the voting status information does not meet the first preset condition, the voting status information is broadcast. Alternatively, after broadcasting the permission request information, a timer is started to obtain the timer result. If the timer result is less than a first preset time value, the voting status information is broadcast.
7. The group management method according to claim 1, characterized in that, The broadcast permission request information includes: A second preset value for the target group is determined. If the number of nodes in the target group is less than the second preset value, the permission request information is broadcast.
8. A group management method, characterized in that, The method is applied to the second node in the target group, and the method includes: The permission request information of the first node is obtained in the working channel. The permission request information is used to request management permission of the target group. The management permission includes the permission to send the group key to nodes outside the target group. The permission request information of the first node is voted on according to preset rules to obtain the voting information of the second node, and the voting information indicates agreement or rejection; The voting information of the second node is broadcast, so that the first node updates the voting status information based on the voting information of the second node. The voting status information includes the identification information and voting information of the participating voting nodes. The first node is configured to determine that it has obtained management authority over the target group when the voting status information meets a first preset condition. The first preset condition includes that the proportion of voting information indicating agreement is greater than a first preset value.
9. The group management method according to claim 8, characterized in that, The permission request information of the first node is voted on according to preset rules, including: Obtain the permission request information of the fourth node, wherein the permission request information of the fourth node is earlier than the permission request information of the first node; When the time interval between the permission request information of the first node and the permission request information of the fourth node is greater than a second preset time value, a vote is taken on the permission request information of the first node, and the voting information of the second node indicates agreement. When the time interval between the permission request information of the first node and the permission request information of the fourth node is less than a second preset time value, a vote is taken on the permission request information of the first node, and the voting information of the second node indicates rejection.
10. A group management device, characterized in that, The device is applied to a first node in the target group, and the device includes: The sending module is used to broadcast permission request information on the working channel. The permission request information includes the identification information of the first node. The permission request information is used to request management permission for the target group. The management permission includes the permission to send a group key to nodes outside the target group. The receiving module is used to acquire voting status information, which includes the identification information and voting information of the participating voting nodes, and the voting information indicates whether they agree or disagree. The response module is used to determine that the first node has obtained management authority over the target group when the voting status information meets the first preset condition. The first preset condition includes: the proportion of voting information indicating agreement is greater than a first preset value.
11. A group management device, characterized in that, The device is applied to a second node in a target group, and the device includes: The receiving module is used to obtain permission request information from the first node on the working channel. The permission request information is used to request management permission for the target group, and the management permission includes the permission to send a group key to nodes outside the target group. The response module is used to vote on the permission request information of the first node according to preset rules, and obtain the voting information of the second node, wherein the voting information indicates agreement or rejection; The sending module is used to broadcast the voting information of the second node, so that the first node updates the voting status information based on the voting information of the second node. The voting status information includes the identification information and voting information of the participating voting nodes. The first node is configured to determine that it has obtained management authority over the target group when the voting status information meets the first preset condition. The management authority includes the authority to send group keys to nodes outside the target group.
12. A wireless communication terminal, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the group management method as described in any one of claims 1-7 or 8-9.