WebSocket mode comprehensive network management system and method
Technical Field
The invention relates to broadband digital trunking wireless communication equipment, in particular to a WebSocket mode comprehensive network management system and a WebSocket mode comprehensive network management method.
Background
In the field of private network wireless communication, a traditional pulling method is that a client regularly checks the latest data on a server, the frequency of the pulling method is high enough to ensure high data timeliness, but the high frequency causes redundant checking, thereby wasting computer performance and increasing network traffic. In the traditional monitoring of different alarm forms of multi-type equipment, different binary versions need to be issued for environment adaptation, and the workload of software engineering personnel is increased. The traditional log management mode is transmitted through a custom protocol, and is complex in adaptation when being in butt joint with an external manufacturer.
Disclosure of Invention
In view of the problems and defects in the prior art, the invention provides a WebSocket mode comprehensive network management system and a WebSocket mode comprehensive network management method. The invention aims to reduce network congestion caused by blind search of users and can effectively provide useful information for the users in time. The actual carrying capacity of a traditional single TCP packet is 1448 bytes, which means that sub-packet processing is usually performed when a data packet with more than the number of bytes is sent. The invention adopts various different protocol processing for the alarm monitoring of different equipment, and dynamically loads the module in a configurable manner to process different forms of alarms, thereby increasing the flexibility of the equipment monitoring and better meeting the requirements of users. The invention adopts the FTP mode to manage the log, is suitable for transmitting data with large data volume, reduces protocol overhead, improves efficiency and is convenient for cross-platform use.
The technical scheme adopted by the invention is as follows: a comprehensive network management method of a WebSocket mode comprises the following steps:
the broadband cluster sub-equipment management module of the network management server side receives data of different broadband cluster sub-equipment for analysis, analyzes original alarm data of the broadband cluster sub-equipment according to the message, and sends the original alarm data to the database module for processing, and the database module stores the original alarm data into an alarm list of the broadband cluster sub-equipment.
And secondly, the broadband cluster sub-equipment management module extracts common fields from the original alarm data to generate alarm data of the common fields, and then sends the alarm data of the common fields to a core alarm processing module, the core alarm processing module sends the alarm data of the common fields to the database module for processing, and the database module stores the alarm data of the common fields in a total alarm table.
And thirdly, the core alarm processing module sends the alarm data of the common fields to a WebSocket connection monitoring processing module of the network management client through a WebSocket service module of the network management server, and the WebSocket connection monitoring processing module receives the alarm data and displays the alarm data in a UI module.
And fourthly, the WebSocket connection monitoring processing module sends a query instruction to the WebSocket service module of the WebSocket server, the WebSocket service module receives the query instruction and then sends the query instruction to the log management module for processing, the vehicle-mounted terminal number or the platform terminal number and the query instruction are packaged into a protocol data packet, the broadband cluster sub-device management module sends the protocol data packet to the corresponding vehicle-mounted terminal or the platform terminal device, the broadband cluster sub-device management module waits for the vehicle-mounted terminal or the platform terminal to upload the log and returns the upload state, the WebSocket server returns the upload state to the WebSocket service module, and the WebSocket service module sends the upload state to the WebSocket connection monitoring processing module for receiving.
Fifthly, the WebSocket connection monitoring processing module of the network management client sends the received uploading state to the log analyzing module for analyzing and processing, and the log content is presented through the UI module; and the shared file module of the network management client establishes a shared folder to be mapped to a local disk, and the shared folder is used for the log analysis module to access files under the path.
Sixthly, the broadband cluster sub-device management module of the network management server is connected with external broadband cluster sub-devices, an LTE base station, an LTE core network and a switch in the broadband cluster sub-devices communicate through an SNMP protocol and are distinguished through different target identifiers, and the LTE base station, the LTE core network and the switch report alarm information to the broadband cluster sub-device management module of the network management server; the vehicle-mounted terminal and the platform terminal are communicated through UDP packet data, and the vehicle-mounted terminal and the platform terminal report the equipment state to a broadband cluster sub-equipment management module of the network management server side; the dispatching desk, the whole network recording system, the clock system and the ATS system are communicated through TCP, and the dispatching desk, the whole network recording system, the clock system and the ATS system report the equipment state to the broadband cluster sub-equipment management module of the network management server side.
In the first step, the alarm list of the broadband cluster sub-device includes the following fields: equipment ID, alarm name, alarm level, equipment type, alarm ID, alarm time, alarm location, fault name, network element IP, network element type, additional information, system type, alarm event type, and alarm reason.
In the second step, the extracting common fields of the original alarm data comprises: the device ID, the alarm name, the alarm level, the device type, the alarm ID, the alarm time, the alarm position and the fault name, wherein the extracted common fields are used as the alarm data of the core alarm processing module, and the device ID and the alarm ID are used as unique identifiers.
The network management server performs alarm management on the broadband cluster sub-equipment and executes the following operations:
a. and after the network management server is started, reading the on-off state of each broadband cluster sub-device monitoring enable in the configuration file, and starting the broadband cluster sub-device management module.
b. The started broadband cluster sub-device management module initiates a connection request for the broadband cluster sub-devices, if the connection is successful, synchronous signaling is sent and alarm reporting notification is waited, and if the connection is failed, the connection is continued.
c. And after the synchronization signaling is carried out, waiting for a synchronization result, if the synchronization fails, continuously sending the synchronization signaling to wait for the synchronization result, and after the synchronization succeeds, processing the received alarm data.
d. And waiting for the alarm reporting notification, continuing waiting for the alarm reporting notification if the alarm reporting notification is not received, and processing the received alarm data after receiving the alarm reporting notification.
e. And carrying out alarm judgment on the received alarm data according to the equipment attribute, and if the equipment attribute is the type of the reported equipment state, further judging: if the current state is judged to be connected or not started, generating a custom coding alarm ID and generating alarm recovery data; if the current state is unconnected, generating a custom coding alarm ID and generating alarm data; and if the equipment attribute is the alarm type of the reported equipment, analyzing alarm data or alarm recovery data.
f. And performing warehousing operation on the original alarm and the alarm recovery data analyzed by the broadband cluster sub-equipment management module, and storing the original alarm and the alarm recovery data into an alarm list of the broadband cluster sub-equipment.
g. And storing the alarm data of the core alarm processing module into a database alarm summary table, sending the alarm data to a UI module of the network management client in a WebSocket mode for displaying, and ending the process.
The network management server side performs log management on different vehicle-mounted terminals and platform terminals in an FTP mode and executes the following operations:
1. and the network management server sets a shared folder.
2. And the network management client initializes the connection of the shared file.
3. And the network management server side creates the FTP service.
4. And the network management client sends the ISSI number, the log type and the time condition to a network management server through the Websocket to send a log query request.
5. The network management server side waits for a request, judges whether the log exists locally or not according to the ISSI number and time after receiving request data, if so, informs the network management client side of interface display after analysis, and ends the flow; if the number does not exist, sending a log query signaling to a vehicle-mounted terminal and a platform terminal corresponding to the ISSI number; and waiting for the log uploading of the vehicle-mounted terminal and the platform terminal corresponding to the ISSI number, and after receiving the uploading completion identifier, informing the network management client to carry out interface display after analysis, and ending the flow.
The integrated network management system in the WebSocket mode consists of two parts, namely a network management client and a network management server, wherein a plurality of network management clients are respectively connected with the network management server through network cables and a switch, and the network management clients and the network management server are communicated through the WebSocket; each network management client comprises a WebSocket connection monitoring processing module, a UI module, a shared file module and a log analysis module, wherein the WebSocket connection monitoring processing module is logically connected with the UI module and the log analysis module; the log analysis module is logically connected with the UI module; the network management server comprises a WebSocket service module, a database module, a broadband cluster sub-device management module, a core alarm processing module and a log management module; the WebSocket service module is logically connected with the core alarm processing module and the log management module; the broadband cluster sub-device management module is logically connected with the core alarm processing module, the database module and the log management module; meanwhile, the broadband cluster sub-equipment management module is physically connected with external broadband cluster sub-equipment consisting of a vehicle-mounted terminal, a platform terminal, an LTE base station, an LTE core network, a switch, a dispatching platform, a whole network recording system, a clock system and an ATS system through an Ethernet; the core alarm processing module is logically connected with the database module; the WebSocket connection monitoring processing module of each network management client is logically connected with the WebSocket service module of the network management server to perform data interaction.
The beneficial effects produced by the invention are as follows:
the comprehensive network management system in the WebSocket mode reduces a mode of continuous polling, reduces network congestion by adopting a query and report mode, reduces the difficulty of a TCP (transmission control protocol) flow protocol by adopting WebSocket communication, reduces packet unpacking processing and improves the robustness of a program.
And secondly, various different protocols are adopted for alarm monitoring of different equipment, and the module is loaded in a dynamically configurable mode to process alarms in different modes, so that the flexibility of equipment monitoring is improved, and the requirements of users are better met.
And thirdly, the log management method in the FTP mode is suitable for transmitting data with large data volume, reduces protocol overhead, improves efficiency and is convenient for cross-platform use.
Drawings
FIG. 1 is a schematic diagram of the system device connection of the present invention;
FIG. 2 is a system equipment architecture diagram of the present invention;
FIG. 3 is a flow chart of the integrated network management system for managing alarms of broadband cluster sub-devices in accordance with the present invention;
fig. 4 is a flowchart illustrating that the integrated network management system performs log management on different vehicle-mounted terminals and platform terminals in an FTP manner.
Detailed Description
The invention is further illustrated by the following examples in conjunction with the accompanying drawings:
as shown in fig. 1, the integrated network management system adopts C #, so as to implement a desktop GUI network management client and a network management server based on a WebSocket protocol, and support a plurality of network management clients to access the network management server. The comprehensive network management system consists of two parts, namely a network management client and a network management server, wherein a plurality of network management clients (a network management client 1 and a network management client 2. the network management client n) are respectively connected with the network management server through a network cable via a switch, and the network management clients and the network management server are communicated through WebSocket.
As shown in fig. 2, each network management client includes a WebSocket connection monitoring processing module, a UI module, a shared file module, and a log analyzing module, where the WebSocket connection monitoring processing module is logically connected to the UI module and the log analyzing module; the log analysis module is logically connected with the UI module; the network management server comprises a WebSocket service module, a database module, a broadband cluster sub-device management module, a core alarm processing module and a log management module; the WebSocket service module is logically connected with the core alarm processing module and the log management module; the broadband cluster sub-equipment management module is logically connected with the core alarm processing module, the database module and the log management module; meanwhile, the broadband cluster sub-equipment management module is physically connected with external broadband cluster sub-equipment consisting of a vehicle-mounted terminal, a platform terminal, an LTE base station, an LTE core network, a switch, a dispatching platform, a whole network recording system, a clock system and an ATS system through an Ethernet; the core alarm processing module is logically connected with the database module; the WebSocket connection monitoring processing module of each network management client is logically connected with the WebSocket service module of the network management server to perform data interaction.
And the management module of the broadband cluster sub-equipment at the network management server side dynamically loads the broadband cluster sub-equipment according to the on-off state of the monitoring and enabling of the broadband cluster sub-equipment in the configuration file. The broadband cluster sub-device management modules are respectively as follows: the system comprises a vehicle-mounted terminal management module, a platform terminal management module, an LTE base station management module, an LTE core network management module, a switch management module, a dispatching platform management module, a whole-network recording system management module, a clock system management module and an ATS system management module.
The integrated network management method of the WebSocket mode comprises the steps that an integrated network management system realizes alarm management on broadband cluster sub-equipment and realizes log management on a vehicle-mounted terminal and a platform terminal in an FTP mode, and the integrated network management method comprises the following steps:
firstly, a broadband cluster sub-device management module of a network management server receives data of different broadband cluster sub-devices for analysis, analyzes original alarm data of the broadband cluster sub-devices according to messages, and sends the original alarm data to a database module for processing, and the database module stores the original alarm data into an alarm list of the broadband cluster sub-devices (see table 1). The broadband cluster kid device alarm list includes the following fields: equipment ID, alarm name, alarm level, equipment type, alarm ID, alarm time, alarm location, fault name, network element IP, network element type, additional information, system type, alarm event type, and alarm reason.
Table 1 broadband cluster kid device alarm list
Secondly, the broadband cluster sub-device management module extracts common fields from the original alarm data to generate alarm data of the common fields, then sends the alarm data of the common fields to the core alarm processing module, the core alarm processing module sends the alarm data of the common fields to the database module to be processed, and the database module stores the alarm data of the common fields in a main alarm table (see table 2).
TABLE 2 Total alarm table
Table field
|
TABLE data 1
|
TABLE data 2
|
Device ID
|
35
|
22
|
Alarm name
|
BBU2101 GNSS receiver of north station of Meiling searches for satellite fault
|
Guilin station RRU141403 RRU link failure
|
Alarm rating
|
General alarms
|
Severe warning
|
Type of device
|
LTE base station
|
LTE base station
|
Alarm ID
|
11198
|
11206
|
Time of alarm
|
2020/10/11 8:50
|
2020/10/3 7:23
|
Alarm location
|
Meiling north road station
|
Guilin road station
|
Name of failure
|
GNSS receiver failure
|
RRU Link Break |
Extracting the common field includes: the device ID, the alarm name, the alarm level, the device type, the alarm ID, the alarm time, the alarm position and the fault name, wherein the extracted common fields are used as the alarm data of the core alarm processing module, and the device ID and the alarm ID are used as unique identifiers.
And thirdly, sending the alarm data of the core alarm processing module to a WebSocket connection monitoring processing module of the network management client through a WebSocket service module, wherein the WebSocket connection monitoring processing module displays the received alarm data in the UI module.
And fourthly, the WebSocket connection monitoring processing module sends a query instruction to the WebSocket service module of the WebSocket server, the WebSocket service module receives the query instruction and then sends the query instruction to the log management module for processing, the vehicle-mounted terminal number or the platform terminal number and the query instruction are packaged into a protocol data packet, the broadband cluster sub-device management module sends the protocol data packet to the corresponding vehicle-mounted terminal or the platform terminal device, the broadband cluster sub-device management module waits for the vehicle-mounted terminal or the platform terminal to upload the log and returns the uploading state, the WebSocket server returns the uploading state to the WebSocket service module, and the WebSocket service module sends the uploading state to the WebSocket connection monitoring processing module for receiving.
Fifthly, the WebSocket connection monitoring processing module of the network management client sends the received uploading state to the log analyzing module for analyzing and processing, and the log content is presented through the UI module; the shared file module of the network management client establishes a shared folder to be mapped to a local disk, and the shared folder is used for the log analysis module to access files under the path.
The management module of the broadband cluster sub-equipment of the network management server is connected with the external broadband cluster sub-equipment, an LTE base station, an LTE core network and a switch in the broadband cluster sub-equipment communicate through an SNMP protocol and are distinguished through different target identifiers, and the LTE base station, the LTE core network and the switch report alarm information to the management module of the broadband cluster sub-equipment of the network management server; the vehicle-mounted terminal and the platform terminal are communicated through UDP packet data, and report the equipment state to a broadband cluster sub-equipment management module of the network management server side; the dispatching desk, the whole network recording system, the clock system and the ATS system communicate through TCP, and the dispatching desk, the whole network recording system, the clock system and the ATS system report the equipment state to a broadband cluster sub-equipment management module of a network management server.
As shown in fig. 3, the integrated network management system performs alarm management on the broadband cluster sub-device and performs the following operations:
a. and after the network management server is started, reading the on-off state of each broadband cluster sub-device monitoring enable in the configuration file, and starting the broadband cluster sub-device management module.
b. The started broadband cluster sub-device management module initiates a connection request to the broadband cluster sub-device, if the connection is successful, the connection is continued by sending a synchronous signaling and waiting for an alarm report notice, and if the connection is failed.
Different protocol stacks are started according to the type of the broadband cluster sub-equipment, the type of the broadband cluster sub-equipment is an SNMP protocol, the waiting data reporting information is monitored at the fixed port, and after the broadband cluster sub-equipment is connected with the sub-equipment for the first time, the alarm data synchronous application is carried out. The broadband cluster sub-equipment is in a TCP protocol type, connection is initiated to a fixed IP port or a fixed port of the broadband cluster sub-equipment monitors a fixed port of the broadband cluster sub-equipment to wait for access, and after the connection is established, state information of the sub-equipment is acquired at regular time.
The broadband cluster sub-equipment is of a UDP protocol type, monitors data at a fixed port and acquires the state information of the sub-equipment at regular time.
c. And after the synchronous signaling is carried out, the synchronous result is waited, if the synchronization fails, the synchronous signaling is continuously sent, the alarm reporting notification is waited, and the received data is processed after the synchronization succeeds. And after synchronization signaling is carried out, waiting for a synchronization result, if synchronization fails, continuously sending the synchronization signaling to wait for the synchronization result, and processing the received alarm data after synchronization succeeds.
d. And waiting for the alarm reporting notification, continuing waiting for the alarm reporting notification if the alarm reporting notification is not received, and processing the received data after receiving the alarm reporting notification.
e. And carrying out alarm judgment on the received alarm data according to the equipment attribute, and if the equipment attribute is the type of the reported equipment state, further judging: if the current state is judged to be connected or not started, generating a custom coding alarm ID and generating alarm recovery data; if the current state is unconnected, generating a custom coding alarm ID and generating alarm data; and if the equipment attribute is the alarm type of the reporting equipment, analyzing alarm data or alarm recovery data.
Each alarm has an alarm ID for uniquely identifying the alarm, and the alarm ID has two forms, one is predefined by a system, and the other is coded by a self-defined coding mode: the device ID is generated in combination with the alarm type. And classifying according to the reported and synchronized data, and if the alarm and the recovery are directly reported, the broadband cluster sub-equipment management module performs alarm and recovery operations through a system predefined alarm ID. If the device state is reported, the broadband cluster sub-device management module needs to compare the last state with the current state to obtain alarm and recovery information. When the current state is inconsistent with the last state, if the current state is unconnected, the alarm is considered; and if the current state is connected or not started, the alarm is considered to be recovered. The broadband cluster sub-device management module performs alarming and recovery operations through custom coding of the alarm ID.
f. Performing warehousing operation on the original alarm and the alarm recovery data analyzed by the broadband cluster sub-equipment management module, and storing the original alarm and the alarm recovery data into an alarm list of the broadband cluster sub-equipment;
g. and storing the alarm data of the core alarm processing module into an alarm summary table of the database, sending the alarm data to a UI module of a network management client in a WebSocket mode for displaying, and ending the alarm management process of the multi-type broadband cluster sub-equipment.
The integrated network management system realizes the monitoring function of different alarm forms of the broadband cluster sub-equipment of various types.
As shown in fig. 4, the integrated network management system performs log management on the vehicle-mounted terminal and the platform terminal in an FTP manner, and performs the following operations:
1. and the network management server sets a shared folder.
2. And the network management client initializes the connection of the shared file.
3. And the network management server side creates the FTP service.
4. And the network management client sends the ISSI number, the log type and the time condition to a network management server through the Websocket to send a log query request.
5. The network management server side waits for a request, judges whether the log exists locally or not according to the ISSI number and time after receiving request data, if so, informs the network management client side of interface display after analysis, and ends the flow; if the number does not exist, sending a log query signaling to a vehicle-mounted terminal and a platform terminal corresponding to the ISSI number; and waiting for the log uploading of the vehicle-mounted terminal and the platform terminal corresponding to the ISSI number, and after receiving the uploading completion identifier, informing the network management client to carry out interface display after analysis, and ending the flow.
And the network management client reads the logs of the vehicle-mounted terminal and the platform terminal for analysis by accessing the network management server side to share the folder, displays an interface and exports the spreadsheet.