Alarm method, device, equipment and storage medium for business message transmission

By determining the delay information between the service message transmission link and nodes, dynamically adjusting the comparison delay, and combining historical detection information and ratio thresholds, the problem of inaccurate delay information detection in the existing technology is solved, and accurate acquisition and alarm of delay anomalies are achieved.

CN119561823BActive Publication Date: 2025-09-30CHINA UNITED NETWORK COMM GRP CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311125729.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-01
Publication Date
2025-09-30
Estimated Expiration
2043-09-01

AI Technical Summary

Technical Problem

Existing service message detection methods cannot achieve high-precision delay information detection, resulting in the inability to fully capture delay anomalies.

Method used

By determining the transmission link of the service message and the delay information between adjacent nodes, dynamically adjusting and comparing the delay, and combining historical detection information and ratio thresholds, accurate acquisition and alarm of the delay can be achieved.

Benefits of technology

It achieves accurate acquisition of service message delay information, solves the problem in existing technologies that delay information cannot be fully captured, and ensures timely alarm of delay anomalies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119561823B_ABST
    Figure CN119561823B_ABST
Patent Text Reader

Abstract

An alarm method, device, equipment and storage medium for business message transmission. The method includes: determining the transmission link of the business message, the first node and the second node in the transmission link; obtaining the first current delay information of the business message transmitted from the first node to the second node in the current detection period, and the first historical detection information of the business message transmitted from the first node to the second node in the historical detection period; determining the first comparison delay corresponding to the first target delay based on the first minimum delay in the first current delay information; if the first target delay and the first comparison delay meet the preset comparison requirements, determining that the delay of the business message transmitted from the first node to the second node is abnormal; based on the delay abnormality, updating the first historical detection information to obtain the first updated historical detection information; and sending an alarm message to the user based on the first updated historical detection information. The method of the present application improves the accuracy of obtaining abnormal information on business message delay.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to communication technology, and in particular to an alarm method, device, equipment and storage medium for business message transmission. Background Art

[0002] The sampling message delay detection method and the packet-by-packet average delay detection method are detection methods that implement network performance statistics by extending relevant fields based on the original service data message.

[0003] In existing methods, when detecting service messages, a sampling message delay detection method and a packet-by-packet average delay detection method are usually adopted, that is, the message delay information within each detection cycle is sampled and detected or averaged, thereby realizing the detection of message delay information.

[0004] However, existing detection methods cannot achieve high-precision detection of service data packet delay information. Summary of the Invention

[0005] The present application provides an alarm method, device, equipment and storage medium for business message transmission, which is used to solve the problem that existing business message detection methods cannot achieve high-precision detection of business data message delay information.

[0006] In a first aspect, the present application provides an alarm method for service message transmission, the method comprising:

[0007] Determine a transmission link of the service message, and a first node and a second node in the transmission link, where the first node and the second node are adjacent nodes;

[0008] Obtaining first current delay information of service packets transmitted from the first node to the second node in a current detection period, and first historical detection information of service packets transmitted from the first node to the second node in a historical detection period, wherein the first current delay information includes a first target delay and a first minimum delay, the first target delay includes at least one of a first maximum delay and a first average delay, and the first historical detection information includes a first historical detection count and a first historical target detection count, where the first historical target detection count is the number of delay anomalies in the first historical detection count that characterize the historical detection period;

[0009] Determining, according to the first minimum delay in the first current delay information, a first comparison delay corresponding to the first target delay;

[0010] If the first target delay and the first comparison delay meet the preset comparison requirement, it is determined that the delay of the service message transmitted from the first node to the second node is abnormal;

[0011] According to the abnormal delay of the service message transmitted from the first node to the second node, the first historical detection number and the first historical target detection number are updated to obtain the first updated historical detection number and the first updated historical target detection number;

[0012] Send an alarm message to the user according to the first update history detection number and the first update history target detection number.

[0013] In an embodiment of the present application, a method for obtaining first current delay information of a service message transmitted from a first node to a second node in a current detection period includes:

[0014] Obtaining a packet-by-packet delay of a service message transmitted from a first node to a second node within a current detection period;

[0015] Determining a first target time and a first minimum delay based on the packet-by-packet delay;

[0016] First current delay information is determined according to the first target time and the first minimum delay.

[0017] In an embodiment of the present application, obtaining a packet-by-packet delay of a service message transmitted from a first node to a second node within a current detection period includes:

[0018] Determine the label information of the service message, the label information includes the label marked on the service message according to the preset marking rule within the current detection period, and the marking time of the label;

[0019] The packet-by-packet delay is determined based on the service message label and the label marking time.

[0020] In an embodiment of the present application, determining a first comparison delay corresponding to a first target delay according to the first minimum delay in the first current delay information includes:

[0021] Determine a target minimum delay, where the target minimum delay is a preset comparison delay threshold or a historical minimum delay in historical delay information;

[0022] According to the first minimum delay, the target minimum delay is adjusted to determine a first comparison delay.

[0023] In an embodiment of the present application, after determining a first comparison delay corresponding to the first target delay based on the first minimum delay in the first current delay information, the method further includes:

[0024] If the first target delay and the first comparison delay do not meet the preset comparison requirement, it is determined that the delay of the service message transmitted from the first node to the second node is normal;

[0025] According to the normal time delay of the service message transmitted from the first node to the second node, the first historical detection number and the first historical target detection number are updated to obtain the first updated historical detection number and the first historical target detection number;

[0026] Obtaining next delay information of a next detection cycle, where the next detection cycle is a cycle next to the current detection cycle;

[0027] The next delay information is used as the delay information of the next detection cycle, the first updated historical detection number and the first historical target detection number are used as the historical detection information, and a step of determining a first comparison delay corresponding to the first target delay based on the first minimum delay in the first current delay information is performed.

[0028] In an embodiment of the present application, sending an alert message to the user based on the first update history detection count and the first update history target detection count includes:

[0029] Determining a ratio value of the first update history detection number and the first update history target detection number, and a preset delay ratio threshold;

[0030] If the ratio value is greater than the delay ratio threshold, the user will be sent an alarm message.

[0031] In this embodiment of the present application, if the transmission link further includes a third node, and the third node and the second node are adjacent nodes, the method further includes:

[0032] Acquire second current delay information of the service message transmitted from the second node to the third node in the current detection period, and second historical detection information of the service message transmitted from the second node to the third node in the historical detection period;

[0033] determining, according to the second minimum delay in the second current delay information, a second comparison delay corresponding to the second target delay in the second current delay information;

[0034] If the second target delay and the second comparison delay meet the preset comparison requirement, it is determined that the delay of the service message transmitted from the second node to the third node is abnormal;

[0035] According to the abnormal delay of the service message being transmitted from the second node to the third node, the second historical detection number and the second historical target detection number in the second historical detection information are updated to obtain a second updated historical detection number and a second updated historical target detection number;

[0036] Send an alarm message to the user according to the second update history detection number and the second update history target detection number.

[0037] In a second aspect, the present application provides an alarm device for service message transmission, comprising:

[0038] A determination module, configured to determine a transmission link of a service message, and a first node and a second node in the transmission link, wherein the first node and the second node are adjacent nodes;

[0039] an acquisition module, configured to acquire first current delay information of service packets transmitted from the first node to the second node within a current detection period, and first historical detection information of service packets transmitted from the first node to the second node within a historical detection period, wherein the first current delay information includes a first target delay and a first minimum delay, the first target delay includes at least one of a first maximum delay and a first average delay, and the first historical detection information includes a first historical detection count and a first historical target detection count, where the first historical target detection count is the number of delay anomalies in the first historical detection count that characterize the historical detection period;

[0040] a determination module, configured to determine a first comparison delay corresponding to a first target delay based on a first minimum delay in the first current delay information;

[0041] A comparison module is used to determine whether the delay of the service message transmitted from the first node to the second node is abnormal when the first target delay and the first comparison delay meet the preset comparison requirements.

[0042] An updating module, configured to update the first historical detection number and the first historical target detection number according to an abnormal delay of the service message being transmitted from the first node to the second node, to obtain a first updated historical detection number and a first updated historical target detection number;

[0043] The alarm module is used to send an alarm message to the user according to the first update history detection number and the first update history target detection number.

[0044] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0045] Memory stores computer-executable instructions;

[0046] The processor executes the computer execution instructions stored in the memory to implement the service message transmission alarm method of the embodiment of the present application.

[0047] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the alarm method for business message transmission of an embodiment of the present application.

[0048] The present application provides an alarm method, apparatus, device and storage medium for business message transmission, which can determine the transmission link of the business message and the first node and the second node in the transmission link, where the first node and the second node are adjacent nodes; obtain the first current delay information of the business message transmitted from the first node to the second node in the current detection period, and the first historical detection information of the business message transmitted from the first node to the second node in the historical detection period, wherein the first current delay information includes the first target delay and the first minimum delay, the first target delay includes at least one of the first maximum delay and the first average delay, the first historical detection information includes the first historical detection number and the first historical target detection number, and the first historical target detection number is the number of times the first historical detection number represents the delay. The system includes the following steps: the number of delay anomalies within a historical detection period; determining a first comparison delay corresponding to a first target delay based on a first minimum delay in the first current delay information; determining a delay anomaly for transmission of a service message from a first node to a second node if the first target delay and the first comparison delay meet preset comparison requirements; updating the first historical detection number and the first historical target detection number based on the delay anomaly for transmission of the service message from the first node to the second node to obtain a first updated historical detection number and a first updated historical target detection number; sending an alarm message to a user based on the first updated historical detection number and the first updated historical target detection number, thereby ensuring accurate acquisition of service message delay information and solving the problem in the prior art that service message delay information cannot be fully captured. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0050] Figure 1 A flow chart of an alarm method for service message transmission provided in an embodiment of the present application;

[0051] Figure 2 A flowchart of another alarm method for service message transmission provided in an embodiment of the present application;

[0052] Figure 3 A schematic diagram of the structure of an alarm device for service message transmission provided in an embodiment of the present application;

[0053] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0054] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION

[0055] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0056] In the existing technology, when obtaining service delay information, the sampling message delay detection method and the packet-by-packet average delay detection method are generally used. The sampling message delay detection method is to select a message according to a fixed rule within a detection cycle for delay information statistics. This detection method is based on a simple sampling detection of the delay information of a certain message in the detection cycle, and therefore cannot accurately evaluate the delay characteristics of all service messages. The packet-by-packet average delay detection method uses the timestamp in the detection information to carry the time information of the previous monitoring node in the network path within each detection cycle, and calculates the average delay, maximum and minimum delay of all messages in the network path from the previous monitoring node to the current monitoring node. This detection method is based on the average delay information of each message in the detection cycle, so a small amount of abnormal message delay is hidden by the average value and cannot be captured and perceived.

[0057] In order to solve the above problems, the present application provides an alarm method for business message transmission, which can determine the business message in the transmission link, obtain the current delay information and historical detection information between two adjacent nodes in the transmission link, dynamically adjust the comparison delay according to the minimum delay in the information, compare the comparison delay with the target delay to determine whether the delay between the two nodes is normal, obtain updated historical detection information and updated historical target detection information, and at the same time determine the ratio value of the updated historical detection times and the updated historical target detection times, and a preset delay ratio threshold, compare the ratio value with the preset delay ratio threshold, and send an alarm message to the user, realizing the function of dynamically setting different ratio thresholds according to the actual deployment of the business message, ensuring the accurate acquisition of business message delay information, and solving the problem that business message delay information cannot be fully captured in the prior art.

[0058] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0059] The execution subject of the alarm method for business message transmission provided in the embodiment of the present application can be a server. The server can be a data control computer or other equipment. This embodiment does not impose any special restrictions on the implementation method of the execution subject, as long as the execution subject can determine the transmission link of the business message, and the first node and the second node in the transmission link, the first node and the second node are adjacent nodes; obtain the first current delay information of the business message transmitted from the first node to the second node in the current detection cycle, and the first historical detection information of the business message transmitted from the first node to the second node in the historical detection cycle, wherein the first current delay information includes the first target delay and the first minimum delay, the first target delay includes at least one of the first maximum delay and the first average delay, the first historical detection information includes the first historical detection number and the first historical target detection number, the first The number of historical target detections is the number of delay anomalies in the first historical detection number that characterize a historical detection period; based on the first minimum delay in the first current delay information, a first comparison delay corresponding to the first target delay is determined; if the first target delay and the first comparison delay meet preset comparison requirements, it is determined that the delay of the service message from the first node to the second node is abnormal; based on the delay anomaly of the service message from the first node to the second node, the first historical detection number and the first historical target detection number are updated to obtain a first updated historical detection number and a first updated historical target detection number; based on the first updated historical detection number and the first updated historical target detection number, an alarm message is sent to the user.

[0060] Among them, a message refers to the data unit exchanged and transmitted in the network, that is, the data block that a station wants to send at one time.

[0061] A transmission link refers to the path for exchanging and transmitting business messages in the network. Transmission links include end-to-end transmission links and multi-node transmission links. An end-to-end transmission link indicates that within a detection cycle, a business message has only two nodes, namely, the sending end and the receiving end of the business message. A multi-node transmission link indicates that within a detection cycle, a business message may include more than two nodes. For example, the first node and the second node in the multi-node transmission link in the current monitoring cycle may refer to the first node and the second node in the multi-node transmission link or the second node and the third node in the multi-node transmission link.

[0062] Figure 1 Schematic diagram of the alarm method flow for service message transmission provided in the embodiment of the present application. Figure 1 As shown, the method may include:

[0063] S101: Determine a transmission link of a service message and a first node and a second node in the transmission link, where the first node and the second node are adjacent nodes.

[0064] The first node refers to the first detection node of the service message in the current detection cycle.

[0065] The second node refers to the second detection node of the service message in the current detection cycle.

[0066] The first node and the second node may refer to two adjacent nodes in the transmission link of the service message. The adjacent nodes may refer to the second node being the next node to receive the service message after it is sent by the first node. In the embodiment of the present application, the first node and the second node may be the sending end and the receiving end in an end-to-end transmission link, or may be any two adjacent nodes in a multi-node transmission link. For example, if the multi-node includes 5 nodes, the first node and the second node in the service message transmission link may refer to the first node and the second node or the second node and the third node in the multi-node transmission link.

[0067] S102. Obtain first current delay information of a service message transmitted from the first node to the second node in a current detection period, and first historical detection information of a service message transmitted from the first node to the second node in a historical detection period, wherein the first current delay information includes a first target delay and a first minimum delay, the first target delay includes at least one of a first maximum delay and a first average delay, and the first historical detection information includes a first historical detection count and a first historical target detection count, where the first historical target detection count is the number of delay anomalies in the first historical detection count that characterize the historical detection period.

[0068] Among them, the current detection period refers to the time period for currently detecting the business message. In some embodiments, the time period may refer to the time period for the business message to be transmitted from the sending end to the receiving end in the end-to-end transmission link, or it may be a monitoring period set in advance manually. For example, the current detection period may be a period determined by the system based on the time when the business message is sent.

[0069] The first current delay information may refer to a first target delay and a first minimum delay of the service message in the current detection period. The first target delay includes at least one of a first maximum delay and a first average delay.

[0070] The method for obtaining the first current delay information can be to obtain the first current delay information by obtaining the packet-by-packet delay of the service message transmitted from the first node to the second node within the current detection period, wherein the packet-by-packet delay includes obtaining the label information of the service message, that is, according to the preset marking rules within the current detection period, the label and the marking time of the label are marked on the service message, and the packet-by-packet delay of the current detection period is obtained based on the label of the service message and the marking time of the label; the first target delay information and the first minimum delay information are determined based on the packet-by-packet delay, and then the first current delay information is obtained.

[0071] The historical detection period may refer to the detection period of the service message before the current detection period.

[0072] The first historical detection information includes the first historical detection times and the first historical target detection times. The first historical target detection times are the times in the first historical detection times that represent delay anomalies within the historical detection period. For example, in a multi-node transmission link, the first historical detection information of the service message from the second node to the third node within the current detection period is the detection information of the service message from the first node to the second node.

[0073] The method for obtaining the first historical detection information can be to obtain the previous delay information of the first current delay information, and then obtain the first historical detection information of the current detection cycle, that is, the number of historical detections and the number of historical target detections, wherein the previous delay information can be the delay information between the two adjacent detection nodes before the current two adjacent detection nodes.

[0074] In this embodiment of the present application, the method for obtaining first current delay information of a service message transmitted from a first node to a second node in a current detection period may include:

[0075] Obtaining a packet-by-packet delay of a service message transmitted from a first node to a second node within a current detection period;

[0076] Determining a first target time and a first minimum delay based on the packet-by-packet delay;

[0077] First current delay information is determined according to the first target time and the first minimum delay.

[0078] Among them, the first target delay includes at least one of a first maximum delay and a first average delay. The first maximum delay refers to the maximum value of the service message delay information in the current detection period, and the first average delay refers to the average value of the service message delay information in the current detection period.

[0079] In this embodiment of the present application, the method for obtaining the packet-by-packet delay of a service message transmitted from a first node to a second node within a current detection period may include:

[0080] Determine the label information of the service message, the label information includes the label marked on the service message according to the preset marking rule within the current detection period, and the marking time of the label;

[0081] The packet-by-packet delay is determined based on the service message label and the label marking time.

[0082] The service message label may refer to a label that marks all messages in a detection period in a manner that is alternately flipped in each detection period.

[0083] The label of the service message may also refer to the label of all messages within the marking detection period.

[0084] The service message label may also refer to a label that marks some messages within a detection period according to a fixed rule.

[0085] The marking time of the tag may refer to a timestamp field for marking the service message according to a detection period.

[0086] S103: Determine a first comparison delay corresponding to the first target delay according to the first minimum delay in the first current delay information.

[0087] In this embodiment of the present application, a method for determining a first comparison delay corresponding to a first target delay based on the first minimum delay in the first current delay information may include:

[0088] Determine a target minimum delay, where the target minimum delay is a preset comparison delay threshold or a historical minimum delay in historical delay information;

[0089] According to the first minimum delay, the target minimum delay is adjusted to determine a first comparison delay.

[0090] The target minimum delay may refer to a preset limit value of the comparison delay in the current detection cycle or a historical minimum delay value in historical detection information.

[0091] The first comparison delay may refer to determining whether delay information of a service message transmitted from a first node to a second node meets a required standard within a current detection period.

[0092] S104: If the first target delay and the first comparison delay meet a preset comparison requirement, it is determined that the delay of transmitting the service message from the first node to the second node is abnormal.

[0093] Among them, the preset comparison requirement may refer to the first target delay information reaching the threshold set by the first comparison delay information. For example, if the first maximum delay information in the first target delay information exceeds the maximum comparison delay threshold set in the first comparison delay information, the delay of the service message transmitted from the first node to the second node is abnormal.

[0094] In this embodiment of the present application, after determining the first comparison delay corresponding to the first target delay based on the first minimum delay in the first current delay information, the method further includes:

[0095] If the first target delay and the first comparison delay do not meet the preset comparison requirement, it is determined that the delay of the service message transmitted from the first node to the second node is normal;

[0096] According to the normal time delay of the service message transmitted from the first node to the second node, the first historical detection number and the first historical target detection number are updated to obtain the first updated historical detection number and the first historical target detection number;

[0097] Obtaining next delay information of a next detection cycle, where the next detection cycle is a cycle next to the current detection cycle;

[0098] The next delay information is used as the delay information of the next detection cycle, the first updated historical detection number and the first historical target detection number are used as the historical detection information, and a step of determining a first comparison delay corresponding to the first target delay based on the first minimum delay in the first current delay information is performed.

[0099] S105 . Update the first historical detection number and the first historical target detection number according to the abnormal delay of the service message transmitted from the first node to the second node to obtain a first updated historical detection number and a first updated historical target detection number.

[0100] If the delay of transmitting the service message from the first node to the second node is normal, the first historical detection number and the first historical target detection number are updated to obtain the first updated historical detection number and the first historical target detection number.

[0101] S106: Send an alarm message to the user according to the first update history detection number and the first update history target detection number.

[0102] Among them, the alarm information may refer to sending an alarm information to the user when the ratio of the first update history detection times of the business message and the first update history target detection times is greater than the preset business message delay ratio threshold, informing the user that the delay information of the business message in the current detection cycle exceeds the preset maximum delay limit of the business message transmission process.

[0103] In the embodiment of the present application, according to the first update history detection number and the first update history target detection number, a method for sending an alarm message to the user includes:

[0104] Determining a ratio value of the first update history detection number and the first update history target detection number, and a preset delay ratio threshold;

[0105] If the ratio value is greater than the delay ratio threshold, the user will be sent an alarm message.

[0106] The ratio of the first update history detection times to the first update history target detection times includes a maximum delay ratio value and an average delay ratio value.

[0107] The maximum delay ratio value indicates the ratio of the number of times the maximum service packet delay exceeds the maximum alarm threshold in all detection cycles to the number of valid detection cycles in all detection cycles.

[0108] The average delay ratio indicates the ratio of the number of times the average service packet delay exceeds the average alarm threshold in all detection periods to the number of valid detection periods in all detection periods.

[0109] The preset delay ratio thresholds include a maximum delay ratio threshold and an average delay ratio threshold;

[0110] The maximum delay ratio threshold indicates a limit value of the maximum delay ratio value.

[0111] The average delay ratio threshold indicates a limit value of the average delay ratio.

[0112] In this embodiment of the present application, if the transmission link further includes a third node, and the third node and the second node are adjacent nodes, the method further includes:

[0113] Acquire second current delay information of the service message transmitted from the second node to the third node in the current detection period, and second historical detection information of the service message transmitted from the second node to the third node in the historical detection period;

[0114] determining, according to the second minimum delay in the second current delay information, a second comparison delay corresponding to the second target delay in the second current delay information;

[0115] If the second target delay and the second comparison delay meet the preset comparison requirement, it is determined that the delay of the service message transmitted from the second node to the third node is abnormal;

[0116] According to the abnormal delay of the service message being transmitted from the second node to the third node, the second historical detection number and the second historical target detection number in the second historical detection information are updated to obtain a second updated historical detection number and a second updated historical target detection number;

[0117] Send an alarm message to the user according to the second update history detection number and the second update history target detection number.

[0118] The second current delay information may refer to delay information of the service message during a time period when the service message is transmitted from the second node to the third node.

[0119] The second comparison delay information may be dynamically adjusted according to the second target delay information.

[0120] The alarm method for a service transmission link provided in the present application can determine the first node and the second node in the transmission link by determining the transmission path of the service message; obtain the first current delay information of the service message transmitted from the first node to the second node in the current detection period and the first historical detection information of the service message transmitted from the first node to the second node in the historical detection period; determine the first comparison delay corresponding to the first target delay based on the first minimum delay in the first current delay information; if the first target delay and the first comparison delay meet the preset comparison requirements, it is determined that the delay of the service message transmitted from the first node to the second node is abnormal; according to the delay abnormality information, the first historical detection number and the first historical target detection number are updated to obtain the first updated historical detection number and the first updated historical target detection number; based on the first updated historical detection number and the first updated historical target detection number, an alarm information is sent to the user, thereby solving the problem in the prior art that the service message delay information cannot be fully captured.

[0121] Figure 2 Another alarm method for service message transmission provided in the embodiment of the present application is as follows: Figure 2 As shown, the alarm method includes:

[0122] S201: Mark the service message under test based on an alternating marking method.

[0123] The alternating marking method may refer to marking the L bit, D bit and timestamp field according to the detection period in the detection information of the service message under test.

[0124] The L bit marks all messages within the detection period by alternating in each cycle. The D bit can mark all messages within the detection period or mark messages within the detection period according to a fixed rule. The timestamp field indicates the current system time of the written device.

[0125] S202: Determine a delay acquisition solution for the service message according to a scenario of obtaining the service message delay.

[0126] The service message delay acquisition scenarios include end-to-end delay acquisition scenarios and hop-by-hop delay acquisition scenarios.

[0127] S203: When the delay acquisition scenario of the service message is an end-to-end delay acquisition scenario, execute the end-to-end delay acquisition solution of the service message to acquire delay information.

[0128] The specific steps of the end-to-end delay acquisition solution are as follows:

[0129] The sending end and receiving end of the service message are set in each detection cycle. The sending end can refer to the head node of the service message in the current detection cycle. At the head node, the service message is marked with detection information based on the alternating marking method of S201 for the tested service message.

[0130] The receiving end may refer to the tail node of the service message in the current detection cycle. At the tail node of each detection cycle, the packet-by-packet delay, average delay, and maximum delay of the measured service message are calculated and counted.

[0131] The per-packet delay refers to the delay information obtained by subtracting the timestamp in the packet detection information with a valid D flag from the device's current system time within the current detection period. The average delay refers to the product of the sum of the per-packet delay information within the current detection period and the number of service packets with a valid D flag within the current detection period. The maximum delay refers to the maximum delay value in the per-packet delay information, and the minimum delay refers to the minimum delay value in the per-packet delay information.

[0132] At the tail node of the service message, the average delay information and maximum delay information in the delay statistics are reported to the device's management and control platform. The management and control platform ultimately obtains the average delay, maximum delay, and minimum delay information of the measured service message in each detection cycle.

[0133] S204: When the delay acquisition scenario of the service message is a hop-by-hop delay acquisition scenario, execute a hop-by-hop delay acquisition solution for the service message to acquire delay information.

[0134] The specific steps of the hop-by-hop delay acquisition solution are as follows:

[0135] A plurality of nodes are set for the transmission link of the service message. At the head node, information marking processing is performed on the tested service message based on the alternating marking method in S201.

[0136] At the intermediate nodes of the service message transmission link, the packet-by-packet delay, average delay, maximum delay, and minimum delay of the tested service messages within each detection cycle are calculated and counted. At the same time, the timestamp in the message detection information of each valid D identifier is rewritten to the current system time of the device.

[0137] The intermediate node reports the average delay and maximum delay in the above delay statistics to the device's management and control platform. The management and control platform obtains the average delay, maximum delay, and minimum delay of the measured service in this transmission path during each detection cycle.

[0138] During each detection cycle, at the tail node of the service message transmission link, the packet-by-packet delay, average delay, maximum delay, and minimum delay of the tested service message are calculated and reported to the device's management and control platform. The management and control platform then obtains the average delay, maximum delay, and minimum delay information of the tested service message on the multi-node transmission link during each detection cycle.

[0139] S205: When applying the service data message, the management and control platform monitors and analyzes the service quality of the service and determines the service quality monitoring scenario of the tested service message.

[0140] The service quality monitoring scenarios of the tested service packets include end-to-end monitoring scenarios and hop-by-hop monitoring scenarios.

[0141] S206: If the application monitoring scenario of the tested service is an end-to-end delay monitoring scenario, execute an end-to-end delay detection solution for the service message.

[0142] The specific steps of the end-to-end delay detection solution for service packets are as follows:

[0143] According to the S203 solution, the management and control platform obtains the maximum delay, average delay, and minimum delay of the tested service message in each detection cycle. Assuming that the number of valid detection cycles during the service detection period is N, the maximum delay of the i-th detection cycle is represented as "maximum delay i", the average delay is "average delay i", and the minimum delay is "minimum delay i". When analyzing the service quality, the strategy for using delay information is as follows:

[0144] Set the alarm threshold for Maximum Delay in any detection period to Maximum Delay Alarm Threshold and the alarm threshold for Average Delay to Average Delay Alarm Threshold.

[0145] Counts the number of times M that Maximum Delay exceeds Maximum Delay Alarm Threshold within N valid detection cycles. If Maximum Delay > Maximum Delay Alarm Threshold, M increases by 1; otherwise, M remains unchanged. (M starts at 0).

[0146] Counts the number of times K that Average Delay exceeds Average Delay Alarm Threshold within N valid detection periods. If Average Delay exceeds Average Delay Alarm Threshold, K increases by 1; otherwise, K remains unchanged. (K starts at 0).

[0147] Set the maximum delay exceeding probability threshold to p (representing the ratio of M to N) and the average delay exceeding probability threshold to q (representing the ratio of K to N).

[0148] If the ratio of M to N is greater than p, the management and control platform will prompt an alarm for the maximum delay of the service quality of the measured business and display the ratio value of M to N, thereby realizing the detection alarm of the maximum delay information.

[0149] If the ratio of K to N is greater than q, the management and control platform will issue an average delay alarm for the service quality of the measured business and display the ratio value of K to N, thereby realizing the detection and alarm of average delay information.

[0150] The average delay alarm threshold and the maximum delay alarm threshold can be dynamically adjusted during the measurement process based on the statistical results of the "minimum delay i" to ensure the efficiency and accuracy of the detected delay information.

[0151] S207: If the application monitoring scenario of the tested service is a hop-by-hop delay monitoring scenario, execute a hop-by-hop delay detection solution for the service message.

[0152] The specific steps of the end-to-end delay detection solution for service packets are as follows:

[0153] According to the S204 solution, the management and control platform obtains the detection information of the measured service message between two adjacent detection nodes in the service transmission link, including the maximum delay and average delay. The specific steps for the measured service delay alarm strategy between these two adjacent detection nodes are as follows:

[0154] Assume that during a service detection period, the number of valid detection cycles is N. The maximum delay of the i-th detection cycle is denoted as "Maximum Delay i", the average delay is denoted as "Average Delay i", and the minimum delay is denoted as "Minimum Delay i". The strategy for using delay information in service quality analysis is as follows:

[0155] Set the alarm threshold for Maximum Delay in any detection period to Maximum Delay Alarm Threshold and the alarm threshold for Average Delay to Average Delay Alarm Threshold.

[0156] Counts the number of times M that Maximum Delay exceeds Maximum Delay Alarm Threshold within N valid detection cycles. If Maximum Delay > Maximum Delay Alarm Threshold, M increases by 1; otherwise, M remains unchanged. (M starts at 0).

[0157] Counts the number of times K that Average Delay exceeds Average Delay Alarm Threshold within N valid detection periods. If Average Delay exceeds Average Delay Alarm Threshold, K increases by 1; otherwise, K remains unchanged. (K starts at 0).

[0158] Set the maximum delay exceeding probability threshold to p (representing the ratio of M to N) and the average delay exceeding probability threshold to q (representing the ratio of K to N).

[0159] If the ratio of M to N is greater than p, the management and control platform will prompt an alarm for the maximum delay of the service quality of the measured business and display the ratio of M to N.

[0160] If the ratio of K to N is greater than q, the management and control platform issues an alarm for the average delay of the service quality of the measured business and displays the ratio of K to N.

[0161] The average delay alarm threshold and the maximum delay alarm threshold can be dynamically adjusted during the measurement process according to the statistical results of the "minimum delay i".

[0162] S208: Determine the delay of the service message according to the delay alarm information of the service message.

[0163] Another service transmission link alarm method provided in an embodiment of the present application can determine a scheme for acquiring service message delay information based on the service message delay information acquisition scenario, and read the average, maximum, and minimum delays of service messages within each detection cycle. Based on the service platform's quality monitoring scenario for the service being tested, a specific service delay application scheme is determined, an alarm strategy for the measured service delay is formulated, an alarm threshold for the measured service delay is determined, and delay information for the measured service is acquired. Furthermore, the alarm threshold for the measured service delay can be dynamically adjusted based on the minimum service message delay.

[0164] Figure 3 This is a schematic diagram of the structure of the alarm device for service message transmission provided in the embodiment of the present application. Figure 3 As shown, the service message transmission alarm device 30 includes: a determination module 301, an acquisition module 302, a determination module 303, a comparison module 304, an update module 305 and an alarm module 306. Among them:

[0165] A determination module 301 is configured to determine a transmission link of a service message, and a first node and a second node in the transmission link, where the first node and the second node are adjacent nodes;

[0166] An acquisition module 302 is configured to acquire first current delay information of a service message transmitted from a first node to a second node within a current detection period, and first historical detection information of a service message transmitted from a first node to a second node within a historical detection period, wherein the first current delay information includes a first target delay and a first minimum delay, the first target delay includes at least one of a first maximum delay and a first average delay, and the first historical detection information includes a first historical detection count and a first historical target detection count, where the first historical target detection count is the number of times in the first historical detection count that indicate delay anomalies within the historical detection period.

[0167] A determination module 303 is configured to determine a first comparison delay corresponding to a first target delay based on a first minimum delay in the first current delay information;

[0168] The comparison module 304 is configured to determine whether the delay of the service message transmitted from the first node to the second node is abnormal based on the first target delay and the first comparison delay meeting the preset comparison requirement.

[0169] An updating module 305 is configured to update the first historical detection number and the first historical target detection number according to the abnormal delay of the service message transmitted from the first node to the second node, to obtain a first updated historical detection number and a first updated historical target detection number;

[0170] The alarm module 306 is configured to send an alarm message to the user according to the first update history detection number and the first update history target detection number.

[0171] In the embodiment of the present application, the acquisition module 302 may also be specifically configured to:

[0172] Obtaining a packet-by-packet delay of a service message transmitted from a first node to a second node within a current detection period;

[0173] Determining a first target time and a first minimum delay based on the packet-by-packet delay;

[0174] First current delay information is determined according to the first target time and the first minimum delay.

[0175] In the embodiment of the present application, the acquisition module 302 may also be specifically configured to:

[0176] Second current delay information of the service message transmitted from the second node to the third node in the current detection period and second historical detection information of the service message transmitted from the second node to the third node in the historical detection period are obtained.

[0177] In the embodiment of the present application, the determining module 303 may also be specifically configured to:

[0178] Determine a target minimum delay, where the target minimum delay is a preset comparison delay threshold or a historical minimum delay in historical delay information;

[0179] According to the first minimum delay, the target minimum delay is adjusted to determine a first comparison delay.

[0180] In the embodiment of the present application, the determining module 303 may also be specifically configured to:

[0181] determining, according to the second minimum delay in the second current delay information, a second comparison delay corresponding to the second target delay in the second current delay information;

[0182] In the embodiment of the present application, the comparison module 304 may also be specifically used to:

[0183] If the first target delay and the first comparison delay do not meet the preset comparison requirement, it is determined that the delay of transmitting the service message from the first node to the second node is normal.

[0184] In the embodiment of the present application, the comparison module 304 may also be specifically used to:

[0185] If the second target delay and the second comparison delay meet the preset comparison requirement, it is determined that the delay of the service message transmitted from the second node to the third node is abnormal.

[0186] In the embodiment of the present application, the update module 305 may also be specifically used to:

[0187] According to the normal time delay of the service message transmitted from the first node to the second node, the first historical detection number and the first historical target detection number are updated to obtain the first updated historical detection number and the first historical target detection number;

[0188] In the embodiment of the present application, the update module 305 may also be specifically used to:

[0189] According to the abnormal delay of the service message being transmitted from the second node to the third node, the second historical detection number and the second historical target detection number in the second historical detection information are updated to obtain a second updated historical detection number and a second updated historical target detection number;

[0190] In the embodiment of the present application, the alarm module 306 may also be specifically used to:

[0191] Determining a ratio value of the first update history detection number and the first update history target detection number, and a preset delay ratio threshold;

[0192] If the ratio value is greater than the delay ratio threshold, the user will be sent an alarm message.

[0193] In the embodiment of the present application, the alarm module 306 may also be specifically used to:

[0194] Send an alarm message to the user according to the second update history detection number and the second update history target detection number.

[0195] As can be seen from the above, the alarm device 30 for business message transmission in the embodiment of the present application is composed of a determination module 301, which is used to determine the transmission link of the business message and the first node and the second node in the transmission link, where the first node and the second node are adjacent nodes; an acquisition module 302, which is used to obtain the first current delay information of the business message transmitted from the first node to the second node in the current detection period, and the first historical detection information of the business message transmitted from the first node to the second node in the historical detection period, wherein the first current delay information includes the first target delay and the first minimum delay, the first target delay includes at least one of the first maximum delay and the first average delay, the first historical detection information includes the first historical detection number and the first historical target detection number, and the first historical target detection number The number is the number of times in the first historical detection times that the delay is abnormal within the historical detection period; the determination module 303 is used to determine the first comparison delay corresponding to the first target delay based on the first minimum delay in the first current delay information; the comparison module 304 is used to determine the abnormal delay of the service message transmitted from the first node to the second node based on the first target delay and the first comparison delay meeting the preset comparison requirements; the update module 305 is used to update the first historical detection times and the first historical target detection times according to the abnormal delay of the service message transmitted from the first node to the second node, and obtain the first updated historical detection times and the first updated historical target detection times; the alarm module 306 is used to send an alarm message to the user based on the first updated historical detection times and the first updated historical target detection times. Therefore, by alarming the service message delay information, a more accurate and small amount of abnormal delay information of the service message is achieved, and high-precision monitoring of service quality is achieved, which solves the problem that the service message delay information in the prior art cannot be fully captured.

[0196] Figure 4 This is a schematic diagram of the structure of the electronic device provided in the embodiment of the present application. Figure 4 As shown, the electronic device 40 includes:

[0197] The electronic device 40 may include one or more processors 401 , one or more computer-readable storage media memories 402 , a communication component 403 , and other components. The processor 401 , the memory 402 , and the communication component 403 are connected via a bus 404 .

[0198] In a specific implementation process, at least one processor 401 executes the computer-executable instructions stored in the memory 402 , so that the at least one processor 401 executes the above-mentioned alarm method for service message transmission.

[0199] The specific implementation process of the processor 401 can be found in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here in this embodiment.

[0200] In the above Figure 4 In the illustrated embodiment, it should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASICs), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly executed by a hardware processor or by a combination of hardware and software modules within the processor.

[0201] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (NVM), such as at least one disk memory.

[0202] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Buses can be classified into address buses, data buses, and control buses. For ease of illustration, the buses in the drawings of this application are not limited to just one bus or just one type of bus.

[0203] In some embodiments, a computer program product is further proposed, including a computer program or instructions, which, when executed by a processor, implements the steps in any of the above-mentioned alarm methods for service message transmission.

[0204] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.

[0205] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0206] To this end, an embodiment of the present application provides a computer-readable storage medium, which stores multiple instructions, which can be loaded by a processor to execute the steps in any one of the alarm methods for service message transmission provided in the embodiment of the present application.

[0207] The storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0208] According to one aspect of the present application, a computer program product or a computer program is provided. The computer program product or the computer program comprises computer instructions stored in a computer-readable storage medium.

[0209] Since the instructions stored in the storage medium can execute the steps in any of the alarm methods for business message transmission provided in the embodiments of the present application, the beneficial effects that can be achieved by any of the alarm methods for business message transmission provided in the embodiments of the present application can be achieved. Please see the previous embodiments for details and will not be repeated here.

[0210] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0211] It should be understood that the present application is not limited to the exact structure described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for alarming service message transmission, characterized in that: The method comprises: Determining a transmission link of the service message, and a first node and a second node in the transmission link, where the first node and the second node are adjacent nodes; Obtaining first current delay information of the service message transmitted from the first node to the second node in a current detection period, and first historical detection information of the service message transmitted from the first node to the second node in a historical detection period, wherein the first current delay information includes a first target delay and a first minimum delay, the first target delay includes at least one of a first maximum delay and a first average delay, and the first historical detection information includes a first historical detection count and a first historical target detection count, where the first historical target detection count is the number of delay anomalies in the first historical detection count that characterize the historical detection period; determining, according to the first minimum delay in the first current delay information, a first comparison delay corresponding to the first target delay; If the first target delay and the first comparison delay meet a preset comparison requirement, determining that the delay of transmitting the service message from the first node to the second node is abnormal; updating the first historical detection number and the first historical target detection number according to the abnormal delay of transmitting the service message from the first node to the second node to obtain a first updated historical detection number and a first updated historical target detection number; Send an alarm message to the user according to the first update history detection number and the first update history target detection number.

2. The method according to claim 1, characterized in that The acquiring first current delay information of the service message transmitted from the first node to the second node in the current detection period includes: Obtaining a packet-by-packet delay of transmitting the service message from the first node to the second node within the current detection period; Determining the first target delay and the first minimum delay according to the packet-by-packet delay; The first current delay information is determined according to the first target delay and the first minimum delay.

3. The method according to claim 2, characterized in that The obtaining of a packet-by-packet delay of transmitting the service message from the first node to the second node within the current detection period includes: Determine label information of the service message, where the label information includes a label marked on the service message according to a preset marking rule within the current detection period, and a marking time of the label; The packet-by-packet delay is determined according to the label of the service message and the marking time of the label.

4. The method according to claim 1, wherein The determining, according to the first minimum delay in the first current delay information, a first comparison delay corresponding to the first target delay includes: Determining a target minimum delay, where the target minimum delay is a preset comparison delay threshold or a historical minimum delay in historical delay information; The target minimum delay is adjusted according to the first minimum delay to determine the first comparison delay.

5. The method according to claim 1, wherein After determining a first comparison delay corresponding to the first target delay based on the first minimum delay in the first current delay information, the method further includes: If the first target delay and the first comparison delay do not meet the preset comparison requirement, determining that the delay of transmitting the service message from the first node to the second node is normal; According to the delay of transmitting the service message from the first node to the second node being normal, updating the first historical detection number and the first historical target detection number to obtain a first updated historical detection number and a first historical target detection number; Obtaining next delay information of a next detection cycle, wherein the next detection cycle is a cycle next to the current detection cycle; The next delay information is used as the delay information of the next detection cycle, and the first updated historical detection number and the first historical target detection number are used as the historical detection information. The step of determining a first comparison delay corresponding to the first target delay based on the first minimum delay in the first current delay information is performed.

6. The method according to claim 1, characterized in that The sending of warning information to the user according to the first update history detection number and the first update history target detection number includes: Determining a ratio value of the first update history detection number to the first update history target detection number, and a preset delay ratio threshold; If the ratio value is greater than the delay ratio threshold, an alarm message is sent to the user.

7. The method according to claim 1, characterized in that If the transmission link further includes a third node, and the third node and the second node are adjacent nodes, the method further includes: Acquire second current delay information of the service message transmitted from the second node to the third node in a current detection period, and second historical detection information of the service message transmitted from the second node to the third node in a historical detection period; determining, according to the second minimum delay in the second current delay information, a second comparison delay corresponding to the second target delay in the second current delay information; If the second target delay and the second comparison delay meet a preset comparison requirement, determining that the delay of transmitting the service message from the second node to the third node is abnormal; updating the second historical detection number and the second historical target detection number in the second historical detection information according to the abnormal delay of transmitting the service message from the second node to the third node, to obtain a second updated historical detection number and a second updated historical target detection number; Send an alarm message to the user according to the second update history detection number and the second update history target detection number.

8. An alarm device for business message transmission, characterized in that: include: a determination module, configured to determine a transmission link of the service message, and a first node and a second node in the transmission link, wherein the first node and the second node are adjacent nodes; an acquisition module, configured to acquire first current delay information of the service message transmitted from the first node to the second node in a current detection period, and first historical detection information of the service message transmitted from the first node to the second node in a historical detection period, wherein the first current delay information includes a first target delay and a first minimum delay, the first target delay includes at least one of a first maximum delay and a first average delay, and the first historical detection information includes a first historical detection count and a first historical target detection count, where the first historical target detection count is the number of delay anomalies in the first historical detection count that characterize the historical detection period; a determining module, configured to determine a first comparison delay corresponding to the first target delay based on a first minimum delay in the first current delay information; a comparison module, configured to determine, based on the first target delay and the first comparison delay satisfying a preset comparison requirement, that a delay anomaly for transmitting the service message from the first node to the second node occurs; and an update module, configured to update, based on the delay anomaly for transmitting the service message from the first node to the second node, the first historical detection number and the first historical target detection number, to obtain a first updated historical detection number and a first updated historical target detection number. The alarm module is used to send an alarm message to the user according to the first update history detection number and the first update history target detection number.

9. An electronic device comprising: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the alarm method for service message transmission according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • In-situ flow detection method and device

    CN113382437A

  • Delay out-of-limit alarm method based on data baseline

    CN114422403A