Switch status information monitoring system, method, device and storage medium

Through the network connection between the switch cluster and the server, the TCP/IP protocol and visual interface are used to solve the problem of switch status information sharing and troubleshooting, real-time information sharing and rapid troubleshooting are realized, and user experience is improved.

CN115827382BActive Publication Date: 2025-08-29INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211529240.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-30
Publication Date
2025-08-29
Estimated Expiration
2042-11-30

AI Technical Summary

Technical Problem

The existing switch status information is low in real-time network sharing, difficult to troubleshoot, and lacks clear display of fault information.

Method used

The server is connected to the network backend and front-end of the switch cluster, and uploads status information using the TCP/IP protocol, and classifies and stores it, and realizes real-time display and monitoring through a visual interface, supporting fault recovery actions.

Benefits of technology

Real-time sharing of switch status information and rapid troubleshooting, improving the real-time and user experience of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115827382B_ABST
    Figure CN115827382B_ABST
Patent Text Reader

Abstract

The present invention proposes a switch status information monitoring system, method, device, and storage medium. The system comprises: a switch cluster, a server network backend, and a server network frontend. The switch cluster is data-connected to the server network backend and the server network frontend, respectively, and the network backend is data-connected to the network frontend. The switch cluster includes multiple switches for uploading switch status information to the server network backend via the TCP / IP protocol. The server network backend is configured to classify the switch status information, store the classification results locally, and transmit them to the server network frontend. The server network frontend is configured to display and monitor the switch status information in real time based on the classification results, and control the switch to perform fault recovery actions upon detecting an anomaly. The present invention can obtain real-time switch status information via the network, enabling real-time information sharing and rapid fault troubleshooting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and more particularly to a switch status information monitoring system, method, device and storage medium. Background Art

[0002] With the advent of the Internet of Things (IoT), real-time, visual sharing of product information has become a trend. Existing switch products boast powerful performance thanks to their use of multiple advanced technologies. However, the level of real-time sharing of system information over the network remains low. Furthermore, when certain components fail, extensive troubleshooting and location analysis are required, lacking clear, at-a-glance information display.

[0003] In existing technologies, switch status information must be displayed via commands. Troubleshooting a switch requires reviewing extensive log information to identify the fault. Furthermore, when multiple people share device information, serial / network communication is often used. This method of sharing limits the real-time sharing of system information. If a switch fails, the inability to directly display fault information hinders rapid troubleshooting. Summary of the Invention

[0004] In response to the above problems, the present invention aims to provide a switch status information monitoring system, method, device and storage medium, which can obtain real-time status information of the switch through the network, realize real-time information sharing of the switch and rapid fault detection.

[0005] To achieve the above-mentioned object, the present invention is implemented through the following technical solutions: a switch status information monitoring system, comprising: a switch cluster, a network backend of a server, and a network frontend of the server, wherein the switch cluster is data-connected to the network backend of the server and the network frontend of the server, respectively, and the network backend is data-connected to the network frontend;

[0006] The switch cluster includes multiple switches, which are used to upload the status information of the switches to the network backend of the server via the TCP / IP protocol;

[0007] The network backend of the server is used to classify the status information of the switch, store the classification results locally and send them to the network frontend of the server;

[0008] The network front end of the server is used to display and monitor the switch status information in real time according to the classification results, and control the switch to perform fault recovery actions after an abnormality is detected.

[0009] Furthermore, the network backend of the server includes: a data processing module and a database, the data processing module is connected to the switch cluster and the database data respectively, and the database is connected to the network frontend data;

[0010] The data processing module is used to calculate and classify the status information of the switch through a PHP programming language script and generate a classification result;

[0011] The database is used to store classification results and generate a classification list based on the classification results for the server network front end to call.

[0012] Furthermore, the network front end of the server includes a visual interface generation module, which is connected to the database data;

[0013] The visual interface generation module is used to call the classification list in the database through ajax mode and form a functional graphical interface using HTML programming language.

[0014] Furthermore, the functional graphical interface includes: user login interface, data display interface and device control interface;

[0015] The user login interface is used to authenticate the user;

[0016] The data display interface is used to display and monitor the switch status information in real time according to the classification list, and to issue an alarm when fault information is monitored;

[0017] The device control interface is used to send instructions from the web page to control the corresponding switch to perform shutdown or restart actions when fault information is monitored.

[0018] Accordingly, the present invention also discloses a switch status information monitoring method, comprising:

[0019] Each switch generates a data frame with the status information and uploads it to the server's network backend according to its own IP address and port;

[0020] After receiving the data frames sent by each switch, the server's network backend identifies whether the data frame format is correct. If the format is correct, the server will classify the data according to the switch's component information after receiving the complete data. If the format is incorrect, the server will discard the current data frame and re-accept the data until the data is correct.

[0021] After the classification is completed, the component information is formatted and the classification results are generated. The classification results are stored in the database and a database list is generated.

[0022] The server's network front end uses HTML language and open source graphical software to display the switch status information on the web interface based on the database list;

[0023] Determine whether the status information is abnormal. If so, output an alarm message and send instructions from the web page to control the corresponding switch to perform shutdown or restart actions.

[0024] Furthermore, the status information includes: device SN, board SN, fan status information, sensor signals, power status information, temperature, current and voltage.

[0025] Furthermore, a data frame includes a frame header, data, a check code, and a frame trailer. The frame header and frame trailer are jointly defined by the sender and receiver of the data, and the check code is used to record the length of the data.

[0026] Furthermore, the format conversion of the component information includes:

[0027] Convert the data formats of temperature, current and voltage into floating point numbers;

[0028] Convert the data format of device SN and board SN to an integer string.

[0029] Accordingly, the present invention discloses a switch status information monitoring device, comprising:

[0030] A memory for storing a switch status information monitoring program;

[0031] The processor is configured to implement the steps of any one of the above switch status information monitoring methods when executing the switch status information monitoring program.

[0032] Accordingly, the present invention discloses a readable storage medium, on which a switch status information monitoring program is stored. When the switch status information monitoring program is executed by a processor, the steps of any of the switch status information monitoring methods described above are implemented.

[0033] Compared with the existing technology, the beneficial effects of the present invention are: the present invention discloses a switch status information monitoring system, method, device and storage medium, which obtains real-time status information of the switch through the network, and uses programming language and graphical tools to build an information visualization network platform, thereby realizing real-time information sharing and rapid fault troubleshooting of the switch cluster, expanding the application space of the Internet of Things, and bringing a better user experience.

[0034] The present invention is not limited to switch product lines, but can also be applied to network hardware devices with high-density components such as servers and network cards.

[0035] It can be seen that compared with the prior art, the present invention has outstanding substantial features and significant progress, and the beneficial effects of its implementation are also obvious. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0037] Figure 1 It is a system structure diagram of embodiment 1 of the present invention.

[0038] Figure 2 This is a flow chart of the method of embodiment 2 of the present invention.

[0039] Figure 3 This is a flow chart of the method of embodiment 3 of the present invention.

[0040] Figure 4 This is a classification tree diagram of switch status information according to the third embodiment of the present invention.

[0041] Figure 5 This is a schematic diagram of the web page interface of embodiment 3 of the present invention. DETAILED DESCRIPTION

[0042] In order to enable those skilled in the art to better understand the present invention, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0043] Example 1:

[0044] like Figure 1 As shown, this embodiment provides a switch status information monitoring system, including: a switch cluster, a network backend of a server, and a network frontend of the server. The switch cluster is respectively connected to the network backend of the server and the network frontend of the server, and the network backend is connected to the network frontend.

[0045] A switch cluster consists of multiple switches that upload switch status information to the server's network backend via TCP / IP. This status information includes device SN, board SN, fan, sensor, power supply, current, and voltage.

[0046] The network backend of the server is used to classify the status information of the switch, store the classification results locally and send them to the network frontend of the server.

[0047] Specifically, the server's network backend includes a data processing module and a database. The data processing module is connected to the switch cluster and the database, respectively, which is then connected to the network frontend. The data processing module calculates and classifies switch status information using a PHP script and generates classification results. The database stores the classification results and generates a classification list based on the results for the server network frontend to access.

[0048] As an example, the network backend of the server calculates and classifies the received information through a PHP programming language script, and stores the classification results in a database (such as MySQL) to form a specific list for the front end to call.

[0049] The network front end of the server is used to display and monitor the switch status information in real time according to the classification results, and control the switch to perform fault recovery actions after an anomaly is detected.

[0050] Specifically, the network front end of the server includes a visual interface generation module, which is connected to the database data; the visual interface generation module is used to call the classification list in the database through ajax and use HTML programming language to form a functional graphical interface.

[0051] Among them, the functional graphical interface includes: user login interface, data display interface and device control interface; the user login interface is used for user identity authentication; the data display interface is used to display and monitor the switch status information in real time according to the classification list, and to alarm after monitoring fault information; the device control interface is used to send instructions from the web page to control the corresponding switch to perform shutdown or restart actions after monitoring fault information.

[0052] For example, the server's web front-end uses AJAX to access list information from the back-end database, using HTML programming to create graphical interfaces with different functions. The user login interface ensures data security and prevents unauthorized access; the data display interface displays and monitors various status information in real time; and when a fault occurs, the device control interface issues commands from the web page to control the switch to perform actions (such as shutdown and restart).

[0053] This embodiment provides a switch status information monitoring system that obtains real-time status information of switches through the network and uses programming languages ​​and graphical tools to build an information visualization network platform, thereby enabling real-time information sharing and rapid troubleshooting of switch clusters, expanding the application space of the Internet of Things and providing a better user experience.

[0054] Example 2:

[0055] Based on Example 1, Figure 2 As shown, the present invention also discloses a switch status information monitoring method, comprising the following steps:

[0056] S1: Each switch generates a data frame with the status information and uploads it to the network backend of the server according to its respective IP address and port.

[0057] Status information includes: device SN, board SN, fan status, sensor signals, power supply status, temperature, current, and voltage. The data frame format consists of a header, data, a checksum, and a trailer. The header and trailer are defined by both the sender and receiver, and the checksum records the data length.

[0058] S2: After receiving the data frames sent by each switch, the server's network backend identifies whether the data frame format is correct. If the format is correct, after the complete data is received, it is classified according to the component information of the switch. If the format is incorrect, the current data frame is discarded and data is received again until the data is correct.

[0059] S3: After the classification is completed, the component information is formatted and a classification result is generated. The classification result is stored in a database and a database list is generated.

[0060] The component information is formatted, including: converting the data formats of temperature, current, and voltage into floating-point numbers; and converting the data formats of device SN and board SN into integer character strings.

[0061] S4: The server's network front end uses HTML language and open source graphical software to display the switch status information on the web interface based on the database list.

[0062] S5: Determine whether the status information is abnormal. If so, output an alarm message and send a command from the web page to control the corresponding switch to perform a shutdown or restart action.

[0063] Example 3:

[0064] Based on the above embodiments, Figure 3 As shown, this embodiment also discloses a switch status information monitoring method, comprising the following steps:

[0065] Step 1: Each switch uploads status information (device SN, board SN, fan, sensor, power supply, current, and voltage) to the server's network backend through its network port. Since the network IP and port correspond to the switch, the IP and port are used to distinguish the data source. To easily distinguish each frame of data, a data frame consists of a header, data, a checksum, and a trailer. For example, the first data frame from device 1 is D1_1 = [header data checksum trailer], the first data frame from device 2 is D2_1 = [header data checksum trailer], and so on. The header and trailer are defined by both the sender and receiver to ensure uniqueness. The data is the aforementioned status information, and the checksum is the total number of data items.

[0066] Step 2: After the server's network backend receives the data frames sent by each switch, it identifies whether the data frame format is correct; if the format is correct, subsequent data processing is performed; if the format is incorrect, the current data frame is discarded and data is received again until the data is correct.

[0067] Step 3: After receiving the complete data, the server's network backend classifies the information based on different switches and components. After the classification is completed, the data format of different component information is converted. For example, the hexadecimal data is converted to floating point numbers, and the hexadecimal data is converted to integers and strings. The voltage, current, and temperature formats must be floating point numbers, and the device and board SN must be integers and strings. The classification tree diagram of any switch status information is as follows: Figure 3 The same procedure is applied to other switches. The processed data is stored in a database (e.g., MySQL) for real-time access by the server's network front end. Steps 2 and 3 can be implemented using the PHP programming language.

[0068] Step 4: The server's web front-end uses HTML language and open source graphical software (such as higcharts) to display the switch status information on the web interface for real-time monitoring by staff. At the same time, the web page has data download, storage, export and interactive functions to prepare for data export and analysis in case of failure. A brief example of the web front-end interface is as follows: Figure 4 shown.

[0069] This embodiment provides a switch status information monitoring method, which obtains real-time status information of the switch through the network and builds an information visualization network platform using programming languages ​​and graphical tools. This enables real-time information sharing and rapid troubleshooting of switch clusters, expands the application space of the Internet of Things, and brings a better user experience.

[0070] Example 4:

[0071] This embodiment discloses a switch status information monitoring device, including a processor and a memory. When the processor executes a switch status information monitoring program stored in the memory, the following steps are implemented:

[0072] 1. Each switch generates a data frame with the status information and uploads it to the network backend of the server according to its respective IP address and port.

[0073] 2. After receiving the data frames sent by each switch, the server's network backend identifies whether the data frame format is correct. If the format is correct, after the complete data is received, it is classified according to the switch component information. If the format is incorrect, the current data frame is discarded and data is received again until the data is correct.

[0074] 3. After the classification is completed, the component information is formatted and the classification results are generated. The classification results are stored in the database and a database list is generated.

[0075] 4. The server's network front end uses HTML language and open source graphical software to display the switch status information on the web interface according to the database list.

[0076] 5. Determine whether the status information is abnormal. If so, output an alarm message and send instructions from the web page to control the corresponding switch to perform shutdown or restart actions.

[0077] Furthermore, the switch status information monitoring device in this embodiment may further include:

[0078] The input interface is used to obtain the switch status information monitoring program imported from the outside and save the obtained switch status information monitoring program to the memory. It can also be used to obtain various instructions and parameters transmitted by external terminal devices and transmit them to the processor so that the processor can use these various instructions and parameters to perform corresponding processing. In this embodiment, the input interface may specifically include but is not limited to a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk read interface, etc.

[0079] The output interface is used to output various data generated by the processor to the terminal device connected to it, so that other terminal devices connected to the output interface can obtain various data generated by the processor. In this embodiment, the output interface can specifically include but is not limited to a USB interface, a serial interface, etc.

[0080] The communication unit is used to establish a remote communication connection between the switch status information monitoring device and the external server so that the switch status information monitoring device can mount the image file to the external server. In this embodiment, the communication unit may specifically include but is not limited to a remote communication unit based on wireless communication technology or wired communication technology.

[0081] The keyboard is used to obtain various parameter data or instructions input by the user by tapping the keycaps in real time.

[0082] The display is used to display relevant information of the server power supply line short circuit locating process in real time.

[0083] The mouse can be used to assist users in inputting data and simplify user operations.

[0084] Embodiment 5:

[0085] This embodiment also discloses a readable storage medium. The readable storage medium herein includes random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, hard disk, removable hard disk, CD-ROM, or any other form of storage medium known in the art. The readable storage medium stores a switch status information monitoring program. When executed by a processor, the switch status information monitoring program implements the following steps:

[0086] 1. Each switch generates a data frame with the status information and uploads it to the network backend of the server according to its respective IP address and port.

[0087] 2. After receiving the data frames sent by each switch, the server's network backend identifies whether the data frame format is correct. If the format is correct, after the complete data is received, it is classified according to the switch component information. If the format is incorrect, the current data frame is discarded and data is received again until the data is correct.

[0088] 3. After the classification is completed, the component information is formatted and the classification results are generated. The classification results are stored in the database and a database list is generated.

[0089] 4. The server's network front end uses HTML language and open source graphical software to display the switch status information on the web interface according to the database list.

[0090] 5. Determine whether the status information is abnormal. If so, output an alarm message and send instructions from the web page to control the corresponding switch to perform shutdown or restart actions.

[0091] In summary, the present invention can obtain real-time status information of the switch through the network, thereby achieving real-time information sharing and rapid fault detection of the switch.

[0092] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from the other embodiments. References to the same or similar parts between the various embodiments are sufficient. The methods disclosed in the embodiments are described briefly because they correspond to the systems disclosed in the embodiments. For relevant details, refer to the method description.

[0093] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.

[0094] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.

[0095] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0096] In addition, the functional modules in the various embodiments of the present invention may be integrated into one processing unit, or each module may exist physically separately, or two or more modules may be integrated into one unit.

[0097] Similarly, each processing unit in each embodiment of the present invention may be integrated into one functional module, or each processing unit may exist physically, or two or more processing units may be integrated into one functional module.

[0098] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0099] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.

[0100] The switch status information monitoring system, method, device, and readable storage medium provided by the present invention have been described in detail above. This document uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are intended only to facilitate understanding of the method and core concepts of the present invention. It should be noted that those skilled in the art will be able to make various improvements and modifications to the present invention without departing from the principles of the present invention, and such improvements and modifications are also within the scope of protection of the claims of the present invention.

Claims

1. A switch status information monitoring system, characterized in that: include: A switch cluster, a network backend of a server, and a network frontend of a server. The switch cluster is respectively connected to the network backend of the server and the network frontend of the server for data connection. The network backend of the server is connected to the network frontend of the server for data connection. The switch cluster includes multiple switches, which are used to upload the status information of the switches to the network backend of the server via the TCP / IP protocol; The network backend of the server is used to classify the status information of the switch, store the classification results locally and send them to the network frontend of the server; The network front end of the server is used to display and monitor the switch status information in real time according to the classification results, and control the switch to perform fault recovery actions after an abnormality is detected; The network backend of the server includes: a data processing module and a database, the data processing module is connected to the switch cluster and the database data respectively, and the database is connected to the network frontend of the server; The data processing module is used to calculate and classify the status information of the switch through a PHP programming language script and generate a classification result; The database is used to store the classification results and generate a classification list based on the classification results for the network front end of the server to call; The network front end of the server includes a visual interface generation module, which is connected to the database data; The visual interface generation module is used to call the classification list in the database through ajax mode and form a functional graphical interface using HTML programming language.

2. The switch status information monitoring system according to claim 1, characterized in that: The functional graphical interface includes: a user login interface, a data display interface and a device control interface; The user login interface is used to authenticate the user; The data display interface is used to display and monitor the switch status information in real time according to the classification list, and to issue an alarm when fault information is monitored; The device control interface is used to send instructions from the web page to control the corresponding switch to perform shutdown or restart actions when fault information is monitored.

3. A method for monitoring switch status information, characterized in that: The method adopts the switch status information monitoring system according to claim 1; The method comprises: Each switch generates a data frame with the status information and uploads it to the server's network backend according to its own IP address and port; After receiving the data frames sent by each switch, the server's network backend identifies whether the data frame format is correct. If the format is correct, after receiving the complete data, it classifies it according to the switch's component information. If the format is incorrect, the current data frame is discarded and data is received again until the data is correct. After the classification is completed, the component information is formatted and the classification results are generated. The classification results are stored in the database and a database list is generated. The server's network front end uses HTML language and open source graphical software to display the switch status information on the web interface based on the database list; Determine whether the status information is abnormal. If so, output an alarm message and send instructions from the web page to control the corresponding switch to perform shutdown or restart actions.

4. The switch status information monitoring method according to claim 3, characterized in that: The status information includes: device SN, board SN, fan status information, sensor signals, power supply status information, temperature, current and voltage.

5. The switch status information monitoring method according to claim 3, characterized in that: The data frame includes a frame header, data, a check code and a frame trailer. The frame header and the frame trailer are jointly defined by the sender and receiver of the data. The check code is used to record the length of the data.

6. The switch status information monitoring method according to claim 4, characterized in that: The format conversion of the component information includes: Convert the data formats of temperature, current and voltage into floating point numbers; Convert the data format of device SN and board SN to an integer string.

7. A switch status information monitoring device, characterized in that: include: A memory for storing a switch status information monitoring program; The processor is configured to implement the steps of the switch status information monitoring method according to any one of claims 3 to 6 when executing the switch status information monitoring program.

8. A readable storage medium, characterized in that: The readable storage medium stores a switch status information monitoring program, and when the switch status information monitoring program is executed by a processor, the steps of the switch status information monitoring method according to any one of claims 3 to 6 are implemented.

Citation Information

Patent Citations

  • Network assisting management device and concurrent management device in video monitoring system

    CN102984507A

  • SAN switch monitoring system and method

    CN105208079A