Network equipment control method and system, electronic equipment and storage medium

By obtaining device metadata to generate network topology maps and controlling network node equipment with traffic data, the problem of SNMP not being able to identify the source of traffic abnormalities in complex network environments is solved, visualization, dynamic management and automation of network management is realized, and network equipment is improved control ability and adaptability.

CN118972224APending Publication Date: 2024-11-15VISIONVERA INFORMATION TECH CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202411034183.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

Simple Network Management Protocol (SNMP) cannot quickly and accurately identify and locate the source of traffic anomalies in the network when facing complex network environments.

Method used

Generate a network topology diagram by obtaining the device metadata of the network device, and control the network node equipment in combination with traffic data, including analyzing abnormal traffic alarm information, determining control policies, and sending control instructions to adjust network configuration.

Benefits of technology

It realizes the precise identification and positioning of the source of traffic abnormalities in the network, improves the visualization, dynamic management and automation of network management, and enhances the control capabilities and adaptability of network equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972224A_ABST
    Figure CN118972224A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a network equipment control method and system, the method is applied to network equipment supporting a simple network management protocol, and the method comprises the following steps: obtaining equipment metadata of network node equipment of target network equipment, the equipment metadata being used for describing detailed information of the network node equipment; generating a network topological graph where the network node equipment is located according to the equipment metadata; acquiring traffic data from the target network device; and controlling the network node equipment according to the network topological graph and the flow data. Compared with the traditional SNMP, the embodiment of the invention has remarkable improvement and advantages in the aspects of network visualization, flow anomaly positioning, dynamic management, automation level, control capability, expansibility and adaptability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network technology, and in particular to a control method for network equipment, a control system for network equipment, an electronic device, and a computer-readable storage medium. Background Art

[0002] Simple Network Management Protocol (SNMP) is a standard network management protocol widely used in modern network management. It is used to manage and monitor network devices such as servers, workstations, routers, switches, printers, etc.

[0003] SNMP enables network administrators to collect various key indicators of network devices in real time, such as traffic data of switch ports, including bit rate (bps) and packet rate (pps). These data are essential for evaluating network health, identifying potential bottlenecks, and planning resource allocation. In addition, SNMP allows remote configuration of network device parameters to ensure the adaptability and stability of the network in a dynamic environment.

[0004] However, SNMP still has some limitations. For example, in the face of increasingly complex network environments, SNMP cannot quickly and accurately identify and locate the source of traffic anomalies in the network. Summary of the invention

[0005] In view of the above problems, embodiments of the present invention are proposed to provide a control method of a network device, a control system of a network device, an electronic device and a computer-readable storage medium that overcome the above problems or at least partially solve the above problems.

[0006] In order to solve the above problems, an embodiment of the present invention discloses a control method for a network device, which is applied to a network device that supports a simple network management protocol. The method includes: obtaining device metadata of a network node device of a target network device, wherein the device metadata is used to describe detailed information of the network node device; generating a network topology map where the network node device is located according to the device metadata; obtaining traffic data from the target network device; and controlling the network node device according to the network topology map and the traffic data.

[0007] Optionally, obtaining the device metadata of the network node device of the target network device includes: sending a request message to the network node device based on a simple network management protocol, and receiving the device metadata returned by the network node device according to the request message.

[0008] Optionally, generating a network topology map where the network node device is located based on the device metadata includes: parsing the device metadata to obtain connection information and status information of the network node device; drawing the nodes and edges of the network topology map based on the connection information, and displaying the status information on the nodes and the edges to form the network topology map.

[0009] Optionally, the controlling of the network node device according to the network topology map and the traffic data includes: analyzing the traffic data to obtain abnormal traffic alarm information, wherein the abnormal traffic alarm information is used to indicate abnormal traffic conditions in the network to which the target network device is connected; determining the control strategy and / or operation content of the network node device according to the abnormal traffic alarm information and the network topology map; and sending management and control instructions to the network node device in accordance with the Simple Network Management Protocol, so that the network node device executes the control strategy and / or the operation content according to the management and control instructions.

[0010] Optionally, the analysis of the traffic data to obtain abnormal traffic alarm information includes: storing the traffic data in a monitoring and alarm system; using the monitoring and alarm system to analyze the traffic data to obtain the abnormal traffic alarm information; and pushing the abnormal traffic alarm information to a target network device management service through an alarm component of the monitoring and alarm system.

[0011] Optionally, the acquiring the flow data from the target network device includes: acquiring the flow data from the target network device periodically or in real time through a flow collector.

[0012] Optionally, after acquiring the traffic data from the target network device, the method further includes: updating the network topology map according to the traffic data.

[0013] An embodiment of the present invention also discloses a control system for network equipment, which is applied to network equipment that supports a simple network management protocol. The system includes: a device metadata acquisition module, which is used to acquire device metadata of a network node device of a target network device, wherein the device metadata is used to describe detailed information of the network node device; a network topology map generation module, which is used to generate a network topology map where the network node device is located based on the device metadata; a traffic data acquisition module, which is used to acquire traffic data from the target network device; and a network device control module, which is used to control the network node device based on the network topology map and the traffic data.

[0014] Optionally, the device metadata acquisition module is used to send a request message to the network node device based on a simple network management protocol, and receive the device metadata returned by the network node device according to the request message.

[0015] Optionally, the network topology map generation module includes: a device metadata parsing module, used to parse the device metadata to obtain the connection information and status information of the network node device; a drawing and display module, used to draw the nodes and edges of the network topology map according to the connection information, and display the status information on the nodes and the edges to form the network topology map.

[0016] Optionally, the network device control module includes: a traffic data analysis module, used to analyze the traffic data to obtain abnormal traffic alarm information, and the abnormal traffic alarm information is used to indicate the abnormal traffic situation in the network to which the target network device is connected; a policy content determination module, used to determine the control policy and / or operation content of the network node device based on the abnormal traffic alarm information and the network topology diagram; a management and control instruction sending module, used to send management and control instructions to the network node device in accordance with the simple network management protocol, so that the network node device executes the control policy and / or the operation content according to the management and control instructions.

[0017] Optionally, the traffic data analysis module includes: a traffic data storage module, used to store the traffic data in a monitoring and alarm system; an abnormal traffic alarm module, used to use the monitoring and alarm system to analyze the traffic data to obtain the abnormal traffic alarm information; and an alarm information push module, used to push the abnormal traffic alarm information to the target network device management service through the alarm component of the monitoring and alarm system.

[0018] Optionally, the flow data acquisition module is used to obtain the flow data from the target network device periodically or in real time through a flow collector.

[0019] Optionally, the system further includes: a topology map updating module, configured to update the network topology map according to the traffic data after the traffic data acquisition module acquires the traffic data from the target network device.

[0020] An embodiment of the present invention further discloses an electronic device, comprising: one or more processors; and one or more machine-readable media storing instructions thereon, which, when executed by the one or more processors, enables the electronic device to execute the control method of the network device as described above.

[0021] The embodiment of the present invention further discloses a computer-readable storage medium, wherein a computer program stored in the storage medium enables a processor to execute the control method of the network device as described above.

[0022] The embodiments of the present invention include the following advantages:

[0023] The control scheme of the network device provided by the embodiment of the present invention is applied to the network device supporting the simple network management protocol, and the network device supporting the simple network management protocol obtains the device metadata of the network node device of the target network device. The device metadata is used to describe the detailed information of the network node device. Then, a network topology map where the network node device is located is generated according to the device metadata. Moreover, traffic data is obtained from the target network device. Then, the network node device is controlled according to the network topology map and the traffic data.

[0024] The embodiment of the present invention can more intuitively understand the network structure and the relationship between each network device by acquiring device metadata and generating a network topology map. This visualization can help quickly identify key devices and nodes in the network, thereby facilitating the location and resolution of network problems. By combining the network topology map and traffic data, the source of traffic anomalies in the network can be more accurately identified and located. Compared with the traditional SNMP that can only provide traffic data of a single device, the source and impact range of traffic anomalies can be analyzed from a global perspective. By acquiring device metadata and traffic data in real time, the configuration of network devices can be dynamically adjusted to ensure the adaptability and stability of the network in a dynamic environment. An automated device metadata acquisition and network topology generation process is provided, which reduces the need for manual intervention and improves the efficiency and accuracy of network management. Automated traffic data analysis and control can also reduce the workload of network administrators. Not only can network devices be monitored, but also devices can be actively controlled according to traffic data and network topology. Device metadata can be dynamically acquired and network topology can be generated, so it has better adaptability and scalability when facing changes in network topology.

[0025] In summary, the network device control solution provided by the embodiment of the present invention has significant improvements and advantages over the traditional SNMP in terms of network visualization, traffic anomaly location, dynamic management, automation level, control capability, scalability and adaptability. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 is a flowchart of a method for controlling a network device according to an embodiment of the present invention;

[0027] Figure 2 It is a schematic diagram of the principle of a solution for processing abnormal traffic of a switch according to an embodiment of the present invention;

[0028] Figure 3 It is a structural block diagram of a control system of a network device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0030] The network device management solution proposed in the embodiment of the present invention obtains the device metadata of the network node device of the target network device, generates a network topology map, and controls the network node device in combination with the traffic data. The network node device can be a peer network device of the target network device that supports SNMP or a device port of the target network device. Compared with the traditional SNMP, this solution significantly improves the visualization and understanding capabilities of network management, can accurately locate the source of traffic anomalies, and realize dynamic network management and optimization. By automatically acquiring device metadata and generating network topology maps, manual intervention is reduced, and management efficiency and accuracy are improved. At the same time, the solution enhances the control capabilities of network devices, enables administrators to allocate and optimize network resources more effectively, improves the adaptability and scalability of the network, and has a stronger ability to cope with the ever-changing network environment. These improvements significantly improve the efficiency, accuracy and flexibility of network management, and meet the needs of modern complex network environments.

[0031] Reference Figure 1 , shows a flowchart of a method for controlling a network device according to an embodiment of the present invention. The method for controlling a network device can be applied to a network device (such as a switch, etc.) that supports a simple network management protocol. The method for controlling a network device can specifically include the following steps:

[0032] Step 101: Obtain device metadata of a network node device of a target network device.

[0033] In an embodiment of the present invention, a network device supporting a simple network management protocol collects device metadata of its network node devices from a target network device through a network protocol (such as SNMP or other applicable protocols). The device metadata includes, but is not limited to, detailed information such as the device's IP address, physical address (Media Access Control address, MAC address for short), device type, port information, connection status, hardware and software versions. These device metadata provide the basic characteristics and operating status of network node devices, providing the necessary basis for subsequent network topology map generation and traffic data analysis.

[0034] For example, when the target network device is a switch, the network device that supports the Simple Network Management Protocol can query the information of each device connected to the switch through SNMP, including their IP addresses, MAC addresses, connected port numbers, etc. This information will be used to generate a network topology diagram of the switch and its connected devices.

[0035] Step 102: Generate a network topology diagram where the network node devices are located according to the device metadata.

[0036] In an embodiment of the present invention, after obtaining the device metadata of the network node device, the network device supporting the simple network management protocol uses the device metadata to generate a network topology map. A network topology map is a graphical representation of network devices and their connection relationships, usually presented in the form of a graph. Each node represents a network device, and each edge represents a connection between network devices. A network topology map can help network administrators intuitively understand the network structure and the relationship between devices.

[0037] When generating a network topology graph, a network device supporting the Simple Network Management Protocol may use graph theory algorithms, such as depth-first search or breadth-first search, combined with device metadata to build a network connection graph. For example, by analyzing switch port information, a network device supporting the Simple Network Management Protocol can determine the network device connected to each port and visualize these network devices and connection relationships in a network topology graph.

[0038] Step 103: Obtain traffic data from the target network device.

[0039] In the embodiment of the present invention, the traffic data includes various key indicators, such as bit rate (Bits Per Second, BPS for short) and packet rate (Packets Per Second, PPS for short), and these traffic data reflect the traffic conditions of the target network device in different time periods.

[0040] In actual application, the network administrator first needs to determine the target network device to be monitored. The target network device can be a switch, a router, a network device that supports the Simple Network Management Protocol, etc. The target network device is usually a key node in the network, and its traffic status directly affects the performance and stability of the entire network. The target network device usually supports SNMP for monitoring and managing the device. The administrator needs to configure the SNMP agent on the target network device and set the relevant Management Information Base (MIB) entries so that the traffic data can be collected remotely. The SNMP management station (Manager) sends a request to the target network device to obtain the required traffic data. These requests can be queries for the object identifier (OID) specified in the MIB, such as the number of input / output bytes and packets of the interface. The SNMP agent of the target network device responds to the request and returns the corresponding traffic data. After receiving the traffic data, the management station stores it in the local database for subsequent analysis.

[0041] For example: Suppose a network administrator needs to monitor the port traffic of a switch. The administrator first configures the SNMP agent on the switch and ensures that the MIB contains the OIDs related to the interface traffic. For example, ifInOctets and ifOutOctets represent the number of input bytes and output bytes of the interface, respectively. Next, the administrator uses the SNMP management tool to send a request to the switch to query these OIDs. The switch responds to the request and returns the number of input and output bytes of the corresponding port. The administrator stores this data in the database and records it in time series to form a complete traffic data chain.

[0042] Step 104, controlling the network node devices according to the network topology diagram and traffic data.

[0043] In an embodiment of the present invention, a network device supporting the Simple Network Management Protocol controls network node devices in combination with a network topology map and traffic data. Control measures may include adjusting device configuration, optimizing traffic routing, limiting bandwidth, enabling or disabling specific ports, etc. Through these control measures, the network device supporting the Simple Network Management Protocol can ensure the stability and performance of the network and prevent potential network congestion and failures.

[0044] For example, if a network device that supports SNMP detects that a port has too much traffic, it may reroute some of the traffic to other ports with lower loads or adjust bandwidth limits to prevent network congestion. If a network device behaves abnormally, a network device that supports SNMP can automatically disable the network device or port and notify the administrator for further inspection.

[0045] The control scheme of the network device provided by the embodiment of the present invention is applied to the network device supporting the simple network management protocol, and the network device supporting the simple network management protocol obtains the device metadata of the network node device of the target network device. The device metadata is used to describe the detailed information of the network node device. Then, a network topology map where the network node device is located is generated according to the device metadata. Moreover, traffic data is obtained from the target network device. Then, the network node device is controlled according to the network topology map and the traffic data.

[0046] The embodiment of the present invention can more intuitively understand the network structure and the relationship between each network device by acquiring device metadata and generating a network topology map. This visualization can help quickly identify key devices and nodes in the network, thereby facilitating the location and resolution of network problems. By combining the network topology map and traffic data, the source of traffic anomalies in the network can be more accurately identified and located. Compared with the traditional SNMP that can only provide traffic data of a single device, the source and impact range of traffic anomalies can be analyzed from a global perspective. By acquiring device metadata and traffic data in real time, the configuration of network devices can be dynamically adjusted to ensure the adaptability and stability of the network in a dynamic environment. An automated device metadata acquisition and network topology generation process is provided, which reduces the need for manual intervention and improves the efficiency and accuracy of network management. Automated traffic data analysis and control can also reduce the workload of network administrators. Not only can network devices be monitored, but also devices can be actively controlled according to traffic data and network topology. Device metadata can be dynamically acquired and network topology can be generated, so it has better adaptability and scalability when facing changes in network topology.

[0047] In summary, the network device control solution provided by the embodiment of the present invention has significant improvements and advantages over the traditional SNMP in terms of network visualization, traffic anomaly location, dynamic management, automation level, control capability, scalability and adaptability.

[0048] In an exemplary embodiment of the present invention, an implementation method for obtaining the device metadata of the network node device of the target network device is to send a request message to the network node device based on the Simple Network Management Protocol, and receive the device metadata returned by the network node device according to the request message. In this implementation, the network device supporting the Simple Network Management Protocol sends a request message to the network node device based on the Simple Network Management Protocol to obtain its device metadata. SNMP is an application layer protocol that aims to provide management and monitoring of network devices through a management information base (MIB). In actual application, a network device supporting the Simple Network Management Protocol establishes an SNMP session with the target network device. The SNMP session is the basis for communication between network devices supporting the Simple Network Management Protocol and network devices. Through this session, the network device supporting the Simple Network Management Protocol can send requests and receive responses. The network device supporting the Simple Network Management Protocol constructs an SNMP request message, and the request message generally includes the following parts:

[0049] Request type: such as GET request, used to obtain the value corresponding to the specified OID.

[0050] Request ID: An ID that uniquely identifies each SNMP request.

[0051] Variable binding: Contains the requested OID and its related information. The OID points to a specific variable in the management information base, representing certain attributes or states of the device.

[0052] The network device that supports the Simple Network Management Protocol sends the constructed SNMP request message to the SNMP agent of the network node device. The SNMP agent is the software running on the network device, which is responsible for processing SNMP requests and returning the corresponding data. After receiving the request message, the SNMP agent of the network node device looks up the requested OID and encapsulates the corresponding device metadata in the response message and returns it to the network device that supports the Simple Network Management Protocol. The network device that supports the Simple Network Management Protocol receives the response message and parses the device metadata contained therein. These device metadata include basic information of the device (such as IP address, MAC address, device type), port status, connection information, etc.

[0053] The network devices supporting the Simple Network Management Protocol in the embodiments of the present invention can obtain the latest status and configuration information of network node devices in real time, which helps to timely discover and solve network problems. By obtaining device metadata through SNMP and combining these device metadata to generate a network topology map, it is possible to more intuitively understand the network structure and the connection relationship between devices, and improve the visualization ability of network management. Using SNMP to automatically obtain device metadata reduces the need for manual intervention, simplifies the network management process, and improves management efficiency.

[0054] In an exemplary embodiment of the present invention, an implementation method of generating a network topology map where a network node device is located according to device metadata is to parse the device metadata to obtain the connection information and status information of the network node device; draw the nodes and edges of the network topology map according to the connection information, and display the status information on the nodes and edges to form a network topology map. The network topology map displays the network devices and their connection relationships in a graphical manner. By displaying the status information of the network devices on the nodes and edges, the structure and operation status of the network can be intuitively understood. In the actual application process, the network device supporting the simple network management protocol extracts the device metadata from the SNMP response message, including the IP address, MAC address, device type, port information, connection status, etc. of each network node device. These device metadata provide the basic information of the network node devices and the connection relationship between them. According to the device metadata obtained by parsing, the network device supporting the simple network management protocol generates the connection information of each network node device, including the connection relationship between the network devices (for example, the device connected to the switch port). At the same time, the network device supporting the simple network management protocol also generates the status information of the network device, such as whether the network device is online, the traffic situation of the port, the load status of the device, etc. The network device supporting the simple network management protocol uses the connection information to draw the nodes and edges of the network topology map. Each node represents a network device, and each edge represents a connection between network devices. Network devices that support the Simple Network Management Protocol display all network devices and their connection relationships in a graphical manner to form a complete network topology. Network devices that support the Simple Network Management Protocol display the status information of network devices on the nodes and edges of the network topology diagram. The status information displayed on the node can include the device name, IP address, load status, etc.; the status information displayed on the edge can include the traffic status of the connection port, connection status, etc.

[0055] The embodiments of the present invention can intuitively understand the network structure and the connection status between network devices by graphically displaying network devices and connection relationships, thereby improving the visualization capability of network management. Displaying the status information and connection status of network devices on the topology map can quickly identify abnormal situations in the network, such as device failure, disconnection, or excessive port traffic, thereby improving the efficiency of fault diagnosis and resolution. Automatically generating network topology maps and displaying status information reduces the need for manual intervention and improves the efficiency and accuracy of network management.

[0056] In an exemplary embodiment of the present invention, an implementation method of controlling a network node device according to a network topology diagram and flow data is to analyze the flow data to obtain abnormal flow alarm information, and the abnormal flow alarm information is used to indicate the abnormal flow situation in the network to which the target network device is connected. The control strategy and / or operation content of the network node device is determined according to the network topology diagram of the abnormal flow alarm signal. According to the simple network management protocol, a control instruction is sent to the network node device so that the network node device executes the control strategy and / or operation content according to the control instruction. In the actual application process, a network device supporting the simple network management protocol obtains real-time flow data from a network device (such as a switch, a router), including a bit rate (bps) and a packet rate (pps). These flow data reflect the current load and flow situation of the network device port. The network device supporting the simple network management protocol uses a preset threshold and algorithm to analyze the flow data to identify abnormal flow conditions. Abnormal flow may include a sudden increase or decrease in flow, an abnormally large data packet, an abnormally high flow frequency, etc. Abnormal flow alarm information is generated according to the analysis result, and the abnormal flow alarm information includes detailed information such as the abnormal type, the time of occurrence, the involved devices and ports. Network devices that support the Simple Network Management Protocol combine abnormal traffic alarm information and network topology diagrams to determine specific control strategies and operation contents. For example: when the traffic on a certain port is too high, you can choose to reroute part of the traffic, limit bandwidth, or disable specific ports. When attack traffic is detected in the network, you can enable firewall rules or isolate the affected devices. The control strategy and operation content depend on the type of anomaly and the network topology to ensure that the anomaly can be effectively mitigated or resolved. Network devices that support the Simple Network Management Protocol send control instructions to network node devices according to SNMP. The control instructions contain specific control strategies and operation contents, such as adjusting port configurations, modifying traffic routing rules, enabling or disabling specific functions, etc. After receiving the control instructions, the network node device executes the corresponding control strategy and operation content to deal with abnormal traffic conditions.

[0057] For example, suppose there is a network that includes a core switch and multiple access switches, as well as multiple terminal devices connected to the access switches. A network device that supports the Simple Network Management Protocol detects that the traffic on a port of an access switch is abnormally high. The network device that supports the Simple Network Management Protocol obtains traffic data from the port of the access switch and finds that the bit rate and packet rate of the port are far beyond the normal range. After analyzing the traffic data, an abnormal traffic alarm message is generated, indicating that the port has an abnormally high traffic situation. The network device that supports the Simple Network Management Protocol combines the abnormal traffic alarm message and the network topology diagram to determine the control strategy. Because the device connected to the port may be attacked or malfunction, the network device that supports the Simple Network Management Protocol decides to reroute part of the traffic to other ports and limit the bandwidth of the port. The control strategy includes: adjusting the traffic routing rules and limiting the maximum bandwidth of the port. The network device that supports the Simple Network Management Protocol sends a control instruction to the access switch through SNMP, instructing the switch to adjust the traffic routing rules and limit the bandwidth of the specified port. After receiving the instruction, the access switch executes the control strategy, reroutes the traffic and limits the bandwidth to alleviate the abnormal traffic situation.

[0058] The embodiments of the present invention analyze traffic data in real time and generate abnormal traffic alarm information, so that network devices that support the Simple Network Management Protocol can quickly detect and identify abnormal traffic conditions in the network and take timely measures to deal with potential problems. In combination with abnormal traffic alarm information and network topology diagrams, network devices that support the Simple Network Management Protocol can accurately locate the source of abnormal traffic, formulate targeted control strategies, and improve the accuracy and effectiveness of network management. By automatically sending control instructions through SNMP, network devices that support the Simple Network Management Protocol can remotely configure and control network devices, reduce manual intervention, and improve the level of automation of network management. Timely respond to abnormal traffic conditions, through measures such as rerouting, limiting bandwidth, and enabling firewalls, network devices that support the Simple Network Management Protocol can effectively prevent network congestion and security threats, and improve the stability and security of the network.

[0059] In an exemplary embodiment of the present invention, an implementation method of analyzing traffic data to obtain abnormal traffic alarm information is to store the traffic data in a monitoring and alarm system; analyze the traffic data using the monitoring and alarm system to obtain abnormal traffic alarm information; and push the abnormal traffic alarm information to the target network device management service through the alarm component of the monitoring and alarm system. In the actual application process, the traffic data obtained from the target network device is stored in the monitoring and alarm system. The monitoring and alarm system can be an independent hardware device or a software deployed on a network device that supports the simple network management protocol. Its main function is to record and store network traffic data to provide a basis for subsequent analysis. The monitoring and alarm system performs real-time or periodic analysis on the stored traffic data. The analysis method includes statistical analysis, machine learning algorithms, rule engines, etc., which are used to identify abnormal patterns and potential problems in traffic. For example, by setting traffic thresholds, detecting traffic mutations, identifying abnormal traffic patterns, etc., the system can detect abnormal situations in traffic. When the monitoring and alarm system detects abnormal traffic, abnormal traffic alarm information is generated. The alarm information includes a detailed description of the abnormal traffic, the time when the abnormality occurs, the affected devices and ports, etc. This information provides network administrators with detailed troubleshooting clues, making it easier to quickly locate and handle problems. The monitoring and alarm system pushes abnormal traffic alarm information to the target network device management service through its alarm component. The alarm component can notify administrators in a variety of ways (such as email, SMS, instant messaging, etc.) to ensure timely response and processing of alarm information.

[0060] For example, suppose a medium-sized enterprise deploys a monitoring and alarm system to manage its internal network traffic. The administrator regularly stores the traffic data obtained by the traffic collector into the monitoring and alarm system. The system analyzes this data in real time to detect abnormalities in the network. The system detects that the network traffic of a network device that supports the Simple Network Management Protocol has suddenly increased significantly. Through statistical analysis and rule engines, the system identifies that this is an abnormal traffic and generates detailed abnormal traffic alarm information. The alarm information includes the start time, duration, bit rate and packet rate of the abnormal traffic, and the related network devices and ports that support the Simple Network Management Protocol. The alarm component of the monitoring and alarm system pushes this abnormal traffic alarm information to the network administrator via email.

[0061] The monitoring and alarm system in the embodiment of the present invention can analyze the stored traffic data in real time and promptly discover abnormal situations in the network. This helps network administrators to respond and handle problems quickly and reduce the impact on the business. The system can generate detailed abnormal traffic alarm information, including the description of the abnormal traffic, time, and affected devices. This provides administrators with accurate fault diagnosis clues, which facilitates rapid location and resolution of problems. The alarm component of the monitoring and alarm system can push alarm information in a variety of ways, such as e-mail, text messages, instant messages, etc., to ensure that administrators can receive alarm information in a timely manner and take prompt action. Through automated monitoring and alarming, the workload of manual monitoring and analysis is reduced, and the efficiency of network management is improved. Administrators can devote more time and energy to network optimization and planning, reducing management costs.

[0062] In an exemplary embodiment of the present invention, one implementation method of obtaining flow data from a target network device is to obtain flow data from the target network device periodically or in real time through a flow collector. In actual application, a flow collector is deployed in the network. The flow collector can be an independent hardware device or a software installed on a network device or workstation that supports the simple network management protocol. Its main function is to capture and record flow data passing through the network device. Set the parameters of the flow collector so that it can communicate with the target network device. This includes configuring the IP address, interface information, and SNMP settings of the target network device. Set the collection frequency of the flow collector according to network requirements and traffic characteristics. The collection frequency can be periodic (such as every minute, every five minutes) or real-time (every second) collection. Real-time collection can provide more detailed flow data, which helps to quickly identify and respond to abnormal situations. The flow collector starts working and obtains flow data from the target network device periodically or in real time. These flow data include key indicators such as bit rate (Bits Per Second, referred to as BPS) and packet rate (Packets Per Second, referred to as PPS). The collected flow data is stored in a local database or a remote network device that supports the simple network management protocol for subsequent analysis. Preprocess and analyze the collected traffic data. Preprocessing includes steps such as data cleaning, format conversion, and time alignment. Analysis can use statistical methods, machine learning algorithms, or other analytical tools to identify abnormal traffic patterns and potential network problems.

[0063] For example, suppose a large enterprise deploys a traffic collector to monitor the network traffic in its data center. The administrator installs the traffic collector on a dedicated network device that supports the Simple Network Management Protocol and configures it to communicate with the core switch. Through SNMP settings, the traffic collector can periodically obtain traffic data from each port of the switch. In order to better monitor network traffic, the administrator sets the collection frequency to once every minute. This means that every minute the traffic collector sends a request to the switch to obtain the bit rate and packet rate data of each port. This data is stored in the enterprise's data warehouse for subsequent analysis.

[0064] The embodiment of the present invention accurately captures and records the flow data of the target network device through a flow collector. The regular or real-time collection method ensures the timeliness and accuracy of the data, which helps to fully understand the network status. Real-time flow data collection can quickly identify and respond to abnormal situations in the network. For example, problems such as sudden increase in flow and sudden decrease in flow can be discovered and handled in the first time, reducing the impact on the business. By analyzing the collected flow data, bottlenecks and potential problems in the network can be identified, so that measures can be taken to optimize network configuration and resource allocation. For example, measures such as adjusting the backup plan of network devices supporting the simple network management protocol and optimizing flow routing can significantly improve network performance. The flow collector can detect abnormal flow patterns, which is crucial for preventing network attacks and other security threats. Automated flow data collection and analysis reduces the workload of administrators for manual monitoring and analysis, and improves work efficiency. Administrators can devote more time and energy to network planning and optimization. By regularly collecting flow data, a comprehensive historical data record can be established. These records are not only helpful for long-term trend analysis, but also can serve as a reference for future network expansion and upgrades.

[0065] In an exemplary embodiment of the present invention, an implementation method of pushing abnormal traffic alarm information to a target network device management service through an alarm component of a monitoring and alarm system is to push abnormal traffic alarm information to a push application programming interface (Application Programming Interface, API) of a target network device management service through an alarm component. In actual application, the traffic data is analyzed by the aforementioned monitoring and alarm system, and after the system detects abnormal traffic, detailed abnormal traffic alarm information is generated. The alarm information includes a description of the abnormal traffic, the time of occurrence, the affected device and port, etc. In the monitoring and alarm system, the alarm component is configured so that it can communicate with the push API of the target network device management service. This includes setting the address of the API, the authentication method, and the format and content of the pushed data. According to the requirements of the target network device management service, the alarm information is formatted to ensure that the pushed data complies with the API specification. This may involve converting the data into JavaScript Object Notation (JSON) or eXtensible Markup Language (XML) format. Through the alarm component, the formatted abnormal traffic alarm information is pushed to the API of the target network device management service. After receiving the alarm information, the target network device management service confirms and processes it. The system can record the alarm information, notify the relevant administrators, and take corresponding control measures according to the alarm content.

[0066] For example: Suppose a large enterprise deploys a monitoring and alarm system to manage network traffic in its data center. The system is configured with an alarm component to push abnormal traffic alarm information to the API of the target network device management service. The administrator configures the address and authentication method of the API in the system and sets the format conversion rules for the alarm information. The system detects that the traffic on a certain switch port suddenly surges and exceeds the preset threshold. The system generates a detailed abnormal traffic alarm information, describing the characteristics of the abnormal traffic, the time of occurrence, and the affected device ports. The alarm component converts this alarm information into JSON format and pushes it to the API of the target network device management service.

[0067] In the embodiment of the present invention, through the alarm component and API, the alarm information can be transmitted to the target network device management service in real time, ensuring that the network administrator can quickly receive abnormal traffic alarms and take timely measures to respond. The use of API for information push reduces the steps of manual intervention and realizes the automation of alarm information transmission and processing. The use of alarm components and APIs ensures the accurate transmission of information, and the alarm information will not be lost or tampered with during the transmission process, ensuring the integrity and reliability of the data. By configuring the alarm component and API, the push method and content format of the alarm information can be flexibly set according to the needs to adapt to different management services and business needs.

[0068] In an exemplary embodiment of the present invention, a method of scanning a network node device of a target network device according to abnormal traffic alarm information to obtain device metadata is to scan a network topology diagram where the network node device is located to obtain device metadata based on a simple network management protocol and abnormal traffic alarm information. In actual application, abnormal traffic alarm information is generated by a monitoring and alarm system. The information generally includes a description of the abnormal traffic, the time of occurrence, the affected device and port, etc. These data provide a basis for further network analysis. According to the abnormal traffic alarm information, the network topology diagram is accessed. The network topology diagram is a visual representation of the network structure, which shows the connection relationship between various network devices. The network topology diagram is usually provided by a network management system or a network design document, which can help understand the physical and logical connections between network devices. Based on the network topology diagram and SNMP, the network node device mentioned in the abnormal traffic alarm information is scanned. The network node device is scanned using SNMP to obtain device metadata. The obtained device metadata is combined with the abnormal traffic alarm information for comprehensive analysis. By analyzing the status and connection status of the network node device, it can be determined whether the abnormal traffic is related to device failure, configuration problems or network attacks, so as to formulate corresponding solutions.

[0069] For example, suppose an enterprise's network management system generates an abnormal traffic alarm, indicating that the traffic on a switch port has suddenly increased. The administrator checks the network topology through the system and finds that the switch port is connected to another router. To further analyze the source of the abnormal traffic, the administrator decides to scan the router to obtain device metadata. A request is sent to the router through SNMP to obtain the device metadata. The returned information includes the router's model, IP address, operating status, interface list, and other devices connected to it. The administrator finds that some of the router's interfaces are processing a large amount of traffic, which is consistent with the abnormal traffic in the alarm information. Further analysis finds that an interface on this router is directly connected to a network device that supports SNMP within the company. The network device that supports SNMP has recently started a large number of data backup tasks, resulting in a sharp increase in traffic. With this information, the administrator can confirm the root cause of the abnormal traffic and take measures to optimize the backup tasks of the network device that supports SNMP to reduce the pressure on the network.

[0070] By scanning network node devices and obtaining device metadata, the embodiments of the present invention can gain an in-depth understanding of the status and configuration of each device in the network. This helps to identify the source of abnormal traffic and its possible scope of impact. Combining abnormal traffic alarm information and device metadata, the fault point can be accurately located. For example, by identifying the peer device and connection status, it can be determined whether the abnormal traffic is caused by device failure, configuration problems, or network attacks. Obtaining device metadata is helpful for network optimization and resource allocation. For example, understanding the operating status of the device and interface usage can optimize network topology and load balancing and improve network performance. Through SNMP and network topology diagrams, key information can be quickly obtained, shortening fault diagnosis and processing time. This method reduces manual investigation and guesswork and improves the efficiency of network management.

[0071] In an exemplary embodiment of the present invention, after obtaining traffic data from the target network device, an implementation method is to update the network topology map according to the traffic data. In actual application, as the network equipment and traffic conditions change, the network topology map is updated regularly or in real time. By continuously monitoring and analyzing traffic data, changes in the network structure are reflected in a timely manner to ensure that the network topology map is always kept up to date. The updated network topology map is stored in the network management system, and a visual interface is provided for administrators to view and analyze. Through the intuitive topology map display, the administrator can quickly understand the overall structure of the network and the status of each device.

[0072] For example: suppose that an enterprise network management system regularly obtains traffic data from network devices such as switches and routers. After analyzing this data, the system updates the network topology map to help administrators better understand the network structure and traffic distribution. Specifically, traffic data is obtained from the ports of each switch and router, and the bit rate and packet rate of each port are identified. As traffic data continues to be collected, the system finds that switch C has added a new connection to switch A, and the traffic is gradually increasing. The system automatically updates the topology map and adds this new connection to the map. The updated network topology map is stored in the network management system. Administrators can view the latest network structure map through the system interface and intuitively understand the connection relationship and traffic distribution between network devices.

[0073] The embodiments of the present invention can reflect the dynamic changes of the network structure by updating the network topology map in real time, timely discover new or changed connections, and help to timely identify and respond to network anomalies. The visual network topology map display can intuitively understand the network status, reduce complex manual analysis and troubleshooting work, and improve the efficiency and accuracy of network management. Based on the real-time updated topology map, faulty equipment and connections can be quickly located, the fault diagnosis and processing time can be shortened, and the reliability and stability of the network can be improved. The data support provided by the topology map is helpful for network planning and decision-making. For example, when planning network expansion, you can refer to the topology map to understand the existing network structure and traffic conditions, and formulate a reasonable expansion plan.

[0074] Based on the above description of the control method embodiment of a network device, a solution for handling abnormal traffic of a switch is introduced below. Figure 2 , shows a schematic diagram of the principle of a solution for processing abnormal traffic of a switch according to an embodiment of the present invention. The solution for processing abnormal traffic of the switch involves switch equipment, traffic collector (such as SNMPExporter), monitoring and alarm system (such as Prometheus), alarm component (such as Alert Manager), switch management service, etc. Among them, the traffic collector, monitoring and alarm system, alarm component and switch management service can be deployed in a network device (such as a server, etc.) that supports the simple network management protocol.

[0075] SNMP Exporter acts as a traffic collector and extracts traffic data from switch devices periodically or in real time. The extracted traffic data is passed to Prometheus. Prometheus stores traffic data for analysis and query. Through Prometheus's analysis of traffic data, abnormal traffic data is determined, abnormal traffic alarm information is generated, and the abnormal traffic alarm information is pushed to Alert Manager. After receiving the abnormal traffic alarm information, Alert Manager sends the abnormal traffic alarm information to the switch management service through a push API (such as webhook). Based on the abnormal traffic alarm information, the switch management service uses SNMP to scan the network node devices of the switch device and collects the device metadata of the network node devices. The switch management service locates the source device of the abnormal traffic based on the device metadata and the abnormal traffic alarm information. The switch management service sends control instructions to the source device or the corresponding port of the abnormal traffic through SNMP, such as adjusting the traffic control strategy, restarting the service, etc., so as to control the network node device.

[0076] In addition, the switch management service can also draw a network topology map based on the extracted traffic data.

[0077] The embodiment of the present invention can take control actions on the source device of abnormal traffic immediately through an automated control instruction sending mechanism, such as limiting the traffic of a specific port, rerouting the traffic or adjusting the switch configuration, effectively curbing abnormal conditions, avoiding potential network congestion or security threats, and ensuring the continuity and stability of network operation. SNMPExporter is creatively integrated with Prometheus and Alert Manager to form an efficient and sensitive monitoring and alarm mechanism. This integrated solution not only covers a comprehensive range but also has high adaptability and scalability, ensuring real-time and accurate grasp of the network status. By deeply analyzing and processing the massive switch performance and traffic data collected by SNMP Exporter and using the switch management service, it is possible to unravel complex network activities, quickly identify data abnormal patterns, and accurately locate the root cause of the abnormality. Once the source of the abnormality is determined through the above analysis, the preset control measures are immediately activated, including but not limited to dynamically adjusting the traffic control strategy, starting the defense mechanism, or triggering the automatic recovery process. The active intervention mechanism effectively prevents the spread of network anomalies and ensures the stability and security of network services. It covers a closed-loop feedback mechanism from monitoring, analysis, decision-making to execution, ensuring the continuous optimization of monitoring and management activities. By collecting alarm response effects and network operation feedback, it continuously iterates and optimizes monitoring strategies and exception handling rules, improving the system's adaptability.

[0078] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0079] Reference Figure 3 , shows a structural block diagram of a control system of a network device according to an embodiment of the present invention. The control system of the network device can be applied to a network device supporting a simple network management protocol, and the control system of the network device can specifically include the following modules.

[0080] A device metadata acquisition module 31, used to acquire device metadata of a network node device of a target network device, wherein the device metadata is used to describe detailed information of the network node device;

[0081] A network topology map generating module 32, configured to generate a network topology map where the network node device is located according to the device metadata;

[0082] A flow data acquisition module 33, used to acquire flow data from the target network device;

[0083] The network device control module 34 is used to control the network node device according to the network topology diagram and the traffic data.

[0084] In an exemplary embodiment of the present invention, the device metadata acquisition module 31 is used to send a request message to the network node device based on a simple network management protocol, and receive the device metadata returned by the network node device according to the request message.

[0085] In an exemplary embodiment of the present invention, the network topology diagram generating module 32 includes:

[0086] A device metadata parsing module, used to parse the device metadata to obtain connection information and status information of the network node device;

[0087] A drawing and display module is used to draw the nodes and edges of the network topology diagram according to the connection information, and to display the status information on the nodes and the edges to form the network topology diagram.

[0088] In an exemplary embodiment of the present invention, the network device control module 34 includes:

[0089] A flow data analysis module, used for analyzing the flow data to obtain abnormal flow alarm information, wherein the abnormal flow alarm information is used to indicate abnormal flow conditions in the network to which the target network device is connected;

[0090] A policy content determination module, used to determine the control policy and / or operation content of the network node device according to the abnormal traffic alarm information and the network topology diagram;

[0091] The control instruction sending module is used to send control instructions to the network node device according to the simple network management protocol, so that the network node device executes the control strategy and / or the operation content according to the control instructions.

[0092] In an exemplary embodiment of the present invention, the traffic data analysis module includes:

[0093] A flow data storage module, used for storing the flow data into a monitoring and alarm system;

[0094] An abnormal flow alarm module, used to analyze the flow data using the monitoring and alarm system to obtain the abnormal flow alarm information;

[0095] The alarm information push module is used to push the abnormal traffic alarm information to the target network device management service through the alarm component of the monitoring and alarm system.

[0096] In an exemplary embodiment of the present invention, the flow data acquisition module 33 is used to acquire the flow data from the target network device periodically or in real time through a flow collector.

[0097] In an exemplary embodiment of the present invention, the system further comprises:

[0098] The topology map updating module is used to update the network topology map according to the traffic data after the traffic data acquiring module 33 acquires the traffic data from the target network device.

[0099] As for the system 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.

[0100] 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.

[0101] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take 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.

[0102] The embodiments of the present invention 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 invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks 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.

[0103] 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.

[0104] 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.

[0105] Although the preferred embodiments of the present invention 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 invention.

[0106] 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.

[0107] The control method of a network device and a control system of a network device provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for controlling a network device, characterized in that: Applied to a network device supporting a simple network management protocol, the method comprises: Acquire device metadata of a network node device of a target network device, wherein the device metadata is used to describe detailed information of the network node device; Generate a network topology diagram where the network node device is located according to the device metadata; Acquire traffic data from the target network device; The network node device is controlled according to the network topology diagram and the traffic data.

2. The method according to claim 1, characterized in that The obtaining of device metadata of a network node device of a target network device includes: A request message is sent to the network node device based on a simple network management protocol, and the device metadata returned by the network node device according to the request message is received.

3. The method according to claim 1, characterized in that The generating a network topology diagram where the network node device is located according to the device metadata includes: Parsing the device metadata to obtain connection information and status information of the network node device; The nodes and edges of the network topology diagram are drawn according to the connection information, and the status information is displayed on the nodes and the edges to form the network topology diagram.

4. The method according to claim 1, characterized in that: The controlling the network node device according to the network topology diagram and the traffic data includes: Analyzing the traffic data to obtain abnormal traffic alarm information, where the abnormal traffic alarm information is used to indicate abnormal traffic conditions in the network to which the target network device is connected; Determine the control strategy and / or operation content of the network node device according to the abnormal traffic alarm information and the network topology diagram; According to the simple network management protocol, a management and control instruction is sent to the network node device, so that the network node device executes the control strategy and / or the operation content according to the management and control instruction.

5. The method according to claim 4, characterized in that The analyzing the traffic data to obtain abnormal traffic alarm information includes: storing the flow data into a monitoring and alarm system; Analyzing the flow data using the monitoring and alarm system to obtain the abnormal flow alarm information; The abnormal traffic alarm information is pushed to the target network device management service through the alarm component of the monitoring and alarm system.

6. The method according to claim 1, characterized in that The acquiring of traffic data from the target network device includes: The flow data is obtained from the target network device periodically or in real time through a flow collector.

7. The method according to claim 1, characterized in that After acquiring the flow data from the target network device, the method further includes: The network topology map is updated according to the traffic data.

8. A control system for a network device, characterized in that: Applied to a network device supporting a simple network management protocol, the system comprises: A device metadata acquisition module, used to acquire device metadata of a network node device of a target network device, wherein the device metadata is used to describe detailed information of the network node device; A network topology map generating module, used to generate a network topology map where the network node device is located according to the device metadata; A flow data acquisition module, used to acquire flow data from the target network device; A network device control module is used to control the network node device according to the network topology diagram and the traffic data.

9. An electronic device, characterized in that: include: one or more processors; and One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the electronic device to execute the control method of the network device as claimed in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer program stored therein enables the processor to execute the control method of the network device as claimed in any one of claims 1 to 7.

Citation Information

Cited By

  • Server port management method and device, server port real-time monitoring method and device, medium and program product

    CN119583294A

  • Server port management, real-time monitoring method, equipment, medium and program product

    CN119583294B

  • Network fault positioning method and device and storage medium

    CN119766637A

  • Monitoring data acquisition method, device, equipment, medium and computer program product

    CN120880931A