Method and system for decomposing door lock communication group

By generating and encrypting sub-feature vectors through the master lock, combined with the signature verification and dynamic splitting mechanism of the multicast router, the single point of failure and grouping accuracy issues in the management of smart lock group communication groups are resolved, achieving secure and efficient decomposition and improved communication security.

CN121151298AActive Publication Date: 2025-12-16DESSMANN CHINA MACHINERY & ELECTRONICS

Patent Information

Application Number
CN202511676541.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-17
Publication Date
2025-12-16
Estimated Expiration
2045-11-17

AI Technical Summary

Technical Problem

Existing technologies in the communication group management of smart door locks suffer from single point of failure risk, low grouping accuracy, high communication redundancy, and difficulty in quickly responding to split requests in the local network, resulting in insufficient network efficiency and security.

Method used

The master lock generates sub-feature vectors and encrypts them before sending them to the local storage of member locks. After the multicast router verifies the validity of the signature, it initiates the splitting process, dynamically splits the multicast tree, and detects invalid interfaces to achieve fine-grained decomposition at the interface level.

Benefits of technology

It achieves secure and reliable, interface-level fine-grained door lock group decomposition, improves splitting efficiency and communication security, avoids the existence of invalid interfaces, and ensures network efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121151298A_ABST
    Figure CN121151298A_ABST
Patent Text Reader

Abstract

The invention discloses a door lock communication group decomposition method and system, and the method comprises the steps: encrypting and issuing a sub-feature vector to a local storage of a corresponding member door lock through a secure channel according to the sub-feature vector generated by a main control door lock and a binding relation between the sub-feature vector and the member door lock; generating a multicast message containing a target subgroup feature vector and a digital signature according to a splitting request sent by a main control door lock; according to the result of querying the local ARP table and the subgroup registry by the multicast router, determining the subgroup to which the door lock connected with each interface belongs, and registering the corresponding sub-feature vector for the corresponding interface in the multicast forwarding table; and according to a detection message sent by each sub-group master control door lock and a confirmation message of a member door lock, the multicast router identifies and removes sub-feature vector registration of an interface which is not associated with an effective door lock, and communication group decomposition is completed. By utilizing the embodiment of the invention, safe, reliable and interface-level refined door lock group decomposition can be realized, and the splitting efficiency and the communication safety are improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of communication, in particular to a door lock communication group decomposition method and system. BACKGROUND

[0002] In recent years, with the large-scale deployment of intelligent door lock groups, how to achieve safe and efficient sub-group dynamic splitting has become a key challenge. Existing communication group management methods mostly rely on centralized servers for member authentication and grouping, which has the risk of single point of failure and is difficult to quickly respond to splitting requests in local networks. Traditional multicast technology lacks close binding with physical device identities and cannot effectively verify the legitimacy of door lock devices, resulting in low grouping accuracy, high communication redundancy, and invalid interfaces in the splitting process, affecting network efficiency and security. SUMMARY

[0003] The purpose of the present application is to provide a door lock communication group decomposition method and system to solve the problems in the prior art and achieve safe and reliable, interface-level refined door lock group decomposition, improving splitting efficiency and communication security.

[0004] One embodiment of the present application provides a door lock communication group decomposition method, which comprises: Pre-configuration and sub-feature vector distribution: according to the sub-feature vector generated by the master door lock and its binding relationship with the member door lock, the sub-feature vector is encrypted and distributed to the corresponding member door lock for local storage through a secure channel; Splitting request triggering and verification: according to the splitting request issued by the master door lock, a multicast message containing the target sub-group feature vector and digital signature is generated, and the multicast router verifies the validity of the signature and starts the splitting process after verification; Multicast tree dynamic splitting and interface registration: according to the results of querying the local ARP table and sub-group registration table by the multicast router, the sub-group to which each interface connected door lock belongs is determined, and the corresponding sub-feature vector is registered in the multicast forwarding table for the corresponding interface; Invalid interface detection and simplification: according to the detection message issued by each sub-group master door lock and the confirmation message of the member door lock, the multicast router identifies and removes the sub-feature vector registration of the interface not associated with the valid door lock, and completes the decomposition of the communication group.

[0005] Optionally, the pre-configuration and sub-feature vector distribution comprises: Sub-feature vector generation: according to the device registration table maintained by the master door lock, sub-feature vectors bound to each sub-communication group are generated; Secure distribution: according to the IP address and sub-feature vector mapping relationship in the device registration table, the sub-feature vector is encrypted and distributed to the corresponding member door lock through the control channel; Local storage: According to the received encrypted sub-feature vector and the mapping relationship, each member door lock decrypts and stores it locally; Global communication group maintenance: According to the master feature vector shared by all door locks, the multicast tree structure and communication of the global communication group are maintained.

[0006] Optionally, the split request trigger and verification include: Split request generation: According to the split operation of the master door lock, a split request message containing the target subgroup feature vector, the member IP address list, the timestamp, and the digital signature is constructed; Multicast sending: According to the preset multicast address, the master door lock sends the split request message; Message verification: According to the split request message received by the multicast router, the message format, the timestamp freshness, and the digital signature are verified in turn; Split process start: According to the result of successful verification, the multicast router parses and stores the target subgroup feature vector and the member IP address to the local subgroup registration table, and starts the split process.

[0007] Optionally, the multicast tree dynamic splitting and interface registration include: ARP table query: According to the ARP table of the multicast router, the IP address information of the devices connected by each interface is obtained; Subgroup association judgment: According to the IP address list in the subgroup registration table, the matching relationship between it and the IP address in the ARP table is compared; Interface feature registration: According to the matching result, the corresponding sub-feature vector is registered in the multicast forwarding table (*, G) for the interface connected to the target subgroup member; Forwarding table update: According to the registration result, the feature vector set and the out-interface list of the multicast forwarding table are updated.

[0008] Optionally, the invalid interface detection and simplification include: Detection message sending: According to the timing trigger of each subgroup master door lock, a detection message containing the feature vector of the group and a random number is multicast sent; Confirmation message feedback: According to the detection message received by the member door lock, a confirmation message containing the same feature vector and random number is multicast replied; Interface validity judgment: According to whether the multicast router receives the matched confirmation message from the interface within the set timeout, the validity of the interface for the feature vector is judged; Invalid interface cleaning: According to the interface judged as invalid, the multicast router removes it from the forwarding interface list of the feature vector, and updates the multicast forwarding table.

[0009] Another embodiment of the application provides a decomposition system of a door lock communication group, the system comprising: The distribution module is configured to pre-configure and distribute sub-feature vectors, that is, according to the sub-feature vector generated by the master door lock and the binding relationship between the sub-feature vector and the member door lock, the sub-feature vector is encrypted and sent to the corresponding member door lock for local storage through a secure channel. The trigger module is configured to trigger and verify splitting, that is, according to the splitting request issued by the master door lock, a multicast message containing a target sub-group feature vector and a digital signature is generated, and the splitting process is started after the multicast router verifies the validity of the signature. The splitting module is configured to dynamically split the multicast tree and register the interface, that is, according to the results of the multicast router querying the local ARP table and the sub-group registration table, the sub-group to which the door lock connected to each interface belongs is determined, and the corresponding sub-feature vector is registered in the multicast forwarding table for the corresponding interface. The detection module is configured to detect and simplify invalid interfaces, that is, according to the detection message issued by the master door lock of each sub-group and the confirmation message of the member door lock, the multicast router identifies and removes the sub-feature vector registration of the interface not associated with the valid door lock, and completes the decomposition of the communication group.

[0010] Another embodiment of the present application provides a storage medium having a computer program stored therein, wherein the computer program is configured to execute the method described in any one of the above embodiments when running.

[0011] Another embodiment of the present application provides an electronic device comprising a memory and a processor, wherein the memory has a computer program stored therein, and the processor is configured to execute the computer program to perform the method described in any one of the above embodiments.

[0012] Compared with the prior art, the decomposition method of the door lock communication group provided by the present application can encrypt and send the sub-feature vector to the corresponding member door lock for local storage through a secure channel according to the sub-feature vector generated by the master door lock and the binding relationship between the sub-feature vector and the member door lock; generate a multicast message containing a target sub-group feature vector and a digital signature according to the splitting request issued by the master door lock; determine the sub-group to which the door lock connected to each interface belongs according to the results of the multicast router querying the local ARP table and the sub-group registration table, and register the corresponding sub-feature vector in the multicast forwarding table for the corresponding interface; and according to the detection message issued by the master door lock of each sub-group and the confirmation message of the member door lock, the multicast router identifies and removes the sub-feature vector registration of the interface not associated with the valid door lock, and completes the decomposition of the communication group, so as to realize the safe and reliable, interface-level fine door lock group decomposition, and improve the splitting efficiency and communication security. BRIEF DESCRIPTION OF DRAWINGS

[0013] Figure 1 The hardware structure block diagram of the computer terminal of the decomposition method of the door lock communication group provided by the embodiment of the present application is provided. Figure 2A flowchart of a door lock communication group decomposition method provided by an embodiment of the present application is shown in the figure. Figure 3 A door lock communication group decomposition mechanism diagram provided by an embodiment of the present application is shown in the figure. Figure 4 A structure diagram of a door lock communication group decomposition system provided by an embodiment of the present application is shown in the figure. DETAILED DESCRIPTION

[0014] The embodiments described below with reference to the drawings are exemplary and are only used to explain the present application and cannot be interpreted as a limitation of the present application.

[0015] In the intelligent community security and smart home scene, the intelligent door lock multi-party video communication group system has been widely used. In actual use, there is often a need to split a large-scale communication group into several sub-communication groups. For example, in a public security communication group participated by the residents of an entire building, it may be necessary to split the communication group into multiple small discussion groups according to the unit building or the urgency of the topic. In the prior art, if the communication group splitting is to be realized, the terminal usually needs to actively exit the current communication group and initiate a new communication group, which is cumbersome and will cause communication interruption, re-negotiation of session keys and network addresses, and poor user experience. In addition, the traditional scheme cannot realize smooth splitting while maintaining the original multicast routing structure, and the network resource utilization rate is low. Therefore, there is an urgent need for a lightweight and dynamic communication group decomposition scheme that can quickly complete communication group splitting based on the existing network architecture without the need for the terminal to re-access.

[0016] The embodiment of the present application first provides a door lock communication group decomposition method, which can be applied to electronic devices such as computer terminals, specifically, ordinary computers, etc.

[0017] The following will be described in detail taking a computer terminal as an example. Figure 1 A hardware structure block diagram of a computer terminal of a door lock communication group decomposition method provided by an embodiment of the present application is shown in the figure. Figure 1 As shown in the figure, the computer device includes a processor, a memory and a network interface connected through a system bus, wherein the memory can include a non-volatile storage medium and an internal memory.

[0018] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, which, when executed, can cause the processor to execute any door lock communication group decomposition method.

[0019] The processor is used to provide computing and control capabilities to support the operation of the entire computer device.

[0020] The internal memory provides an environment for the running of a computer program in a non-volatile storage medium, which, when executed by the processor, can enable the processor to perform any one of the decomposition methods of the door lock communication group.

[0021] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art can understand that, Figure 1 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0022] It should be understood that the processor can be a central processing unit (CPU), and the processor can also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0023] Referring to Figure 2 and Figure 3 Embodiments of the present application provide a decomposition method of a door lock communication group, which can include the following steps: S201, pre-configuration and sub-feature vector distribution: according to the sub-feature vector generated by the master door lock and its binding relationship with the member door lock, the sub-feature vector is encrypted and distributed to the corresponding member door lock through a secure channel; specifically, the pre-configuration and sub-feature vector distribution includes: Sub-feature vector generation: according to the device registration table maintained by the master door lock, generate the sub-feature vector bound to each sub-communication group; Secure distribution: according to the IP address and sub-feature vector mapping relationship in the device registration table, the sub-feature vector is encrypted and distributed to the corresponding member door lock through the control channel; Local storage: according to the received encrypted sub-feature vector and the mapping relationship, each member door lock stores it after decryption in the local; Global communication group maintenance: according to the master feature vector shared by all door locks, maintain the multicast tree structure and communication of the global communication group.

[0024] S202, split request triggering and verification: according to the split request issued by the master lock, a multicast message containing the target subgroup feature vector and digital signature is generated, and the multicast router verifies the validity of the signature and starts the split process; specifically, the split request triggering and verification comprises: Split request generation: according to the split operation of the master lock, a split request message containing the target subgroup feature vector, member IP address list, timestamp and digital signature is constructed; Multicast sending: according to the preset multicast address, the master lock sends the split request message; Message verification: according to the split request message received by the multicast router, the message format, timestamp freshness and digital signature are verified in turn; Split process start: according to the result of successful verification, the multicast router parses and stores the target subgroup feature vector and member IP address to the local subgroup registration table, and starts the split process.

[0025] S203, dynamic split of multicast tree and interface registration: according to the results of the multicast router querying the local ARP table and the subgroup registration table, the subgroup to which each interface connected lock belongs is determined, and the corresponding sub-feature vector is registered in the multicast forwarding table for the corresponding interface; specifically, the dynamic split of multicast tree and interface registration comprises: ARP table query: according to the local ARP table of the multicast router, the device IP address information connected by each interface is obtained; Subgroup association judgment: According to the IP address list in the subgroup registration table, the matching relationship between it and the IP address in the ARP table is compared; Interface feature registration: according to the matching result, the interface connected to the target subgroup member is registered in the multicast forwarding table (*, G) for the corresponding sub-feature vector; Forwarding table update: according to the registration result, update the feature vector set and the out-interface list of the multicast forwarding table.

[0026] S204, invalid interface detection and simplification: according to the detection message issued by each subgroup master lock and the confirmation message of the member lock, the multicast router identifies and removes the sub-feature vector registration of the interface not associated with the valid lock, and completes the communication group decomposition. Specifically, the invalid interface detection and simplification comprises: Probe message sending: according to the timing trigger of each subgroup master lock, multicast sends a probe message containing the group feature vector and a random number; Confirmation message feedback: according to the probe message received by the member lock, multicast returns a confirmation message containing the same feature vector and random number; Interface validity judgment: according to whether the multicast router receives the matched confirmation message from the interface within the set timeout, the validity of the interface for the feature vector is judged; Invalid interface cleaning: according to the interface judged as invalid, the multicast router removes it from the forwarding interface list of the feature vector and updates the multicast forwarding table.

[0027] In practical applications, one technical solution example can include the following: Core idea: The application proposes a feature vector-based dynamic decomposition mechanism of a communication group (hereinafter referred to as a conference). During system initialization, all door locks are in the same global communication group, sharing a multicast distribution tree and a master feature vector. The master door lock pre-generates and distributes sub-feature vectors bound to each sub-communication group. When the communication group needs to be decomposed, the master door lock sends a split request to the network, which includes the feature vector of the target sub-group. After verifying the legality of the request, the multicast router identifies the sub-group to which the directly connected door lock device belongs based on the local device connection information, dynamically creates an independent sub-multicast tree for each sub-feature vector, and updates the multicast forwarding table entry. Through the detection mechanism, the router can automatically detect the effectiveness of the interface and remove the invalid feature registration. Finally, the single global communication group is seamlessly decomposed into multiple sub-communication groups without changing the multicast group address and interrupting the existing media stream.

[0028] Core process: Unified communication group initial stage: Door locks A to F are in the same communication group ID_P, sharing a single multicast distribution tree. The multicast router maintains a global forwarding table, and the outgoing interface binds all terminal addresses and associates the master feature vector p.

[0029] Door lock A is the master control end, and the gateway router of door lock A is router A. In this stage, the key data is pre-buried: door lock A generates sub-group feature vectors a (binding door locks A / B / C) and d (binding door locks D / E / F), which are encrypted and distributed to the corresponding door locks for storage through the communication group control channel.

[0030] Split request triggering stage: Door lock A initiates a split request, with the destination address being the multicast group G, containing the target sub-group feature vectors a (binding door locks A / B / C) and d (binding door locks D / E / F) and a digital signature. The digital signature is generated by the master feature vector p. Each multicast router on the multicast tree verifies the validity of the signature and confirms that A has the operation authority before starting the split process.

[0031] Multicast tree dynamic splitting stage: Each multicast router on the tree performs the split operation. First, create a sub-multicast tree ID_X for feature vector a, based on the ARP table, if it is directly connected to the lock A, B, C device address, then the (*, G) table entry connects the interface of the above-mentioned lock to register the feature a, otherwise register a and d; At the same time, create a sub-multicast tree ID_Y for feature vector d, based on the ARP table, if it is directly connected to the lock D, E, F device address, then the (*, G) table entry connects the interface of the above-mentioned lock to register the feature d, otherwise register a and d.

[0032] Further simplify, because some branches are not connected to the lock DEF, so the interface does not need to register the feature d. Therefore, each communication group performs "simplified interaction", that is, each lock sends a multicast message carrying its own communication group feature and a random value, and requires the lock receiving the message to immediately reply a multicast message carrying the communication group feature and the random value; The router is responsible for listening, and if a simplified message carrying a certain feature is sent from an interface and no simplified reply message with the corresponding random value is received within a certain time, the feature of the interface is deleted - this can avoid sending invalid audio and video streams in the future.

[0033] Detailed technical solutions: System composition and preconditions: The system is composed of six intelligent lock devices (lock A, lock B, lock C, lock D, lock E, lock F) and two multicast routers (router A and router D). Lock A is the master control end, and its gateway router is router A; Lock D is the master control end of another sub-communication group, and its gateway router is router D. All lock devices need to join the same multicast group G in the initialization stage, and the multicast group address is 239.1.1.1. During system initialization, all lock devices share a master feature vector p, which serves as the unique identifier of the global communication group.

[0034] In the pre-configuration stage before the communication group starts, lock A will generate two sub-feature vectors: feature vector a is used to identify sub-communication group X (including lock A, B, C), and feature vector d is used to identify sub-communication group Y (including lock D, E, F). This correspondence is achieved through a device registration table, which is maintained by lock A and records the IP address of each lock device and its corresponding feature vector. For example, the device registration table will explicitly record that IP address 192.168.1.101 (lock A) corresponds to feature vector a, IP address 192.168.1.102 (lock B) corresponds to feature vector a, IP address 192.168.1.103 (lock C) corresponds to feature vector a, IP address 192.168.1.104 (lock D) corresponds to feature vector d, and so on.

[0035] The door lock A sends the feature vector a to the door lock B and the door lock C through a dedicated control channel, and sends the feature vector d to the door lock D, the door lock E and the door lock F. During the sending process, the summary information of the device register is sent at the same time, so that each door lock device knows the device-feature vector mapping relationship of the whole system. Each door lock device stores the received feature vector and the mapping relationship in the local storage area.

[0036] Unified communication group phase: In the unified communication group phase, all door lock devices (A-F) are under the same communication group ID_P. The multicast router maintains a global multicast forwarding table (*, G), and the establishment process of the table item is as follows: when the door lock device first joins the multicast group, an IGMP join message is sent to the directly connected router, and the source IP address of the message is the IP address of the door lock device. After receiving the IGMP join message, the router first records the interface and the source IP address of the sending message, and then creates a corresponding table item in the multicast forwarding table.

[0037] The multicast forwarding table contains the following fields: multicast group address (G=239.1.1.1), out-interface list, feature vector set, timestamp and state flag. The out-interface list records all network interfaces that need to forward multicast traffic, and each interface item also contains the IP address list of the door lock device connected by the interface. The feature vector set initially contains only the main feature vector p. The timestamp records the last update time of the table item. The state flag identifies the current state of the table item, such as active or inactive.

[0038] For example, the multicast forwarding table of router A may contain the following table items: multicast group address = 239.1.1.1, out-interface list = eth1, connected IP: 192.168.1.101, associated feature vector set = [p], eth2 connected IP: 192.168.1.102, associated feature vector set = [p], eth3 connected IP: 192.168.1.103, associated feature vector set = [p], timestamp = 2023-08-20 10:00:00, state flag = active. The table items of router D are similar, but record the IP addresses and feature vector sets of its directly connected door locks D, E and F.

[0039] The multicast router also establishes a feature listening table (Feature Listening Table). The table maintains the mapping relationship between the interface and the feature vector, which is the key basis for the router to judge whether to receive and process the traffic of a specific feature vector. The feature listening table records the interface, the associated feature vector and the state information.

[0040] At this stage, audio and video media streams are distributed in the global multicast tree. The media stream adopts a specific encapsulation format, containing the following fields: version number, message type, multicast group address, feature vector, communication group ID, sequence number and timestamp. All lock devices can receive and send data, realizing full intercommunication. The router forwards messages according to the out-interface list in the multicast forwarding table, ensuring that each lock device can receive the media stream.

[0041] Split request trigger phase: When lock A needs to initiate communication group decomposition, a split request message is constructed. The message contains the following field information: the message type field is set to SplitReq (0x09); the multicast group field is set to 239.1.1.1; the feature vector field uses the main feature vector p; the communication group ID field is ID_P. The payload part contains the target subgroup feature vector a, subgroup members: IP addresses of lock A, lock B and lock C, target subgroup feature vector d, subgroup members: IP addresses of lock D, lock E and lock F, timestamp.

[0042] The split request message is transmitted along the multicast forwarding tree between multicast routers through the multicast group G. After receiving the message, the router performs the following verification process: first, check the correctness of the message format, verify the length and value range of each field; finally, verify the freshness of the timestamp, requiring the timestamp to be within 5 seconds of the current system time. After verification, the router parses the target subgroup feature vectors a and d, records the details of the split request, including the request time, related device IP address, target sub-communication group feature vector, etc., and stores it as a subgroup registration table locally, recording the device IP addresses of the subgroup members and the feature vectors corresponding to each IP address. For example: the subgroup registration table records: 192.168.1.101 corresponds to feature vector a, 192.168.1.102 corresponds to feature vector a, and 192.168.1.103 corresponds to feature vector a.

[0043] Multicast tree dynamic splitting phase: After receiving a legal split request, the router begins to perform the split operation. The router first queries the local ARP table. The ARP table contains the mapping relationship between IP address and MAC address, as well as interface information.

[0044] The router determines the feature vector that needs to be registered according to the following detailed process: first, the router queries the ARP table to obtain the ARP list connected by each interface. For example, the ARP list of router A can show: device IP: 192.168.1.101, corresponding MAC address, and interface eth1; device IP: 192.168.1.102, corresponding MAC address, and interface eth2; device IP: 192.168.1.103, corresponding MAC address, and interface eth3. Then, the router further queries the locally stored sub-group registration table, and the router traverses all IP addresses recorded in the sub-group registration table to query and compare the ARP table to determine whether there is a corresponding ARP table entry. If there is a corresponding ARP table entry, the out-interface connected to the device is registered in the (*, G) table entry. Specifically, the router updates the multicast forwarding table, adds the feature vector a in the feature vector set, and marks the interface that needs to forward the traffic of the feature vector a in the corresponding out-interface entry.

[0045] For the sub-communication group Y corresponding to the feature vector d, the router uses the same processing logic: traverse all IP addresses recorded in the sub-group registration table to query and compare the ARP table to determine whether there is a corresponding ARP table entry. If there is a corresponding ARP table entry, the out-interface connected to the device is registered in the (*, G) table entry. For the interface that connects both the feature vector a device and the feature vector d device, the feature vectors a and d are registered at the same time. At the same time, in order to avoid the case that the router is not directly connected to the lock, but other routers connected to the lock are hung below, for the interface whose ARP table entry does not contain the IP addresses of A, B, C, D, E, and F locks, the feature vectors a and d also need to be registered at the same time, and unnecessary a or d will be gradually simplified in the subsequent detection message interaction process.

[0046] The registration process includes the following specific steps: first, the router creates a new feature vector set containing all feature vectors that need to be registered; then, the feature vector set field in the multicast forwarding table is updated; then, the corresponding feature vector forwarding flag is set for each out-interface; finally, the timestamp field is updated to the current system time, and the state flag is set to active.

[0047] The master door lock (door lock A is the master door lock of sub-communication group X, and door lock D is the master door lock of sub-communication group Y) of each sub-communication group starts a detection mechanism after receiving the split request message. The master door lock of each sub-communication group sends a detection message. The identity of the master door lock is determined by the information carried in the split request message: when door lock A issues the split request message, it specifies the master door lock role of each sub-communication group. Specifically, when the feature vector a is issued to door locks B and C, door lock A is instructed to be the master door lock of sub-communication group X; when the feature vector d is issued to door locks D, E, and F, door lock D is instructed to be the master door lock of sub-communication group Y.

[0048] The master door lock of each sub-communication group (such as door lock A, which is the master door lock of sub-communication group X) periodically multicasts a detection message PruneProbe. The message type of the message is 0x0A, which contains the feature vector (such as a) of the sub-communication group and a randomly generated random number. The message is sent through the multicast group G. After receiving the PruneProbe message, the router parses the feature vector and the random number, and creates a waiting confirmation table entry for the receiving interface locally, records the interface, the feature vector, the random number, and the sending timestamp, and starts a 200 ms timeout timer. Subsequently, the router transmits the PruneProbe message from all other interfaces that have registered the feature vector.

[0049] The door lock devices (such as door locks B and C) belonging to the feature vector immediately multicast a confirmation message PruneAck after receiving the PruneProbe message. The message type of the message is 0x0B, which contains the same feature vector and random number as in the PruneProbe. After receiving the PruneAck message from an interface, the router matches the previously recorded waiting confirmation table entry according to the feature vector and the random number in the message. If a matching table entry is found, the state of the interface for the feature vector is marked as confirmed, indicating that there is a valid sub-communication group member device downstream of the interface.

[0050] For an interface that has registered a specific feature vector, if no corresponding PruneAck confirmation message is received within 200 ms, the router will perform a complete removal operation. The operation involves the coordinated update of multiple table entries in the router, and the specific process is as follows: First, the router checks the feature vector set associated with the interface in the multicast forwarding table. The router queries the table entry corresponding to the multicast group G (239.1.1.1) in the multicast forwarding table, and locates the entry of the specific interface. If the feature vector set of the entry contains the target feature vector (such as feature vector a) to be processed, the router starts the removal process. The removal operation is atomic to ensure the consistency of the data forwarding plane and the control plane state.

[0051] Specifically, the router will remove the target feature vector a from the feature vector set of the interface. For example, assume that the feature vector set of interface eth2 of router A is originally [a, d], which means that the interface needs to forward traffic of both subgroup X (feature a) and subgroup Y (feature d). After the probe for feature vector a times out, the router updates the set to [d]. Then, the router updates the overall state flag of the multicast forwarding table. If the feature vector set of the interface becomes empty, the router removes the interface from the egress interface list completely; otherwise, the router only updates the forwarding flag of the interface.

[0052] Then, the router synchronously updates the Feature Listening Table. The table maintains the mapping between interfaces and feature vectors, and is the key basis for the router to determine whether it needs to receive and process traffic of a specific feature vector. The router looks up all entries related to the interface and feature vector a in the table, and marks them as inactive. After a short delay (usually 1-2 packet processing cycles), the entries are removed from the data plane completely by a background cleanup task, releasing the corresponding storage resources.

[0053] For example, a downstream interface eth3 of router D was previously registered to forward traffic of feature vector a (i.e., belonging to subgroup X). In a complete PruneProbe / PruneAck interaction, router D sent a PruneProbe(a) packet carrying a random number R1 from interface eth3. However, within 200 milliseconds, router D did not receive any PruneAck(a) response matching R1 from interface eth3. At this time, router D determines that there is no valid subgroup X member downstream of interface eth3.

[0054] Therefore, router D accesses its multicast forwarding table, finds the entry of multicast group G (239.1.1.1), and locates the subgroup item of egress interface eth3. It modifies the feature vector set of the interface from [a] to an empty set []. Since the interface is no longer associated with any feature vector, router D further removes eth3 from the egress interface list of multicast group G. At the same time, router D queries the Feature Listening Table, finds all mapping entries of the form (eth3, a), marks them as inactive, and finally deletes them. Thereafter, any traffic destined for G and having feature vector a will not be forwarded to interface eth3, thereby achieving precise pruning of network branches and avoiding waste of bandwidth resources.

[0055] Splitting is complete and independent operation: After the split operation is completed, the system enters the independent running phase. At this time, the original global multicast tree has been successfully split into two independent logical sub-multicast trees, each of which uses the same multicast address G (239.1.1.1), but realizes traffic isolation through different characteristic vectors. The sub-communication group X uses the characteristic vector a, and the door locks A, B, and C form an independent communication domain; the sub-communication group Y uses the characteristic vector d, and the door locks D, E, and F form an independent communication domain. The media streams between the two sub-communication groups are completely isolated and do not interfere with each other.

[0056] The communication of video streams and data streams is based on the updated multicast forwarding table. The multicast forwarding table of each router has been updated and records the characteristic vector set corresponding to each outgoing interface. When the door lock device sends video data, the corresponding characteristic vector field is set in the data packet. After the router receives the data packet, it parses the characteristic vector field and queries the multicast forwarding table, and only forwards the data packet to the interface registered with the corresponding characteristic vector. This precise matching mechanism based on characteristic vectors ensures that data streams can only propagate within the specified sub-communication group and cannot leak to other sub-communication groups.

[0057] Taking the actual communication process as an example, when door lock B needs to send video data to sub-communication group X, it will construct a data packet with a destination address of 239.1.1.1 and a characteristic vector of a. Router A receives the data packet and queries its forwarding table, finding that only the interfaces connecting door locks A, B, and C are registered with the characteristic vector a, so it only forwards the data packet to these interfaces. When the data packet reaches router D, router D checks the characteristic vector a, and its direct interfaces are all registered with the characteristic vector d, so it discards the data packet, ensuring that data cannot be transmitted to the door lock devices of sub-communication group Y.

[0058] Session termination and cleanup mechanism: When it is necessary to remove the split state and restore the global communication group, the system starts the session termination and cleanup mechanism. This mechanism is initiated by the master door lock A and triggers the entire cleanup process by sending a merge request message. The merge request message uses a specific format and contains the following fields: the message type field is set to MergeReq (0x0C), which is a message type specifically for merge requests; the multicast group field is set to 239.1.1.1; the characteristic vector field uses the master characteristic vector p; the communication group ID field is ID_P. The payload part contains the list of sub-characteristic vectors to be merged (including characteristic vector a and characteristic vector d), the timestamp, and the operation type identifier (identifying complete merging or partial merging).

[0059] After receiving the merge request packet, the router first performs packet verification. The verification process includes checking the integrity of the packet format, confirming that the field length and value range meet the specification, and ensuring that the request comes from a legal master lock; verify the freshness of the timestamp, require the timestamp to be within 5 seconds of the current system time. After verification, the router parses the packet content, obtains the list of sub-feature vectors that need to be merged, and starts the cleaning operation.

[0060] The cleaning operation adopts a progressive strategy and is executed in three distinct stages. The first stage is to stop the sub-communication group media stream forwarding. The router immediately sends a stream stop notification packet to all outgoing interfaces, which contains the message type StreamStop (0x0D), feature vector (a or d). At the same time, the router suspends forwarding sub-communication group traffic to temporarily added outgoing interfaces, but keeps the transmission channel of control signaling open. In this stage, the router records the traffic stop time of each interface and monitors the decline of media traffic to ensure that the traffic stop operation is completed within 100 milliseconds.

[0061] The second stage is to clear the related entries in the feature listening table. The router first queries the feature listening table to find all table entries related to sub-feature vectors a and d. For each table entry, the router sets its state flag to "to be deleted" and records the to-be-deleted timestamp. Then, the router waits for a 1-second buffer time, which is to ensure that all ongoing messages are properly processed to avoid data loss. During the buffer period, the router continues to monitor network traffic to confirm that no new sub-communication group packets are generated. After the buffer period ends, the router begins to completely remove these entries from the data plane. The removal operation includes: clearing the mapping relationship between feature vectors and interfaces, releasing related memory resources, and updating the version number of the feature listening table.

[0062] The third stage is to update the multicast forwarding table. After confirming that the feature listening table is cleaned up, the router begins to adjust the multicast forwarding table. The router traverses all table entries in the multicast forwarding table and completely removes the feature vectors added for the sub-communication group in the (*, G) table entry. The specific operation includes: deleting feature vectors a and d from the feature vector set; adjusting the outgoing interface list to remove interfaces that only serve the sub-communication group; restoring the forwarding table to a state that only contains the master feature vector p. At the same time, the router releases resources related to the sub-communication group, including memory buffers, counters, timers, etc. During the entire update process, the router maintains atomic operations to ensure that there is no data inconsistency during the update.

[0063] When the cleaning operation is completed, the system returns to the unified global communication group state. All door lock devices resume communication using the master feature vector p, and the media stream resumes global multicast transmission. The router sends a cleaning completion confirmation message to the master door lock A, which contains cleaning result code, released resource statistics, process time consumption, etc. After receiving the confirmation message, the master door lock A updates the system state and notifies all door lock devices that the communication group has returned to the global state.

[0064] During the entire cleaning process, the system ensures service continuity, media stream transmission does not interrupt, and users do not perceive any service jitter. The cleaning operation uses graceful degradation, prioritizes transmission of important control signaling, gradually releases non-critical resources, and ensures stable and reliable operation of the system throughout the process.

[0065] Benefits: Dynamic lossless splitting is achieved, which can dynamically split the communication group into multiple sub-communication groups during communication. The entire process is not perceived by the user experience, and the media stream does not interrupt; network efficiency is high, based on existing multicast tree splitting, no need to rebuild the route; good scalability, supporting simultaneous splitting into multiple sub-communication groups, suitable for complex community management scenarios; good compatibility, complementary to the communication group integration solution, together to build a flexible multi-communication group management system.

[0066] Innovation: A dynamic communication group splitting mechanism based on feature vectors and network awareness is proposed, which analyzes the splitting instruction and queries the local ARP table through the router, automatically and dynamically divides the multicast tree, and realizes the elasticity of the communication group system; Design a path optimization algorithm for the detection mechanism, through the interaction of detection packets and random number matching verification, so that the network can automatically discover and prune invalid forwarding branches, improving the efficiency of the network after decomposition; Implement non-group change and continuous flow communication group decomposition technology, maintain the same multicast group address, realize traffic isolation through feature vectors, and avoid terminal reconnection; Provide a set of feature, two-level communication group management model, through the coordinated use of master feature vector and sub-feature vector, maintain the identity of the global communication group, and support the independence of the sub-communication group, simplify system management and control.

[0067] It can be seen that according to the sub-feature vector generated by the master door lock and the binding relationship with the member door lock, the sub-feature vector is encrypted and issued to the corresponding member door lock through a secure channel for local storage; according to the splitting request issued by the master door lock, a multicast message containing the target sub-group feature vector and a digital signature is generated; according to the results of querying the local ARP table and the sub-group registration table by the multicast router, the sub-group to which the door lock connected to each interface is determined, and the corresponding sub-feature vector is registered in the multicast forwarding table for the corresponding interface; according to the probe message issued by each sub-group master door lock and the confirmation message of the member door lock, the multicast router identifies and removes the sub-feature vector registration of the interface of the invalid door lock not associated, and completes the communication group decomposition, so that the safe and reliable, interface-level refined door lock group decomposition can be realized, and the splitting efficiency and communication security are improved.

[0068] Another embodiment of the application provides a decomposition system of a door lock communication group, referring to Figure 4 , the system can include: The distribution module 401 is configured to pre-configure and distribute the sub-feature vector, that is, according to the sub-feature vector generated by the master door lock and the binding relationship with the member door lock, the sub-feature vector is encrypted and issued to the corresponding member door lock through a secure channel for local storage; The trigger module 402 is configured to trigger and verify the splitting request, that is, according to the splitting request issued by the master door lock, a multicast message containing the target sub-group feature vector and a digital signature is generated, and the multicast router verifies the validity of the signature to start the splitting process; The splitting module 403 is configured to dynamically split the multicast tree and register the interface, that is, according to the results of querying the local ARP table and the sub-group registration table by the multicast router, the sub-group to which the door lock connected to each interface is determined, and the corresponding sub-feature vector is registered in the multicast forwarding table for the corresponding interface; The detection module 404 is configured to detect and simplify the invalid interface, that is, according to the probe message issued by each sub-group master door lock and the confirmation message of the member door lock, the multicast router identifies and removes the sub-feature vector registration of the interface of the invalid door lock not associated, and completes the communication group decomposition.

[0069] The embodiment of the application further provides a storage medium, and the storage medium stores a computer program, wherein the computer program is configured to execute the steps in any one of the method embodiments when running.

[0070] The embodiment of the application further provides an electronic device, which includes a memory and a processor, the memory stores a computer program, and the processor is configured to execute the computer program to execute the steps in any one of the method embodiments.

[0071] Specifically, the electronic device described above can further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0072] The above detailed description of the application is based on the embodiments shown in the drawings, which illustrate the structure, features and effects of the application. The above description is only of the preferred embodiments of the application, but the application is not limited to the embodiments shown in the drawings. Any changes or modifications made in accordance with the concept of the application, or equivalent embodiments with equivalent changes, are still within the scope of the application.

Claims

1. A method for decomposing a door lock communication group, characterized in that, The method includes: Pre-configuration and sub-feature vector distribution: Based on the sub-feature vectors generated by the master lock and their binding relationship with the member locks, the sub-feature vectors are encrypted and sent to the local storage of the corresponding member locks through a secure channel; Split Request Triggering and Verification: Based on the split request issued by the master lock, a multicast message containing the target subgroup feature vector and digital signature is generated. The multicast router verifies the validity of the signature and then initiates the split process. Dynamic splitting of the multicast tree and interface registration: Based on the results of the multicast router querying the local ARP table and subgroup registry, determine the subgroup to which each interface belongs, and register the corresponding sub-feature vector for the corresponding interface in the multicast forwarding table; Invalid Interface Detection and Simplification: Based on the probe messages sent by the master locks of each subgroup and the acknowledgment messages sent by the member locks, the multicast router identifies and removes the sub-feature vector registration of interfaces that are not associated with valid locks, thus completing the decomposition of the communication group.

2. The method according to claim 1, characterized in that, The pre-configuration and sub-feature vector distribution include: Sub-feature vector generation: Based on the device registry maintained by the master door lock, generate sub-feature vectors bound to each sub-communication group; Secure distribution: Based on the mapping relationship between IP address and sub-feature vector in the device registry, the sub-feature vector is encrypted and distributed to the corresponding member door lock through the control channel; Local storage: Based on the received encrypted sub-feature vector and mapping relationship, each member door lock decrypts it and stores it locally; Global communication group maintenance: Based on the main feature vector shared by all door locks, maintain the multicast tree structure and communication of the global communication group.

3. The method according to claim 2, characterized in that, The split request triggering and verification includes: Split Request Generation: Based on the split operation of the master lock, construct a split request message containing the target subgroup feature vector, member IP address list, timestamp and digital signature; Multicast transmission: The master door lock sends a split request message according to the preset multicast address; Message verification: Based on the split request message received by the multicast router, verify the message format, timestamp freshness, and digital signature in sequence; Split process initiation: Based on the successful verification result, the multicast router parses and stores the target subgroup feature vector and member IP addresses to the local subgroup registry, and initiates the split process.

4. The method according to claim 3, characterized in that, The dynamic splitting and interface registration of the multicast tree includes: ARP table lookup: Obtain the IP address information of the devices connected to each interface based on the local ARP table of the multicast router; Subgroup association determination: Based on the IP address list in the subgroup registry, compare its matching relationship with the IP address in the ARP table; Interface feature registration: Based on the matching results, register the corresponding sub-feature vectors for the interfaces connecting to the target subgroup members in the multicast forwarding table (*,G); Forwarding table update: Based on the registration results, update the feature vector set and outgoing interface list of the multicast forwarding table.

5. The method according to claim 4, characterized in that, The invalid interface detection and simplification includes: Probe message transmission: Based on the timed triggering of the master lock of each subgroup, a probe message containing the feature vector of the group and a random number is sent via multicast; Confirmation message feedback: Based on the probe messages received by the member door lock, the multicast reply contains an confirmation message containing the same feature vector and random number; Interface validity determination: The validity of the interface for the feature vector is determined by whether the multicast router receives a matching acknowledgment message from the interface within the set timeout period. Invalid interface cleanup: Based on the interfaces determined to be invalid, the multicast router removes them from the forwarding interface list of that feature vector and updates the multicast forwarding table.

6. A decomposition system for a door lock communication group, characterized in that, The system includes: The distribution module is used for pre-configuration and sub-feature vector distribution: based on the sub-feature vector generated by the master lock and its binding relationship with the member locks, the sub-feature vector is encrypted and sent to the local storage of the corresponding member lock through a secure channel; The triggering module is used for triggering and verifying split requests: based on the split request issued by the master door lock, it generates a multicast message containing the target subgroup feature vector and digital signature, and the multicast router verifies the validity of the signature before starting the split process; The splitting module is used for dynamic splitting of the multicast tree and interface registration: based on the results of the multicast router querying the local ARP table and subgroup registry, it determines the subgroup to which each interface belongs and registers the corresponding sub-feature vector for the corresponding interface in the multicast forwarding table; The detection module is used for invalid interface detection and simplification: based on the detection messages sent by the master locks of each subgroup and the confirmation messages sent by the member locks, the multicast router identifies and removes the sub-feature vector registration of interfaces that are not associated with valid locks, thus completing the decomposition of the communication group.

7. The system according to claim 6, characterized in that, The distribution module is specifically used for: Sub-feature vector generation: Based on the device registry maintained by the master door lock, generate sub-feature vectors bound to each sub-communication group; Secure distribution: Based on the mapping relationship between IP address and sub-feature vector in the device registry, the sub-feature vector is encrypted and distributed to the corresponding member door lock through the control channel; Local storage: Based on the received encrypted sub-feature vector and mapping relationship, each member door lock decrypts it and stores it locally; Global communication group maintenance: Based on the main feature vector shared by all door locks, maintain the multicast tree structure and communication of the global communication group.

8. The system according to claim 7, characterized in that, The triggering module is specifically used for: Split Request Generation: Based on the split operation of the master lock, construct a split request message containing the target subgroup feature vector, member IP address list, timestamp and digital signature; Multicast transmission: The master door lock sends a split request message according to the preset multicast address; Message verification: Based on the split request message received by the multicast router, verify the message format, timestamp freshness, and digital signature in sequence; Split process initiation: Based on the successful verification result, the multicast router parses and stores the target subgroup feature vector and member IP addresses to the local subgroup registry, and initiates the split process.

9. A storage medium, characterized in that, The storage medium stores a computer program, wherein the computer program is configured to execute the method of any one of claims 1-5 when it is run.

10. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the method of any one of claims 1-5.

Citation Information

Patent Citations

  • Method, apparatus and system for single-source multicast interaction and multi-source multicast interaction

    CN101222346A

  • Multicast management method and two-layer equipment

    CN102075422A

  • Multicast safety access apparatus and method thereof

    CN105791318A

  • Information issuing method and system based on intelligent door lock

    CN120071481A

  • Multicast communication system and multicast communication method

    JP2004166051A

Cited By

  • Door lock video stream collaborative return method and system

    CN122093519A

  • A method and system for door lock video stream cooperative backhaul

    CN122093519B

  • Method and system for distributing and returning door lock video stream

    CN122160484A

  • Door lock vehicle extension service method and system

    CN122176835A

  • Method and system for accurately finding car through door lock

    CN122179896A