A group management method, product, device and storage medium
By obtaining link layer discovery protocol packets, network device information is determined and assigned to groups, and unified policies are formulated to solve the problem of low network cluster management efficiency and achieve resource optimization and security improvement.
Patent Information
- Application Number
- CN202410758486.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-13
AI Technical Summary
The existing network cluster management efficiency is low, prone to uneven resource allocation and management errors, and difficult to quickly adapt to changes in network topology and device behavior.
Obtain Link Layer Discovery Protocol (LLDP) packets when detecting network device access, determine device information and assign it to corresponding groups, formulate unified security rules and network policies, and monitor and adjust group ownership and policies in real time.
It improves the efficiency of network equipment management, optimizes resource utilization and network performance, and enhances network security and management flexibility.
Smart Images

Figure CN118368139B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of network technology, and in particular, to a group management method, product, device, and storage medium. Background Art
[0002] A network cluster is a group of devices consisting of multiple interconnected network devices. When the network cluster is running, it is necessary to effectively manage the network cluster. In related technologies, the devices in the network cluster are generally managed by staff. When new network devices are added to the cluster or when devices in the cluster are changed, the staff records the device information of the network devices and configures the network devices.
[0003] In related technologies, network clusters are managed by staff, which results in low connection efficiency and is prone to errors and omissions, as well as uneven resource allocation. Traditional network management methods also find it difficult to quickly adapt to changes in network topology and device behavior, resulting in low management efficiency. Summary of the invention
[0004] The embodiments of the present application provide a group management method, apparatus, device and storage medium, aiming to improve the management efficiency of network devices.
[0005] A first aspect of an embodiment of the present application provides a group management method, the method comprising:
[0006] When it is detected that a network device is connected to a network device group, a protocol packet of the device is obtained, wherein the protocol packet is a data packet based on a link layer discovery protocol;
[0007] Determining device information of the network device according to the protocol packet;
[0008] Determine, according to the device information, a first group corresponding to the network device, wherein the devices in the first group comply with unified security rules and network policies;
[0009] The network device is assigned to the first group.
[0010] Optionally, the method further comprises:
[0011] In the case that the device information does not correspond to the first group, establishing a second group according to the device information;
[0012] Formulate a corresponding network policy for the second group according to the device information;
[0013] Formulate corresponding security rules for the second group according to the device information;
[0014] The network device is monitored using the network policy and the security rule.
[0015] Optionally, when detecting that a network device is connected to a network device group, obtaining a protocol packet of the device includes:
[0016] In the case where the network device sends a data packet to other devices in the network device group, intercepting the data packet;
[0017] The protocol packet is extracted from the data packet according to the protocol feature of the link layer discovery protocol.
[0018] Optionally, determining the device information of the network device according to the protocol packet includes:
[0019] Parsing the protocol packet according to the protocol rule corresponding to the protocol packet to obtain parsed data;
[0020] The device information of the network device is extracted from the parsed data.
[0021] Optionally, determining, according to the device information, a first group corresponding to the network device includes:
[0022] Determining whether the network device complies with a preset device classification rule according to the device information;
[0023] In the case that the network device complies with a preset classification rule, the first group corresponding to the network device is determined.
[0024] Optionally, determining whether the network device complies with a preset device classification rule according to the device information includes:
[0025] Determining whether the data in the device information matches the classification basis specified in the device classification rule;
[0026] In the case where any of the data in the device information matches the classification basis specified in the device classification rule, it is determined that the network device complies with the device classification rule.
[0027] Optionally, allocating the network device to the first group includes:
[0028] Determine a storage location of group device information corresponding to the first group;
[0029] Storing the device information of the network device in the storage location;
[0030] A corresponding group tag is added to the network device.
[0031] Optionally, establishing a second group according to the device information includes:
[0032] Determine the device type and device function of the network device according to the device information;
[0033] Determine, according to the device type and the device function, the device type and the device function corresponding to the second group;
[0034] Apply for a storage space of preset capacity in a storage device;
[0035] Storing the device information in the storage space;
[0036] The storage space is used as a storage space for device information of the network devices corresponding to the second group.
[0037] Optionally, formulating a corresponding network policy for the second group according to the device information includes:
[0038] Determine the device type and device function of the network device according to the device information;
[0039] Determining the network requirements of the device according to the device type and the device function;
[0040] The network policy corresponding to the second group is determined according to the network demand.
[0041] Optionally, formulating corresponding security rules for the second group according to the device information includes:
[0042] Determine the device type and device function of the network device according to the device information;
[0043] Determine the access rights and data encryption level of the network device according to the device type and the device function;
[0044] The corresponding security rules are formulated for the second group according to the access rights and the data encryption level.
[0045] Optionally, the method further comprises:
[0046] Performing real-time monitoring on the network devices and collecting device data of the network devices;
[0047] The device status and network performance of the network device are determined based on the device data.
[0048] Optionally, the method further comprises:
[0049] Real-time monitoring of the network status of the network where the network device is located and the device update status of the network device;
[0050] Adjusting the group affiliation of the network device according to the network status and the device update status;
[0051] According to the network status and the device update status, the network policy and security rules of the existing network device group are adjusted.
[0052] A second aspect of an embodiment of the present application provides a group management device, the device comprising:
[0053] A data capture module, used for acquiring a protocol packet of the device when detecting that the network device is connected to the network device group, wherein the protocol packet is a data packet based on the link layer discovery protocol;
[0054] A device information determination module, used to determine the device information of the network device according to the protocol packet;
[0055] A first group determination module, configured to determine, based on the device information, a first group corresponding to the network device, wherein the devices in the first group comply with unified security rules and network policies;
[0056] The first allocation module is used to allocate the network device to the first group.
[0057] Optionally, the device further comprises:
[0058] A second group establishment module, configured to establish a second group according to the device information when the device information does not correspond to the first group;
[0059] A network policy formulation module, configured to formulate a corresponding network policy for the second group according to the device information;
[0060] A security rule formulation module, used to formulate corresponding security rules for the second group according to the device information;
[0061] The network monitoring module is used to perform network monitoring on the network device using the network policy and the security rules.
[0062] Optionally, the data capture module includes:
[0063] a data packet interception submodule, configured to intercept the data packet when the network device sends the data packet to the remaining devices in the network device group;
[0064] The data packet extraction submodule is used to extract the protocol packet from the data packet according to the protocol characteristics of the link layer discovery protocol.
[0065] Optionally, the device information determination module includes:
[0066] A data parsing submodule, used to parse the protocol packet according to the protocol rule corresponding to the protocol packet to obtain parsed data;
[0067] The device information determination submodule is used to extract the device information of the network device from the parsed data.
[0068] Optionally, the first group determination module includes:
[0069] A rule matching submodule, used to determine whether the network device complies with a preset device classification rule based on the device information;
[0070] The first group determination submodule is used to determine the first group corresponding to the network device when the network device meets the preset classification rule.
[0071] Optionally, the rule matching submodule includes:
[0072] A classification basis matching submodule, used to determine whether the data in the device information matches the classification basis specified in the device classification rule;
[0073] The information matching submodule is used to determine that the network device complies with the device classification rule when any data in the device information matches the classification basis specified in the device classification rule.
[0074] Optionally, the first allocation module includes:
[0075] A storage location determination submodule, used to determine a storage location of group device information corresponding to the first group;
[0076] A first information storage submodule, used to store the device information of the network device to the storage location;
[0077] The tag adding submodule is used to add a corresponding group tag to the network device.
[0078] Optionally, the second group establishment module includes:
[0079] A first device type determination submodule, used to determine the device type and device function of the network device according to the device information;
[0080] A second device type determination submodule, configured to determine the device type and device function corresponding to the second group according to the device type and device function;
[0081] A storage application submodule is used to apply for storage space of a preset capacity in a storage device;
[0082] A second information storage submodule, used to store the device information in the storage space;
[0083] The storage space determination submodule is used to use the storage space as the storage space for the device information of the network device corresponding to the second group.
[0084] Optionally, the network policy formulation module includes:
[0085] A second device type determination submodule, used to determine the device type and device function of the network device according to the device information;
[0086] A network requirement determination submodule, used to determine the network requirement of the device according to the device type and the device function;
[0087] A network policy formulation submodule is used to determine the network policy corresponding to the second group according to the network requirements.
[0088] Optionally, the security rule formulation module includes:
[0089] A third device type determination submodule, used to determine the device type and device function of the network device according to the device information;
[0090] The permission determination submodule is used to determine the access rights and data encryption level of the network device according to the device type and the device function;
[0091] The security rule formulation submodule formulates the corresponding security rules for the second group according to the access rights and the data encryption level.
[0092] Optionally, the device further comprises:
[0093] A device data collection module, used to monitor the network device in real time and collect device data of the network device;
[0094] The device status determination module is used to determine the device status and network performance of the network device according to the device data.
[0095] Optionally, the device further comprises:
[0096] A status monitoring module, used to monitor in real time the network status of the network where the network device is located and the device update status of the network device;
[0097] A group adjustment module, used for adjusting the group belonging of the network device according to the network status and the device update status;
[0098] The rule adjustment module is used to adjust the network policy and security rules of the existing network device group according to the network status and the device update status.
[0099] A third aspect of an embodiment of the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the method described in the first aspect of the present application.
[0100] A fourth aspect of an embodiment of the present application provides a readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps in the method described in the first aspect of the present application are implemented.
[0101] A fifth aspect of an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method described in the first aspect of the present application are implemented.
[0102] Using the group management method proposed in the present application, when a network device is detected to be connected to a network device group, a protocol packet of the device is obtained, and the protocol packet is a packet based on the LLDP (Link Layer Discovery Protocol) protocol; according to the protocol packet, the device information of the network device is determined; according to the device information, the first group corresponding to the network device is determined, and the devices in the first group comply with unified security rules and network policies; and the network device is assigned to the first group. In this method, when a new device is added to a network device group, the device information of the newly connected network device is determined through the LLDP protocol, and then the network device is assigned to the corresponding network device group. All network devices in the same network device group comply with unified security rules and network policies. This is conducive to unified monitoring of network devices, unified allocation of network resources, and ensuring the security of network devices, optimizing network performance and resource utilization, and thereby improving the management efficiency of network devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0103] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0104] Figure 1 is a flow chart of a group management method proposed in one embodiment of the present application;
[0105] Figure 2 This is a schematic diagram of network device management proposed in an embodiment of the present application;
[0106] Figure 3 This is a schematic diagram of a network device access process proposed in an embodiment of the present application;
[0107] Figure 4 is a schematic diagram of a group management device proposed in an embodiment of the present application;
[0108] Figure 5 It is a schematic diagram of an electronic device proposed in an embodiment of the present application. DETAILED DESCRIPTION
[0109] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0110] refer to Figure 1 , Figure 1 is a flow chart of a group management method proposed in one embodiment of the present application. Figure 1 As shown, the specific steps of the method include:
[0111] S11: When it is detected that a network device is connected to a network device group, a protocol packet of the device is obtained, where the protocol packet is a data packet based on a link layer discovery protocol.
[0112] In this embodiment, the network device is an electronic device connected to the network, and can communicate with other devices in the network device group through the network. The network device group is a group composed of all network devices connected to the same network. The protocol packet is an encapsulated data packet that follows a specific protocol. The LLDP (Link Layer Discovery Protocol) protocol is a protocol for network management, which enables network devices to automatically discover adjacent devices and collect their basic information, such as IP address, MAC address, connection rate, device model, etc. The LLDP protocol is an open protocol standardized by the IEEE (Institute of Electrical and Electronics Engineers) and can be implemented on network devices of various manufacturers. In addition, it can also work with other network management protocols, such as SNMP (Simple Network Management Protocol) and CDP (Cisco Discovery Protocol), so as to improve the efficiency and reliability of network management. The main working principle of the LLDP protocol is to broadcast LLDP messages in the network and send the information contained in the message, such as the device ID, port number, connection rate, etc., to adjacent network devices. When a network device receives an LLDP message, it parses the message and extracts the information in it, thereby understanding the basic information of the adjacent devices. In actual network management, the LLDP protocol is often used to automatically discover devices in the network and establish a network topology map, thereby helping administrators better understand the network architecture and device configuration. In addition to basic device discovery and information collection functions, the LLDP protocol can also be extended to other application scenarios, such as VLAN (Virtual Local Area Network) management, QoS (Quality of Service) coordination, and network security. In VLAN management, the LLDP protocol can help devices automatically configure VLANs by transmitting VLAN ID information, thereby achieving simple and efficient VLAN management. In terms of QoS coordination, the LLDP protocol can help devices perform traffic control and priority judgment by transmitting QoS level information, thereby achieving better network performance. In terms of network security, the LLDP protocol can help administrators achieve identity authentication and access control of network devices by transmitting device authentication information, thereby improving network security. In addition, the LLDP protocol can also help administrators better troubleshoot network problems. When a fault occurs in the network, the administrator can quickly locate the fault through the LLDP message between two adjacent devices, thereby more effectively troubleshooting.In summary, the LLDP protocol is a very important network management protocol that can help administrators better understand the network architecture and device configuration, improve the efficiency and reliability of network management, and achieve better network performance and security.
[0113] In this embodiment, the network device cluster is managed by a management node, and the management node can receive data packets sent by each network device in the network device cluster. When the management node detects that a new network device is connected to the network device cluster, it obtains the data packet sent by the network device and captures the LLDP protocol packet therefrom.
[0114] In this embodiment, when it is detected that a network device is connected to a network device group, the specific steps of obtaining the protocol packet of the device include:
[0115] S11-1: When the network device sends a data packet to other devices in the network device group, intercept the data packet.
[0116] In this embodiment, when the network device accesses the network device group, it will send a data packet to other devices. When the management node detects that the network device sends a data packet to other devices, it intercepts the data packet.
[0117] S11-2: Extracting the protocol packet from the data packet according to the protocol characteristics of the link layer discovery protocol.
[0118] In this embodiment, each protocol has a corresponding protocol feature. There is a specific field in the field of the data packet that can characterize the protocol of the data packet. The protocol feature of the protocol can be determined by reading the field.
[0119] In this embodiment, after intercepting a data packet, the head field of the data packet is read to determine whether the data packet is an LLDP data packet, and then the protocol packet is extracted.
[0120] S12: Determine the device information of the network device according to the protocol packet.
[0121] In this embodiment, the LLDP protocol packet stores device information of the network device, such as IP address, MAC address, device name, device type, device function, and other information.
[0122] In this embodiment, after obtaining the protocol packet sent by the network device, the device information of the network device is extracted therefrom.
[0123] In this embodiment, determining the device information of the network device according to the protocol packet includes:
[0124] S12-1: Parse the protocol packet according to the protocol rule corresponding to the protocol packet to obtain parsed data.
[0125] In this embodiment, each protocol has corresponding encryption rules, decryption rules and other protocol rules.
[0126] In this embodiment, after a protocol packet based on the LLDP protocol is obtained, a protocol rule corresponding to the protocol is determined, and the protocol packet is parsed according to a decryption rule specified in the protocol rule.
[0127] S12-2: Extracting the device information of the network device from the parsed data.
[0128] In this embodiment, after parsing the protocol packet, the parsed data is obtained, and after obtaining the parsed data, the device information of the network device is extracted from the parsed data. When extracting the parsed data, the meaning expressed by each field is parsed field by field, and the fields related to the device information are recorded and retained, so as to obtain the device information of the network device.
[0129] S13: Determine a first group corresponding to the network device according to the device information, where the devices in the first group comply with unified security rules and network policies.
[0130] In this embodiment, the first group refers to the group to which the currently connected network device belongs, the security rules are the rules for network security protection of the devices in the group, and the network policy is the policy for network resource configuration or network connection configuration of the network devices in the group.
[0131] In this embodiment, after determining the device information of the connected network device, the device type and device function included in the device information are determined, and the network address and other information included in the device information can also be determined. The data contained in the device information is compared with the preset classification rules. When any attribute in the device information, such as the device type, meets the classification rules of a certain group, the first group corresponding to the network device is determined to be that group.
[0132] In this embodiment, determining the first group corresponding to the network device according to the device information includes:
[0133] S13-1: Determine whether the network device complies with a preset device classification rule based on the device information.
[0134] In this embodiment, the preset device classification rule is a targeted classification rule formulated according to the attributes of the network device. The classification rule is written into a script after customization and converted into an executable program. Running the program can automatically check whether each network device complies with the specific classification rule.
[0135] For example, common classification criteria include the device's network address, the device's MAC address, the device's port number, the device's type, the device's function, etc. The preset rule can be that devices with a device type of ordinary computing nodes are classified into one group, or that devices with port numbers in the range of 0-10 are assigned to the same group.
[0136] In this embodiment, the specific steps of determining whether the network device complies with a preset device classification rule according to the device information include:
[0137] S13-1-1: Determine whether the data in the device information matches the classification basis specified in the device classification rule.
[0138] In this embodiment, the classification basis is a basis for classifying devices.
[0139] In this embodiment, the device information includes various data related to the device, such as network address, network port number, device type, device function, etc. When determining the group corresponding to the network device, first determine whether the data in the device information matches the classification basis specified in the device classification rule.
[0140] S13-1-2: When any of the data in the device information matches the classification basis specified in the device classification rule, determine that the network device complies with the device classification rule.
[0141] In this embodiment, when any data item in the device information matches the classification basis specified in the device classification rule, it is determined that the network device complies with the device classification rule.
[0142] S13-2: When the network device meets a preset classification rule, determine the first group corresponding to the network device.
[0143] In this embodiment, when a network device meets a preset classification rule, a first group corresponding to the network device is determined.
[0144] For example, a preset classification rule for a group is that devices with network port numbers in the range of 0-10 are assigned to the same group. When the port number of the network device is parsed to be 6, the first group corresponding to the network device is determined to be this group.
[0145] S14: Allocate the network device to the first group.
[0146] In this embodiment, after determining the first group corresponding to the network device, the network device is assigned to the group. When assigning, the device information of the network device is stored in the storage space of the first group for storing network device information, and a corresponding group identifier can also be added to the network device to indicate that the network device has been assigned to the group.
[0147] In this embodiment, the specific step of allocating the network device to the first group includes:
[0148] S14-1: Determine a storage location of group device information corresponding to the first group.
[0149] In this embodiment, the group device information refers to the device information of all network devices allocated in the first group, and the device information is stored in a specified storage location.
[0150] In this embodiment, after the first group corresponding to the newly connected network device is determined, the storage location of the group device information corresponding to the first group is determined.
[0151] S14-2: Storing the device information of the network device in the storage location.
[0152] In this embodiment, after the storage location of the group device information corresponding to the first group is determined, the device information of the network device is stored in the storage location.
[0153] S14-3: Add a corresponding group tag to the network device.
[0154] In this embodiment, the group tag is used to identify the group corresponding to the network device.
[0155] In this embodiment, after the device information of the network device is stored in the storage location of the group device information corresponding to the first group, a corresponding group tag is added to the network device.
[0156] In another embodiment of the present application, the method further includes:
[0157] S21: When the device information does not correspond to the first group, establish a second group according to the device information.
[0158] In this embodiment, the second group is a new group divided in the network device cluster.
[0159] In this embodiment, when the device information does not correspond to the first group, it means that there is no network device of the same type or a network device with a related network address and port number. At this time, it is necessary to create a new group in the network device group according to the device information of the device, namely the second group.
[0160] In this embodiment, the second group is established according to the device information, including:
[0161] S21 - 1 : Determine the device type and device function of the network device according to the device information.
[0162] In this embodiment, each network device has a corresponding device type and device function, and the device type and device function are related. For example, a router is a communication device, and the device function is to act as a gateway between networks. For another example, a user's computer, the device type is a private computing node, and the device function is to provide computing services to the user. In the device information, the device type and device function of the device can be characterized through some fields.
[0163] In this embodiment, when establishing the second group for a newly connected device, the device information is first read to determine the device type and device function of the network device.
[0164] S21 - 2 : Determine the device type and device function corresponding to the second group according to the device type and device function.
[0165] In this embodiment, after determining the identification type and device function of the device, the identification type and device function corresponding to the second group are determined based on the device type and device function, that is, the devices in the newly created group are all network devices with the same device type or device function as the newly connected network device.
[0166] For example, if the device type of the newly connected network device is a private computing node, then the device type corresponding to the second group is also a private computing node, and all newly added network devices that are private computing nodes are allocated to the second group.
[0167] In this embodiment, classification rules can also be set for the second group based on network address, port number, mac address, operating system, hardware type, communication protocol, etc. For example, all network devices whose operating system is x86 system are allocated to the second group, and all network devices whose communication protocol is LLDP are allocated to the second group.
[0168] S21-3: Apply for storage space of a preset capacity in the storage device.
[0169] In this embodiment, the storage device is a device for storing data on the management node.
[0170] In this embodiment, when creating the second cluster, the management node applies for a storage space of a preset capacity in the storage device. The preset capacity can be determined according to actual conditions. The storage space serves as a storage location for the network device information of the second matrix.
[0171] S21 - 4: Storing the device information in the storage space.
[0172] In this embodiment, after applying for a storage space of preset capacity, the device information of the newly connected device is stored in the storage space.
[0173] S21 - 5 : Use the storage space as a storage space for device information of the network device corresponding to the second group.
[0174] In this embodiment, the storage space is used as a storage space for device information of the network devices corresponding to the second group.
[0175] S22: Formulate a corresponding network policy for the second group according to the device information.
[0176] In this embodiment, the network policy includes a network resource allocation policy, such as bandwidth and rate limitations.
[0177] In this embodiment, based on the device information of the network device, the network requirements of the device in the network cluster can be determined, and then corresponding network policies can be formulated based on the network requirements, such as setting upper and lower limits for bandwidth and setting upper and lower limits for data transmission rate.
[0178] In this embodiment, formulating a corresponding network policy for the second group according to the device information includes:
[0179] S22-1: Determine the device type and device function of the network device according to the device information.
[0180] In this embodiment, when customizing the corresponding network policy for the second group, the device type and device function of the network device are first determined.
[0181] For example, the device type is a personal computer, and the device function is to provide computing services to users.
[0182] S22-2: Determine the network requirement of the device according to the device type and the device function.
[0183] In this embodiment, the network demand refers to the demand of the network device on the network, such as bandwidth demand and data transmission rate demand.
[0184] In this embodiment, the network requirements of a network device can be roughly inferred based on the device type and device function. Some network devices, such as servers, require relatively large traffic and bandwidth, so more network resources can be allocated to such devices. Some network devices, such as private computing nodes, do not require as much traffic and bandwidth as servers, so fewer network resources can be allocated to such devices.
[0185] S22-3: Determine the network policy corresponding to the second group according to the network demand.
[0186] In this embodiment, after the network requirement corresponding to the second group is determined, the network policy corresponding to the second group is further determined.
[0187] In this embodiment, according to the network requirements of the network devices in the second group, it is possible to know which network resources the network devices in the second group need and how many network resources they need, and then formulate a corresponding network strategy for the second group.
[0188] S23: Formulate corresponding security rules for the second group according to the device information.
[0189] In this embodiment, the security rule is a rule for protecting the network security of the network devices in the second group.
[0190] In this embodiment, after determining the device information of the newly connected network device, corresponding security rules are formulated for the second group. The formulated security rules include but are not limited to encrypting the transmission data of the network devices in the second group, requiring device identity authentication for external groups to access devices in the second group, and limiting access to devices in the cluster to internal network addresses, etc.
[0191] In this embodiment, formulating corresponding security rules for the second group according to the device information includes:
[0192] S23-1: Determine the device type and device function of the network device according to the device information.
[0193] In this embodiment, when formulating security rules for the second group, the device type and device function of the network device are first determined.
[0194] S23-2: Determine the access rights and data encryption level of the network device according to the device type and the device function.
[0195] In this embodiment, the access permission refers to the permission to access a network device, and the data encryption level refers to the degree to which data is encrypted.
[0196] In this embodiment, after the device type and device function are determined, the access rights and data encryption level of the newly connected network device are determined according to the device type and device function of the newly connected network device.
[0197] In this embodiment, the corresponding network device permissions and data encryption levels can also be determined through network addresses, network port numbers, etc., which can be set specifically by yourself. For example, through the network address of a network device, you can know that the network device belongs to a certain office area, and then determine the network permissions of the network device to be able to access all devices in the office area. Accessing network devices outside the office area requires identity authentication. The data encryption level is level 1, and only simple encryption is required.
[0198] S23-4: Formulate the corresponding security rules for the second group according to the access rights and the data encryption level.
[0199] In this embodiment, after the access rights and encryption level of the network device are determined, they are applied to the second group, and corresponding security rules are formulated for the second group.
[0200] For example, all network devices in the second group can access the network address within the group. When accessing the network address outside the group, identity authentication is required. The data transmission between all devices in the second group is encrypted at level 1 to ensure the security of data transmission.
[0201] S24: Use the network policy and the security rules to perform network monitoring on the network device.
[0202] In this embodiment, after the network policy and security rules of the second cluster are determined, the network policy and security rules are used to perform network monitoring on the network device.
[0203] In another embodiment of the present application, the method further includes:
[0204] S25: Monitor the network device in real time and collect device data of the network device.
[0205] In this embodiment, the device data is data generated during operation after the network device joins the network device cluster, including status data, operation data, etc. of the network device.
[0206] In this embodiment, after a network device joins a network device cluster and is assigned to a corresponding group, the device and all devices in the network device cluster are monitored in real time to collect device data of the network device.
[0207] S26: Determine the device status and network performance of the network device according to the device data.
[0208] In this embodiment, the device state of the network device is the current state of the network device, including idle state, load state, fault state, etc. The network performance represents the data transmission speed of the network device, the bandwidth size during data transmission, etc.
[0209] In this embodiment, after collecting the device data of the network device in operation, the device status of the network device is determined according to the device operation data in the device data, and the network performance of the network device is determined according to the network traffic related data of the device.
[0210] For example, when the device data shows that the memory resource usage of the network device is 80%, it is determined that the state of the network device is a load state.
[0211] In another embodiment of the present application, the method further includes:
[0212] S31: Monitor in real time the network status of the network where the network device is located and the device update status of the network device.
[0213] In this embodiment, the management node monitors the network status of the network where the network device is located and the device update status of the network device in real time.
[0214] In this embodiment, the management node determines the network status of the network where the network device is located and the update status of the network device by receiving data sent by each network device.
[0215] S32: Adjusting the group affiliation of the network device according to the network status and the device update status.
[0216] In this embodiment, when the network status or the device update status changes, the group affiliation of the network device is adjusted according to the network status and the device update status.
[0217] For example, when device A is deregistered and no longer used, device A is removed from the original device group. When the network address of device B changes and the demand for network resources increases, device B is added from the original group to another group that meets the requirements.
[0218] S33: Adjust the network policy and security rules of the existing network device group according to the network status and the device update status.
[0219] In this embodiment, when the network status or the device update status changes, the network policy and security rules of the existing network device group are adjusted according to the network status and the device update status.
[0220] For example, if the network resource requirements of some network devices increase after being updated, the network policy may be adjusted to increase the network resource allocation ratio of the network devices in the network device group.
[0221] In another embodiment of the present application, the management node can record the sensitive operations of the devices in each group while monitoring the devices in each group, isolate the devices that perform sensitive operations, limit the access rights of the devices, and continuously monitor the abnormal behavior of the devices, thereby improving the overall security of the network.
[0222] In another embodiment of the present application, the management node is preset with a prohibited access device. When a new network device accesses the network device cluster, the management node captures the protocol packet of the network device and extracts the device information of the network device. If any data in the device information of the network device meets the preset prohibited access device, the device is regarded as a prohibited access device and the device is denied access to the network device cluster, thereby further ensuring the security of the network.
[0223] refer to Figure 2 , Figure 2 is a schematic diagram of network device management proposed in an embodiment of the present application, such as Figure 2 As shown, the management node manages each group through the core switch. Each group contains corresponding network devices. Group A contains server devices, group B contains office devices, and group C contains visitor devices.
[0224] refer to Figure 3 , Figure 3 Schematic diagram of a network device access process proposed in an embodiment of the present application. Figure 3 As shown in the figure, after the device is connected to the network, the management node captures the LLDP packet, extracts the device information, and determines whether the device information complies with the known rules. If it does, it joins the existing group (the first group). If it does not, a new group (the second group) is set for the device, and policies are set for the group, security rules and configurations are implemented as well as device and network monitoring, and then the group and policies are adjusted in real time.
[0225] In the above embodiments of the present application, dynamic management of network device groups is implemented, devices are divided into different groups, and devices are automatically classified and grouped. Managers can more easily implement unified policies and configurations, reduce repetitive work, and improve management efficiency. The allocation of network resources based on real-time network device data and groups ensures that key applications and devices obtain the required network resources, while improving the efficiency of network resource utilization and optimizing the overall performance of the network. Dynamic management groups allow specific security policies to be implemented for different device groups, such as isolating sensitive devices, restricting access rights, and monitoring abnormal behaviors, which improves the overall security of the network. Network administrators can uniformly manage the entire network device cluster through management nodes, and can adjust management policies in real time based on the collected data, realizing dynamic management of network device clusters. When new devices are connected to the network, the new devices are automatically identified and connected, and the corresponding groups are assigned to the new devices, realizing automatic management and free expansion of the network.
[0226] Based on the same inventive concept, an embodiment of the present application provides a group management device. Figure 4 , Figure 4 FIG. 4 is a schematic diagram of a group management device 400 proposed in an embodiment of the present application. Figure 4 As shown, the device comprises:
[0227] The data capture module 401 is used to obtain the protocol packet of the device when it is detected that the network device is connected to the network device group, and the protocol packet is a data packet based on the link layer discovery protocol;
[0228] A device information determination module 402, configured to determine device information of the network device according to the protocol packet;
[0229] A first group determination module 403, configured to determine, based on the device information, a first group corresponding to the network device, wherein the devices in the first group comply with unified security rules and network policies;
[0230] The first allocating module 404 is configured to allocate the network device to the first group.
[0231] Optionally, the device further comprises:
[0232] A second group establishment module, configured to establish a second group according to the device information when the device information does not correspond to the first group;
[0233] A network policy formulation module, configured to formulate a corresponding network policy for the second group according to the device information;
[0234] A security rule formulation module, used to formulate corresponding security rules for the second group according to the device information;
[0235] The network monitoring module is used to perform network monitoring on the network device using the network policy and the security rules.
[0236] Optionally, the data capture module includes:
[0237] a data packet interception submodule, configured to intercept the data packet when the network device sends the data packet to the remaining devices in the network device group;
[0238] The data packet extraction submodule is used to extract the protocol packet from the data packet according to the protocol characteristics of the link layer discovery protocol.
[0239] Optionally, the device information determination module includes:
[0240] A data parsing submodule, used to parse the protocol packet according to the protocol rule corresponding to the protocol packet to obtain parsed data;
[0241] The device information determination submodule is used to extract the device information of the network device from the parsed data.
[0242] Optionally, the first group determination module includes:
[0243] A rule matching submodule, used to determine whether the network device complies with a preset device classification rule based on the device information;
[0244] The first group determination submodule is used to determine the first group corresponding to the network device when the network device meets the preset classification rule.
[0245] Optionally, the rule matching submodule includes:
[0246] A classification basis matching submodule, used to determine whether the data in the device information matches the classification basis specified in the device classification rule;
[0247] The information matching submodule is used to determine that the network device complies with the device classification rule when any data in the device information matches the classification basis specified in the device classification rule.
[0248] Optionally, the first allocation module includes:
[0249] A storage location determination submodule, used to determine a storage location of group device information corresponding to the first group;
[0250] A first information storage submodule, used to store the device information of the network device to the storage location;
[0251] The tag adding submodule is used to add a corresponding group tag to the network device.
[0252] Optionally, the second group establishment module includes:
[0253] A first device type determination submodule, used to determine the device type and device function of the network device according to the device information;
[0254] A second device type determination submodule, configured to determine the device type and device function corresponding to the second group according to the device type and device function;
[0255] A storage application submodule is used to apply for storage space of a preset capacity in a storage device;
[0256] A second information storage submodule, used to store the device information in the storage space;
[0257] The storage space determination submodule is used to use the storage space as the storage space for the device information of the network device corresponding to the second group.
[0258] Optionally, the network policy formulation module includes:
[0259] A second device type determination submodule, used to determine the device type and device function of the network device according to the device information;
[0260] A network requirement determination submodule, used to determine the network requirement of the device according to the device type and the device function;
[0261] A network policy formulation submodule is used to determine the network policy corresponding to the second group according to the network requirements.
[0262] Optionally, the security rule formulation module includes:
[0263] A third device type determination submodule, used to determine the device type and device function of the network device according to the device information;
[0264] The permission determination submodule is used to determine the access rights and data encryption level of the network device according to the device type and the device function;
[0265] The security rule formulation submodule formulates the corresponding security rules for the second group according to the access rights and the data encryption level.
[0266] Optionally, the device further comprises:
[0267] A device data collection module, used to monitor the network device in real time and collect device data of the network device;
[0268] The device status determination module is used to determine the device status and network performance of the network device according to the device data.
[0269] Optionally, the device further comprises:
[0270] A status monitoring module, used to monitor in real time the network status of the network where the network device is located and the device update status of the network device;
[0271] A group adjustment module, used for adjusting the group belonging of the network device according to the network status and the device update status;
[0272] The rule adjustment module is used to adjust the network policy and security rules of the existing network device group according to the network status and the device update status.
[0273] Based on the same inventive concept, another embodiment of the present application provides a readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the group management method described in any of the above embodiments of the present application are implemented.
[0274] Based on the same inventive concept, another embodiment of the present application provides an electronic device, Figure 5 It is a schematic diagram of an electronic device 500 proposed in one embodiment of the present application, including a memory 502, a processor 501 and a computer program stored in the memory and executable on the processor, and when the processor is executed, the steps in the group management method described in any of the above embodiments of the present application are implemented.
[0275] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0276] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0277] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0278] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0279] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0280] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0281] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0282] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0283] The group management method, device, equipment and storage medium provided by the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A group management method, It is characterized in that The method comprises: When it is detected that a network device is connected to a network device group, a protocol packet of the device is obtained, wherein the protocol packet is a data packet based on a link layer discovery protocol; Determining device information of the network device according to the protocol packet; Determine, according to the device information, a first group corresponding to the network device, wherein the devices in the first group comply with unified security rules and network policies; assigning the network device to the first group; In the case that the device information does not correspond to the first group, establishing a second group according to the device information; Formulate a corresponding network policy for the second group according to the device information, wherein the network policy is used to set a corresponding bandwidth and data transmission rate for the devices in the second group; According to the device information, corresponding security rules are formulated for the second group.
2. The group management method according to claim 1, It is characterized in that The step of obtaining a protocol packet of a network device upon detecting that the network device is connected to a network device group includes: In the case where the network device sends a data packet to other devices in the network device group, intercepting the data packet; The protocol packet is extracted from the data packet according to the protocol feature of the link layer discovery protocol.
3. The group management method according to claim 1, It is characterized in that Determining the device information of the network device according to the protocol packet includes: Parsing the protocol packet according to the protocol rule corresponding to the protocol packet to obtain parsed data; The device information of the network device is extracted from the parsed data.
4. The group management method according to claim 1, It is characterized in that The determining, according to the device information, a first group corresponding to the network device includes: Determining whether the network device complies with a preset device classification rule according to the device information; In the case that the network device complies with a preset classification rule, the first group corresponding to the network device is determined.
5. The group management method according to claim 4, It is characterized in that The determining, based on the device information, whether the network device complies with a preset device classification rule includes: Determining whether the data in the device information matches the classification basis specified in the device classification rule; In the case where any of the data in the device information matches the classification basis specified in the device classification rule, it is determined that the network device complies with the device classification rule.
6. The group management method according to claim 1, It is characterized in that The allocating the network device to the first group includes: Determine a storage location of group device information corresponding to the first group; Storing the device information of the network device in the storage location; A corresponding group tag is added to the network device.
7. The group management method according to claim 1, It is characterized in that The establishing of the second group according to the device information includes: Determine the device type and device function of the network device according to the device information; Determine, according to the device type and the device function, the device type and the device function corresponding to the second group; Apply for a storage space of preset capacity in a storage device; Storing the device information in the storage space; The storage space is used as a storage space for device information of the network devices corresponding to the second group.
8. The group management method according to claim 1, It is characterized in that The formulating a corresponding network policy for the second group according to the device information includes: Determine the device type and device function of the network device according to the device information; Determining the network requirements of the device according to the device type and the device function; The network policy corresponding to the second group is determined according to the network demand.
9. The group management method according to claim 1, It is characterized in that The formulating corresponding security rules for the second group according to the device information includes: Determine the device type and device function of the network device according to the device information; Determine the access rights and data encryption level of the network device according to the device type and the device function; The corresponding security rules are formulated for the second group according to the access rights and the data encryption level.
10. The group management method according to claim 1, It is characterized in that The method further comprises: Performing real-time monitoring on the network devices and collecting device data of the network devices; The device status and network performance of the network device are determined based on the device data.
11. The method according to claim 10, It is characterized in that The method further comprises: Real-time monitoring of the network status of the network where the network device is located and the device update status of the network device; Adjusting the group affiliation of the network device according to the network status and the device update status; According to the network status and the device update status, the network policy and security rules of the existing network device group are adjusted.
12. A computer program product comprising a computer program / instructions, It is characterized in that When the computer program / instructions are executed by a processor, the steps in the method according to any one of claims 1 to 11 are implemented.
13. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 11 are implemented.
14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 11 are implemented.
