Network operation and maintenance method and device and computer readable storage medium
By monitoring the transmission messages between devices and using feature identifiers and message pairs to determine operation and maintenance results, the problem of low equipment operation and maintenance efficiency and poor accuracy is solved, automated operation and maintenance is realized, and the normal operation guarantee of the equipment is improved.
Patent Information
- Application Number
- CN202310487744.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-28
- Publication Date
- 2024-10-29
AI Technical Summary
In the existing technology, equipment network operation and maintenance efficiency is low and accuracy is poor. This is mainly due to the reliance on manual monitoring, which results in the inability to effectively monitor the transmission messages between devices and affects the normal operation of the equipment.
By monitoring request messages and response messages in multiple transmission cycles between devices, using feature identification matching and message pairs to determine monitoring indicators, the operation and maintenance results of the equipment are automatically judged, and operation and maintenance efficiency and accuracy are improved.
It realizes automated network operation and maintenance, improves the efficiency and accuracy of equipment operation and maintenance, reduces the need for manual intervention, and improves the normal operation guarantee of equipment.
Smart Images

Figure CN118869431A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network operation and maintenance technology, and in particular to a network operation and maintenance method, device and computer-readable storage medium. Background Art
[0002] With the continuous development of communication technology, equipment automation technology is becoming more and more mature. During the automatic operation of equipment, it is necessary to operate and maintain the equipment network to ensure the normal operation of the equipment. In related technologies, network operation and maintenance of equipment is usually achieved through manual monitoring, which leads to low efficiency and poor accuracy of network operation and maintenance. Summary of the invention
[0003] The embodiments of the present application provide a network operation and maintenance method, an apparatus, and a computer-readable storage medium, which can improve the network operation and maintenance efficiency of a device and improve the accuracy of the network operation and maintenance of the device.
[0004] In a first aspect, a network operation and maintenance method is provided, the method comprising: monitoring multiple messages transmitted in multiple transmission cycles between a first device and a second device within a preset time period to obtain monitoring indicators, where the message is a request message or a response message. The first preset field of each message is configured with a feature identifier, the feature identifier is used to indicate the function of the message, and the feature identifiers of messages with the same function in adjacent transmission cycles match. The operation and maintenance result of the first device is determined according to the monitoring indicator.
[0005] In a possible implementation of the first aspect, adjacent transmission cycles include the i-th transmission cycle and the i+1-th transmission cycle, where i is a positive integer; feature identifiers of messages with the same function in adjacent transmission cycles match, including: the value of the feature identifier of the first request message in the i-th transmission cycle is the same as the value of the feature identifier of the second request message in the i+1-th transmission cycle; or, the value of the feature identifier of the second request message in the i+1-th transmission cycle is determined based on the value of the feature identifier of the first request message in the i-th transmission cycle and the number of features, wherein the number of features is the number of messages included in one transmission cycle; wherein the first request message and the second request message have the same function.
[0006] In a possible implementation of the first aspect, the method further includes: determining a message pair based on the value of the second preset field of each message; the message pair includes two messages with the same value of the second preset field; determining, based on the transmission time of each message in the message pair, a message with an earlier transmission time as a request message, and determining a message with a later transmission time as a response message corresponding to the request message; or, determining, based on the value of the third preset field of each message in the message pair, a request message and a response message included in the message pair, wherein the value of the third preset field of the message is used to indicate that the message is a request message or a response message.
[0007] In a possible implementation manner of the first aspect, the monitoring indicator includes at least one of a transmission period, a number of requests within a preset time period, a number of responses within a preset time period, and a request-response delay.
[0008] In a possible implementation of the first aspect, when the monitoring indicator includes a transmission cycle, multiple messages transmitted in multiple transmission cycles between a first device and a second device within a preset time period are monitored to obtain monitoring indicators, including: determining a first request message from multiple messages; wherein the first request message is located in the i-th transmission cycle, and i is a positive integer; based on a characteristic identifier of the first request message, determining a second request message, wherein the second request message is located in the i+1-th transmission cycle, and the second request message matches the characteristic identifier of the first request message; and determining the time interval between sending the first request message and the second request message as the transmission cycle.
[0009] In a possible implementation of the first aspect, when the monitoring indicator includes the number of requests within a preset time period and the number of responses within a preset time period, multiple messages transmitted in multiple transmission cycles between a first device and a second device within the preset time period are monitored to obtain a monitoring indicator, including: determining the number of request messages within the preset time period among the multiple messages as the number of requests within the preset time period; determining the number of response messages within the preset time period among the multiple messages as the number of responses within the preset time period.
[0010] In a possible implementation of the first aspect, when the monitoring indicator includes a request-response delay, multiple messages transmitted in multiple transmission cycles between a first device and a second device within a preset time period are monitored to obtain the monitoring indicator, including: determining a first request message and a first response message based on a message pair, wherein the first response message is a message used to respond to the first request message. The time interval between sending the first request message and the first response message is determined as the request-response delay.
[0011] In a possible implementation of the first aspect, the operation and maintenance result includes normal operation or abnormal operation; the operation and maintenance result of the first device is determined according to the monitoring indicators, including: when at least one of the transmission cycle is greater than a first threshold, the number of requests within a preset time period is less than a second threshold, the number of responses within the preset time period is less than a third threshold, and the request-response delay is greater than a fourth threshold, the operation and maintenance result of the first device is determined to be abnormal operation; when at least one of the transmission cycle is less than or equal to the first threshold, the number of requests within the preset time period is greater than or equal to the second threshold, the number of responses within the preset time period is greater than or equal to the third threshold, and the request-response delay is less than or equal to the fourth threshold, the operation and maintenance result of the first device is determined to be normal operation.
[0012] In a possible implementation manner of the first aspect, the method further includes: displaying an operation and maintenance result of the first device on the first interface.
[0013] In a possible implementation of the first aspect, the method further includes: determining and displaying on the first interface a maximum value, an average value, a number of abnormalities in the transmission cycle, a number of times the transmission cycle meets the standard, and a maximum value, an average value, a number of abnormalities in the request response delay, and a number of times the request response delay meets the standard for each request message in the preset time period.
[0014] In a possible implementation manner of the first aspect, multiple messages are transmitted between the first device and the second device based on a modbus protocol or an S7 communication protocol.
[0015] According to a second aspect, a network operation and maintenance device is provided, comprising: a monitoring module, used to monitor multiple messages transmitted in multiple transmission cycles between a first device and a second device within a preset time period to obtain monitoring indicators, wherein the message is a request message or a response message; the first preset field of each message is configured with a feature identifier, which is used to indicate the function of the message, and the feature identifiers of messages with the same function in adjacent transmission cycles are matched; and a determination module, used to determine the operation and maintenance results of the first device according to the monitoring indicators.
[0016] In a possible implementation of the second aspect, adjacent transmission cycles include the i-th transmission cycle and the i+1-th transmission cycle, where i is a positive integer; feature identifiers of messages with the same function in adjacent transmission cycles match, including: the value of the feature identifier of the first request message in the i-th transmission cycle is the same as the value of the feature identifier of the second request message in the i+1-th transmission cycle; or, the value of the feature identifier of the second request message in the i+1-th transmission cycle is determined based on the value of the feature identifier of the first request message in the i-th transmission cycle and the number of features, wherein the number of features is the number of messages included in one transmission cycle; wherein the first request message and the second request message have the same function.
[0017] In a possible implementation of the second aspect, the determination module is further used to determine a message pair based on the value of the second preset field of each message; the message pair includes two messages with the same value of the second preset field; and is used to determine, based on the transmission time of each message in the message pair, a message with an earlier transmission time as a request message, and a message with a later transmission time as a response message corresponding to the request message; or, based on the value of the third preset field of each message in the message pair, determine the request message and response message included in the message pair, and the value of the third preset field of the message is used to indicate that the message is a request message or a response message.
[0018] In a possible implementation manner of the second aspect, the monitoring indicator includes at least one of a transmission period, a number of requests within a preset time period, a number of responses within a preset time period, and a request-response delay.
[0019] In a possible implementation of the second aspect, when the monitoring indicator includes a transmission cycle, the monitoring module is specifically used to: determine a first request message from multiple messages; wherein the first request message is located within the i-th transmission cycle, and i is a positive integer; based on a characteristic identifier of the first request message, determine a second request message, wherein the second request message is located within the i+1-th transmission cycle, and the second request message matches the characteristic identifier of the first request message; and determine the time interval between sending the first request message and the second request message as the transmission cycle.
[0020] In a possible implementation of the second aspect, when the monitoring indicators include the number of requests within a preset time period and the number of responses within a preset time period, the monitoring module is specifically used to: determine the number of request messages within the preset time period among multiple messages as the number of requests within the preset time period; determine the number of response messages within the preset time period among multiple messages as the number of responses within the preset time period.
[0021] In a possible implementation of the second aspect, when the monitoring indicator includes a request-response delay, the monitoring module is specifically configured to: determine a first request message and a first response message based on the message pair, wherein the first response message is a message used to respond to the first request message, and determine the time interval between sending the first request message and the first response message as the request-response delay.
[0022] In a possible implementation of the second aspect, the operation and maintenance result includes normal operation or abnormal operation; the determination module is specifically used to: determine that the operation and maintenance result of the first device is abnormal operation when at least one of the transmission cycle is greater than a first threshold, the number of requests within a preset time period is less than a second threshold, the number of responses within the preset time period is less than a third threshold, and the request-response delay is greater than a fourth threshold; determine that the operation and maintenance result of the first device is normal operation when at least one of the transmission cycle is less than or equal to the first threshold, the number of requests within the preset time period is greater than or equal to the second threshold, the number of responses within the preset time period is greater than or equal to the third threshold, and the request-response delay is less than or equal to the fourth threshold.
[0023] In a possible implementation manner of the second aspect, the apparatus further includes a display module configured to display an operation and maintenance result of the first device on the first interface.
[0024] In a possible implementation of the second aspect, the determination module is further used to determine at least one of the maximum value, average value, number of abnormalities in the transmission cycle, number of times the transmission cycle reaches the standard, and the maximum value, average value, number of abnormalities in the request response delay, and number of times the request response delay reaches the standard in the transmission cycle corresponding to each request message within the preset time period. The display module is also used to display at least one of the maximum value, average value, number of abnormalities in the transmission cycle, number of times the transmission cycle reaches the standard, and the maximum value, average value, number of abnormalities in the request response delay, and number of times the request response delay reaches the standard in the transmission cycle corresponding to each request message within the preset time period.
[0025] In a possible implementation manner of the second aspect, multiple messages are transmitted between the first device and the second device based on a modbus protocol or an S7 communication protocol.
[0026] In a third aspect, a network operation and maintenance device is provided, including: a memory and a processor; the memory and the processor are coupled; the memory is used to store a computer program; and the processor implements the network operation and maintenance method of any of the above embodiments when executing the computer program.
[0027] In a fourth aspect, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the network operation and maintenance method of any of the above embodiments is implemented.
[0028] In a fifth aspect, a computer program product is provided, which includes computer program instructions, and when the computer program instructions are executed by a processor, the network operation and maintenance method of any of the above embodiments is implemented.
[0029] The beneficial effect of the technical solution provided by the embodiment of the present application is: by monitoring multiple request messages and response messages transmitted between devices, and determining multiple monitoring indicators of the devices based on the multiple request messages and response messages, network operation and maintenance of the devices can be achieved based on the multiple monitoring indicators. Compared with the method of performing network operation and maintenance on devices by manual monitoring in the related art, the method provided by the embodiment of the present application can improve the efficiency of network operation and maintenance, and improve the accuracy of network operation and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solution in the present application, the drawings required for use in some embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only drawings of some embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0031] Figure 1 An application scenario diagram of a network operation and maintenance device provided in some embodiments of the present application;
[0032] Figure 2 A flowchart of a network operation and maintenance method provided in some embodiments of the present application;
[0033] Figure 3a An interaction diagram of a first device and a second device provided in some embodiments of the present application;
[0034] Figure 3b Another interaction diagram of a first device and a second device provided in some embodiments of the present application;
[0035] Figure 3c A diagram of interaction between a first device and a second device provided in some embodiments of the present application;
[0036] Figure 4 A flowchart of another network operation and maintenance method provided in some embodiments of the present application;
[0037] Figure 5 A flowchart of another network operation and maintenance method provided in some embodiments of the present application;
[0038] Figure 6 A flowchart of another network operation and maintenance method provided in some embodiments of the present application;
[0039] Figure 7 A schematic diagram of a first interface provided in some embodiments of the present application;
[0040] Figure 8 A schematic diagram of another first interface provided for some embodiments of the present application;
[0041] Fig. 9 A structural block diagram of a network operation and maintenance device provided in some embodiments of the present application;
[0042] Fig.10 A structural block diagram of another network operation and maintenance device provided for some embodiments of the present application. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in this application to clearly and completely describe the technical solutions in this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0044] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0045] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0046] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" means one or more, and "multiple" means two or more.
[0047] With the continuous development of communication technology, equipment automation technology is becoming more and more mature. During the automatic operation of equipment, it is necessary to operate and maintain the equipment to ensure the normal operation of the equipment. In the related technology, since the operation and maintenance of equipment is usually achieved through manual monitoring, there are problems such as low operation and maintenance efficiency and poor accuracy.
[0048] In view of this, an embodiment of the present application provides a network operation and maintenance method. The above method obtains monitoring indicators by monitoring multiple request messages and response messages transmitted in multiple transmission cycles between a first device and a second device within a preset time period, and then can implement network operation and maintenance of the device based on multiple monitoring indicators. Compared with the method of using manual monitoring to perform network operation and maintenance on the device in the related art, the method provided by the embodiment of the present application can improve the network operation and maintenance efficiency and improve the accuracy of network operation and maintenance.
[0049] The present application embodiment provides a network operation and maintenance device, which is used to execute the network operation and maintenance method provided in the present application embodiment. Figure 1 , Figure 1An application scenario diagram of a network operation and maintenance device provided in an embodiment of the present application is shown. Among them, the network operation and maintenance 100 communicates with the first device 110 and the second device 120 respectively, and the first device 110 is used to send a request message to the second device 120 through the network operation and maintenance device 100, and send a response message to the second device in response to the request message sent by the second device 120. The network operation and maintenance device 100 is used to monitor multiple request messages and response messages transmitted between the first device 110 and the second device 120 within a preset time period, and determine monitoring indicators based on the multiple request messages and response messages, and determine network operation and maintenance results based on the monitoring indicators.
[0050] It should be understood that the network operation and maintenance apparatus 100 can be any computing device with computing processing capability, or a functional module in the computing device. The first device 110 and the second device 120 can be any computing device with message transmission capability, or a functional module in the computing device.
[0051] As an example, the network operation and maintenance device 100 may be a computing device set in a base station, and the first device 110 and the second device 120 may be terminal devices or servers for message transmission through the base station. In one example, the first device 110 is a terminal, and the second device 120 is a server. In another example, both the first device 110 and the second device 120 are terminal devices. The embodiment of the present application does not particularly limit the specific implementation form of the network operation and maintenance device 100, the first device 110, and the second device 120.
[0052] Furthermore, the first device may be a terminal device configured with a programmable logic controller (PLC) (hereinafter referred to as a PLC device), and the second device may be a server.
[0053] The following embodiments are described by taking the first device 110 as a PLC device, the second device 120 as a server, and the network operation and maintenance apparatus 100 as a computing device as an example.
[0054] Figure 2 A flowchart of a network operation and maintenance method provided in an embodiment of the present application is shown as follows: Figure 2 As shown, this method can be Figure 1 The network operation and maintenance device 100 shown in the figure is executed. The method may include the following steps:
[0055] S201. Monitor multiple messages transmitted in multiple transmission cycles between a first device and a second device within a preset time period.
[0056] Specifically, the multiple messages transmitted in the multiple transmission cycles monitored by the computing device may be request messages or response messages sent in response to the request messages. Furthermore, the request messages or response messages sent by the first device and the second device in each transmission cycle in the multiple transmission cycles are the same. The same means that the types, functions, and sequences of the request messages and response messages sent by the first device and the second device in any two transmission cycles are exactly the same.
[0057] For example, see Figure 3a , Figure 3a A message transmission schematic diagram between a first device and a second device provided for an embodiment of the present application includes messages transmitted by the first device and the second device in two transmission cycles. In transmission cycle 1, the first device sends two request messages to the second device in sequence, which are request message A and request message B. Among them, request message A and request message B are request messages of different types. And the first device receives response message a and response message b returned by the second device. In transmission cycle 2, the first device still sends two request messages to the second device in sequence, which are also request message A and request message B. And the first device receives response message a and response message b returned by the second device.
[0058] In a possible implementation, multiple messages are transmitted between the first device and the second device in the form of data packets based on the modbus protocol or the S7communication protocol.
[0059] It should be understood that the method provided in this application can be used for performance monitoring of modbus and S7communication, and can also be used to monitor transmission performance based on other protocols without limitation. The following is explained using the modbus protocol and S7communication protocol as examples.
[0060] Each message includes a plurality of preset fields, wherein the first preset field of each message is configured with a feature identifier, which is used to indicate the function of the message, and the feature identifiers of messages with the same function in adjacent transmission cycles match.
[0061] Specifically, the adjacent transmission cycles are the i-th transmission cycle and the (i+1)-th transmission cycle in the multiple transmission cycles, where i is a positive integer.
[0062] Exemplary. The above transmission cycle 1 and transmission cycle 2 are adjacent transmission cycles. The request message A of transmission cycle 1 and the request message A of transmission cycle 2 are messages with the same function, and the request message B of transmission cycle 1 and the request message B of transmission cycle 2 are also messages with the same function. Therefore, the feature identifiers of the request message A of transmission cycle 1 and the request message A of transmission cycle 2 match. The feature identifiers of the request message B of transmission cycle 1 and the request message B of transmission cycle 2 match.
[0063] In some embodiments, when multiple messages are transmitted between a first device and a second device based on the modbus protocol, matching of feature identifiers of messages with the same function in adjacent transmission cycles can be understood as having the same value of the feature identifier.
[0064] Exemplary, combined Figure 3a , see Figure 3b , Figure 3b The schematic diagram of transmitting multiple messages between a first device and a second device based on the modbus protocol includes multiple fields corresponding to each message. The value of the characteristic identifier of the first preset field of the request message A of transmission cycle 1 is 05. The value of the characteristic identifier of the first preset field of the request message A of transmission cycle 2 is 05. The value of the characteristic identifier of the first preset field of the request message B of transmission cycle 1 is 07. The value of the characteristic identifier of the first preset field of the request message B of transmission cycle 2 is 07.
[0065] In other embodiments, when a first device and a second device transmit multiple messages based on the S7 communication protocol, the value of the feature identifier of the request message in the (i+1)th transmission cycle is determined based on the value of the feature identifier of the request message with the same function as the request message in the (i)th transmission cycle and the number of features, wherein the number of features is the number of messages included in one transmission cycle.
[0066] Optionally, the value of the feature identifier of the request message in the (i+1)th transmission cycle may be the sum of the value of the feature identifier of a request message with the same function as the request message in the (i)th transmission cycle and the number of features.
[0067] Exemplary, combined Figure 3a , see Figure 3c , Figure 3c A schematic diagram of transmitting multiple messages between a first device and a second device based on the S7communication protocol. It includes multiple fields corresponding to each message. The value of the feature identifier of the first preset field of the request message A of transmission cycle 1 is 05. The number of messages included in one transmission cycle of the first device and the second device is 4, that is, the number of features is 4. The value of the feature identifier of the first preset field of the request message A of transmission cycle 2 is the sum of 05 and 4, which is equal to 09.
[0068] Furthermore, each message is also configured with a second preset field, and within the same transmission cycle, the value of the second preset field of each request message and the response message corresponding to the request message is the same. In other words, the value of the second preset field of each message pair is the same. A message pair includes a request message and a response message sent in response to the request message.
[0069] Exemplary, combined Figure 3b and Figure 3c , in transmission cycle 1, the value of the second preset field of the request message A and the response message a is the same. In transmission cycle 2, the value of the second preset field of the request message B and the response message b is the same. It should be understood that the value of the second preset field of the request message A in transmission cycle 1 and the response message a in transmission cycle 2 is different.
[0070] Optionally, each message is further configured with a third preset field, and the value of the third preset field is used to indicate that the message is a request message or a response message. Exemplarily, the value of the third preset field can be 001 or 002. Among them, 001 is used to indicate that the message is a request message. 002 is used to indicate that the message is a response message.
[0071] It should be noted that the first device and the second device provided in the embodiment of the present application may also communicate through other communication protocols, and the embodiment of the present application does not impose any particular limitation on this.
[0072] S202. Determine monitoring indicators according to multiple messages transmitted in multiple transmission cycles.
[0073] Specifically, the monitoring indicator includes at least one of a transmission period, a number of requests within a preset time period, a number of responses within a preset time period, and a request-response delay.
[0074] Among them, the transmission cycle is the length of one transmission cycle among multiple transmission cycles for transmitting messages between the first device and the second device, the number of requests within the preset time period is the number of request messages within one transmission cycle among multiple transmission cycles for transmitting messages between the first device and the second device, the number of responses within the preset time period is the number of response messages within one transmission cycle among multiple transmission cycles for transmitting messages between the first device and the second device, and the request-response delay is the time interval between a request message sent by the first device and a response message sent by the second device in response to the request message.
[0075] It should be understood that the preset time period is a time period including at least two transmission cycles. The user can set the specific duration of the preset time period according to the use scenario requirements, and the embodiment of the present application does not specifically limit the specific duration of the preset time period.
[0076] In some embodiments, see Figure 4 In the case where the monitoring indicator includes the transmission period, the above S202 specifically includes the following steps:
[0077] S410: Determine a first request message from multiple messages.
[0078] The first request message is any request message in the i-th transmission cycle, and i is a positive integer.
[0079] It can be understood that the request message can be sent from the first device to the second device, or from the second device to the first device, and there is no special limitation here.
[0080] S420: Determine a second request message based on a feature identifier of the first request message.
[0081] The second request message is located in the (i+1)th transmission cycle, and the second request message matches the characteristic identifier of the first request message.
[0082] Exemplarily, when multiple messages are transmitted between a first device and a second device based on the modbus protocol, a request message whose characteristic identifier value is the same as the characteristic identifier value of the first request message in the (i+1)th transmission cycle is determined as the second request message.
[0083] Exemplarily, when multiple messages are transmitted between a first device and a second device based on the S7 communication protocol, a request message whose feature identifier value is equal to the sum of the feature identifier value of the first request message and the feature quantity in the i+1th transmission cycle is determined as the second request message.
[0084] S430: Determine a time interval between sending the first request message and the second request message as a transmission period.
[0085] The method provided in the embodiment of the present application can determine the transmission period of the first device according to the first request message and the second request message by respectively determining the first request message and the second request message in two adjacent transmission periods.
[0086] In other embodiments, see Figure 5 In the case where the monitoring indicators include the number of requests within a preset time period and the number of responses within a preset time period, the above S202 specifically includes the following steps:
[0087] S501: Determine the number of request messages in a preset time period among a plurality of messages as the number of requests in the preset time period.
[0088] S502: Determine the number of response messages in a preset time period among the multiple messages as the number of responses in the preset time period.
[0089] In some other embodiments, see Figure 6 In the case where the monitoring indicator includes the request response delay, the above S202 specifically includes the following steps:
[0090] S601. Determine a plurality of message pairs according to a value of a second preset field of each message.
[0091] Specifically, a plurality of message pairs are included in one transmission cycle. In other words, each request message and each corresponding response message of the request message are a message pair.
[0092] S602: Determine a first request message and a first response message based on the message pair.
[0093] Specifically, the first request message is a request message in any one of the multiple message pairs mentioned above, and the first response message is a response message sent in response to the first request message.
[0094] In a possible implementation, according to the transmission time of each message in the message pair, the message with an earlier transmission time is determined as the first request message, and the message with a later transmission time is determined as the first response message corresponding to the request message.
[0095] In another possible implementation manner, the first request message and the first response message are determined according to a value of a third preset field of each message in the message pair.
[0096] S603: Determine the time interval between sending the first request message and the first response message as the request-response delay.
[0097] The method provided in the embodiment of the present application determines the first request message and the first response message in the same message pair, and can determine the request-response delay of the first device according to the first request message and the first response message.
[0098] S203: Determine the operation and maintenance result of the first device according to the monitoring index.
[0099] Specifically, the operation and maintenance results include normal operation or abnormal operation. In the normal operation of the first device, the transmission cycle, the transmission cycle, the number of requests within the preset time period, the number of responses within the preset time period, and the request-response delay of the first device are all configured with preset intervals. When the values of the transmission cycle, the transmission cycle, the number of requests within the preset time period, the number of responses within the preset time period, and the request-response delay of the first device are within the preset interval, the first device operates normally. When the values of the transmission cycle, the transmission cycle, the number of requests within the preset time period, the number of responses within the preset time period, and the request-response delay of the first device are outside the preset interval, the first device operates abnormally.
[0100] In a possible implementation, the above S203 specifically includes the following steps:
[0101] In at least one of the following situations: the transmission period is greater than a first threshold, the number of requests within a preset time period is less than a second threshold, the number of responses within a preset time period is less than a third threshold, and the request-response delay is greater than a fourth threshold, determining that the operation and maintenance result of the first device is abnormal operation;
[0102] In at least one of the following cases: the transmission period is less than or equal to the first threshold, the number of requests within the preset time period is greater than or equal to the second threshold, the number of responses within the preset time period is greater than or equal to the third threshold, and the request-response delay is less than or equal to the fourth threshold, the operation and maintenance result of the first device is determined to be normal.
[0103] In one example, the first threshold is 10 seconds and the transmission period is 20 seconds. Since the transmission period is greater than the first threshold, it is determined that the operation and maintenance result of the first device is abnormal operation.
[0104] In another example, the third threshold is 5, and the number of responses within the preset time period is 6. If the value is greater than the third threshold, it is determined that the operation and maintenance result of the first device is normal.
[0105] Optionally, in at least one of the following cases: the transmission cycle is greater than a first threshold, the number of requests within a preset time period is less than a second threshold, the number of responses within a preset time period is less than a third threshold, and the request-response delay is greater than a fourth threshold, the operation and maintenance results also include an abnormal transmission cycle, an abnormal number of requests within a preset time period, an abnormal number of responses within a preset time period, or an abnormal request-response delay.
[0106] It can be seen from S201-S203 that the method provided in the embodiment of the present application obtains monitoring indicators by monitoring multiple messages transmitted in multiple transmission cycles between the first device and the second device within a preset time period, and then can automatically implement network operation and maintenance of the devices based on the multiple monitoring indicators. Compared with the method of performing network operation and maintenance of devices in the related art by manual monitoring, the method provided in the embodiment of the present application can improve the efficiency of network operation and maintenance, and improve the accuracy of network operation and maintenance.
[0107] In a possible implementation, the method further includes the following steps:
[0108] A first interface is displayed, where the first interface includes operation and maintenance results of the first device.
[0109] For example, see Figure 7 , Figure 7 A schematic diagram of a first interface provided in an embodiment of the present application, on which operation and maintenance results of a first device are displayed.
[0110] The method provided in the embodiment of the present application can enable the user to quickly understand the operation and maintenance results of the first device through the first interface by displaying the operation and maintenance results on the first interface, thereby improving the user's usage experience.
[0111] Furthermore, the first interface also includes monitoring indicators.
[0112] For example, see Figure 8 , Figure 8A schematic diagram of a first interface provided in an embodiment of the present application, wherein the first interface displays monitoring indicators and operation and maintenance results of the first device, wherein the first interface also displays the operation and maintenance results corresponding to each monitoring indicator. For example, in the case of an abnormal transmission cycle, the position corresponding to the transmission cycle is displayed as abnormal. Otherwise, it is displayed as normal.
[0113] The method provided in the embodiment of the present application can facilitate users to quickly identify abnormal monitoring indicators through the first interface by displaying the operation and maintenance results corresponding to each monitoring indicator on the first interface, and then make adjustments, thereby improving operation and maintenance efficiency and enhancing user experience.
[0114] Optionally, the above method further comprises the following steps:
[0115] Determine and display on the first interface the maximum value, average value, number of abnormalities in the transmission cycle, number of times the transmission cycle meets the standard, and at least one of the maximum value, average value, number of abnormalities in the request response delay, and number of times the request response delay meets the standard for each request message in the preset time period.
[0116] The method provided in the embodiment of the present application enables the user to quickly understand the operation and maintenance status of the current device through the first interface, thereby improving the user's usage experience. The method provides a method for displaying on the first interface the maximum value, average value, number of abnormalities in the transmission cycle, number of standard-compliant transmission cycles in the transmission cycle corresponding to each request message in the preset time period, the maximum value, average value, number of abnormalities in the request response delay, and at least one item of the standard-compliant request response delay in the request response delay corresponding to each request message in the preset time period.
[0117] It is understandable that, in order to realize the above functions, the network operation and maintenance device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the algorithm steps of each example described in the embodiments of the present application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0118] The embodiment of the present application can divide the network operation and maintenance device into functional modules according to the above method embodiment. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one functional module. The above integrated module can be implemented in the form of hardware or software. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. The following is an example of dividing each functional module corresponding to each function.
[0119] Fig. 9 Schematic diagram of the structure of a network operation and maintenance device provided in an embodiment of the present application. The network operation and maintenance device can execute the network operation and maintenance method provided in the above method embodiment. Fig. 9 As shown, the network operation and maintenance device includes a monitoring module 910 and a determination module 920; the monitoring module 910 is used to monitor multiple messages transmitted in multiple transmission cycles between a first device and a second device within a preset time period to obtain monitoring indicators, where the message is a request message or a response message; the first preset field of each message is configured with a feature identifier, which is used to indicate the function of the message, and the feature identifiers of messages with the same function in adjacent transmission cycles are matched; the determination module 920 is used to determine the operation and maintenance results of the first device based on the monitoring indicators.
[0120] Optionally, adjacent transmission cycles include the i-th transmission cycle and the i+1-th transmission cycle, where i is a positive integer; the feature identifiers of messages with the same function in adjacent transmission cycles match, including: the value of the feature identifier of the first request message in the i-th transmission cycle is the same as the value of the feature identifier of the second request message in the i+1-th transmission cycle; or, the value of the feature identifier of the second request message in the i+1-th transmission cycle is determined based on the value of the feature identifier of the first request message in the i-th transmission cycle and the number of features. The number of features is the number of messages included in one transmission cycle; and the first request message and the second request message have the same function.
[0121] Optionally, the determination module 920 is also used to determine a message pair based on the value of the second preset field of each message; the message pair includes two messages with the same value of the second preset field; and is used to determine, based on the transmission time of each message in the message pair, a message with an earlier transmission time as a request message, and a message with a later transmission time as a response message corresponding to the request message; or, based on the value of the third preset field of each message in the message pair, determine the request message and response message included in the message pair, and the value of the third preset field of the message is used to indicate that the message is a request message or a response message.
[0122] Optionally, the monitoring indicator includes at least one of a transmission period, a number of requests within a preset time period, a number of responses within a preset time period, and a request-response delay.
[0123] Optionally, when the monitoring indicator includes a transmission cycle, the monitoring module 910 is specifically used to: determine a first request message from multiple messages; wherein the first request message is located within the i-th transmission cycle, and i is a positive integer; based on the characteristic identifier of the first request message, determine a second request message, wherein the second request message is located within the i+1-th transmission cycle, and the second request message matches the characteristic identifier of the first request message; determine the time interval between sending the first request message and the second request message as the transmission cycle.
[0124] Optionally, when the monitoring indicators include the number of requests within a preset time period and the number of responses within a preset time period, the monitoring module 910 is specifically used to: determine the number of request messages within the preset time period among multiple messages as the number of requests within the preset time period; determine the number of response messages within the preset time period among multiple messages as the number of responses within the preset time period.
[0125] Optionally, when the monitoring indicator includes the request response delay, the monitoring module 910 is specifically used to: determine the first request message and the first response message based on the message pair, wherein the first response message is a message used to respond to the first request message. The time interval between sending the first request message and the first response message is determined as the request response delay.
[0126] Optionally, the operation and maintenance result includes normal operation or abnormal operation; the determination module 920 is specifically used to: determine that the operation and maintenance result of the first device is abnormal operation when at least one of the transmission cycle is greater than a first threshold, the number of requests within a preset time period is less than a second threshold, the number of responses within the preset time period is less than a third threshold, and the request-response delay is greater than a fourth threshold; determine that the operation and maintenance result of the first device is normal operation when at least one of the transmission cycle is less than or equal to the first threshold, the number of requests within the preset time period is greater than or equal to the second threshold, the number of responses within the preset time period is greater than or equal to the third threshold, and the request-response delay is less than or equal to the fourth threshold.
[0127] Optionally, the above-mentioned device also includes a display module 930, which is used to display the operation and maintenance results of the first device on the first interface.
[0128] Optionally, the determination module 920 is further used to determine at least one of the maximum value, average value, number of abnormalities in the transmission cycle, number of times the transmission cycle reaches the standard, and the maximum value, average value, number of abnormalities in the request response delay, and number of times the request response delay reaches the standard in the transmission cycle corresponding to each request message within the preset time period. The display module 930 is also used to display at least one of the maximum value, average value, number of abnormalities in the transmission cycle, number of times the transmission cycle reaches the standard, and the maximum value, average value, number of abnormalities in the request response delay, and number of times the request response delay reaches the standard in the transmission cycle corresponding to each request message within the preset time period.
[0129] Optionally, the first device and the second device transmit multiple messages based on the modbus protocol or the S7 communication protocol.
[0130] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the embodiment of the present application provides another possible structure of the network operation and maintenance device involved in the above-mentioned embodiment. Fig.10 As shown, the network operation and maintenance device 40 includes: a processor 402 and a bus 404. Optionally, the network operation and maintenance device may further include a memory 401; optionally, the network operation and maintenance device may further include a communication interface 403.
[0131] Processor 402 may be a processor that implements or executes various exemplary logic blocks, modules, and circuits described in conjunction with the embodiments of the present application. The processor 402 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the embodiments of the present application. The processor 402 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0132] The communication interface 403 is used to connect with other devices via a communication network, such as Ethernet, wireless access network, wireless local area network (WLAN), etc.
[0133] The memory 401 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0134] As a possible implementation, the memory 401 may exist independently of the processor 402, and the memory 401 may be connected to the processor 402 via a bus 404 for storing instructions or program codes. When the processor 402 calls and executes the instructions or program codes stored in the memory 401, the network operation and maintenance method provided in the embodiment of the present application can be implemented.
[0135] In another possible implementation, the memory 401 may also be integrated with the processor 402 .
[0136] The bus 404 may be an extended industry standard architecture (EISA) bus, etc. The bus 404 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.10 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0137] Some embodiments of the present application provide a computer-readable storage medium (e.g., a non-transitory computer-readable storage medium), which stores computer program instructions. When the computer program instructions are executed on a computer, the computer executes a network operation and maintenance method as described in any of the above embodiments.
[0138] Exemplarily, the above-mentioned computer-readable storage media may include, but are not limited to: magnetic storage devices (e.g., hard disks, floppy disks or magnetic tapes, etc.), optical disks (e.g., compact disks (CD), digital versatile disks (DVD), etc.), smart cards and flash memory devices (e.g., erasable programmable read-only memory (EPROM), cards, sticks or key drives, etc.). The various computer-readable storage media described in this application may represent one or more devices and / or other machine-readable storage media for storing information. The term "machine-readable storage medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing and / or carrying instructions and / or data.
[0139] An embodiment of the present application provides a computer program product including instructions. When the computer program product is run on a computer, the computer is enabled to execute the network operation and maintenance method described in any one of the above embodiments.
[0140] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A network operation and maintenance method, characterized in that: The method comprises: Monitor multiple messages transmitted in multiple transmission cycles between a first device and a second device within a preset time period to obtain monitoring indicators, where the message is a request message or a response message; a first preset field of each of the messages is configured with a feature identifier, where the feature identifier is used to indicate a function of the message, and feature identifiers of messages with the same function in adjacent transmission cycles are matched; An operation and maintenance result of the first device is determined according to the monitoring indicator.
2. The network operation and maintenance method according to claim 1, characterized in that: The adjacent transmission cycles include the i-th transmission cycle and the i+1-th transmission cycle, where i is a positive integer; the feature identifiers of messages with the same function in the adjacent transmission cycles are matched, including: The value of the characteristic identifier of the first request message in the i-th transmission cycle is the same as the value of the characteristic identifier of the second request message in the (i+1)-th transmission cycle; or, The value of the feature identifier of the second request message in the (i+1)th transmission cycle is determined according to the value of the feature identifier of the first request message in the (i)th transmission cycle and the feature quantity, wherein the feature quantity is the number of messages included in one transmission cycle; The first request message and the second request message have the same function.
3. The network operation and maintenance method according to claim 1 or 2, characterized in that: The method further comprises: Determine a message pair according to the value of the second preset field of each of the messages; the message pair includes two messages having the same value of the second preset field; According to the transmission time of each message in the message pair, the message with an earlier transmission time is determined as the request message, and the message with a later transmission time is determined as the response message corresponding to the request message; or, according to the value of the third preset field of each message in the message pair, the request message and response message included in the message pair are determined, and the value of the third preset field of the message is used to indicate that the message is a request message or a response message.
4. The network operation and maintenance method according to claim 3, characterized in that: The monitoring indicator includes at least one of the transmission period, the number of requests within the preset time period, the number of responses within the preset time period, and the request-response delay.
5. The network operation and maintenance method according to claim 4, characterized in that: In the case where the monitoring indicator includes the transmission period, the monitoring indicator is obtained by monitoring multiple messages transmitted in multiple transmission periods between the first device and the second device within the preset time period, including: Determine a first request message from the multiple messages; wherein the first request message is located in the i-th transmission cycle, and i is a positive integer; Determine a second request message based on a characteristic identifier of the first request message, wherein the second request message is located in the (i+1)th transmission cycle, and the second request message matches the characteristic identifier of the first request message; The time interval between sending the first request message and the second request message is determined as the transmission period.
6. The network operation and maintenance method according to claim 4, characterized in that: In a case where the monitoring indicator includes the number of requests within the preset time period and the number of responses within the preset time period, the monitoring of multiple messages transmitted in multiple transmission cycles between the first device and the second device within the preset time period to obtain the monitoring indicator includes: Determining the number of the request messages in the plurality of messages within a preset time period as the number of requests within the preset time period; The number of the response messages in the plurality of messages within a preset time period is determined as the number of responses within the preset time period.
7. The network operation and maintenance method according to claim 4, characterized in that: In the case where the monitoring indicator includes the request response delay, the monitoring indicator is obtained by monitoring multiple messages transmitted in multiple transmission cycles between the first device and the second device within the preset time period, including: Based on the message pair, determining a first request message and a first response message, wherein the first response message is a message used to respond to the first request message; A time interval between sending the first request message and sending the first response message is determined as the request-response delay.
8. The network operation and maintenance method according to any one of claims 2 to 7, characterized in that: The operation and maintenance results include normal operation or abnormal operation; The determining the operation and maintenance result of the first device according to the monitoring indicator includes: In at least one of the following situations: the transmission period is greater than a first threshold, the number of requests within the preset time period is less than a second threshold, the number of responses within the preset time period is less than a third threshold, and the request-response delay is greater than a fourth threshold, determining that the operation and maintenance result of the first device is abnormal operation; In at least one of the following cases: the transmission period is less than or equal to a first threshold, the number of requests within the preset time period is greater than or equal to a second threshold, the number of responses within the preset time period is greater than or equal to a third threshold, and the request-response delay is less than or equal to a fourth threshold, the operation and maintenance result of the first device is determined to be normal.
9. The network operation and maintenance method according to claim 1, characterized in that: The method further comprises: The operation and maintenance results of the first device are displayed on the first interface.
10. The network operation and maintenance method according to claim 1, characterized in that: The method further comprises: Determine and display on the first interface the maximum value, average value, number of abnormalities in the transmission cycle, number of times the transmission cycle meets the standard, and at least one of the maximum value, average value, number of abnormalities in the request response delay, and number of times the request response delay meets the standard for each request message in the preset time period.
11. The network operation and maintenance method according to claim 1, characterized in that: The plurality of messages are transmitted between the first device and the second device based on the modbus protocol or the S7 communication protocol.
12. A network operation and maintenance device, characterized in that: The network operation and maintenance device includes a memory and one or more processors; the memory is coupled to the processor; wherein computer program code is stored in the memory, and the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the computing device executes the method described in any one of claims 1-11.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer can execute the method according to any one of claims 1 to 11.
