Device management method and gateway
By performing device group security management configuration and security group information processing in the gateway, the security issues caused by shared keys in the IoT device group are solved, and the security of members in the device group and the legality of messages are guaranteed.
Patent Information
- Application Number
- PCT/CN2023/080572
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-09
- Publication Date
- 2024-09-12
AI Technical Summary
In IoT device groups, the use of shared keys leads to security issues within the device group. For example, group members can impersonate other members to send messages or launch attacks, making it difficult to confirm the source and legitimacy of group messages.
By implementing device group security management configuration and message processing based on security group information in the gateway, the security of members in the device group is ensured, including receiving device messages, processing security group information, subscribing to security group change events and updating security group information, identifying and filter illegal multicast messages.
It improves the security of members within the device group, prevents counterfeiting and attacks, and ensures the legitimacy of group messages and the credibility of the source.
Smart Images

Figure CN2023080572_12092024_PF_FP_ABST
Abstract
Description
Device management method and gateway Technical Field
[0001] The present application relates to the field of communications, and more specifically, to a device management method and a gateway. Background Art
[0002] In the Internet of Things (IoT), such as smart home networks, multiple devices can form a device group. Members within a device group use a shared key for encryption during multicast. However, since all group members share the same group key, this can easily lead to security issues.
[0003] Summary of the Invention
[0004] The embodiments of the present application provide a device management method and a gateway, which can improve device security.
[0005] The present invention provides a device management method, including:
[0006] The first gateway performs group security management configuration on the device group that needs security management.
[0007] The present invention provides a device management method, including:
[0008] The first gateway receives a message from the device;
[0009] The first gateway processes the message based on the security group information, wherein the security group information includes information about a device group requiring security management.
[0010] An embodiment of the present application provides a first gateway, including:
[0011] The processing unit is used to perform group security management configuration on the device group that needs security management.
[0012] An embodiment of the present application provides a first gateway, including:
[0013] a receiving unit, configured to receive a message from a device;
[0014] A processing unit is used to process the message based on the security group information, wherein the security group information includes information of a device group that needs to be securely managed.
[0015] An embodiment of the present application provides a gateway, comprising a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory, so that the gateway executes the above-mentioned device management method.
[0016] The present invention provides a chip for implementing the above-mentioned device management method. Specifically, the chip includes a processor for calling and running a computer program from a memory, so that a device equipped with the chip executes the above-mentioned device management method.
[0017] An embodiment of the present application provides a computer-readable storage medium for storing a computer program. When the computer program is executed by a device, the device executes the above-mentioned device management method.
[0018] An embodiment of the present application provides a computer program product, including computer program instructions, which enable a computer to execute the above-mentioned device management method.
[0019] An embodiment of the present application provides a computer program, which, when executed on a computer, enables the computer to execute the above-mentioned device management method.
[0020] In an embodiment of the present application, the security of members in a device group can be improved by performing group security management configuration on the device group that requires security management and / or processing received messages based on security group information. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] FIG1 is a schematic diagram of an application scenario according to an embodiment of the present application.
[0022] FIG2 is a schematic flowchart of a device management method according to an embodiment of the present application.
[0023] FIG3 is a schematic flowchart of a device management method according to another embodiment of the present application.
[0024] FIG4 is a schematic flowchart of a device management method according to an embodiment of the present application.
[0025] FIG5 is a schematic flowchart of a device management method according to another embodiment of the present application.
[0026] FIG6 is a schematic flowchart of a device management method according to another embodiment of the present application.
[0027] FIG7 is a schematic flowchart of a device management method according to another embodiment of the present application.
[0028] FIG8 is a schematic diagram of an exemplary system architecture according to the present application.
[0029] FIG9 is a schematic diagram of a group communication security management process according to the present application.
[0030] FIG10 is a schematic diagram of a group communication security management process according to the present application.
[0031] FIG11 is a schematic diagram of a group communication security management process according to the present application.
[0032] FIG12 is a schematic block diagram of a first gateway according to an embodiment of the present application.
[0033] FIG13 is a schematic block diagram of a first gateway according to another embodiment of the present application.
[0034] FIG14 is a schematic block diagram of a first gateway according to an embodiment of the present application.
[0035] FIG15 is a schematic block diagram of a communication device according to an embodiment of the present application.
[0036] FIG16 is a schematic block diagram of a chip according to an embodiment of the present application.
[0037] FIG17 is a schematic block diagram of a communication system according to an embodiment of the present application. DETAILED DESCRIPTION
[0038] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0039] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: Global System of Mobile communication (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) system, Advanced Long Term Evolution (LTE-A) system, New Radio (NR) system, NR system evolution system, LTE on unlicensed spectrum (LTE-U) system, NR on unlicensed spectrum (NR-U) system, Non-Terrestrial Networks (NTN) system, Universal Mobile Telecommunication System (UMTS), Wireless Local Area Networks (WLAN), Wireless Fidelity (Wireless Fidelity) system. Fidelity, WiFi), fifth-generation communication (5th-Generation, 5G) system or other communication systems, etc.
[0040] Generally speaking, traditional communication systems support a limited number of connections and are easy to implement. However, with the development of communication technology, mobile communication systems will not only support traditional communications, but will also support, for example, device-to-device (D2D) communication, machine-to-machine (M2M) communication, machine-type communication (MTC), vehicle-to-vehicle (V2V) communication, or vehicle-to-everything (V2X) communication, etc. The embodiments of the present application can also be applied to these communication systems.
[0041] In one embodiment, the communication system in the embodiment of the present application can be applied to a carrier aggregation (CA) scenario, a dual connectivity (DC) scenario, and a standalone (SA) networking scenario.
[0042] In one embodiment, the communication system in the embodiment of the present application can be applied to an unlicensed spectrum, wherein the unlicensed spectrum can also be considered as a shared spectrum; or, the communication system in the embodiment of the present application can also be applied to an authorized spectrum, wherein the authorized spectrum can also be considered as an unshared spectrum.
[0043] The embodiments of the present application describe various embodiments in conjunction with network devices and terminal devices, wherein the terminal device may also be referred to as user equipment (UE), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, etc.
[0044] The terminal device can be a station (STAION, ST) in a WLAN, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a next-generation communication system such as an NR network, or a terminal device in a future evolved Public Land Mobile Network (PLMN) network, etc.
[0045] In an embodiment of the present application, the terminal device can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted; it can also be deployed on the water surface (such as ships, etc.); it can also be deployed in the air (such as airplanes, balloons and satellites, etc.).
[0046] In an embodiment of the present application, the terminal device may be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self-driving, a wireless terminal device in remote medical, a wireless terminal device in a smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, or a wireless terminal device in a smart home, etc.
[0047] As an example and not a limitation, in the embodiment of the present application, the terminal device may also be a wearable device. Wearable devices may also be called wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are fully functional, large in size, and can achieve complete or partial functions without relying on smartphones, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.
[0048] In an embodiment of the present application, the network device may be a device for communicating with a mobile device. The network device may be an access point (AP) in WLAN, a base station (BTS) in GSM or CDMA, a base station (NodeB, NB) in WCDMA, an evolved base station (eNB or eNodeB) in LTE, or a relay station or access point, or a vehicle-mounted device, a wearable device, and a network device (gNB) in an NR network, or a network device in a future evolved PLMN network or an NTN network, or a home Internet of Things communication protocol (Thread) gateway such as an edge router (Border Router), etc.
[0049] As an example and not a limitation, in an embodiment of the present application, the network device may have a mobile feature, for example, the network device may be a mobile device. Alternatively, the network device may be a satellite or a balloon station. For example, the satellite may be a low earth orbit (LEO) satellite, a medium earth orbit (MEO) satellite, a geostationary earth orbit (GEO) satellite, a high elliptical orbit (HEO) satellite, etc. Optionally, the network device may also be a base station set up in a location such as land or water.
[0050] In an embodiment of the present application, the network device can provide services for a cell, and the terminal device communicates with the network device through the transmission resources used by the cell (for example, frequency domain resources, or spectrum resources). The cell can be a cell corresponding to the network device (for example, a base station). The cell can belong to a macro base station or a base station corresponding to a small cell. The small cells here may include: metro cells, micro cells, pico cells, femto cells, etc. These small cells have the characteristics of small coverage and low transmission power, and are suitable for providing high-speed data transmission services.
[0051] FIG1 exemplarily illustrates a communication system 100. The communication system includes a network device 110 and two terminal devices 120. In one embodiment, the communication system 100 may include multiple network devices 110, and each network device 110 may include a different number of terminal devices 120 within its coverage area, which is not limited in this embodiment of the present application.
[0052] In one embodiment, the communication system 100 may further include other network entities such as a Mobility Management Entity (MME) and an Access and Mobility Management Function (AMF), which is not limited in this embodiment of the present application.
[0053] Among them, the network equipment may include access network equipment and core network equipment. That is, the wireless communication system also includes multiple core networks for communicating with the access network equipment. The access network equipment can be an evolutionary base station (evolutional node B, abbreviated as eNB or e-NodeB) macro base station, micro base station (also called "small base station"), pico base station, access point (AP), transmission point (TP) or new generation base station (new generation Node B, gNodeB), etc. in a long-term evolution (LTE) system, a next-generation (mobile communication system) (next radio, NR) system or an authorized auxiliary access long-term evolution (LAA-LTE) system.
[0054] It should be understood that in the embodiments of the present application, a device having a communication function in a network / system may be referred to as a communication device. Taking the communication system shown in Figure 1 as an example, the communication device may include a network device and a terminal device having a communication function. The network device and the terminal device may be specific devices in the embodiments of the present application and will not be described in detail here. The communication device may also include other devices in the communication system, such as a network controller, a mobility management entity, and other network entities, which are not limited in the embodiments of the present application.
[0055] It should be understood that the terms "system" and "network" are often used interchangeably herein. The term "and / or" is simply a description of an association between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " generally indicates that the related objects are in an "or" relationship.
[0056] It should be understood that the "indication" mentioned in the embodiments of this application can be a direct indication, an indirect indication, or an indication of an association. For example, "A indicates B" can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association between A and B.
[0057] In the description of the embodiments of the present application, the term "corresponding" may indicate a direct or indirect correspondence between the two, or an association relationship between the two, or a relationship between indication and being indicated, configuration and being configured, etc.
[0058] To facilitate understanding of the technical solutions of the embodiments of the present application, the relevant technologies of the embodiments of the present application are described below. The following relevant technologies can be arbitrarily combined with the technical solutions of the embodiments of the present application as optional solutions, and they all fall within the protection scope of the embodiments of the present application.
[0059] 1. IPv6 multicast address
[0060] An IPv6 multicast address is formed based on a unicast prefix. The following example shows an IPv6 multicast address:
[0061] (1) The first 12 bits can be 0xFF3.
[0062] (2) The next 4 bits are the scope (e.g., scop), where:
[0063] Site-Local (0x5) can span all networks in the fabric, including Thread, Ethernet, and Wireless Fidelity (Wi-Fi).
[0064] (3) The next 8 bits will be reserved (0x00).
[0065] (4) The next 8 bits are fully managed, for example, they can be set to 0x40 to identify a 64-bit network prefix.
[0066] (5) The network prefix portion of a multicast address can be a 64-bit string formed by concatenation, for example:
[0067] a.0xFD is used to locally specify the universal local area network address (ULA) prefix;
[0068] b. Use big endian order and the upper 56 bits are the fabric network identifier (Fabric ID).
[0069] (6) The 32-bit group identifier of a multicast address can be composed of the following parts:
[0070] a. The lower 8 bits are the Fabric ID;
[0071] b.0x00;
[0072] c. The remaining 16 bits are the big-endian group identifier, see Group ID.
[0073] For example, in a given<Fabric ID> and<Group ID> , the following are the multicast addresses for the local domain:
[0074] FF35:0040:FD<Fabric ID> 00:<Group ID> .
[0075] In one example, the IPv6 multicast address can be an IPv6 multicast address in a Matter-based network. Matter is a smart home interconnection protocol initiated by the Connectivity Standards Alliance (CSA) and jointly launched by multiple companies. Matter is an application layer protocol based on the Internet Protocol (IP).
[0076] 2. Multicast Group
[0077] (1) A multicast group consists of all devices registered under the same multicast group ID. A multicast message is sent to a specific target group and received by all members of that group. For example, in a Matter-based network, a multicast group can be a Matter group.
[0078] (2) A group session is formed by one or more multicast messages, which contain the following relevant information:
[0079] a. Fabric Index: The Fabric to which the group session belongs.
[0080] b.Group ID: Group ID of the group session;
[0081] c. Source Node ID: the source node device ID of the group session message;
[0082] d. Source Internet Protocol (IP) address: unicast source address of the sending device of the group session message;
[0083] e. Source Port: The source port of the device sending the group session message;
[0084] f. Operational Group Key: group session message encryption key;
[0085] g. Group Session ID: Group session ID.
[0086] Each device has a group table that represents the group membership of endpoints. Each group table entry maps a group ID to one or more endpoints on that device, and any endpoint on the device can be assigned to one or more groups.
[0087] Each group is associated with a shared group key, which is managed by the administrator through the group key management function set (Cluster). The group key management function set (CroupKeyManagement Cluster) contains the following properties and methods:
[0088] Table 1 CroupKeyManagement Cluster Attributes
[0089] The list[] in the type indicates the list type, and the content in [] indicates the type of each item in the list. For example, each item in the list is a data of the GroupStateStruct structure type.
[0090] Table 2 CroupKeyManagement Cluster Commands
[0091] In the above commands, KeySetWrite is a key set write command; KeySetRead is a key set read command; KeySetReadResponse is a key set read response command; KeySetRemove is a key set remove command; KeySetReadAllIndices is a key set read all indexes command; and KeySetReadAllIndicesResponse is a key set read all indexes response command. The "Client" in the Direction field represents the client, and the "Server" field represents the server. The "FA" in the Accessibility field represents the administrator permissions of the fabric to which the command belongs. For example, if a command belongs to a fabric, the permissions are specific to that fabric, and only administrators on that fabric have the corresponding operation permissions.
[0092] For example, the Groups attribute maintenance device's group table (Group Table) may include the following fields:
[0093] Table 3
[0094] FabricIndex indicates the fabric to which the group belongs; GroupId is the unique identifier of the group; GroupKeySetIndex points to the group's shared key, used to encrypt and decrypt messages within the group; Endpoints indicates the endpoints on the device that belong to the group; and GroupName is the name of the group. In the GroupKeySetIndex type, uint16 represents a 16-bit unsigned integer.
[0095] If a device receives a message with a group destination, it checks the Group Table to see which endpoints on the device are members of the group. The message is then delivered to those endpoints.
[0096] Any endpoint on a device can be assigned to one or more groups in the Group Table, each of which is marked with a 16-bit identifier. After a node receives a multicast message, it will be delivered to each endpoint assigned to the same group ID specified in the message header after successful security processing.
[0097] 3. Send a multicast message
[0098] Given a key index and the corresponding IPv6 hop count parameter, to send a multicast message to a group, a node can do the following:
[0099] 1. Based on the given key index, obtain the current operation group key as the encryption key and obtain the associated group session identifier. If the operation group key is not found based on the given key index, the security processing fails and no further security processing is required for the current message.
[0100] 2. Use the following parameters to execute the "Message Send" processing steps for the message.
[0101] a. The destination node identifier is set to the group node identifier.
[0102] b. Set the session identifier to the group session identifier obtained in step 1.
[0103] c. Flag P in the security flag needs to be set.
[0104] d. The transport layer is a natively routable IPv6 interface.
[0105] 3. Prepare the message as an IPv6 packet by following these steps:
[0106] 3-1. Set the private, secure message from step 2 above as the IPv6 payload.
[0107] 3-2. Set the IPv6 hop count.
[0108] 3-3. Set the IPv6 destination to the IPv6 multicast address based on the provided multicast policy of the destination group identifier, network identifier, and group key.
[0109] 3-4. Set the IPv6 source to the operating IPv6 unicast address of the sending node.
[0110] 3-5. Set the IPv6 User Datagram Protocol (UDP) port to an IPv6 multicast port, such as the Matter IPv6 multicast port.
[0111] From the perspective of the underlying network, a multicast message sent by a device is first sent to a home gateway device such as a router or AP. The home gateway device uses the destination address as the multicast address and sends the multicast message to other node devices in the network to complete the message propagation.
[0112] Multicast uses a shared key for encryption. Because all group members share the same group key, it's difficult to verify the exact source and legitimacy of group messages, which can lead to security issues. For example, group members can impersonate other group members to send messages, or group members can attack other group members by reassembling or replaying group messages.
[0113] FIG2 is a schematic flow chart of a device management method 200 according to an embodiment of the present application. The method can optionally be applied to the system shown in FIG1 , but is not limited thereto. The method includes at least part of the following contents.
[0114] S210: The first gateway performs group security management configuration on the device group that requires security management.
[0115] In embodiments of the present application, a network may include multiple device groups, each of which may include multiple devices. Devices within a device group may also be referred to as nodes, node devices, members, or member devices. Messages between multiple devices may be forwarded and managed via a gateway. A gateway may also be referred to as an access point. Some device groups with high security requirements may require security management, while some device groups with low security requirements may not.
[0116] In one embodiment, security management is related to multicast messages sent to devices within a device group. In this embodiment of the present application, the first gateway can configure group security management for the device group requiring security management. The configured information can then be used to securely manage messages sent from devices within the device group, thereby improving the security of members within the device group.
[0117] For example, a Matter-based network structure can include multiple fabrics. A fabric can include gateways and node devices. For example, Fabric 1 includes home gateway 11, node devices 12, and node devices 13, and Fabric 2 includes home gateway 21, node devices 22, and node devices 23. Node devices 12 and 13 are in device group G1, while node devices 22 and 23 are in device group G2. If device group G1 requires security management, home gateway 11 can configure group security management for device group G1.
[0118] In the embodiment of the present application, a node device may be connected to one Fabric or multiple Fabrics.
[0119] In one embodiment, the first gateway includes a mapping relationship between address information and node identifiers in a device group that requires security management. For example, the Group Security Management Cluster can define an interface for an administrator device to configure a home gateway, and the mapping relationship can be obtained by the gateway based on its own capabilities. The mapping relationship may not require configuration by the administrator device, nor does it need to be provided to the administrator device. Therefore, the mapping relationship may not be defined in the interface, and the mapping relationship may be stored separately at a certain location in the first gateway. In an embodiment of the present application, the node identifier (Node ID) may represent the identifier of a node device in the device group. The address information may represent the address of a node device in the device group. For example, the home gateway 11 may obtain and save the mapping relationship between the address information of the node device 12 and the node identifier, as well as the mapping relationship between the address information of the node device 13 and the node identifier. Through the mapping relationship, the devices in the device group that requires security management can be verified, thereby improving security.
[0120] In some examples, the address information can be an IP address assigned by a gateway (AP), such as an IPv6 address. This allows the gateway to dynamically manage the device's IP address, making it difficult to impersonate. In some examples, the address information can also be information that can be used to identify the device, such as a MAC address. In some examples, the address information can also include multiple addresses, such as both an IP address and a MAC address.
[0121] FIG3 is a schematic flow chart of a device management method 300 according to another embodiment of the present application. The method may include one or more features of the above-mentioned device management method. In one embodiment, S210, the first gateway performs group security management configuration on the device group that needs security management, including:
[0122] S310, the first gateway receives information about a device group that requires security management;
[0123] S320: The first gateway sets the information of the device group into the security group information.
[0124] In an embodiment of the present application, information about a device group that requires security management can be carried by a group setting command. The group setting command can be a control command sent by an administrator through a control device such as a mobile phone or a PDA according to security management requirements. After the first gateway receives the group setting command from the control device, it can record the information about the device group that requires security management included in the group setting command into the security group information. The security group can be managed through the attributes, commands, events, etc. of a function set for group security management (such as a Group Security Management Cluster, or other names). For example, security group information can be recorded through the attributes of a function set for group security management (such as a Group Security Management Cluster, or other names). The attributes of the Cluster can include at least one of the Cluster's identification (ID), name (Name), type (Type), constraint (Constraint), quality (Quality), accessibility (Access), default state (Default), and necessity (Conformance). For example, if the type attribute of the Cluster is list[], it can represent a list or array. The list or array can include various information about the device group that requires group security management and the devices within the group. The properties of the security group (SecureGroups) function set used for group security management record the information of the device group and the devices in the group, which means that the device group information is set in the security group information.
[0125] In one embodiment, the security group information includes a security group list.
[0126] In one embodiment, the security group list is in the type attribute of the security group information. For example, the type attribute list[] in the Group Security Management Cluster may represent the security group list in the security group information.
[0127] In one embodiment, the security group list includes at least one of the home network identifier, group identifier, group key set identifier, and source node information of the device group that needs to be security managed. In an embodiment of the present application, the home network identifier, group identifier, group key set identifier, and source node information are parameters in the security group list. If the security group list includes the group identifier, group key set identifier, and source node information of the device group, the first gateway can perform security group management on the node devices in the home network of the first gateway based on the security group list. If, in addition to the group identifier, group key set identifier, and source node information of the device group included in the security group list, the home network identifier is also included, the first gateway can perform security group management not only on the node devices in the home network of the first gateway, but also on the node devices that are not in the home network of the first gateway based on the security group list.
[0128] For example, Fabric 1 includes home gateway 11, node device 12, and node device 13, and Fabric 2 includes home gateway 21, node device 22, and node device 23. If the security group list of home gateway 11 includes the home network identifier of Fabric 2, it can identify whether the message comes from Fabric 1 or Fabric 2. In this case, home gateway 11 can perform group security management not only for device group G1 including node devices 12 and 13, but also for device group G2 including node devices 22 and 23.
[0129] In one embodiment, the source node information in the security group list can be used to indicate nodes that are permitted to multicast. For example, if the device sending a multicast message is a source node, and its node identifier can be found in the source node information in a security group list, the source node can be considered a source node that is permitted to multicast. Otherwise, the source node is considered a source node that is not permitted to multicast, and the multicast message from the source node is invalid.
[0130] In one embodiment, at least one of the home network identifier, group identifier, group key set identifier, and source node information of the device group that needs to be securely managed is in the group management structure of the security group list. In an embodiment of the present application, the security group list may include a group management structure. Various parameters of the security group list can be recorded through the group management structure. The attributes of the group management structure may include at least one of the identifier, name, type, constraint, quality, accessibility, default state, and necessity of various parameters of the security group list. For example, the parameter name of the security group list may include the home network identifier (FabricID), group identifier (GroupID), group key set identifier (GroupKeySetID), and source node information (SourceNodes). Among them, the source node information may include the node identifiers of multiple node devices in the security group. The type of the source node information may also be a list or an array.
[0131] In one embodiment, as shown in FIG3 , S210 , the first gateway performs group security management configuration on the device group requiring security management, further comprising:
[0132] S330. The first gateway subscribes to the security group change event of the second gateway. In an embodiment of the present application, gateways belonging to the same fabric can subscribe to each other's security group change events. For example, the first gateway and the second gateway can be home gateways belonging to the same fabric. The process of the first gateway subscribing to the security group change event of the second gateway may include: the first gateway sends a subscription request for the security group change event to the second gateway; if the second gateway agrees to the first gateway's subscription to the event, it can return a response agreeing to the subscription to the first gateway, thereby completing the subscription of the first gateway.
[0133] In one embodiment, the security group change event of the first gateway is subscribed to by the second gateway.
[0134] In an embodiment of the present application, the second gateway can also subscribe to the security group change events of the first gateway. In other words, the first gateway and the second gateway can subscribe to each other's security group change events. The process by which the second gateway can subscribe to the security group change events of the first gateway may include: the second gateway sends a subscription request for the security group change event to the first gateway; if the first gateway agrees to the second gateway's subscription to the event, the first gateway can return a subscription agreement response to the second gateway, completing the second gateway's subscription.
[0135] In one embodiment, S210, the first gateway performs security management configuration on the device group requiring security management, including:
[0136] S340. The first gateway receives an event notification sent by the second gateway when the security group is changed.
[0137] S350: The first gateway updates its own security group information based on the event notification.
[0138] For example, if the security group information stored by the second gateway changes (referred to as a security group change), such as the addition or deletion of a group identifier, the addition or deletion of a source node identifier, or the addition or deletion of a network identifier, the second gateway may send an event notification to the first gateway. After receiving the event notification, the first gateway may update its own stored SecureGroups attributes. For example, the SecureGroups attributes may include the group identifier (GroupID), source node information (SourceNodes), home network identifier (FabricID), and group key set identifier (GroupKeySetID).
[0139] In one embodiment, the first gateway performs group security management configuration on the device group requiring security management, including:
[0140] S360: When the security group in the first gateway is changed, the first gateway sends an event notification to the second gateway.
[0141] For example, if the security group information stored by the first gateway changes, such as the addition or deletion of a group identifier, the addition or deletion of a source node identifier, or the addition or deletion of a network identifier, the first gateway can send an event notification to the second gateway. After receiving the event notification, the second gateway can update its own stored SecureGroups attributes. For example, it can update the group identifier (GroupID), source node information (SourceNodes), home network identifier (FabricID), group key set identifier (GroupKeySetID), etc. in the SecureGroups attributes.
[0142] In one embodiment, the security group change event includes the current state and the state before the change of the security group that has changed.
[0143] In an embodiment of the present application, the gateway's security group change event can save the current state and the state before the change of the security group that has changed. If it changes again, the current state can be used to overwrite the state before the change, and the changed state can be used to overwrite the original current state. The gateway's security group change event can also save multiple states. For example, the N-2th state, the N-1th state, and the Nth state. Among them, the Nth state can be the current state.
[0144] In one embodiment, the current state includes the group management structure of the device group that currently requires security management, and the state before the change includes the group management structure of the device group that requires security management before the change.
[0145] In the embodiment of the present application, the attributes and parameters of the group management structure of the device group that needs to be securely managed currently and / or before the change can refer to the relevant description of the attributes and parameters of the group management structure mentioned above.
[0146] In one embodiment, the device group requiring security management includes at least one first device in a home network of the first gateway, and the first device is a source node in the first security group.
[0147] In an embodiment of the present application, the first gateway can perform group security management configuration for the device group in the same home network as itself. For example, the information of the first security group can be recorded through the type attribute of the above-mentioned function set (Group Security Management Cluster) for group security management. The information of the first security group may include information about one or more first devices that need to be security managed and the device group to which they belong. For another example, at least one of the home network identifier, group identifier, group key set identifier, and source node information of the device group to which the first device belongs is recorded through a security group list. For another example, in the event that the first security group changes, the first gateway sends an event notification to the second gateway, and the event notification can inform the second gateway that the first security group has changed, thereby synchronizing the information of the first security group in the second gateway.
[0148] In one embodiment, the device group requiring security management includes at least one second device that is not in the home network of the first gateway, and the second device is a source node in the second security group.
[0149] In an embodiment of the present application, the first gateway can perform group security management configuration for a device group that is not in the same home network as itself. For example, the information of the second security group can be recorded through the above-mentioned function set (Group Security Management Cluster) for group security management. The information of the second security group may include information about one or more second devices that need to be security managed and the device group to which they belong. For another example, at least one of the home network identifier, group identifier, group key set identifier, and source node information of the device group to which the second device belongs is recorded through a security group list. For another example, in the event that the second security group changes, the first gateway sends an event notification to the second gateway, and the event notification can inform the second gateway that the second security group has changed, thereby synchronizing the information of the second security group in the second gateway.
[0150] Figure 4 is a schematic flow chart of a device management method 400 according to an embodiment of the present application. This method can be implemented independently or include one or more features of the aforementioned device management methods. For example, the method may include one or more steps in which the first gateway performs group security management configuration on a device group requiring security management. This method may optionally be applied to the system shown in Figure 1, but is not limited thereto. The method includes at least some of the following.
[0151] S410: The first gateway receives a message from a device;
[0152] S420: The first gateway processes the message based on the security group information, wherein the security group information includes information of a device group requiring security management.
[0153] In an embodiment of the present application, the first gateway may receive a message sent by its associated node device and then process the message based on the security group information set in the above embodiment, such as information in the Group Security Management Cluster.
[0154] In one embodiment, the security management is related to multicast messages from devices within the device group. Since the security group information includes information about the device group requiring security management, it is possible to verify whether the message originated from a member of the device group requiring security management, thereby improving the security of the members of the device group requiring security management.
[0155] FIG5 is a schematic flow chart of a device management method 500 according to another embodiment of the present application. The method may include one or more features of the above-mentioned device management method. In one embodiment, S420, the first gateway processes the message based on the security group information, including:
[0156] S510: The first gateway identifies the message as a multicast message based on the multicast address of the message, where the multicast address is used to indicate the network identifier and / or group identifier.
[0157] In one embodiment, at S420, the first gateway processes the message based on the security group information, including:
[0158] S520: The first gateway extracts a network identifier and / or a group identifier from the message, wherein the network identifier is an identifier of a home network of the device, and the group identifier is an identifier of a device group to which the device belongs.
[0159] In one embodiment, at S420, the first gateway processes the message based on the security group information, including:
[0160] S530. When the group identifier is in the security group list corresponding to the network identifier, the first gateway obtains the node identifier and / or source IP address of the source node according to the message, and the source node is the device that sent the message. The security group list may be in the security group information described in the above embodiment. The source node corresponding to the source IP address may generally be a member of the device group corresponding to the multicast address. For example, if a node device sends a multicast message to the first gateway, the node device may be the source node of the multicast message. The source node identifier of the multicast message may be obtained in the Matter message frame of the multicast message. The source IP address of the multicast message may be obtained in the network layer information of the multicast message.
[0161] In one embodiment, at S420, the first gateway processes the message based on the security group information, including:
[0162] S540: If the group identifier is not in the security group list corresponding to the network identifier, the first gateway forwards the multicast message.
[0163] In an embodiment of the present application, after the first gateway extracts the network identifier and / or group identifier from the multicast address of the message, it can search the security group list corresponding to the network identifier and determine whether the group identifier is included in the security group list. In some cases, it is necessary to combine the group identifier and the group key set identifier to determine whether a security group is included in the security group list. This is because group identifiers may conflict in Fabric, for example, two different groups defined in Fabric are assigned the same group ID. In this case, it can be determined that the security group list includes the group identifier based on the fact that both the group identifier and the group key set identifier are in the security group list, otherwise it is determined that the group identifier is not included. Alternatively, it can be considered that the group identifier includes both the GroupID and the GroupKeySetID.
[0164] If the security group list corresponding to the network identifier is found, and the security group list corresponding to the network identifier contains the group identifier, the first gateway can execute S530 and further obtain the node identifier and / or source IP address of the source node based on the message. Otherwise, if the security group list corresponding to the network identifier cannot be found or the group identifier is not in the security group list corresponding to the network identifier, it means that the message does not come from the device group that requires security management. Therefore, the first gateway can execute S540 to forward the multicast message. For example, the first gateway can forward the multicast message to all nodes in its network. After receiving the multicast message, the member device that does not belong to the security group corresponding to the group identifier may not forward it to any of its own endpoints for processing. Therefore, for the endpoint, usually only the endpoint within the security group will receive the multicast message.
[0165] In one embodiment, S420, the first gateway processes the message based on the security group information, further comprising:
[0166] S550: When there is a mapping relationship between the node identifier of the source node and the source IP address and the node identifier of the source node is in the source node list corresponding to the group identifier, the first gateway sends the multicast message to other nodes associated with it.
[0167] In one embodiment, S420, the first gateway processes the message based on the security group information, further comprising:
[0168] S560: If there is no mapping relationship between the node identifier of the source node and the source IP address, confirm that the multicast message is illegal.
[0169] In one embodiment, S420, the first gateway processes the message based on the security group information, further comprising:
[0170] S570: If the node identifier of the source node is not in the source node list corresponding to the group identifier, confirm that the multicast message is illegal.
[0171] After the first gateway obtains the node identifier and / or source IP address of the source node at S530, it can determine whether a mapping relationship exists between the node identifier and the source IP address of the source node, or it can determine whether the node identifier of the source node is in the source node list corresponding to the group identifier. The order of these two determination steps can be changed.
[0172] For example, after first obtaining the source IP address of the source node of the multicast message, if it is determined that a mapping relationship exists between the node identifier of the source node and the source IP address, it is possible to further determine whether the node identifier of the source node is in the source node list corresponding to the group identifier. If it is first determined that no mapping relationship exists between the node identifier of the source node and the source IP address, S560 can be executed to determine that the message is an invalid message, and there is no need to further obtain the node identifier of the source node of the multicast message and determine whether the node identifier of the source node is in the source node list corresponding to the group identifier.
[0173] For another example, after first obtaining the node identifier of the source node of the multicast message, if it is determined that the node identifier of the source node is in the source node list corresponding to the group identifier, the source IP address of the source node of the multicast message can be obtained and a determination can be made whether a mapping relationship exists between the node identifier of the source node and the source IP address. If it is first determined that the node identifier of the source node is not in the source node list corresponding to the group identifier, step S570 can be executed to determine that the message is an invalid message, and there is no need to further obtain the source IP address of the source node of the multicast message and determine whether a mapping relationship exists between the node identifier of the source node and the source IP address.
[0174] For another example, two determination steps can be performed simultaneously, and the results of the two determinations can be combined to obtain a final determination result. If both determination results are positive, the multicast message can be determined to be legitimate, and subsequent forwarding operations can be performed. If one of the two determination results is negative, the multicast message can be determined to be illegitimate, and subsequent operations for illegitimate messages can be performed.
[0175] For example, Fabric 1 includes home gateway 11, node device 12, and node device 13, and Fabric 2 includes home gateway 21, node device 22, and node device 23. Node devices 22 and 23 can also be connected to home gateway 11. If home gateway 11 receives message M1 from node device 13 and parses message M1, it obtains the network identifier F1 and group identifier G1.
[0176] If the security group list corresponding to the network identifier F1 contains the group identifier G1 of the message M1, the home gateway 11 can continue to obtain the node identifier and source IP address of the source node based on the message M1. If the security group list corresponding to the network identifier F1 does not contain the group identifier G1 of the message M1, the home gateway 11 can forward the message M1 to a device or gateway other than the node device 13 connected to the home gateway 11.
[0177] If the home gateway 11 obtains the node identifier and source IP address of the source node, it can verify whether a mapping relationship exists between the node identifier and the source IP address of the source node based on a pre-stored mapping relationship. If no mapping relationship exists, the home gateway 11 can determine that message M1 is invalid. If a mapping relationship exists, the home gateway 11 can further verify whether the node identifier of the source node is in the source node list corresponding to the group identifier G1. If so, the home gateway 11 can forward message M1 to the node device 13, node device 22, and node device 23 associated with the home gateway 11. If not, the home gateway 11 determines that message M1 is invalid.
[0178] In one implementation, the device includes a first device in a first network to which the first gateway belongs, the first device is in a first security group, and the message from the first device is a first message.
[0179] In an embodiment of the present application, the first device that sends the first message to the first gateway may be in the same Fabric as the first gateway. After the first gateway receives the first message from the first device, it may process the first message based on the security group information. After the first gateway identifies that the first message is a multicast message based on the multicast address of the first message, it may extract the network identifier and / or group identifier from the multicast address of the first message. If the group identifier exists in the security group list corresponding to the network identifier, the first gateway may obtain the node identifier and source IP address of the source node based on the first message. If the group identifier does not exist in the security group list corresponding to the network identifier, the first gateway may forward the multicast message to the member devices of the first security group or the device associated with the first gateway.
[0180] In one implementation, the first gateway includes a mapping relationship between the address information of the first device and the node identifier.
[0181] In an embodiment of the present application, after the first gateway obtains the node identifier and source IP address of the source node based on the first message, it can determine whether there is a mapping relationship between the node identifier and the source IP address of the source node of the first message based on the mapping relationship between the address information of the first device and the node identifier stored in the first gateway. And the first gateway can determine whether the node identifier of the source node is in the source node list corresponding to the group identifier based on the source node list in the security group list. If there is a mapping relationship between the node identifier and the source IP address of the source node of the first message and the node identifier of the source node is in the source node list corresponding to the group identifier, the first gateway sends the first message to other nodes associated with it. Otherwise, if there is no mapping relationship between the node identifier and the source IP address of the source node of the first message or the node identifier of the source node is not in the source node list corresponding to the group identifier, the first gateway can determine that the first message is illegal.
[0182] In one embodiment, the device includes a second device that is not in a second network to which the first gateway belongs, the second device is in a second security group, and the message from the second device is a second message.
[0183] In an embodiment of the present application, the second device that sends the second message to the first gateway may not be in the same Fabric as the first gateway. After the first gateway receives the second message from the second device, it may process the second message based on the security group information. After the first gateway identifies that the second message is a multicast message based on the multicast address of the second message, it may extract the network identifier and / or group identifier from the multicast address of the second message. If the group identifier exists in the security group list corresponding to the network identifier, the first gateway may obtain the node identifier and source IP address of the source node based on the second message. If the group identifier does not exist in the security group list corresponding to the network identifier, the first gateway may forward the multicast message to the member devices of the second security group. In an embodiment of the present application, the security group list corresponding to the network identifier can be understood as an item in the security group list that can be found based on the network identifier, and the security group list corresponding to different network identifiers may not include the network identifier itself. The security group list corresponding to the network identifier can also be understood as a security group list that includes the network identifier.
[0184] For example, assuming the first gateway is in Fabric 1 and Fabric 2, the network identifier indicated in the first message is Fabric 1 or Fabric 2, while the network identifier indicated in the second message is another Fabric ID, such as Fabric 3. If the security group list implicitly indicates the gateway's home fabric during configuration, and the complete security group list includes five items, the instructions for belonging to Fabric 1 will display a security group list with three items, while the instructions for belonging to Fabric 2 will display a security group list with two items. In this case, after extracting Fabric 1 from the multicast address of the first message, the first gateway can confirm that the first message belongs to Fabric 1. It can then find the corresponding security group list item based on Fabric 1 and search the three items in the security group list corresponding to Fabric 1d for the corresponding group ID. The security group list of Fabric 1 only needs to include the group identifier, not the Fabric ID, for the first gateway to determine the group corresponding to Fabric 1. In contrast, if the second message belongs to Fabric 3, the first gateway's security group list must explicitly state the fabric corresponding to each group in order to determine the fabric to which the second message belongs. For example, if Group 1 corresponds to Fabirc1 and Group 2 corresponds to Fabirc3, and the first gateway can extract Fabirc3 from the multicast address of the second message, then it can be determined that the second message belongs to Fabirc3. If Fabirc3 and its corresponding Group 2 can be found in the security group list, it can be determined that Group 2 exists in the security group list corresponding to Fabirc3.
[0185] In one implementation, the first gateway includes a mapping relationship between the address information of the second device and the node identifier.
[0186] In an embodiment of the present application, after the first gateway obtains the node identifier and source IP address of the source node based on the second message, it can determine whether there is a mapping relationship between the node identifier and the source IP address of the source node of the second message based on the mapping relationship between the address information of the second device and the node identifier stored in the first gateway. And the first gateway can determine whether the node identifier of the source node is in the source node list corresponding to the group identifier based on the source node list in the security group list. If there is a mapping relationship between the node identifier and the source IP address of the source node of the second message and the node identifier of the source node is in the source node list corresponding to the group identifier, the first gateway sends the second message to other nodes associated with it. Otherwise, if there is no mapping relationship between the node identifier and the source IP address of the source node of the first message or the node identifier of the source node is not in the source node list corresponding to the group identifier, the first gateway can determine that the second message is illegal.
[0187] Figure 6 is a schematic flow chart of a device management method 600 according to another embodiment of the present application. This method can be implemented independently or include one or more features of the aforementioned device management methods. For example, the method may include one or more steps in which the first gateway performs group security management configuration on a device group requiring security management. This method may optionally be applied to the system shown in Figure 1, but is not limited thereto. The method includes at least some of the following.
[0188] S610: The first gateway receives a message from a device;
[0189] S620: The first gateway processes the message based on the security group information, wherein the security group information includes information about a device group requiring security management.
[0190] In one embodiment, the message from the device includes a third message that is suspected to be unsafe.
[0191] In the embodiment of the present application, if the node device receives a suspected unsafe third message, it can report the third message to the first gateway through a group behavior reporting command. The third message can also be called a suspected message, an unsafe message, an illegal message, an abnormal message, etc.
[0192] In one embodiment, the suspected unsafe third message, the group identifier, the source node identifier, and at least one of the occurrence time of the third message are carried in the group behavior reporting command.
[0193] In one embodiment, the first gateway receives a group behavior reporting command, where the group behavior reporting command carries at least one of a suspected unsafe third message, a group identifier of the third message, a source node identifier, and an occurrence time.
[0194] In the embodiment of the present application, the node device can proactively report the group behavior to the first gateway via a message. For example, if the node device 12 finds an abnormal message, it can send a group behavior reporting command to the gateway device 11 to proactively report the abnormal group behavior to the gateway device 11.
[0195] In one embodiment, the attributes of the group behavior reporting command include at least one of an identifier, a name, a sending direction, a response mode, accessibility, and necessity of the group behavior reporting command.
[0196] For example, the sending direction in the group behavior reporting command can be client to server, indicating that the command is sent from the node device to the gateway. Among them, the gateway can implement the server-side function of the Group Security Management Cluster, and the node device can implement the client-side function of the Group Security Management Cluster. The response mode can be "response required" (Y), indicating that the gateway needs to feedback the response to the received command. Accessibility can be O, indicating operation authority (Operate). For example, the permissions defined by Matter include View, Operate, Manage, and Administer, which are inclusive from back to front. View only has read permissions, and Operate includes write operation data and call operation commands in addition to reading. Necessity can be mandatory (M).
[0197] For example, the parameters in the group behavior reporting command may include at least one of the suspected unsafe third message, the group identifier of the third message, the source node identifier, and the occurrence time.
[0198] In an embodiment of the present application, the third message may be a parameter in the group behavior reporting command. Furthermore, the parameters in the group behavior reporting command may include the group identifier of the device group to which the third message belongs, the source node identifier of the device sending the third message, the sending time of the third message, the receiving time of the third message, and the like. After receiving the group behavior reporting command, the first gateway may determine whether to determine the third message as an illegal message based on the parameters in the group behavior reporting command.
[0199] In one embodiment, the group of behavior reporting commands is a malicious behavior reporting command. The malicious behavior reporting command is primarily used to report messages related to malicious behavior and related information to the gateway. The malicious behavior reporting command may also be referred to by other names, such as abnormal behavior reporting command, attack behavior reporting command, unsafe behavior command, illegal behavior command, etc.
[0200] In one embodiment, the parameters in the malicious behavior reporting command include at least one of the command's identifier, name, sending direction, response method, accessibility, and necessity. For example, the sending direction in the malicious behavior reporting command may be client-to-server, indicating that the command is sent from a node device to a gateway. For other attributes, refer to the related examples of the group behavior reporting command described above.
[0201] In one embodiment, the parameters in the malicious behavior reporting command include at least one of a network identifier, a malicious node identifier, a malicious behavior type, additional data, and an occurrence time.
[0202] In an embodiment of the present application, the third message may be a parameter in the malicious behavior reporting command. In addition, the parameters in the malicious behavior reporting command may also include the group identifier of the device group to which the third message belongs, the malicious node identifier of the device sending the third message, the sending time of the third message, the receiving time of the third message, etc. The parameters in the malicious behavior reporting command may also include one or more malicious behavior types. After receiving the malicious behavior reporting command, the first gateway may decide whether to determine the third message as an illegal message based on the parameters in the malicious behavior reporting command.
[0203] In one embodiment, the malicious behavior type includes at least one of the following:
[0204] A node that cannot be a group message sender pretends to be a group message sender and sends a group message;
[0205] Sending fake group messages through replay or reassembly;
[0206] Launch a flood attack on the network by sending a large number of messages;
[0207] Rapidly consume battery power through frequent communications;
[0208] Prevent normal modification of the Access Control List (ACL).
[0209] For example, if node device 31 is not a device in a certain device group, but node device 31 impersonates the group message sender and sends a group message. Other node devices that obtain the group message can report the role impersonation behavior of node device 31. For another example, if node device 21 replays or reorganizes the group message it has received and then sends it. Other node devices that obtain the group message can report the replay or reorganization behavior of node device 21. For another example, if node device 11 sends a large number of messages in a short period of time. Other node devices that obtain these messages can report the flooding attack behavior of node device 11. For another example, if node device 12 communicates frequently in a short period of time. Other node devices that obtain these messages can report the frequent communication behavior of node device 12. By reporting the specific type of malicious behavior, it is helpful for the auxiliary gateway to quickly and accurately determine the malicious behavior.
[0210] FIG7 is a schematic flow chart of a device management method 700 according to another embodiment of the present application. The method may include one or more features of the above-mentioned device management method. In one embodiment, S620, the first gateway processes the message based on the security group information, including:
[0211] S710. The first gateway obtains the home network indicated by the group behavior reporting command;
[0212] S720: When the group identifier of the third message is in the security group list of the home network indicated by the group behavior reporting command, the first gateway obtains the node identifier and / or source IP address of the source node according to the third message.
[0213] In an embodiment of the present application, there may be multiple ways for a reporting command to indicate the home network. For example, a parameter indicating the home network, such as FabricID, is included in the reporting command. For another example, the reporting command does not include a parameter indicating the home network, but rather information in the reporting command itself, such as the session context, indicates the home network. For example, a gateway may have different node IDs in different Fabrics. If a gateway belongs to Fabric1 and Fabric2, the node ID of the gateway in Fabric1 is Node1, and the node ID in Fabric2 is Node2. At this time, a node device sends a reporting command to the gateway through Fabric1, and the node device needs to first establish a secure connection with Node1, and then send the reporting command based on this secure connection. The gateway can determine that the command is sent to Node1 based on the session context of the reporting command, and therefore belongs to Fabric1.
[0214] In one embodiment, at S620, the first gateway processes the message based on the security group information, including:
[0215] S730: If the group identifier of the third message is not in the security group list of the home network indicated by the group behavior reporting command, process the third message as a legal message.
[0216] In this embodiment of the present application, the first gateway obtains the third message and the home network identifier and group identifier of the third message based on the group behavior reporting command. A determination may be made as to whether the group identifier is in the security group list corresponding to the home network identifier. If so, S720 may be executed to further determine whether the node identifier of the source node of the third message is in the source node list corresponding to the group identifier of the third message. Otherwise, S730 may be executed to determine that the third message is legitimate and process it as such. For example, the third message may be forwarded with a notification indicating that it is legitimate, or processing may be discontinued.
[0217] In one embodiment, S620, the first gateway processes the message based on the security group information, further comprising:
[0218] S740: When there is a mapping relationship between the node identifier of the source node and the source IP address and the node identifier of the source node is in the source node list corresponding to the group identifier of the third message, the first gateway confirms that the third message is legal.
[0219] In this embodiment of the present application, since the third message has been forwarded to the target group node, it is the target group node that reported the anomaly to the gateway after discovering it. Therefore, for the gateway, the third message can be considered a historical message. The gateway can obtain the source IP address from the historical messages and cache some of the historical messages in the gateway.
[0220] S720 may be executed to determine whether the node identifier of the source node of the third message is in the source node list corresponding to the group identifier of the third message. If so, S740 may be executed to obtain the source IP address of the source node based on the third message. Otherwise, the third message may be determined to be illegal.
[0221] In one embodiment, S620, the first gateway processes the message based on the security group information, further comprising:
[0222] S750: When the node identifier of the source node is not in the source node list corresponding to the group identifier of the third message, the first gateway confirms that the third message is illegal.
[0223] In one embodiment, S720, the first gateway processes the message based on the security group information, further comprising:
[0224] S760: When there is no mapping relationship between the node identifier of the source node and the source IP address, the first gateway confirms that the third message is illegal.
[0225] In an embodiment of the present application, after the first gateway obtains the node identifier and / or source IP address of the source node of the third message, it can determine whether the node identifier of the source node of the third message is in the source node list corresponding to the group identifier of the third message, and can also determine whether there is a mapping relationship between the node identifier and the source IP address of the source node of the third message. The order of these two determination steps can be changed.
[0226] For example, after first obtaining the source IP address of the source node of the third message, if it is determined that a mapping relationship exists between the node identifier of the source node of the third message and the source IP address, the node identifier of the source node of the third message may be further obtained, and a determination may be made as to whether the node identifier of the source node is in the list of source nodes corresponding to the group identifier. If it is first determined that no mapping relationship exists between the node identifier of the source node of the third message and the source IP address, S760 may be executed to determine that the third message is an invalid message, without further obtaining the node identifier of the source node of the third message and determining whether the node identifier of the source node is in the list of source nodes corresponding to the group identifier.
[0227] For another example, if the node identifier of the source node of the third message is first obtained and it is determined that the node identifier of the source node of the third message is in the source node list corresponding to the group identifier, the source IP address of the source node of the third message can be obtained and a determination can be made whether a mapping relationship exists between the node identifier of the source node and the source IP address. If it is first determined that the node identifier of the source node of the third message is not in the source node list corresponding to the group identifier, step S750 can be executed to determine that the third message is an invalid message, without further obtaining the source IP address of the source node of the third message and determining whether a mapping relationship exists between the node identifier of the source node and the source IP address.
[0228] For another example, two judgment steps may be performed simultaneously, and the judgment results of the two may be combined to obtain a final judgment result to determine whether the third message is legal or illegal.
[0229] In one embodiment, the method further includes performing at least one of the following processes on the illegal message:
[0230] The first gateway filters out the illegal message;
[0231] The first gateway performs communication isolation on the node that sends the illegal message;
[0232] The first gateway sends a prompt message to the user terminal, where the prompt message is used to prompt that the message is illegal.
[0233] In an embodiment of the present application, if the first, second, or third message is illegal, the illegal message may be directly filtered out, the device (source node) sending the illegal message may be isolated from communication, or a prompt message may be sent to the user device to inform the user which message is illegal. The prompt message may include one or more information such as the network, group, source node, and message content to which the illegal message belongs, without limitation.
[0234] In one embodiment, the prompt information may include warning information for issuing a warning for illegal messages.
[0235] The various steps of the method 400 to 700 executed by the first device of this embodiment can be combined with the various steps in the above-mentioned methods 200 to 300. For the sake of brevity, the combined solution will not be described here.
[0236] The device management method provided in the embodiment of the present application may be a method for managing group communication via a home gateway device. The method may include at least one of the following:
[0237] (1) The home gateway device supports the administrator device to set the group to be managed, and filters the group messages based on the setting and the matching relationship between the maintained device node ID and its address.
[0238] (2) The home gateway device determines that the multicast behavior of the node is abnormal based on the reported multicast information and isolates it.
[0239] (3) After the group security management settings are changed, the home gateway device maintains synchronization among multiple home gateways through event notification. The home gateway can be an access point (AP) such as a router.
[0240] In some examples, home gateway devices such as home routers and access points (HRAPs) maintain the address information (IP addresses and ports) of all devices in the home network on the one hand, and also maintain all node information (NodeID) of the fabric network on the other hand. The home gateway device may include a group security management function set (Group Security Management Cluster) for administrators to configure information about groups that require security management. For example, the home gateway device may be a Matter home gateway device in a Matter-based network, or a gateway device in a network based on other IoT protocols.
[0241] Table 4
[0242] The following are examples of the Group Security Management Cluster's attributes, commands, and events. Attributes can be implemented by the server and read and written by the client. Commands can include server-side logic and client-side logic. Events can be implemented by the server and read or subscribed to by the client.
[0243] 1. Attributes
[0244] For example, the Group Security Management Cluster contains the following attributes:
[0245] Table 5
[0246] Among them, FA in the Access column indicates that the attribute is fabric-scoped and can only be accessed by administrators of this fabric. The constraint attribute is desc, which can be GroupMgmtStruct (see Table 6). The quality type is N, which indicates that the value of the attribute data is non-volatile and remains unchanged (persistent) during restart. Default is empty, which means the default value is empty. Conformance is M, which means it is required. An example of the group management structure (GroupMgmtStruct) in the list[] type can be seen in Table 6:
[0247] Table 6
[0248] GroupId is the group ID of the managed multicast group, such as the Matter group. GroupKeySetID is the group key set ID of the Matter group. These two IDs uniquely identify a group in Fabric. SourceNodes is a list of nodes that can send group messages, limiting the nodes in the group that can send group messages. Conformance is M for required, and O for optional.
[0249] 2. Command
[0250] For example, a Group Security Management Cluster might include the following commands:
[0251] Table 7
[0252] The GroupBehaviorReport command can be used by other nodes in the fabric to send messages to the home gateway device to report suspicious multicast behavior in the network. It contains the following parameters:
[0253] Table 8
[0254] The GroupId field may include the group ID of the suspicious group message, the SourceNode field may include the ID of the sending node of the suspicious group message, and the TimeStamp field may include the time when the group message was generated. epoch-us indicates the time format.
[0255] 3. Events
[0256] For example, a Group Security Management Cluster can include the following events:
[0257] Table 9
[0258] A Priority of CRITICAL indicates that the event priority affects the user's physical safety or the reliable operation of a node (or node cluster). Changes to Group Security Management Cluster attributes, such as the SecureGroups attribute, can trigger this event.
[0259] For example, the Security Group Change (SecureGroupsChange) event contains the following data:
[0260] Table 10
[0261] Current represents the current value of the SecureGroups attribute after the change, and Previous represents the value of the SecureGroups attribute before the change. Constraint is V, indicating observable, supporting functions such as reading and subscription.
[0262] As shown in Figure 8, a user's mobile phone or other smart terminal can serve as the administrator device (Admin). The network includes two home gateways, such as Home Gateway 1 and Home Gateway 2, and two standard devices, such as Device 1 and Device 2. In an exemplary application scenario, the home gateway can be a Matter home gateway device, and the standard devices can be standard Matter devices. The group communication security management process for home gateways and standard devices in other IoT protocol scenarios can refer to the group communication security management process in the Matter scenario.
[0263] Example 1:
[0264] 9, 10, and 11, the group communication security management process may include the following parts:
[0265] 1. Referring to Figure 9, the group security management configuration may include the following steps:
[0266] S901, after a home gateway such as a Matter home gateway device joins the Matter Fabric, it obtains the Matter device information in the Fabric and forms a network address with the device.<NodeID,IP> Mapping relationship. For example, Home Gateway 1 maintains the mapping relationship between the node identifier (NodeID) and the IP address of the Matter device in the Fabric to which it belongs. Home Gateway 2 maintains the mapping relationship between the node identifier (NodeID) and the IP address of the Matter device in the Fabric to which it belongs.
[0267] S902. The home gateways subscribe to each other's security group change (SecureGroupsChange) event.
[0268] S903. The user can use a mobile phone or other administrator device to send a command to create a multicast group Group 1 to HomeGateway1 and HomeGateway2 respectively, and select Device1 and Device2 to form Matter multicast group Group 1.
[0269] S904: The user sends a setup command to HomeGateway1 through the administrator device to add Group1 to HomeGateway1's security group (SecureGroups) information. The source node (SourceNodes) can be Device1. In this step, the security group information may include the attributes of the Group Security Management Cluster listed in Tables 5 and 6. For example, the GroupMgmtStruct structure stores the security group's GroupId, GroupKeySetID, SourceNodes, and other information.
[0270] S905: After the SecureGroups of HomeGateway1 are changed, a notification is sent to other Matter home gateway devices through the SecureGroupsChange event. For example, HomeGateway1 synchronizes the SecureGroups configuration with HomeGateway2.
[0271] S906. After receiving the notification, HomeGateway2 updates its own SecureGroups to the latest configuration.
[0272] Referring to FIG9 , security group message identification and processing may include the following steps:
[0273] S907: Device 1 sends a group message to Group 1, which is first sent to HomeGateway 1. S907 can be executed after S901 or after S906.
[0274] S908. HomeGateway 1 identifies the message as a multicast message based on the multicast address of the message (eg, prefix FF35:0040). For example, the multicast address may be an IPv6 address.
[0275] S909: HomeGateway1 extracts the FabricID and GroupID from the multicast address and checks whether the GroupID is in the SecureGroups list of the fabric corresponding to the FabricID. As shown in Table 6, the SecureGroups list can store the GroupID, GroupKeySetID, SourceNodes list, and other information for device groups requiring security management. If the GroupID is not in the SecureGroups list, indicating that the multicast message does not require security management, HomeGateway1 forwards the multicast message (e.g., to other nodes in the network).
[0276] S910. If the GroupID is in the SecureGroups list, HomeGateway1 further obtains the NodeID of the source node. HomeGateway1 confirms whether Device1 is in the SourceNodes list corresponding to the GroupID, that is, whether the NodeID of the source node is in the SourceNodes list. If the NodeID of the source node is not in the SourceNodes list, HomeGateway1 can filter out the multicast message and not send it. In addition, if the NodeID of the source node is not in the SourceNodes list, HomeGateway1 can also determine that the multicast message is illegal, and can subsequently perform operations such as sending node isolation and prompts.
[0277] S911: If the source node's NodeID is in the SourceNodes list, HomeGateway1 further obtains the source IP address. HomeGateway1 confirms whether there is a mapping between the source node's NodeID and the source IP address. If not, HomeGateway1 may filter out the multicast message and not send it. Furthermore, if there is no mapping between the source node's NodeID and the source IP address, HomeGateway1 may also determine that the multicast message is illegal and may subsequently perform actions such as isolating the sending node and providing a prompt.
[0278] S912. If the NodeID of the source node is in the SourceNodes list corresponding to Group1 and there is a mapping relationship between the source node NodeID and the source IP, HomeGateway1 sends a group message to other nodes in the network, such as HomeGateway2 and Device2.
[0279] 2. Referring to Figure 10, unsafe group message identification and processing may include the following steps:
[0280] S1001: Device 2 sends a group message to Group 1, which is first sent to HomeGateway 2. S1001 can be executed after S901, after S906, or after S912.
[0281] S1002, HomeGateway2 identifies the message as a multicast message through the multicast address of the message (for example, prefix FF35:0040).
[0282] S1003: HomeGateway2 extracts the FabricID and GroupID from the multicast address and checks whether the GroupID is in the SecureGroups list of the Fabric corresponding to the FabricID. If the GroupID is not in the SecureGroups list, HomeGateway2 forwards the multicast message.
[0283] S1004: If the GroupID is in the SecureGroups list, HomeGateway2 further obtains the NodeID of the source node and confirms whether the NodeID of the source node is in the SecureGroups list.
[0284] S1005: If the source node's NodeID is not in the SecureGroups list, that is, Device2 is not in the SourceNodes list corresponding to the GroupID, HomeGateway2 filters out the multicast message and does not send it. HomeGateway2 may also determine that the multicast message is illegal and subsequently perform operations such as isolating the sending node and providing a prompt.
[0285] 3. Reporting and handling of suspected unsafe group messages:
[0286] At step S1101, Device 1 receives a group message from Group 1 and, after parsing the message, questions its legitimacy. For example, it determines that the group message may be a replay or some other illegal message. Step S1101 can be executed after step S901, S906, S912, or S1001.
[0287] S1102: Device 1 reports the suspicious group message to HomeGateway 1. For example, the suspicious group message may be carried in a GroupBehaviorReport command, which may also carry the group ID of the group message, the sending node ID (source node ID), and the time when the group message was generated.
[0288] S1103. HomeGateway1 confirms the fabric where the GroupBehaviorReport command is located, and further confirms whether the GroupID is in the SecureGroups list of the fabric.
[0289] S1104 , the GroupID is Group1. If Group1 is in the SecureGroups list, HomeGateway1 further confirms whether the NodeID of the sending node (ie, the source node) is in the SourceNodes list corresponding to the GroupID.
[0290] S1105 . If the NodeID of the sending node is in the SourceNodes list corresponding to the GroupID, HomeGateway1 further obtains the source IP address to confirm whether there is a mapping relationship between the NodeID of the sending node (ie, the source node) and the source IP address.
[0291] S1106: If there is no mapping relationship between the sending node NodeID and the source IP, HomeGateway1 confirms that the message is illegal, isolates the node where the source IP address is located (ie, the source node), and sends a prompt message to the user.
[0292] In an embodiment of the present application, by adding a Group Security Management Cluster to the Matter AP device, the Admin can configure its properties to implement secure processing of multicast messages by the AP, thereby achieving the purpose of securely managing multicast messages.
[0293] Example 2:
[0294] The main differences from Example 1 above include: adding the FabricID field to the GroupMgmtStruct of the Group Security Management Cluster to explicitly associate the group (Group) and the fabric (Fabric), allowing the home gateway device to manage group messages in a fabric other than its own:
[0295] Table 11
[0296] After the home gateway device is configured in Fabric1 and Fabric2, if Fabric3 exists and the home gateway device is not in Fabric3, Admin can also configure the home gateway device to manage group messages in Fabric3. The NodeID in Fabric3 and its mapping relationship with the device IP address need to be configured separately on the home gateway device. The rest of the management process is similar to Example 1, and you can refer to the relevant processes of Example 1 above. For example, after extracting the FabricID and GroupID from the multicast address, you can find the corresponding FabricID from GroupMgmtStruct based on the GroupID. Then, you can compare whether the extracted FabricID and the found FabricID are consistent. If they are consistent, the subsequent process will be executed. If they are inconsistent, the process can be terminated. For another example, you can first find a matching entry based on the extracted FabricID, and then filter the FabricID that matches the GroupID from the found Entry.
[0297] In addition, the GroupBehaviorReport command can be expanded to support reporting and control of more abnormal node behaviors, such as changing to the MaliciousBehaviorReport command. The example is as follows:
[0298] Table 12
[0299] This command can contain the following parameters:
[0300] Table 13
[0301] The MaliciousNode field in the command may include information such as the identifier of the malicious node, and the BehaviorType field may include the behavior type. For example, BehaviorTypeEmun may indicate the malicious behavior type. An example is as follows:
[0302] Table 14
[0303] In this command, the AdditionalData field can include additional data. Whether this field is included is determined by the BehaviorType. For example, when the BehaviorType value is FakeGroupMessage, the AdditionalData field should be included, and its value includes the ID of the group that has the abnormal behavior.
[0304] In the command, the TimeStamp field may include the time when the command is issued; the FabricId field may indicate the network to which the command belongs.
[0305] FIG12 is a schematic block diagram of a first gateway 1200 according to an embodiment of the present application. The first gateway 1200 may include:
[0306] The processing unit 1210 is configured to perform group security management configuration on a device group that requires security management.
[0307] In one embodiment, the security management is related to multicast messages of devices within the device group.
[0308] In one embodiment, the first gateway includes a mapping relationship between address information and node identifiers in a device group requiring security management.
[0309] FIG13 is a schematic block diagram of a first gateway 1300 according to another embodiment of the present application. In one embodiment, the first gateway 1300 further includes:
[0310] The first receiving unit 1310 is configured to receive information about a device group that requires security management; the information about the device group that requires security management may be carried in a group setting command;
[0311] The processing unit 1210 is further configured to set the device group information into the security group information.
[0312] In one embodiment, the security group information includes a security group list.
[0313] In one embodiment, the security group list is in the type attribute of the security group information.
[0314] In one embodiment, the security group list includes at least one of a home network identifier, a group identifier, a group key set identifier, and source node information of the device group requiring security management.
[0315] In one embodiment, at least one of the home network identifier, group identifier, group key set identifier, and source node information of the device group requiring security management is in the group management structure of the security group list.
[0316] In one embodiment, the source node information is used to indicate information of nodes that allow multicast.
[0317] In one embodiment, as shown in FIG13 , the first gateway 1300 further includes:
[0318] The second receiving unit 1320 is configured to receive an event notification sent by the second gateway when the security group is changed;
[0319] The processing unit 1210 is further configured to update its own security group information based on the event notification.
[0320] In one embodiment, the processing unit 1210 is further configured to subscribe to a security group change event of the second gateway.
[0321] In one embodiment, the first gateway 1300 further includes:
[0322] The sending unit 1330 is configured to send an event notification to the second gateway when the security group in the first gateway is changed.
[0323] In one embodiment, the security group change event of the first gateway is subscribed to by the second gateway.
[0324] In one embodiment, the security group change event includes the current state and the state before the change of the security group that has changed.
[0325] In one embodiment, the current state includes the group management structure of the device group that currently requires security management, and the state before the change includes the group management structure of the device group that requires security management before the change.
[0326] In one embodiment, the device group requiring security management includes at least one first device in the home network of the first gateway, the security group includes a first security group, and the first device is a source node in the first security group.
[0327] In one embodiment, the device group requiring security management includes at least one second device that is not in the home network of the first gateway, the security group includes a second security group, and the second device is a source node in the second security group.
[0328] The first gateways 1200 and 1300 of the embodiments of the present application can implement the corresponding functions of the first gateway in the aforementioned method embodiments. The processes, functions, implementation methods, and beneficial effects corresponding to the various modules (sub-modules, units, or components, etc.) in the first gateways 1200 and 1300 can be found in the corresponding descriptions in the aforementioned method embodiments and will not be repeated here. It should be noted that the functions described in the various modules (sub-modules, units, or components, etc.) in the first gateways 1200 and 1300 of the application embodiments can be implemented by different modules (sub-modules, units, or components, etc.) or by the same module (sub-module, unit, or component, etc.).
[0329] FIG14 is a schematic block diagram of a first gateway 1400 according to an embodiment of the present application. The first gateway 1400 may include:
[0330] The receiving unit 1410 is configured to receive a message from a device;
[0331] The processing unit 1420 is configured to process the message based on the security group information, wherein the security group information includes information about a device group requiring security management.
[0332] In one embodiment, the processing unit 1420 is further configured to extract a network identifier and / or a group identifier from the message, wherein the network identifier is an identifier of a home network of the device, and the group identifier is an identifier of a device group to which the device belongs.
[0333] In one embodiment, the processing unit 1420 is further configured to identify that the message is a multicast message based on a multicast address of the message, where the multicast address is used to indicate the network identifier and / or the group identifier.
[0334] In one embodiment, the processing unit 1420 is also used to obtain the node identifier and / or source IP address of the source node according to the message when the group identifier is in the security group list corresponding to the network identifier, and the source node is the device that sends the message.
[0335] In one embodiment, the security group list is in the security group information.
[0336] In one embodiment, the processing unit 1420 is further configured to send the multicast message to other associated nodes when there is a mapping relationship between the node identifier of the source node and the source IP address and the node identifier of the source node is in the source node list corresponding to the group identifier.
[0337] In one embodiment, the processing unit 1420 is further configured to determine that the multicast message is illegal when there is no mapping relationship between the node identifier of the source node and the source IP address.
[0338] In one embodiment, the processing unit 1420 is further configured to determine that the multicast message is illegal if the node identifier of the source node is not in the source node list corresponding to the group identifier.
[0339] In one embodiment, the processing unit 1420 is further configured to forward the multicast message if the group identifier is not in the security group list corresponding to the network identifier.
[0340] In one implementation, the device includes a first device in a first network to which the first gateway belongs, the first device is in a first security group, and the message from the first device is a first message.
[0341] In one implementation, the first gateway includes a mapping relationship between the address information of the first device and the node identifier.
[0342] In one embodiment, the device includes a second device that is not in a second network to which the first gateway belongs, the second device is in a second security group, and the message from the second device is a second message.
[0343] In one implementation, the first gateway includes a mapping relationship between the address information of the second device and the node identifier.
[0344] In one embodiment, the message from the device includes a third message that is suspected to be unsafe.
[0345] In one embodiment, the message from the device further includes at least one of the group identifier, source node identifier, and occurrence time of the third message.
[0346] In one embodiment, the suspected unsafe third message, at least one of the group identifier, source node identifier, and occurrence time of the third message is carried in a group behavior reporting command.
[0347] In one implementation, the group of behavior reporting commands is malicious behavior reporting commands.
[0348] In one embodiment, the parameters in the malicious behavior reporting command include at least one of a network identifier, a malicious node identifier, a malicious behavior type, additional data, and an occurrence time.
[0349] In one embodiment, the malicious behavior type includes at least one of the following:
[0350] A node that cannot be a group message sender pretends to be a group message sender and sends a group message;
[0351] Sending fake group messages through replay or reassembly;
[0352] Launch a flood attack on the network by sending a large number of messages;
[0353] Rapidly consume battery power through frequent communications;
[0354] Prevents normal modification of the ACL.
[0355] In one embodiment, the processing unit 1420 is also used to obtain the home network indicated by the group behavior reporting command; when the group identifier of the third message is in the security group list of the home network indicated by the group behavior reporting command, the node identifier and / or source IP address of the source node is obtained according to the third message.
[0356] In an embodiment, the processing unit 1420 is further configured to process the third message as a legal message if the group identifier of the third message is not in the security group list of the home network indicated by the group behavior reporting command.
[0357] In one embodiment, the processing unit 1420 is further configured to, when there is a mapping relationship between the node identifier of the source node and the source IP address and the node identifier of the source node is in the source node list corresponding to the group identifier of the third message, the first gateway confirming that the third message is legal.
[0358] In one embodiment, the processing unit 1420 is further configured to, when the node identifier of the source node is not in the source node list corresponding to the group identifier of the third message, determine, by the first gateway, that the third message is illegal.
[0359] In one embodiment, the processing unit 1420 is further configured to determine that the third message is illegal when there is no mapping relationship between the node identifier of the source node and the source IP address.
[0360] In one embodiment, the processing unit 1420 is further configured to perform at least one of the following processes on the illegal message:
[0361] Filter out the illegal message;
[0362] Isolate the node that sent the illegal message;
[0363] The control sending unit sends prompt information to the user terminal, where the prompt information is used to prompt that the message is illegal.
[0364] The first gateway 1400 of the embodiment of the present application can implement the corresponding functions of the first gateway in the aforementioned method embodiment. The corresponding processes, functions, implementation methods and beneficial effects of each module (sub-module, unit or component, etc.) in the first gateway 1400 can be found in the corresponding description in the above method embodiment, and will not be repeated here. It should be noted that the functions described in each module (sub-module, unit or component, etc.) in the first gateway 1400 of the embodiment of the application can be implemented by different modules (sub-modules, units or components, etc.) or by the same module (sub-module, unit or component, etc.).
[0365] Figure 15 is a schematic structural diagram of a communication device 1500 according to an embodiment of the present application. The communication device 1500 includes a processor 1510, which can call and execute a computer program from a memory to enable the communication device 1500 to implement the method in the embodiment of the present application.
[0366] In one embodiment, the communication device 1500 may further include a memory 1520. The processor 1510 may call and execute a computer program from the memory 1520 to enable the communication device 1500 to implement the method in the embodiment of the present application.
[0367] The memory 1520 may be a separate device independent of the processor 1510 , or may be integrated into the processor 1510 .
[0368] In one embodiment, the communication device 1500 may further include a transceiver 1530 , and the processor 1510 may control the transceiver 1530 to communicate with other devices. Specifically, the transceiver 1530 may send information or data to other devices, or receive information or data sent by other devices.
[0369] The transceiver 1530 may include a transmitter and a receiver. The transceiver 1530 may further include an antenna, and the number of antennas may be one or more.
[0370] In one embodiment, the communication device 1500 may be the first gateway of the embodiment of the present application, and the communication device 1500 may implement the corresponding processes implemented by the first gateway in each method of the embodiment of the present application. For the sake of brevity, they are not repeated here.
[0371] 16 is a schematic structural diagram of a chip 1600 according to an embodiment of the present application. The chip 1600 includes a processor 1610, which can call and execute a computer program from a memory to implement the method according to the embodiment of the present application.
[0372] In one embodiment, the chip 1600 may further include a memory 1620. The processor 1610 may call and execute a computer program from the memory 1620 to implement the method performed by the first gateway in the embodiment of the present application.
[0373] The memory 1620 may be a separate device independent of the processor 1610 , or may be integrated into the processor 1610 .
[0374] In one embodiment, the chip 1600 may further include an input interface 1630. The processor 1610 may control the input interface 1630 to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.
[0375] In one embodiment, the chip 1600 may further include an output interface 1640. The processor 1610 may control the output interface 1640 to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.
[0376] In one embodiment, the chip can be applied to the first gateway in the embodiment of the present application, and the chip can implement the corresponding processes implemented by the first gateway in each method of the embodiment of the present application. For the sake of brevity, it will not be repeated here.
[0377] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0378] The processor mentioned above may be a general-purpose processor, a digital signal processor (DSP), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or other programmable logic devices, transistor logic devices, discrete hardware components, etc. The general-purpose processor mentioned above may be a microprocessor or any conventional processor, etc.
[0379] The memory mentioned above may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM).
[0380] It should be understood that the above-mentioned memories are exemplary but not restrictive. For example, the memories in the embodiments of the present application may also be static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM RAM (DR RAM), etc. In other words, the memories in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.
[0381] FIG17 is a schematic block diagram of a communication system 1700 according to an embodiment of the present application. The communication system 1700 includes a first gateway 1710 and a node device 1720 .
[0382] In one embodiment, the first gateway 1710 is used to perform group security management configuration on a device group that requires security management.
[0383] In one embodiment, the first gateway 1710 is configured to receive a message from a device and process the message based on security group information, wherein the security group information includes information about a device group requiring security management. The node device 1720 is configured to send the message to the first gateway 1710.
[0384] The first gateway 1710 can be used to implement the corresponding functions implemented by the first gateway in the above method. The node device 1720 can be used to implement the corresponding functions implemented by the node device in the above method. For the sake of brevity, no further details will be given here.
[0385] In one embodiment, the communication system may further control a device, and the control device is used to implement the corresponding functions implemented by the control device in the above method, such as a smart terminal such as a mobile phone.
[0386] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function in accordance with the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode to another website, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).
[0387] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0388] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0389] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application should be included within the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A device management method, comprising: The first gateway performs group security management configuration on the device group that needs to be securely managed.
2. The method according to claim 1, wherein: The security management is related to multicast messages of devices within the device group.
3. The method according to claim 1 or 2, wherein: The first gateway includes a mapping relationship between address information and node identifiers in a device group that needs to be securely managed.
4. The method according to any one of claims 1 to 3, wherein: The first gateway performs group security management configuration for the device group that needs security management, including: The first gateway receives information about a device group that needs to be securely managed; The first gateway sets the information of the device group into the security group information.
5. The method according to claim 4, wherein: The security group information includes a security group list.
6. The method according to claim 5, wherein: The security group list is in the type attribute of the security group information.
7. The method according to claim 5 or 6, wherein: The security group list includes at least one of a home network identifier, a group identifier, a group key set identifier, and source node information of a device group that needs to be securely managed.
8. The method according to claim 7, wherein: The source node information is used to indicate information of nodes that allow multicast.
9. The method according to claim 7 or 8, wherein: At least one of the home network identifier, group identifier, group key set identifier, and source node information of the device group that needs security management is in the group management structure of the security group list.
10. The method according to any one of claims 1 to 9, wherein: The first gateway performs security management configuration on the device group that needs security management, including: The first gateway receives an event notification sent by the second gateway when a security group is changed; The first gateway updates its own security group information based on the event notification.
11. The method according to claim 10, wherein: The first gateway performs group security management configuration on the device group that needs to be securely managed, and also includes: the first gateway subscribes to the security group change event of the second gateway.
12. The method according to any one of claims 1 to 11, wherein: The first gateway performs group security management configuration on a device group that needs to be securely managed, including: when a security group in the first gateway is changed, the first gateway sends an event notification to the second gateway.
13. The method according to claim 12, wherein: The security group change event of the first gateway is subscribed by the second gateway.
14. The method according to any one of claims 1 to 13, wherein: The security group change event includes the current state and the state before the change of the changed security group.
15. The method according to claim 14, wherein: The current state includes the group management structure of the device group that currently needs to be securely managed, and the state before the change includes the group management structure of the device group that needs to be securely managed before the change.
16. The method according to any one of claims 1 to 15, wherein: The device group requiring security management includes at least one first device in the home network of the first gateway, and the first device is a source node in the first security group.
17. The method according to any one of claims 1 to 16, wherein: The device group requiring security management includes at least one second device that is not in the home network of the first gateway, and the second device is a source node in the second security group.
18. A device management method, comprising: The first gateway receives a message from the device; The first gateway processes the message based on security group information, wherein the security group information includes information of a device group that needs to be securely managed.
19. The method according to claim 18, wherein: The security management is related to multicast messages of devices within the device group.
20. The method according to claim 18 or 19, wherein: The first gateway processes the message based on the security group information, including: the first gateway extracts a network identifier and / or a group identifier from the message, wherein the network identifier is an identifier of a home network of the device, and the group identifier is an identifier of a device group to which the device belongs.
21. The method according to claim 20, wherein: The first gateway processes the message based on the security group information, including: the first gateway identifies that the message is a multicast message based on a multicast address of the message, where the multicast address is used to indicate the network identifier and / or the group identifier.
22. The method according to claim 20 or 21, wherein: The first gateway processes the message based on the security group information, including: when the group identifier is in the security group list corresponding to the network identifier, the first gateway obtains the node identifier and / or source IP address of the source node according to the message, the source node is the device that sends the message, and the security group list is in the security group information.
23. The method according to claim 22, wherein: The first gateway processes the message based on the security group information, and also includes: when there is a mapping relationship between the node identifier of the source node and the source IP address and the node identifier of the source node is in the source node list corresponding to the group identifier, the first gateway sends the multicast message to other nodes associated with it.
24. The method according to claim 22 or 23, wherein: The first gateway processes the message based on the security group information, and further includes: confirming that the multicast message is illegal when there is no mapping relationship between the node identifier of the source node and the source IP address.
25. The method according to any one of claims 22 to 24, wherein: The first gateway processes the message based on the security group information, further comprising: confirming that the multicast message is illegal if the node identifier of the source node is not in the source node list corresponding to the group identifier.
26. The method according to any one of claims 20 to 25, wherein: The first gateway processes the message based on the security group information, including: when the group identifier is not in the security group list corresponding to the network identifier, the first gateway forwards the multicast message.
27. The method according to any one of claims 18 to 26, wherein: The device includes a first device in a first network to which the first gateway belongs, the first device is in a first security group, and a message from the first device is a first message.
28. The method according to claim 27, wherein: The first gateway includes a mapping relationship between the address information of the first device and the node identifier.
29. The method according to any one of claims 18 to 28, wherein: The device includes a second device that is not in a second network to which the first gateway belongs, the second device is in a second security group, and a message from the second device is a second message.
30. The method of claim 29, wherein: The first gateway includes a mapping relationship between the address information of the second device and the node identifier.
31. The method of claim 18, wherein: The messages from the device include a third message that is suspected to be unsafe.
32. The method according to claim 31, wherein: The message from the device also includes at least one of the group identifier, source node identifier and occurrence time of the third message.
33. The method of claim 32, wherein: The suspected unsafe third message, the group identifier, the source node identifier and at least one of the occurrence time of the third message are carried by the group behavior reporting command.
34. According to the method of claim 33, the group behavior reporting command is a malicious behavior reporting command.
35. According to the method of claim 34, the parameters in the malicious behavior reporting command include at least one of a network identifier, a malicious node identifier, a malicious behavior type, additional data, and an occurrence time.
36. The method according to claim 35, wherein the malicious behavior type comprises at least one of the following: A node that cannot be a group message sender pretends to be a group message sender to send a group message; Sending fake group messages through replay or reassembly; Flooding the network by sending a large number of messages; Rapidly consume battery power through frequent communications; Prevent normal modification of the access control list (ACL).
37. A method according to any one of claims 33 to 36, wherein: The first gateway processes the message based on the security group information, including: The first gateway obtains the home network indicated by the group behavior reporting command; In a case where the group identifier of the third message is in the security group list of the home network indicated by the group behavior reporting command, the first gateway obtains the node identifier and / or source IP address of the source node according to the third message.
38. The method of claim 37, wherein: The first gateway processes the message based on the security group information, including: processing the third message as a legal message if the group identifier of the third message is not in the security group list of the home network indicated by the group behavior reporting command.
39. The method according to claim 37 or 38, wherein the first gateway processes the message based on security group information, further comprising: In the case that there is a mapping relationship between the node identifier of the source node and the source IP address and the node identifier of the source node is in the source node list corresponding to the group identifier of the third message, the first gateway confirms that the third message is legal.
40. The method according to claim 39, wherein the first gateway processes the message based on security group information, further comprising: In a case where the node identifier of the source node is not in the source node list corresponding to the group identifier of the third message, the first gateway confirms that the third message is illegal.
41. The method according to claim 39 or 40, wherein the first gateway processes the message based on security group information, further comprising: In the case that there is no mapping relationship between the node identifier of the source node and the source IP address, the first gateway confirms that the third message is illegal.
42. The method according to claim 24, 25, 40 or 41, further comprising performing at least one of the following processes on the illegal message: The first gateway filters out the illegal message; The first gateway performs communication isolation on the node that sends the illegal message; The first gateway sends a prompt message to the user terminal, where the prompt message is used to prompt that the message is illegal.
43. A first gateway, comprising: The processing unit is used to perform group security management configuration on the device group that needs to be securely managed.
44. The first gateway according to claim 43, wherein: The security management is related to multicast messages of devices within the device group.
45. The first gateway according to claim 43 or 44, wherein: The first gateway includes a mapping relationship between address information and node identifiers in a device group that needs to be securely managed.
46. The first gateway according to any one of claims 43 to 45, wherein: The first gateway further includes: a first receiving unit, configured to receive a group setting command, wherein the group setting command includes information about a device group that needs to be securely managed; The processing unit is further used to set the information of the device group into the security group information.
47. The first gateway according to claim 46, wherein: The security group information includes a security group list.
48. The first gateway according to claim 47, wherein: The security group list is in the type attribute of the security group information.
49. The first gateway according to claim 47 or 48, wherein: The security group list includes at least one of a home network identifier, a group identifier, a group key set identifier, and source node information of a device group that needs to be securely managed.
50. The first gateway according to claim 49, wherein: The source node information is used to indicate information of nodes that allow multicast.
51. The first gateway according to claim 49 or 50, wherein: At least one of the home network identifier, group identifier, group key set identifier, and source node information of the device group that needs security management is in the group management structure of the security group list.
52. A first gateway according to any one of claims 43 to 51, wherein: The first gateway further includes: a second receiving unit, configured to receive an event notification sent by the second gateway in the event of a security group change; The processing unit is further configured to update its own security group information based on the event notification.
53. The first gateway according to claim 52, wherein: The processing unit is further configured to subscribe to a security group change event of the second gateway.
54. A first gateway according to any one of claims 43 to 53, wherein: The first gateway also includes: A sending unit is used to send an event notification to the second gateway when the security group in the first gateway is changed.
55. The first gateway of claim 54, wherein: The security group change event of the first gateway is subscribed by the second gateway.
56. A first gateway according to any one of claims 43 to 55, wherein: The security group change event includes the current state and the state before the change of the changed security group.
57. The first gateway according to claim 56, wherein: The current state includes the group management structure of the device group that currently needs to be securely managed, and the state before the change includes the group management structure of the device group that needs to be securely managed before the change.
58. A first gateway according to any one of claims 43 to 57, wherein: The device group requiring security management includes at least one first device in the home network of the first gateway, and the first device is a source node in the first security group.
59. The first gateway according to any one of claims 43 to 58, wherein: The device group requiring security management includes at least one second device that is not in the home network of the first gateway, and the second device is a source node in the second security group.
60. A first gateway, comprising: A receiving unit, used for receiving a message from a device; A processing unit is used to process the message based on security group information, wherein the security group information includes information of a device group that needs to be securely managed.
61. The first gateway according to claim 60, wherein: The security management is related to multicast messages of devices within the device group.
62. The first gateway according to claim 60 or 61, wherein: The processing unit is further configured to extract a network identifier and / or a group identifier from the message, wherein the network identifier is an identifier of a home network of the device, and the group identifier is an identifier of a device group to which the device belongs.
63. The first gateway according to claim 62, wherein: The processing unit is further configured to identify that the message is a multicast message based on a multicast address of the message, wherein the multicast address is used to indicate the network identifier and / or the group identifier.
64. The first gateway according to claim 62 or 63, wherein: The processing unit is also used to obtain the node identifier and source IP address of the source node according to the message when the group identifier is in the security group list corresponding to the network identifier, the source node is the device that sends the message, and the security group list is in the security group information.
65. The first gateway of claim 64, wherein: The processing unit is further configured to send the multicast message to other nodes associated with the source node when a mapping relationship exists between the node identifier and / or the source IP address of the source node and the node identifier of the source node is in the source node list corresponding to the group identifier.
66. The first gateway according to claim 64 or 65, wherein: The processing unit is further configured to confirm that the multicast message is illegal when there is no mapping relationship between the node identifier of the source node and the source IP address.
67. A first gateway according to any one of claims 64 to 66, wherein: The processing unit is further configured to, when the node identifier of the source node is not in the source node list corresponding to the group identifier, confirm that the multicast message is illegal.
68. A first gateway according to any one of claims 62 to 67, wherein: The processing unit is further configured to forward the multicast message if the group identifier is not in the security group list corresponding to the network identifier.
69. The first gateway according to any one of claims 60 to 68, wherein: The device includes a first device in a first network to which the first gateway belongs, the first device is in a first security group, and a message from the first device is a first message.
70. The first gateway of claim 69, wherein: The first gateway includes a mapping relationship between the address information of the first device and the node identifier.
71. The first gateway according to any one of claims 60 to 70, wherein: The device includes a second device that is not in a second network to which the first gateway belongs, the second device is in a second security group, and a message from the second device is a second message.
72. The first gateway of claim 71, wherein: The first gateway includes a mapping relationship between the address information of the second device and the node identifier.
73. The first gateway of claim 60, wherein: The messages from the device include a third message that is suspected to be unsafe.
74. The first gateway of claim 73, wherein: The message from the device also includes at least one of the group identifier, source node identifier and occurrence time of the third message.
75. The first gateway of claim 74, wherein: The suspected unsafe third message, the group identifier, the source node identifier and at least one of the occurrence time of the third message are carried by the group behavior reporting command.
76. According to the first gateway of claim 75, the group behavior reporting command is a malicious behavior reporting command.
77. According to the first gateway of claim 76, the parameters in the malicious behavior reporting command include at least one of a network identifier, a malicious node identifier, a malicious behavior type, additional data, and an occurrence time.
78. The first gateway according to claim 77, wherein the malicious behavior type comprises at least one of the following: A node that cannot be a group message sender pretends to be a group message sender to send a group message; Sending fake group messages through replay or reassembly; Flooding the network by sending a large number of messages; Rapidly consume battery power through frequent communications; Prevent normal modification of ACL.
79. A first gateway according to any one of claims 75 to 78, wherein: The processing unit is also used to obtain the home network indicated by the group behavior reporting command; when the group identifier of the third message is in the security group list of the home network indicated by the group behavior reporting command, obtain the node identifier and / or source IP address of the source node according to the third message.
80. The first gateway of claim 79, wherein: The processing unit is further configured to process the third message as a legal message when the group identifier of the third message is not in the security group list of the home network indicated by the group behavior reporting command.
81. According to the first gateway according to claim 79 or 80, the processing unit is also used to confirm that the third message is legal when there is a mapping relationship between the node identifier of the source node and the source IP address and the node identifier of the source node is in the source node list corresponding to the group identifier of the third message.
82. According to the first gateway of claim 81, the processing unit is further used to, when the node identifier of the source node is not in the source node list corresponding to the group identifier of the third message, the first gateway confirms that the third message is illegal.
83. According to the first gateway according to claim 81 or 82, the processing unit is further used to confirm that the third message is illegal when there is no mapping relationship between the node identifier of the source node and the source IP address.
84. The first gateway according to claim 66, 67, 82 or 83, wherein the processing unit is further configured to perform at least one of the following processes on the illegal message: Filter out the illegal messages; Performing communication isolation on the node that sends the illegal message; The control sending unit sends prompt information to the user terminal, where the prompt information is used to prompt that the message is illegal.
85. A gateway, comprising: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory so that the gateway executes the method as described in any one of claims 1 to 17 or 18 to 42.
86. A chip, comprising: A processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes a method as claimed in any one of claims 1 to 17 or 18 to 42.
87. A computer-readable storage medium for storing a computer program, which, when executed by a device, causes the device to perform the method as claimed in any one of claims 1 to 17 or 18 to 42.
88. A computer program product comprising computer program instructions for causing a computer to perform the method of any one of claims 1 to 17 or 18 to 42.
89. A computer program causing a computer to perform the method of any one of claims 1 to 17 or 18 to 42.
Citation Information
Patent Citations
Wireless Internet of Things marshalling management method and related device
CN111147301A
Terminal equipment isolation method and device based on local area network
CN113965343A
Secure communication method and device
CN115175194A
Key establishment for communications within a group
WO2017123362A2
