Network operations and maintenance method and apparatus, 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, it solves the problems of low efficiency and poor accuracy in automated equipment operation and maintenance, and achieves efficient and accurate network operation and maintenance.
Patent Information
- Application Number
- PCT/CN2024/087052
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-28
- Filing Date
- 2024-04-10
- Publication Date
- 2024-10-31
AI Technical Summary
In the existing technology, equipment automation operation and maintenance efficiency is low and accuracy is poor, mainly due to reliance on manual monitoring, resulting in low operation and maintenance efficiency and low accuracy.
By monitoring the request messages and response messages in multiple transmission cycles between the first device and the second device within the preset time period, using feature identification matching and message pairs to determine monitoring indicators, and automatically determine the equipment operation and maintenance results, including normal operation Or the operation is abnormal, and detailed operation and maintenance information is displayed on the interface.
It improves the efficiency and accuracy of network operation and maintenance, reduces the reliance on manual monitoring, improves the efficiency and accuracy of operation and maintenance, and can quickly understand the device status and make adjustments.
Smart Images

Figure CN2024087052_31102024_PF_FP_ABST
Abstract
Description
Network operation and maintenance method and device, and computer-readable storage medium
[0001] This disclosure claims priority to Chinese patent application No. 202310487744.X, filed on April 28, 2023, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present disclosure relates to the field of network operation and maintenance technology, and in particular to a network operation and maintenance method and device, and a computer-readable storage medium. Background Art
[0003] With the continuous development of communication technology, equipment automation technology is becoming increasingly mature. During the automated operation of equipment, the network of the equipment needs to be operated and maintained to ensure the normal operation of the equipment.
[0004] Summary of the Invention
[0005] In a first aspect, embodiments of the present disclosure provide a network operation and maintenance method. The network operation and maintenance method includes: monitoring multiple messages transmitted between a first device and a second device within multiple transmission cycles within a preset time period to obtain monitoring indicators, where the messages are request messages or response messages. A first preset field of each message is configured with a feature identifier that indicates the function of the message, and the feature identifiers of messages with the same function within adjacent transmission cycles match. An operation and maintenance result for the first device is determined based on the monitoring indicators.
[0006] In an 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; the characteristic identifiers of messages with the same function in 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 characteristic identifier of the second request message in the i+1-th transmission cycle is determined based on the value of the characteristic identifier of the first request message in the i-th transmission cycle and the number of characteristics, and the number of characteristics is the number of messages included in one transmission cycle; the first request message and the second request message have the same function.
[0007] In an implementation of the first aspect, the network operation and maintenance method also 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; based on the transmission time of each message in the message pair, determining the message with an earlier transmission time as the request message, and determining the message with a later transmission time as the response message corresponding to the request message; or, based on the value of the third preset field of each message in the message pair, determining 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.
[0008] In an 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.
[0009] In an implementation of the first aspect, when the monitoring indicator includes a transmission cycle, multiple messages transmitted between the first device and the second device in multiple transmission cycles within a preset time period are monitored to obtain monitoring indicators, including: determining a first request message from multiple messages; the first request message is located in the i-th transmission cycle, i is a positive integer; based on the characteristic identifier of the first request message, determining a second request message, 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.
[0010] In an implementation of the first 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, multiple messages transmitted between a first device and a second device in multiple transmission cycles 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; and 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.
[0011] In one implementation of the first aspect, when a monitoring indicator includes a request-response latency, monitoring multiple messages transmitted between a first device and a second device within multiple transmission cycles within a preset time period to obtain the monitoring indicator includes: determining, based on a message pair, a first request message and a first response message, where the first response message is a message used to respond to the first request message; and determining a time interval between sending the first request message and the first response message as the request-response latency.
[0012] In an 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: in at least one of the following circumstances: 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, the operation and maintenance result of the first device is determined to be abnormal operation; in at least one of the following circumstances: 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 operation.
[0013] In an implementation manner of the first aspect, the network operation and maintenance method further includes: displaying an operation and maintenance result of the first device on the first interface.
[0014] In an implementation of the first aspect, the network operation and maintenance method also includes: determining and displaying on the first interface at least one of the maximum value, average value, number of abnormalities in the transmission cycle, number of times the transmission cycle meets the standard, and 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.
[0015] In an implementation of the first aspect, multiple messages are transmitted between the first device and the second device based on the Modbus protocol or the S7 communication protocol.
[0016] In a second aspect, embodiments of the present disclosure provide a network operation and maintenance device. The network operation and maintenance device includes: a monitoring module configured to monitor multiple messages transmitted between a first device and a second device within multiple transmission cycles within a preset time period to obtain monitoring indicators, where the messages are request messages or response messages; a first preset field of each message is configured with a feature identifier, which indicates the function of the message, and the feature identifiers of messages with the same function within adjacent transmission cycles match; and a determination module configured to determine the operation and maintenance results of the first device based on the monitoring indicators.
[0017] In an 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; the characteristic identifiers of messages with the same function in 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 characteristic identifier of the second request message in the i+1-th transmission cycle is determined based on the value of the characteristic identifier of the first request message in the i-th transmission cycle and the number of characteristics, and the number of characteristics is the number of messages included in one transmission cycle; the first request message and the second request message have the same function.
[0018] In one 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, the message with an earlier transmission time as the request message, and the message with a later transmission time as the 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.
[0019] In an 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.
[0020] In an implementation of the second aspect, when the monitoring indicators include a transmission cycle, the monitoring module is used to: determine a first request message from multiple messages; the first request message is located within the i-th transmission cycle, where i is a positive integer; based on a characteristic identifier of the first request message, determine a second request message, 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.
[0021] In an 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 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.
[0022] In one implementation of the second aspect, when the monitoring indicator includes request-response latency, the monitoring module is configured to: determine, based on the message pair, a first request message and a first response message, where the first response message is a message used to respond to the first request message; and determine a time interval between sending the first request message and the first response message as the request-response latency.
[0023] In an implementation of the second aspect, the operation and maintenance result includes normal operation or abnormal operation; the determination module is used to: determine that the operation and maintenance result of the first device is abnormal operation when at least one of 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; determine that the operation and maintenance result of the first device is normal operation when at least one of 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.
[0024] In an implementation of the second aspect, the network operation and maintenance apparatus further includes a display module configured to display an operation and maintenance result of the first device on the first interface.
[0025] In one implementation of the second aspect, the determination module is further configured to determine at least one of the following: a maximum value, an average value, a number of abnormalities in the transmission cycle, a number of times the transmission cycle meets the standard, in a transmission cycle corresponding to each request message within a preset time period; 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, in a request response delay corresponding to each request message within the preset time period. The display module is further configured to display at least one of the following: a maximum value, an average value, a number of abnormalities in the transmission cycle, a number of times the transmission cycle meets the standard, in a transmission cycle corresponding to each request message within the preset time period; 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, in a request response delay corresponding to each request message within the preset time period.
[0026] In an implementation manner of the second aspect, multiple messages are transmitted between the first device and the second device based on the Modbus protocol or the S7 communication protocol.
[0027] In a third aspect, embodiments of the present disclosure provide a network operation and maintenance device comprising: a memory and a processor coupled to the memory; the memory storing a computer program; and the processor implementing any of the aforementioned network operation and maintenance methods when executing the computer program.
[0028] In a fourth aspect, embodiments of the present disclosure provide a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the network operation and maintenance method of any of the above embodiments.
[0029] In a fifth aspect, embodiments of the present disclosure provide a computer program product, which includes computer program instructions that, when executed by a processor, implement the network operation and maintenance method of any of the above embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] To more clearly illustrate the technical solutions of the present disclosure, the following briefly introduces the drawings required for use in some embodiments of the present disclosure. Obviously, the drawings described below are only drawings of some embodiments of the present disclosure, and those skilled in the art can also derive other drawings based on these drawings.
[0031] FIG1 is a diagram showing an application scenario of a network operation and maintenance device according to some embodiments.
[0032] FIG2 is a flow chart of a network operation and maintenance method according to some embodiments.
[0033] FIG3A is a diagram illustrating an interaction between a first device and a second device according to some embodiments.
[0034] FIG3B is another diagram illustrating interaction between a first device and a second device according to some embodiments.
[0035] FIG3C is a diagram illustrating another interaction between a first device and a second device according to some embodiments.
[0036] FIG4 is a flowchart of another network operation and maintenance method according to some embodiments.
[0037] FIG5 is a flowchart of another network operation and maintenance method according to some embodiments.
[0038] FIG6 is a flowchart of another network operation and maintenance method according to some embodiments.
[0039] FIG7 is a schematic diagram of a first interface according to some embodiments.
[0040] FIG8 is a schematic diagram of another first interface according to some embodiments.
[0041] FIG9 is a structural block diagram of a network operation and maintenance device according to some embodiments.
[0042] FIG10 is a structural block diagram of another network operation and maintenance device according to some embodiments. DETAILED DESCRIPTION
[0043] The following will clearly and completely describe the technical solutions of this disclosure in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of this disclosure, not all of them. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.
[0044] It should be noted that in this disclosure, expressions such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described in this disclosure as "exemplarily" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of expressions such as "exemplarily" or "for example" is intended to present the relevant concepts in a detailed manner.
[0045] In the following, the terms "first," "second," etc. are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of technical features indicated. Therefore, a feature specified as "first," "second," etc. may explicitly or implicitly include one or more of the features.
[0046] In the description of this disclosure, unless otherwise specified, " / " means "or". For example, A / B can mean A or B. "And / or" in this document is simply a description of the association relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: only A, only B, and A and B. In addition, "at least one" means one or more, and "a plurality" means two or more.
[0047] With the continuous development of communication technology, equipment automation technology is also becoming increasingly mature. During the automated operation of equipment, equipment operation and maintenance are required to ensure its normal operation. In some technologies, equipment operation and maintenance are usually achieved through manual monitoring, which leads to low efficiency and poor accuracy.
[0048] In view of this, an embodiment of the present disclosure provides a network operation and maintenance method, which obtains monitoring indicators by monitoring multiple request messages and response messages transmitted between a first device and a second device in multiple transmission cycles 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 devices in some technologies, the method provided by the embodiment of the present disclosure can improve network operation and maintenance efficiency and improve the accuracy of network operation and maintenance.
[0049] The embodiment of the present disclosure provides a network operation and maintenance device for executing the network operation and maintenance method provided by the embodiment of the present disclosure. Referring to Figure 1, Figure 1 shows an application scenario diagram of a network operation and maintenance device provided by the embodiment of the present disclosure. The network operation and maintenance device 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 in response to the request message sent by the first device 110, the second device 120 sends a response message. 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 capabilities, 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 capabilities, or a functional module in the computing device.
[0051] As an example, the network operation and maintenance apparatus 100 may be a computing device installed in a base station, and the first device 110 and the second device 120 may be terminal devices or servers that transmit messages 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 embodiments of the present disclosure do not limit the implementation of the network operation and maintenance apparatus 100, the first device 110, and the second device 120.
[0052] Furthermore, the first device 110 may be a terminal device configured with a programmable logic controller (PLC) (hereinafter referred to as a PLC device), and the second device 120 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 is a flow chart of a network operation and maintenance method provided by an embodiment of the present disclosure. As shown in Figure 2, the method can be executed by the network operation and maintenance device 100 shown in Figure 1. The method can include the following steps.
[0055] S201: Monitor multiple messages transmitted between a first device and a second device in multiple transmission cycles within a preset time period.
[0056] For example, the multiple messages transmitted during multiple transmission cycles monitored by the computing device may be request messages or response messages sent in response to request messages. Furthermore, the request messages or response messages sent by the first device and the second device during each transmission cycle of the multiple transmission cycles are identical. "Identical" means that the request messages and response messages sent by the first device and the second device during any two transmission cycles are identical in type, function, and order.
[0057] For example, referring to FIG3A , FIG3A is a schematic diagram of message transmission between a first device and a second device provided in an embodiment of the present disclosure, including messages transmitted by the first device and the second device in two transmission cycles. In transmission cycle 1, the first device 110 sends two request messages, namely, request message A and request message B, to the second device 120 in sequence. Request message A and request message B are request messages of different types. And the first device 110 receives response message a and response message b returned by the second device 120. In transmission cycle 2, the first device 110 still sends two request messages, namely, request message A and request message B, to the second device 120 in sequence. And the first device 110 receives response message a and response message b returned by the second device 120.
[0058] In one implementation, multiple messages are transmitted between the first device and the second device in the form of data messages based on the Modbus protocol or the S7 communication protocol.
[0059] It should be understood that the method provided in the present disclosure 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 description will be made using Modbus and S7communication protocols as examples.
[0060] Each message includes multiple preset fields. 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.
[0061] For example, adjacent transmission cycles are the i-th transmission cycle and the (i+1)-th transmission cycle in the plurality of transmission cycles, where i is a positive integer.
[0062] Exemplarily, transmission cycle 1 and transmission cycle 2 are adjacent transmission cycles. Request message A in transmission cycle 1 and request message A in transmission cycle 2 have the same function. Request message B in transmission cycle 1 and request message B in transmission cycle 2 also have the same function. Therefore, the signature identifiers of request message A in transmission cycle 1 and request message A in transmission cycle 2 match. The signature identifiers of request message B in transmission cycle 1 and request message B in transmission cycle 2 also 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 characteristic identifiers of messages with the same function in adjacent transmission cycles can be understood as having the same value of the characteristic identifier.
[0064] For example, in conjunction with Figure 3A, see Figure 3B, which is a schematic diagram of the transmission of multiple messages between a first device and a second device based on the Modbus protocol, including multiple fields corresponding to each message. The value of the characteristic identifier of the first preset field of request message A in transmission cycle 1 is 05. The value of the characteristic identifier of the first preset field of request message A in transmission cycle 2 is 05. The value of the characteristic identifier of the first preset field of request message B in transmission cycle 1 is 07. The value of the characteristic identifier of the first preset field of request message B in 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 a request message with the same function as the request message in the (i)th transmission cycle and the feature quantity. The feature quantity is the number of messages included in one transmission cycle.
[0066] In some embodiments, 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 the request message with the same function as the request message in the i-th transmission cycle and the number of features.
[0067] For example, in conjunction with Figure 3A , refer to Figure 3C , which is a schematic diagram illustrating the transmission of multiple messages between a first device and a second device based on the S7 communication protocol, including multiple fields corresponding to each message. The value of the feature identifier in the first preset field of request message A in transmission cycle 1 is 05. The number of messages included in a transmission cycle between the first and second devices is 4, which means the number of features is 4. The value of the feature identifier in the first preset field of request message A in transmission cycle 2 is the sum of 05 and 4, which equals 09.
[0068] Furthermore, each message is configured with a second preset field. Within the same transmission cycle, the value of the second preset field in 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 in 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] For example, with reference to Figures 3B and 3C , in transmission cycle 1, the value of the second preset field of request message A and response message a is the same. In transmission cycle 2, the value of the second preset field of request message B and response message b is the same. It should be understood that the value of the second preset field of request message A in transmission cycle 1 and response message a in transmission cycle 2 is different.
[0070] In some embodiments, each message is further configured with a third preset field, the value of which is used to indicate whether the message is a request message or a response message. For example, the value of the third preset field can be 001 or 002. 001 is used to indicate that the message is a request message, and 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 disclosure may also communicate through other communication protocols, and the embodiment of the present disclosure does not impose any special restrictions on this.
[0072] S202: Determine monitoring indicators based on multiple messages transmitted in multiple transmission cycles.
[0073] For example, 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] The transmission cycle is the duration 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; 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 length of the preset time period according to the use scenario requirements, and the embodiment of the present disclosure does not limit the length of the preset time period.
[0076] In some embodiments, referring to FIG. 4 , when the monitoring indicator includes a transmission period, the above S202 , for example, includes the following steps.
[0077] S410: Determine a first request message from multiple messages.
[0078] The first request message is any request message located in the i-th transmission cycle, where i is a positive integer.
[0079] It is understandable that the request message may be sent from the first device to the second device, or from the second device to the first device, and there is no particular limitation here.
[0080] S420: Determine a second request message based on the characteristic 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 in the (i+1)th transmission cycle and having a characteristic identifier value identical to that of the first request message 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 within the i+1th transmission cycle and whose feature identifier value is equal to the sum of the feature identifier value and the feature quantity of the first request message is determined as the second request message.
[0084] S430: Determine the time interval between sending the first request message and the second request message as a transmission period.
[0085] The method provided by the embodiment of the present disclosure 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 another embodiment, referring to FIG. 5 , 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 above S202 , for example, includes the following steps.
[0087] S501: Determine the number of request messages in a preset time period among multiple 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 another embodiment, referring to FIG. 6 , when the monitoring indicator includes the request response delay, the above S202 , for example, includes the following steps.
[0090] S601: Determine multiple message pairs according to the value of the second preset field of each message.
[0091] For example, a transmission cycle includes multiple message pairs. In other words, each request message and each corresponding response message constitutes a message pair.
[0092] S602: Determine a first request message and a first response message based on the message pair.
[0093] For example, 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 one implementation, based on 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 implementation, the first request message and the first response message are determined according to the value of the 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 by the embodiment of the present disclosure can determine the request-response delay of the first device according to the first request message and the first response message by determining the first request message and the first response message in the same message pair.
[0098] S203: Determine the operation and maintenance result of the first device according to the monitoring indicators.
[0099] For example, the operation and maintenance results include normal operation or abnormal operation. During normal operation of the first device, the transmission cycle, transmission cycle, number of requests within a preset time period, number of responses within a preset time period, and request-response delay of the first device are all configured with preset intervals. When the values of the transmission cycle, transmission cycle, number of requests within a preset time period, number of responses within a preset time period, and request-response delay of the first device are within the preset intervals, the first device is operating normally. When the values of the transmission cycle, transmission cycle, number of requests within a preset time period, number of responses within a preset time period, and request-response delay of the first device are outside the preset intervals, the first device is operating abnormally.
[0100] In one implementation, the above S203, for example, includes the following steps.
[0101] Determining that the operation and maintenance result of the first device is abnormal operation if at least one of the following conditions occurs: 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;
[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 number of responses within the preset time period is greater than the third threshold, it is determined that the operation and maintenance result of the first device is normal.
[0105] In some embodiments, in at least one of the following situations: 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 to S203 that the method provided by the embodiment of the present disclosure 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 through manual monitoring adopted in some technologies, the method provided by the embodiment of the present disclosure can improve the efficiency of network operation and maintenance, and improve the accuracy of network operation and maintenance.
[0107] In one implementation, the above network operation and maintenance 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] Exemplarily, as shown in FIG7 , FIG7 is a schematic diagram of a first interface provided by an embodiment of the present disclosure, on which operation and maintenance results of the first device are displayed.
[0110] The method provided by the embodiment of the present disclosure enables 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, as shown in Figure 8, which is a schematic diagram of another first interface provided by an embodiment of the present disclosure, the first interface displays monitoring indicators and operation and maintenance results of the first device. The first interface also displays the operation and maintenance results corresponding to each monitoring indicator. For example, if the transmission cycle is abnormal, the position corresponding to the transmission cycle will be displayed as abnormal. If the transmission cycle is normal, the position corresponding to the transmission cycle will be displayed as normal.
[0113] The method provided by the embodiment of the present disclosure displays the operation and maintenance results corresponding to each monitoring indicator on the first interface, so that users can quickly determine the abnormal monitoring indicators through the first interface and then make adjustments, which can improve operation and maintenance efficiency and enhance the user experience.
[0114] In some embodiments, the above network operation and maintenance method further includes 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 by the embodiment of the present disclosure enables the user to quickly understand the operation and maintenance status of the current device through the first interface by displaying 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 the maximum value, average value, number of abnormalities in the request response delay, and at least one of the number of times the request response delay meets the standard for each request message within the preset time period. This improves the user's usage experience.
[0117] It is understandable that, in order to implement 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 disclosure, the present disclosure 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 disclosure.
[0118] The embodiments of the present disclosure can divide the network operation and maintenance device into functional modules according to the above-mentioned method embodiments. 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-mentioned integrated modules can be implemented in the form of hardware or software. It should be noted that the division of modules in the embodiments of the present disclosure is schematic and is only a logical functional 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] Figure 9 is a schematic diagram of the structure of a network operation and maintenance device provided by an embodiment of the present disclosure. The network operation and maintenance device can execute the network operation and maintenance method provided by the above method embodiment. As shown in Figure 9, 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 between a first device and a second device in multiple transmission cycles 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] In some embodiments, 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 within adjacent transmission cycles match, including: the value of the feature identifier of a first request message within the i-th transmission cycle is the same as the value of the feature identifier of a second request message within the i+1-th transmission cycle; or, the value of the feature identifier of the second request message within the i+1-th transmission cycle is determined by adding the value of the feature identifier of the first request message within the i-th transmission cycle and the feature quantity. The feature quantity 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] In some embodiments, 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 the message with an earlier transmission time as the request message, and the message with a later transmission time as the response message corresponding to the request message based on the transmission time of each message in the message pair; 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 whether the message is a request message or a response message.
[0122] In some embodiments, 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] In some embodiments, when the monitoring indicators include a transmission cycle, the monitoring module 910 is used to: determine a first request message from multiple messages; the first request message is located within the i-th transmission cycle, where i is a positive integer; based on the characteristic identifier of the first request message, determine a second request message, 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] In some embodiments, 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 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] In some embodiments, when the monitoring indicator includes request-response latency, the monitoring module 910 is configured to: determine, based on the message pair, a first request message and a first response message, where 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 latency.
[0126] In some embodiments, the operation and maintenance results include normal operation or abnormal operation; the determination module 920 is used to: determine that the operation and maintenance result of the first device is abnormal operation when at least one of the transmission period is greater than the first threshold, the number of requests within the preset time period is less than the second threshold, the number of responses within the preset time period is less than the third threshold, and the request-response delay is greater than the fourth threshold; determine that the operation and maintenance result of the first device is normal operation when at least one of 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.
[0127] In some embodiments, the apparatus further includes a display module 930 configured to display the operation and maintenance results of the first device on the first interface.
[0128] In some embodiments, the determination module 920 is further configured to determine at least one of the following: 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, in the transmission cycle corresponding to each request message within a preset time period; and a display module 930 is further configured to display at least one of the following: 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, in the transmission cycle corresponding to each request message within the preset time period.
[0129] In some embodiments, 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 hardware, the embodiments of the present disclosure provide an alternative structure of the network operation and maintenance device involved in the above-mentioned embodiments. As shown in Figure 10, the network operation and maintenance device 40 includes: a processor 402 and a bus 404. In some embodiments, the network operation and maintenance device 40 may also include a memory 401; in some embodiments, the network operation and maintenance device 40 may also include a communication interface 403.
[0131] Processor 402 may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the embodiments of the present disclosure. 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 device, a transistor logic device, a hardware component, or any combination thereof. Processor 402 may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the embodiments of the present disclosure. 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 to 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 type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device 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 code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0134] As an implementation, memory 401 can exist independently of processor 402. Memory 401 can be connected to processor 402 via bus 404 to store instructions or program codes. When processor 402 calls and executes the instructions or program codes stored in memory 401, the network operation and maintenance method provided in the embodiment of the present disclosure can be implemented.
[0135] In another implementation, the memory 401 may also be integrated with the processor 402 .
[0136] Bus 404 can be an Extended Industry Standard Architecture (EISA) bus, etc. Bus 404 can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, FIG10 shows only one thick line, but this does not mean that there is only one bus or only one type of bus.
[0137] Some embodiments of the present disclosure 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 (CDs), digital versatile disks (DVDs), etc.), smart cards, and flash memory devices (e.g., erasable programmable read-only memories (EPROMs), cards, sticks, or key drives, etc.). The various computer-readable storage media described in the present disclosure 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 disclosure provides a computer program product comprising 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 embodiment of the present disclosure, but the scope of protection of the present disclosure is not limited thereto. Any changes or replacements within the technical scope disclosed in the present disclosure should be included in the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure should be based on the scope of protection of the claims.
Claims
1. A network operation and maintenance method, include: 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, wherein the message is a request message or a response message; a first preset field of each of the multiple messages is configured with a feature identifier, 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, in, 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 characteristic identifier of the second request message in the (i+1)th transmission cycle is determined according to the value of the characteristic identifier of the first request message in the (i)th transmission cycle and the characteristic quantity, wherein the characteristic 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, further comprising: include: Determine a message pair according to the value of the second preset field of each message in the plurality of 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, in, 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, in, 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, in, 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, in, 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, in, 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, further comprising: include: 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, further comprising: include: 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, in, 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, comprising a memory and one or more processors; the memory is coupled to the one or more processors; in, The memory stores computer program code, which includes computer instructions. When the computer instructions are executed by the one or more processors, the computing device executes the method according to any one of claims 1 to 11.
13. A computer-readable storage medium, in, 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.
Citation Information
Patent Citations
Control apparatus and distributed control system
JP2015226215A
Method and system of preventing silent data corruption
US20090204974A1
Fail safe discovery and address assignment
WO2013147734A1
KR20190003112A
