Port detection method, device, equipment and storage medium

The operation and maintenance management server automatically matches the port information of the server to be detected in the visual network, identifies and reports abnormal ports, solves the problem of low port detection efficiency in the visual network, realizes rapid identification and processing of abnormal ports, and improves operation and maintenance efficiency.

CN111200522BActive Publication Date: 2024-09-06VISIONVERA INFORMATION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN201911383546.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-27
Publication Date
2024-09-06
Estimated Expiration
2039-12-27

AI Technical Summary

Technical Problem

In the video network, as the number of application servers increases, operation and maintenance personnel need to check the port status of each server, resulting in low efficiency and waste of manpower, and it is difficult to detect abnormal port information in a timely manner.

Method used

The operation and maintenance management server collects the port information of the server to be detected, matches it with the pre-configured normal port information, automatically identifies abnormal ports, and sends them to the alarm center to realize automated port detection and alarms.

Benefits of technology

It greatly improves operation and maintenance efficiency, saves manpower and time costs, can quickly identify and handle abnormal ports, and improves system management efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111200522B
    Figure CN111200522B
Patent Text Reader

Abstract

The embodiments of the present application relate to the field of port detection technology, and specifically, to a port detection method, device, equipment and storage medium. The port detection method is applied to an operation and maintenance management server, and the method includes: obtaining the identifier of the server to be detected and the identifier of the port being used on the server to be detected sent by the server to be detected; matching the identifier of the port being used on the server to be detected with the identifier of the pre-configured normal port; and determining the ports being used on the server to be detected that are not matched to normal ports as abnormal ports. The port detection method is applied to the server to be detected, and the method includes: collecting the identifiers of the ports being used locally; and sending the identifiers of the ports being used on the server to be detected to the operation and maintenance management server. The method of the present application saves manpower and a large amount of time cost, and greatly improves the operation and maintenance efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of port detection technology, and more specifically, to a port detection method, apparatus, device, and storage medium. Background Art

[0002] The visual network is an important milestone in the development of the Internet. It is a more advanced form of the Internet and a real-time network that can achieve real-time transmission of high-definition video across the entire network, which is impossible with the Internet. It will push many Internet applications to high-definition video and high-definition face-to-face. Ultimately, the world will be free of distance, and the distance between people around the world will be just a screen away.

[0003] As the number of application servers in the visual network increases, each server needs to know the usage of the ports. Previous application servers did not have the corresponding functions. If the operation and maintenance personnel wanted to know whether there was abnormal port information on each server, they had to check each server one by one, which was very inconvenient and wasted a lot of manpower and time costs, and was very inefficient. Summary of the invention

[0004] To solve the above problems, the present application provides a port detection method, device, equipment and storage medium.

[0005] A first aspect of an embodiment of the present application provides a port detection method, which is applied to an operation and maintenance management server, and the method includes:

[0006] Obtaining an identifier of the server to be detected and an identifier of a port being used by the server to be detected, sent by the server to be detected;

[0007] Matching the identifier of the port being used on the server to be detected with the identifier of the pre-configured normal port;

[0008] Among the ports being used on the server to be detected, ports that are not matched to normal ports are determined as abnormal ports.

[0009] Optionally, before matching the identifier of the port being used on the server to be detected with the identifier of a pre-configured normal port, the method further includes:

[0010] The operation and maintenance management server reads the identifier of the normal port pre-configured through the web terminal from the database and stores it locally.

[0011] Optionally, the operation and maintenance management server is connected to the server to be detected via a visual network; receiving an identifier of a port being used by the server to be detected sent by the server to be detected, including:

[0012] Receiving a visual networking message sent by the server to be detected through a visual networking protocol, wherein the visual networking message is composed of an identifier of a port being used on the server to be detected in a JSON string format;

[0013] The visual network message is parsed to obtain the identifier of the port being used on the server to be detected.

[0014] Optionally, after determining that the ports in use on the server to be detected and not matched to normal ports are abnormal ports, the method further includes:

[0015] The identifier of the abnormal port is sent to an alarm center so that the alarm center displays the identifier of the abnormal port.

[0016] Optionally, the server to be detected includes at least a first server to be detected and a second server to be detected; the method further includes:

[0017] Receiving the identifier of the first server to be detected and the identifier of the second server to be detected respectively;

[0018] Sending the identifier of the abnormal port to an alarm center includes:

[0019] Sending the identifier of the first server to be detected and the identifier of the abnormal port of the first server to be detected to the alarm center;

[0020] The identifier of the second server to be detected and the identifier of the abnormal port of the second server to be detected are sent to the alarm center.

[0021] Optionally, the operation and maintenance management server is connected to the alarm center via the Internet; and sending the identifier of the abnormal port to the alarm center includes:

[0022] Assembling the identifier of the abnormal port into an Internet message in JSON string format;

[0023] The Internet message is sent to the alarm center using the TCP protocol.

[0024] A second aspect of an embodiment of the present application provides a port detection method, which is applied to a server to be detected, and the method includes:

[0025] Collect the identifiers of the ports currently in use locally;

[0026] The identifier of the port being used on the server to be detected is sent to the operation and maintenance management server, so that the operation and maintenance management server can detect whether there is an abnormal port among the ports being used on the server to be detected.

[0027] Optionally, a probe program is installed on the server to be detected;

[0028] The probe program is run, and the identifiers of the ports being used locally are collected through the probe program.

[0029] Optionally, the operation and maintenance management server is connected to the server to be detected via a visual network; sending the identifier of the port being used by the server to be detected to the operation and maintenance management server includes:

[0030] Assemble the identifier of the port being used on the server to be detected into a visual network message in JSON string format;

[0031] The visual networking message is sent to the operation and maintenance management server via the visual networking protocol.

[0032] A third aspect of an embodiment of the present application provides a port detection system, the system comprising:

[0033] An operation and maintenance management server, used to execute the port detection method described in the first aspect above;

[0034] At least one server to be detected, each server to be detected is used to execute the port detection method described in the second aspect above;

[0035] An alarm center is used to receive and display the identification of the server with the abnormal port and the identification of all abnormal ports on the server;

[0036] A database for storing identifiers of pre-configured normal ports;

[0037] The Web end is used for allowing users to configure the identifier of the normal port and importing the identifier of the normal port into the database.

[0038] A fourth aspect of an embodiment of the present application provides a port detection device, which is applied to an operation and maintenance management server, and the device includes:

[0039] An obtaining module is configured to obtain an identifier of the server to be detected and an identifier of a port being used by the server to be detected, which are sent by the server to be detected;

[0040] A verification module is configured to match the identifier of the port being used on the server to be detected with the identifier of a pre-configured normal port;

[0041] The detection module is configured to determine the ports in use on the server to be detected that are not matched with normal ports as abnormal ports.

[0042] A fifth aspect of an embodiment of the present application provides a port detection device, which is applied to a server to be detected, and the device includes:

[0043] A collection module is configured to collect identifiers of ports in use locally;

[0044] The sending module is configured to send the identifier of the port being used by the server to be detected to the operation and maintenance management server, so as to detect whether there is an abnormal port among the ports being used by the server to be detected through the operation and maintenance management server.

[0045] A sixth aspect of an embodiment of the present application provides a readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps in the method described in the first aspect or the second aspect of the present application are implemented.

[0046] A seventh aspect of an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method described in the first aspect or the second aspect of the present application are implemented.

[0047] The port detection method provided by the embodiment of the present application has the following beneficial effects:

[0048] Each server to be detected collects information about all its own ports in use and reports it to the operation and maintenance management server, which then matches and verifies the received port information with the pre-configured normal port information to determine whether the port to be detected is an abnormal port. Port information that does not match the pre-configured normal port information is identified as an abnormal port and displayed to the alarm center. The server to be detected collects information itself and sends it to the operation and maintenance server for matching and verification. Compared with the traditional method of having operation and maintenance personnel check servers one by one, this saves manpower and a lot of time costs, and greatly improves the operation and maintenance efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0050] Figure 1 is a schematic diagram of a port detection system proposed in an embodiment of the present application;

[0051] Figure 2 is a flow chart of a port detection method proposed in an embodiment of the present application;

[0052] Figure 3is a flow chart of a port detection method proposed in another embodiment of the present application;

[0053] Figure 4 is a schematic diagram of the JSON string format used in an embodiment of the present application;

[0054] Figure 5 This is a flow chart of a port detection method proposed in another embodiment of the present application.

[0055] Figure 6 is a schematic diagram of a port detection device proposed in an embodiment of the present application;

[0056] Figure 7 It is a schematic diagram of a port detection device proposed in another embodiment of the present application. DETAILED DESCRIPTION

[0057] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0058] refer to Figure 1 , Figure 1 1 is a schematic diagram of a port detection system according to an exemplary embodiment. The system includes: an operation and maintenance management server 100, a server to be detected 200, a database 300, a web terminal 400 and an alarm center 500. Among them, the server to be detected 200 includes a server to be detected 1, a server to be detected 2... a server to be detected n. The operation and maintenance management server 100 is connected to all the servers to be detected 200, and the operation and maintenance management server 100 is also connected to the database 300 and the alarm center 500, and the database 300 is connected to the web terminal 400.

[0059] The operation and maintenance management server 100 and the server to be detected 200 are connected by communication, wherein the connection method can be an Internet connection or a visual network connection, and the visual network connection is adopted in this application; the operation and maintenance management server 100 and the database 300, the database 300 and the web terminal 400, and the operation and maintenance management server 100 and the alarm center 500 are all connected by communication, and the connection method is an Internet connection.

[0060] The operation and maintenance management server 100 may be a single server, or a server cluster consisting of several servers, or a cloud computing service center;

[0061] The server 200 to be detected can be an application server in the visual network; the database 300 is used to store the information of pre-configured normal ports; the web terminal 400 is a terminal that configures the information of normal ports into the database 300, which can be a computer, mobile phone, tablet or other device with a data import module; the alarm center 500 is a device with early warning or alarm functions, such as a display, a speaker, or a combination of a display and a speaker.

[0062] Figure 2 This is a flow chart of a port detection method according to an exemplary embodiment, which is applied to an operation and maintenance management server, for example: Figure 1 The operation and maintenance management server 100 shown. Figure 2 , the method comprises the following steps:

[0063] In step S11 , the identifier of the server 200 to be detected and the identifier of the port being used by the server 200 to be detected are obtained.

[0064] In this embodiment, the identification of the server to be detected 200 and the identification of the port being used on the server to be detected 200 are collected by the server to be detected 200 and sent to the operation and maintenance management server 100. The server to be detected 200 is provided with a probe, and the detection port function on the probe collects the identification of the server to be detected 200 and the identification of the port being used on the server to be detected 200, and then sends the collected information to the operation and maintenance management server 100 through the reporting interface function on the probe, wherein the identification of the server to be detected 200 is used to refer to the information of the server to be detected 200, such as the number, type, version number and manufacturer information of the server to be detected 200, and the identification of the port is mainly used to refer to the number of the port for easy search. Usually one identification corresponds to a unique piece of information.

[0065] In step S12, the identifier of the port being used on the server 200 to be detected is matched with the identifier of the pre-configured normal port.

[0066] In this embodiment, the pre-configured normal port identifier refers to the identifier of the commonly used port on the server 200 to be detected, as well as the identifier of the port added by the operation and maintenance personnel according to actual needs. These port identifiers are stored in the operation and maintenance management server 100 or in a database 300 that can be accessed at any time by the operation and maintenance management server 100, so that the operation and maintenance management server 100 can match the obtained port identifier with the above-mentioned preset normal port identifier.

[0067] In step S13, the ports in use on the to-be-detected server 200 that are not matched to normal ports are determined as abnormal ports.

[0068] In this embodiment, the main purpose is to find out the abnormal port. The method for finding out the abnormal port is to match the identifier of the port being used on the server 200 to be detected with the identifier of the preset port. The preset port represents a verified or licensed port, that is, a port that can be used normally. If the identifier of the port being used on the server 200 to be detected can match the identifier of the preset port, it means that the port being used is a normal port. If the identifier of the port being used on the server 200 to be detected cannot match the identifier of the preset port, it means that the port being used is not in the preset port list and is an abnormal port. The above-mentioned matching means: comparing the identifier of the port being used with the identifier of the preset port. If the identifiers of the two are consistent, it means that the match is successful; if the identifiers of the two are inconsistent, it means that the match fails. The above-mentioned comparison operation can be implemented by a comparison function. The above-mentioned identifier can be the port number or other information that can uniquely determine the port.

[0069] The following takes the operation and maintenance management server 100 as a company's backend management server, the servers to be detected 200 as the company's visual application servers, the identifiers of normal ports are pre-configured in the operation and maintenance management server 100, and the ports on the visual application servers are detected as an example to explain the above steps in detail.

[0070] The background management server is provided with a program for receiving the identification of the visual application server and the identification of the port being used thereon. There are A, B, C...N visual application servers in total. The identification of each port on the above-mentioned visual application server is pre-configured on the background management server, such as A1, A2, A3, B1, B2, C1, C2...N1, N2, N3. The background management server matches the received port identification with the pre-configured port identification in sequence. For example, the background management server obtains that the ports being used on the visual application server A are A1 and A3, and matches the ports A1 and A3 being used on the visual application server A with the identifications A1 and A2 of the pre-configured normal ports. , A3, B1, B2, C1, C2...N1, N2, N3 are matched, and A1 and A3 are matched in the pre-configured normal port identifiers, then A1 and A3 are both normal ports; for another example, the background management server obtains that the ports in use on the visual application server B are B2 and B3, and the ports B2 and B3 in use on the visual application server B are matched with the pre-configured normal port identifiers A1, A2, A3, B1, B2, C1, C2...N1, N2, N3, and B2 is matched in the pre-configured normal port identifiers, while B3 is not matched in the pre-configured normal port identifiers, then B2 is a normal port and B3 is an abnormal port. According to the above method, the identifiers of the ports in use on all servers 200 to be detected are matched with the pre-configured normal port identifiers, and those that are not matched are abnormal ports.

[0071] Figure 3 is a flow chart of a port detection method according to another exemplary embodiment, referring to Figure 3 , the method comprises the following steps:

[0072] In step S21 , the identifier of the server 200 to be detected and the identifier of the port being used by the server 200 to be detected are obtained.

[0073] In step S22, the operation and maintenance management server 100 reads the identifier of the normal port pre-configured by the web terminal 400 from the database 300 and stores it locally.

[0074] The pre-configured normal port identifier is used as reference data for comparison with the port identifier obtained by the operation and maintenance management server 100, and these reference data need to ensure that the operation and maintenance management server 100 can read them at any time. The normal port identifier data can be directly stored in the operation and maintenance management server 100, or it can be stored in a database 300 connected to the operation and maintenance management server 100. In this embodiment, the normal port identifier data is stored in the database 300 connected to the operation and maintenance management server 100, and the web terminal 400 can be used to import the corresponding normal port identifier into the database 300.

[0075] In step S23, the identifier of the port being used on the server 200 to be detected is matched with the identifier of the pre-configured normal port.

[0076] In step S24, the ports in use on the to-be-detected server 200 that are not matched to normal ports are determined as abnormal ports.

[0077] In step S25, the identification of the server 200 to be detected with the abnormal port and the identification of the abnormal port on the server are sent to the alarm center 500;

[0078] When the operation and maintenance management server 100 determines that a port in use is an abnormal port, it is necessary to display the information of the port and promptly remind the operation and maintenance personnel to handle the abnormal port accordingly. Therefore, the operation and maintenance management server 100 is connected to an alarm center 500 for displaying the information of the abnormal port and reminding the operation and maintenance personnel. The operation and maintenance management server 100 and the alarm center 500 are connected via the Internet to facilitate the transmission of information. The abnormal port is located on the corresponding detected server. Only when the identifier of the server where the abnormal port is located is known at the same time, it is convenient for the operation and maintenance personnel to quickly handle the corresponding abnormal port. Therefore, the identifier of the server 200 to be detected with the abnormal port and the identifier of the abnormal port on the server are sent to the alarm center 500. That is, when an abnormal port is detected, the server identifier of the abnormal port and the identifier of the abnormal port are sent to the alarm center 500; if there are two or more abnormal ports on a detected server, the identifier of the server and the identifiers of all abnormal ports on the server are sent to the alarm center 500, that is, when the operation and maintenance management server 100 reports the identifier of the abnormal port, it reports it in units of servers, which facilitates rapid processing of all abnormal ports; when the operation and maintenance management server 100 sends the identifier of the detected server and the identifiers of all abnormal ports on the server to the alarm center 500, it assembles them into an Internet message in the JSON string format, and then sends the Internet message to the alarm center 500 in the TCP protocol. The JSON string format is as follows: Figure 4 shown.

[0079] The following also takes the case where the operation and maintenance management server 100 is a company's backend management server, the servers to be detected 200 are the company's visual application servers, the identifiers of normal ports are pre-configured in a database 300 connected to the backend management server, and the ports on the visual application servers are detected as an example to explain the above steps in detail.

[0080] The background management server is provided with a program for receiving the identification of the visual application server and the identification of the port being used thereon. There are a total of A, B, C...N visual application servers. The identification of each port on the above-mentioned visual application server, such as A1, A2, A3, B1, B2, C1, C2...N1, N2, N3, is pre-configured in the database 300 through the web terminal 400. The web terminal 400 and the database 300 are connected by means of the Internet; the background management server is connected to the database 300, and the connection method can be an Internet connection, which facilitates the background management server to read the data in the database 300; the operation and maintenance management server 100 reads the pre-configured port identification data from the database 300, and then matches the received port identification with the pre-configured port identification in sequence.

[0081] For example, the background management server obtains that the ports A1 and A3 are being used on the visual application server A, and matches the ports A1 and A3 being used on the visual application server A with the identifiers A1, A2, A3, B1, B2, C1, C2...N1, N2, N3 of the pre-configured normal ports read from the database 300. If A1 and A3 are matched in the identifiers of the pre-configured normal ports, then A1 and A3 are both normal ports. Since there are no abnormal ports, they are not reported to the alarm center 500, and the next port information obtained is matched.

[0082] For another example, the background management server obtains that the ports B2 and B3 are being used on the visual application server B, and matches the ports B2 and B3 being used on the visual application server B with the pre-configured normal port identifiers A1, A2, A3, B1, B2, C1, C2...N1, N2, N3 read from the database 300 respectively. B2 is matched in the pre-configured normal port identifier, but B3 is not matched in the pre-configured normal port identifier, then B2 is determined to be a normal port, and B3 is determined to be an abnormal port, and then the server where the B3 port is located: the identifier of the visual application server B and the identifier of the abnormal port B3 are assembled into an Internet message in JSON string format, and then the Internet message is sent to the alarm center 500 via the TCP protocol, and the alarm center 500 displays the identifier of the visual application server B and the identifier of the abnormal port B3.

[0083] For another example, the background management server obtains that the ports C2, C3 and C4 are being used on the visual application server C, and matches the ports C2, C3 and C4 being used on the visual application server C with the pre-configured normal port identifiers A1, A2, A3, B1, B2, C1, C2...N1, N2, N3 read from the database 300, respectively. C2 is matched in the pre-configured normal port identifier, while C3 and C4 are not matched in the pre-configured normal port identifier, then C2 is determined to be a normal port, and C3 and C4 are determined to be abnormal ports, and then the server where the C3 and C4 ports are located: the identifier of the visual application server C and the identifiers of the abnormal ports C3 and C4 are assembled into an Internet message in JSON string format, and then the Internet message is sent to the alarm center 500 using the TCP protocol. The information displayed by the alarm center 500 is: the identifier of the visual application server C and the identifiers of the abnormal ports C3 and C4.

[0084] Another embodiment of the present application, based on the previous embodiment, the operation and maintenance management server 100 receives the visual networking message sent by the server to be detected 200 through the visual networking protocol, and the visual networking message is an identifier of the port being used on the server to be detected 200, assembled in a JSON string format; the operation and maintenance management server 100 parses the visual networking message to obtain the identifier of the port being used on the server to be detected 200.

[0085] The visual network is a more advanced form of the Internet. It is a real-time network that can achieve real-time transmission of high-definition video over the entire network, which is not possible with the Internet. The operation and maintenance management server 100 and the server to be detected 200 are connected through the visual network, which can achieve higher-definition content transmission. The visual network message is assembled in the JSON string format and transmitted using the V2V visual network 8F95 protocol. The format is as follows: Figure 4 As shown, the port identification and the identification data of the server to be detected are stored in the 18th to 529th fields of the JSON string, that is, the above data is stored in Figure 4 In the data domain part, the operation and maintenance management server 100 parses the message in the JSON string format after receiving it, and obtains the identifier of the port being used on the server 200 to be detected.

[0086] refer to Figure 5 , Figure 5 The method shown is applied to the server 200 to be detected, and the method includes the following steps:

[0087] In step S31, the identifier of the port being used locally is collected;

[0088] In step S32 , the identifier of the port being used on the server 200 to be detected is sent to the operation and maintenance management server 100 .

[0089] The server to be detected 200 collects the identifier of the port in use locally through the probe program. The probe program includes a port detection function and a port reporting function. The port detection function is used to collect the identifier of the port in use locally, and the port reporting function is used to send the collected port function to the operation and maintenance management server 100. Specifically, the probe program assembles the identifier of the port in use on the server to be detected 200 into a visual network message in the JSON string format; then the port reporting function in the probe program sends the visual network message to the operation and maintenance management server 100 through the visual network protocol.

[0090] Based on the same inventive concept, an embodiment of the present application provides a port detection device, which is applied to the operation and maintenance management server 100. Figure 6 , Figure 6 Schematic diagram of a port detection device provided by an embodiment of the present application. Figure 6 As shown, the device comprises:

[0091] The obtaining module 61 is configured to obtain the identifier of the server 200 to be detected and the identifier of the port being used by the server 200 to be detected sent by the server 200 to be detected;

[0092] The verification module 64 is configured to match the identifier of the port being used on the server 200 to be detected with the identifier of the pre-configured normal port;

[0093] The detection module 65 is configured to determine the ports in use on the server 200 to be detected that are not matched with normal ports as abnormal ports.

[0094] Optionally, the device further comprises:

[0095] The reading module 63 is configured to read the identifier of the normal port pre-configured through the web terminal 400 from the database 300 and store it locally before matching the identifier of the port in use on the server 200 to be detected with the identifier of the pre-configured normal port.

[0096] Optionally, the operation and maintenance management server 100 is connected to the server to be detected 200 via a visual network; the acquisition module 61 receives a visual network message sent by the server to be detected 200 via a visual network protocol, wherein the visual network message is an identifier of a port being used on the server to be detected 200, assembled in a JSON string format; the device further includes:

[0097] The parsing module 62 is configured to parse the visual network message and obtain the identifier of the port being used on the server 200 to be detected.

[0098] Optionally, the device further comprises:

[0099] The alarm module 66 is configured to send the identifier of the abnormal port to the alarm center 500 after determining the port that is not matched to a normal port among the ports in use on the server 200 to be detected as an abnormal port, so that the alarm center 500 displays the identifier of the abnormal port.

[0100] Optionally, the server to be detected 200 includes at least a first server to be detected 200 and a second server to be detected 200;

[0101] The obtaining module 61 receives the identifier of the first server 200 to be detected and the identifier of the second server 200 to be detected respectively;

[0102] The alarm module 66 sends the identifier of the abnormal port to the alarm center 500, including:

[0103] The alarm module 66 sends the identifier of the first server 200 to be detected and the identifier of the abnormal port of the first server 200 to be detected to the alarm center 500;

[0104] The alarm module 66 sends the identifier of the second server 200 to be detected and the identifier of the abnormal port of the second server 200 to be detected to the alarm center 500 .

[0105] Optionally, the operation and maintenance management server 100 is connected to the alarm center 500 via the Internet; the alarm module 66 sends the identifier of the abnormal port to the alarm center 500, including:

[0106] Assembling the identifier of the abnormal port into an Internet message in JSON string format;

[0107] The Internet message is sent to the alarm center 500 using the TCP protocol.

[0108] Based on the same inventive concept, an embodiment of the present application provides another port detection device, which is applied to the server 200 to be detected. Figure 7 , Figure 7 FIG. 1 is a schematic diagram of a port detection device provided by another embodiment of the present application. Figure 7 As shown, the device comprises:

[0109] The collection module 71 is configured to collect the identifiers of the ports being used locally;

[0110] The sending module 72 is configured to send the identifier of the port being used on the server 200 to be detected to the operation and maintenance management server 100, so as to detect whether there is an abnormal port among the ports being used on the server 200 to be detected through the operation and maintenance management server 100;

[0111] Optionally, a probe program is installed on the server to be detected 200;

[0112] The acquisition module 71 runs the probe program and collects the identifiers of the ports being used locally through the probe program;

[0113] Optionally, the operation and maintenance management server 100 is connected to the server to be detected 200 via a visual network; the sending module 72 sends the identifier of the port being used on the server to be detected 200 to the operation and maintenance management server 100, including:

[0114] Assemble the identifier of the port being used on the server 200 to be detected into a visual network message in JSON string format;

[0115] The visual networking message is sent to the operation and maintenance management server 100 via the visual networking protocol.

[0116] Based on the same inventive concept, another embodiment of the present application provides a readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the port detection method described in any of the above embodiments of the present application are implemented.

[0117] Based on the same inventive concept, another embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes, the steps of the port detection method described in any of the above embodiments of the present application are implemented.

[0118] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

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

[0120] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0121] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

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

[0123] 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 implementing the process in the computer or other programmable terminal device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0124] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

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

[0126] The above is a detailed introduction to a port detection method, device, system, equipment and storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A port detection method, characterized in that: Applied to an operation and maintenance management server, the operation and maintenance management server is connected to all servers to be detected, the operation and maintenance management server is also connected to a database and an alarm center, the database is connected to a web terminal, and the database is used to store information of pre-configured normal ports. The method includes: Obtaining the identification of the server to be detected and the identification of the port being used on the server to be detected sent by the server to be detected, wherein the server to be detected is a visual application server; a probe program is provided on the server to be detected, and the detection port function on the probe program collects the identification of the server to be detected and the identification of the port being used on the server to be detected, and then sends the collected information to the operation and maintenance management server through the reporting interface function on the probe program; Matching the identifiers of the ports being used on the server to be detected with the identifiers of the pre-configured normal ports; determining the ports being used on the server to be detected that are not matched to the normal ports as abnormal ports; Sending the identifier of the abnormal port to an alarm center so that the alarm center displays the identifier of the abnormal port; wherein the operation and maintenance management server reports the identifier of the abnormal port in units of the server to be detected; The pre-configured normal port represents a verified or permitted port, and the identifier of the pre-configured normal port includes: the identifier of a port commonly used on the server to be detected and the identifier of a port to be added according to actual conditions; Before matching the identifier of the port in use on the server to be detected with the identifier of the pre-configured normal port, the method further includes: the operation and maintenance management server reads the identifier of the normal port pre-configured through the web terminal from the database and stores it locally.

2. The method according to claim 1, characterized in that: The operation and maintenance management server is connected to the server to be detected via a visual network; Receiving an identifier of a port being used by the server to be detected, sent by the server to be detected, includes: Receiving a visual networking message sent by the server to be detected through a visual networking protocol, wherein the visual networking message is composed of an identifier of a port being used on the server to be detected in a JSON string format; The visual network message is parsed to obtain the identifier of the port being used on the server to be detected.

3. The method according to claim 1, characterized in that: The servers to be detected include at least a first server to be detected and a second server to be detected; The method further comprises: Receiving the identifier of the first server to be detected and the identifier of the second server to be detected respectively; Sending the identifier of the abnormal port to an alarm center includes: Sending the identifier of the first server to be detected and the identifier of the abnormal port of the first server to be detected to the alarm center; The identifier of the second server to be detected and the identifier of the abnormal port of the second server to be detected are sent to the alarm center.

4. The method according to claim 1, characterized in that: The operation and maintenance management server is connected to the alarm center via the Internet; and the identifier of the abnormal port is sent to the alarm center, including: Assembling the identifier of the abnormal port into an Internet message in JSON string format; The Internet message is sent to the alarm center using the TCP protocol.

5. A port detection method, characterized in that: Applied to a server to be detected, the server to be detected is a visual application server, the operation and maintenance management server is connected to all servers to be detected, the operation and maintenance management server is also connected to a database and an alarm center, the database is connected to a web terminal, and the database is used to store information of pre-configured normal ports. The method includes: Collect the identifiers of the ports currently in use locally; The identifier of the port being used on the server to be detected is sent to the operation and maintenance management server, so that the operation and maintenance management server can detect whether there is an abnormal port among the ports being used on the server to be detected, and the identifier of the abnormal port is sent to the alarm center, so that the alarm center displays the identifier of the abnormal port, wherein the operation and maintenance management server reports the identifier of the abnormal port in units of the server to be detected, and the abnormal port is a port that is not matched to a normal port among the ports being used on the server to be detected, and the operation and maintenance management server is used to read the identifier of the normal port pre-configured through the web end from the database and store it locally; The pre-configured normal port represents a verified or permitted port, and the identifier of the pre-configured normal port includes: the identifier of a port commonly used on the server to be detected and the identifier of a port to be added according to actual conditions; A probe program is installed on the server to be detected; the probe program is run, and the identifier of the server to be detected and the identifier of the port being used on the server to be detected are collected through the detection port function on the probe program, and then the collected information is sent to the operation and maintenance management server through the reporting interface function on the probe program.

6. The method according to claim 5, characterized in that The operation and maintenance management server is connected to the server to be detected via a visual network; sending the identifier of the port being used by the server to be detected to the operation and maintenance management server includes: Assemble the identifier of the port being used on the server to be detected into a visual network message in JSON string format; The visual networking message is sent to the operation and maintenance management server via the visual networking protocol.

7. A port detection system, characterized in that: The system comprises: An operation and maintenance management server, used to execute the port detection method according to any one of claims 1 to 4; At least one server to be detected, each server to be detected is used to execute the port detection method described in any one of claims 5-6; An alarm center is used to receive and display the identification of the server with the abnormal port and the identification of all abnormal ports on the server; A database for storing identifiers of pre-configured normal ports; The Web end is used for allowing users to configure the identifier of the normal port and importing the identifier of the normal port into the database.

8. A port detection device, characterized in that: Applied to an operation and maintenance management server, the operation and maintenance management server is connected to all servers to be detected, the operation and maintenance management server is also connected to a database and an alarm center, the database is connected to a web terminal, and the database is used to store information of pre-configured normal ports. The device includes: An acquisition module is configured to obtain an identifier of the server to be detected and an identifier of a port in use on the server to be detected, the server to be detected being a visual application server; a probe program is provided on the server to be detected, a detection port function on the probe program collects the identifier of the server to be detected and the identifier of the port in use on the server to be detected, and then sends the collected information to the operation and maintenance management server through a reporting interface function on the probe program; A verification module is configured to match the identifier of the port being used on the server to be detected with the identifier of a pre-configured normal port; The detection module is configured to determine the ports in use on the server to be detected that are not matched to normal ports as abnormal ports; send the identifier of the abnormal port to the alarm center so that the alarm center displays the identifier of the abnormal port; wherein the operation and maintenance management server reports the identifier of the abnormal port in units of the server to be detected; The pre-configured normal port represents a verified or permitted port, and the identifier of the pre-configured normal port includes: the identifier of a port commonly used on the server to be detected and the identifier of a port to be added according to actual conditions; The reading module is used to read the identifier of the normal port pre-configured through the web side from the database and store it locally.

9. A port detection device, characterized in that: Applied to a server to be detected, the server to be detected is a visual application server, the operation and maintenance management server is connected to all servers to be detected, the operation and maintenance management server is also connected to a database and an alarm center, the database is connected to a web terminal, and the database is used to store information of pre-configured normal ports. The device includes: A collection module is configured to collect identifiers of ports in use locally; The sending module is configured to send the identifier of the port being used on the server to be detected to the operation and maintenance management server, so as to detect whether there is an abnormal port among the ports being used on the server to be detected through the operation and maintenance management server, and send the identifier of the abnormal port to the alarm center, so that the alarm center displays the identifier of the abnormal port, wherein the abnormal port is a port that is not matched with a normal port among the ports being used on the server to be detected; wherein the operation and maintenance management server reports the identifier of the abnormal port in units of the server to be detected; The pre-configured normal port represents a verified or permitted port, and the identifier of the pre-configured normal port includes: the identifier of the port commonly used on the server to be detected and the identifier of the port to be added according to the actual situation.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 6 are implemented.

11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Malicious URL heuristic detection method and system based on abnormal port

    CN105024989A

  • Abnormal traffic detection method and device

    CN109495521A

  • Flow monitoring method and device and computing equipment

    CN109714230A