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

By acquiring and analyzing the delay information of service messages, dynamically adjusting the comparison delay and determining delay abnormalities, the problem of the delay in the existing technology cannot be detected with high accuracy, and the precise acquisition and alarm of delay information is achieved.

CN119561823AActive Publication Date: 2025-03-04CHINA UNITED NETWORK COMM GRP CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The prior art cannot realize high-precision detection of service data packet delay information.

Method used

By determining the transmission link and adjacent nodes of the service message, obtaining current and historical delay information, dynamically adjusting the comparison delay, determining delay abnormality based on the comparison results, updating historical detection information and sending alarms to users.

Benefits of technology

It realizes accurate acquisition of service message delay information, and solves the problem that delay information cannot be captured in the prior art.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119561823A_ABST
    Figure CN119561823A_ABST
Patent Text Reader

Abstract

The invention discloses a service message transmission alarm method and device, equipment and a storage medium. The method comprises the following steps: determining a transmission link of a service message, and a first node and a second node in the transmission link; acquiring first current time delay information of the service message transmitted from the first node to the second node in the current detection period and first historical detection information of the service message transmitted from the first node to the second node in the historical detection period; determining a first comparison time delay corresponding to the first target time delay according to a first minimum time delay in the first current time delay information; if the first target time delay and the first comparison time delay meet a preset comparison requirement, determining that the time delay of the service message transmitted from the first node to the second node is abnormal; according to the time delay abnormity, updating the first historical detection information to obtain first updated historical detection information; and sending alarm information to the user according to the first update historical detection information. According to the method provided by the invention, the accuracy of obtaining the time delay abnormal information of the service message is improved.
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 the 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, sampling detection or average detection is performed on the message delay information in each detection cycle, thereby realizing the detection of message delay information.

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

[0005] The present application provides an alarm method, device, equipment and storage medium for business message transmission, which are 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, the first node and the second node being adjacent nodes;

[0008] Obtaining 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 number and a first historical target detection number, and the first historical target detection number is the number of delay anomalies in the first historical detection number that characterize the historical detection period;

[0009] Determine, 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] Determine a first target time and a first minimum delay according to 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 in a current detection period includes:

[0018] Determine the label information of the service message, where the label information includes the label marked on the service message according to the preset marking rule within the current detection cycle, 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 a 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 the embodiment of the present application, after determining a first comparison delay corresponding to the first target delay according to 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 being transmitted from the first node to the second node is normal;

[0025] According to the normal time delay of the service message being 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] Obtain 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 the step of determining a first comparison delay corresponding to the first target delay according to the first minimum delay in the first current delay information is performed.

[0028] In the embodiment of the present application, sending warning information to the user according to the first update history detection number and the first update history target detection number includes:

[0029] Determine 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 sends an alarm message.

[0031] In the 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 a service message transmitted from the second node to the third node in a current detection period, and second historical detection information of a service message transmitted from the second node to the third node in a historical detection period;

[0033] Determine, 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, including:

[0038] A determination module, used 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, used to acquire first current delay information of a service message transmitted from a first node to a second node in a current detection period, and first historical detection information of a service message transmitted from a first node to a 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 number and a first historical target detection number, and the first historical target detection number is the number of times in the first historical detection number that characterizes delay anomalies in the historical detection period;

[0040] A determination module, configured to determine a first comparison delay corresponding to a first target delay according to 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 alarm information 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, device, equipment and storage medium for service message transmission, which can determine the transmission link of the service 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 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, 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 first historical detection number characterized by The number of delay anomalies in a historical detection period; according to the first minimum delay in the first current delay information, determining the first comparison delay corresponding to the first target delay; if the first target delay and the first comparison delay meet the preset comparison requirements, determining that the delay of the service message transmitted from the first node to the second node is abnormal; according to the delay anomaly of the service message transmitted from the first node to the second node, updating the first historical detection number and the first historical target detection number to obtain the first updated historical detection number and the first updated historical target detection number; according to the first updated historical detection number and the first updated historical target detection number, sending an alarm message to the user, thereby ensuring the accurate acquisition of the service message delay information and solving the problem that the service message delay information cannot be fully captured in the prior art. 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 have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0055] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0056] In the prior art, when acquiring service delay information, a sampling message delay detection method and a 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 to perform delay information statistics within a detection cycle. This detection method is based on a simple sampling detection of a message delay information in the detection cycle, so it is impossible to accurately evaluate the delay characteristics of all service messages; the packet-by-packet average delay detection method is to use the timestamp in the detection information to carry the time information of the previous monitoring node of the message in the network path in each detection cycle, and to count the average delay, maximum and minimum delay of all messages from the previous monitoring node to the current monitoring node in the network path. This detection method is based on the average delay information of each message in the detection cycle, so a small amount of abnormal delay of the message will be hidden due to 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 simultaneously 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, thereby realizing the function of dynamically setting different ratio thresholds according to the actual deployment of the business message, ensuring the accurate acquisition of the business message delay information, and solving the problem that the business message delay information in the prior art cannot be fully captured.

[0058] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. 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 may be a server. The server may be a data management computer or other device. The present 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 detection times is the number of delay anomalies characterizing the historical detection period in the first historical detection times; according to 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 the preset comparison requirements, it is determined that the delay anomaly of the service message being transmitted from the first node to the second node is transmitted; according to the delay anomaly of the service message being transmitted from the first node to the second node, the first historical detection times and the first historical target detection times are updated to obtain the first updated historical detection times and the first updated historical target detection times; according to the first updated historical detection times and the first updated historical target detection times, an alarm message is sent to the user.

[0060] Among them, a message refers to a data unit exchanged and transmitted in a network, that is, a 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. The transmission link includes an end-to-end transmission link and a multi-node transmission link. Among them, an end-to-end transmission link means that within a detection cycle, the business message has only two nodes, namely, the sending end and the receiving end of the business message. A multi-node transmission link means that within a detection cycle, the 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 The following is a flow chart of the alarm method 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, and the adjacent nodes may refer to the second node as 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 the end-to-end transmission link, or may be any two adjacent nodes in the multi-node transmission link. For example, the multi-node includes 5 nodes, and 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 number and a first historical target detection number, and the first historical target detection number is the number of delay anomalies in the first historical detection number 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, and 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 cycle, wherein the packet-by-packet delay includes obtaining the label information of the service message, that is, in the current detection cycle, according to the preset marking rule, the label marked on the service message and the marking time of the label, and according to the label of the service message and the marking time of the label, the packet-by-packet delay of the current detection cycle is obtained; the first target delay information and the first minimum delay information are determined according to the packet-by-packet delay, and then the first current delay information is obtained.

[0071] The historical detection period may refer to a 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 characterize the 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 may 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 may be the delay information between 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] Determine a first target time and a first minimum delay according to 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] Among them, in the embodiment of the present application, the method for obtaining the packet-by-packet delay of the service message transmitted from the first node to the second node in the current detection period may include:

[0080] Determine the label information of the service message, where the label information includes the label marked on the service message according to the preset marking rule within the current detection cycle, 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 label of the service message may refer to a label that marks all messages in a detection period in a manner of alternating flipping in each detection period.

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

[0084] The label of the service message 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 label 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 the embodiment of the present application, the method for determining the first comparison delay corresponding to the first target delay according to 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 the embodiment of the present application, after determining the first comparison delay corresponding to the first target delay according to 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 being transmitted from the first node to the second node is normal;

[0096] According to the normal time delay of the service message being 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] Obtain 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 the step of determining a first comparison delay corresponding to the first target delay according to the first minimum delay in the first current delay information is performed.

[0099] S105. According to the abnormal delay of the service message transmitted from the first node to the second node, update 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.

[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 warning information 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 message to the user when the ratio of the first update history detection times and the first update history target detection times of the business message is detected to be 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] Among them, in the embodiment of the present application, according to the first update history detection number and the first update history target detection number, the method of sending an alarm message to the user includes:

[0104] Determine 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 sends an alarm message.

[0106] The ratio value of the first update history detection times and 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 delay of service packets in all detection cycles exceeds the maximum alarm threshold to the number of valid detection cycles in all detection cycles.

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

[0109] The preset delay ratio threshold includes 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 value.

[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 a service message transmitted from the second node to the third node in a current detection period, and second historical detection information of a service message transmitted from the second node to the third node in a historical detection period;

[0114] Determine, 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 business 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 business message; 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; determine the first comparison delay corresponding to the first target delay according to 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 business 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; according to 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 that the business message delay information in the prior art cannot be fully captured.

[0121] Figure 2 Another alarm method for service message transmission provided in an 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, the D bit and the timestamp field according to the detection period in the detection information of the service message under test.

[0124] The L bit marks all messages in the detection period in an alternating manner in each cycle. The D bit can mark all messages in the detection period or mark messages in 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 delay acquisition for the service message.

[0126] The delay acquisition scenarios of service messages 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 may 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 service message under test are calculated and counted.

[0131] The packet-by-packet delay refers to the delay information obtained by subtracting the timestamp in the message detection information with a valid D identifier from the current system time of the device within the current detection period. The average delay refers to the product of the sum of the packet-by-packet delay information within the current detection period and the number of service messages with a valid D identifier within the current detection period. The maximum delay refers to the maximum delay value in the packet-by-packet delay information. The minimum delay refers to the minimum delay value in the packet-by-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 management and control platform of the device. The management and control platform finally 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, and 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 node of the service message transmission link, the packet-by-packet delay, average delay, maximum delay and minimum delay of the tested service messages in each detection cycle are calculated and counted. At the same time, the timestamp in the message detection information with each D identifier being valid 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 management and control platform of the device, and the management and control platform obtains the average delay, maximum and minimum delay of the measured service in this transmission path in each detection cycle.

[0138] In 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 management and control platform of the equipment. 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 in 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 messages 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, an end-to-end delay detection solution for the service message is executed.

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

[0143] According to the S203 solution, the 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 of using delay information is as follows:

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

[0145] Count the number of times M when the "maximum delay" exceeds the "maximum delay alarm threshold" within N valid detection cycles. That is, if the "maximum delay" > the "maximum delay alarm threshold", M increases by 1, otherwise M remains unchanged. (M starts from 0).

[0146] Count the number of times K that the Average Delay exceeds the Average Delay Alarm Threshold within N valid detection cycles. That is, if the Average Delay > the Average Delay Alarm Threshold, K increases by 1, otherwise K remains unchanged. (K starts from 0).

[0147] The maximum delay exceeding probability threshold is set to p (indicating the ratio of M to N), and the average delay exceeding probability threshold is set to q (indicating 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 of the maximum delay for the service quality of the business being tested, 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 alarm for the average delay of the service quality of the business being tested, and display the ratio value of K to N, thereby realizing the detection and alarm of the average delay information.

[0150] Among them, the sizes of the average delay alarm threshold and the maximum delay alarm threshold can be dynamically adjusted according to the statistical results of the "minimum delay i" during the measurement process 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 messages are as follows:

[0153] According to the S204 solution, the 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 the average delay. For the measured service delay alarm strategy between the two adjacent detection nodes, the specific steps are as follows:

[0154] Assume that during the service detection period, the number of valid detection cycles 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 of using delay information is as follows:

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

[0156] Count the number of times M when the "maximum delay" exceeds the "maximum delay alarm threshold" within N valid detection cycles. That is, if the "maximum delay" > the "maximum delay alarm threshold", M increases by 1, otherwise M remains unchanged. (M starts from 0).

[0157] Count the number of times K that the Average Delay exceeds the Average Delay Alarm Threshold within N valid detection cycles. That is, if the Average Delay > the Average Delay Alarm Threshold, K increases by 1, otherwise K remains unchanged. (K starts from 0).

[0158] The maximum delay exceeding probability threshold is set to p (indicating the ratio of M to N), and the average delay exceeding probability threshold is set to q (indicating 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 according to the statistical result of the “minimum delay i” during the measurement process.

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

[0163] Another alarm method for a service transmission link provided in an embodiment of the present application can determine a scheme for obtaining service message delay information according to a scenario for obtaining service message delay information, and read the average delay, maximum delay, and minimum delay of service messages in each detection cycle. According to the quality monitoring scenario of the service platform for the service under test, a specific service delay application scheme is determined, an alarm strategy for the service delay under test is formulated, an alarm threshold for the service delay under test is determined, and the delay information of the service under test is obtained. In addition, the alarm threshold for the service delay under test can be dynamically adjusted according to the minimum delay of the service message.

[0164] Figure 3 A schematic diagram of the structure of an alarm device for service message transmission provided in an embodiment of the present application. Figure 3 As shown, the alarm device 30 for service message transmission 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 used 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 used to acquire first current delay information of a service message transmitted from a first node to a second node in a current detection period, and first historical detection information of a service message transmitted from a first node to a 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 number and a first historical target detection number, and the first historical target detection number is the number of times in the first historical detection number that characterizes delay anomalies in the historical detection period;

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

[0168] The comparison module 304 is used to determine whether the delay of the service message transmitted from the first node to the second node is abnormal according to the first target delay and the first comparison delay satisfying the preset comparison requirement.

[0169] An updating module 305 is used 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, so as to obtain a first updated historical detection number and a first updated historical target detection number;

[0170] The alarm module 306 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.

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

[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] Determine a first target time and a first minimum delay according to 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 used for:

[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 determination module 303 may also be specifically used for:

[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 determination module 303 may also be specifically used for:

[0181] Determine, 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 for:

[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 for:

[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 updating module 305 may also be specifically used for:

[0187] According to the normal time delay of the service message being 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 updating module 305 may also be specifically used for:

[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 for:

[0191] Determine 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 sends an alarm message.

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

[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, the determination module 301 is used to 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; an acquisition module 302 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 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, and the first historical target detection number The number is the number of abnormal delays in the historical detection cycle in the first historical detection times; the determination module 303 is used to determine the first comparison delay corresponding to the first target delay according to 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 according to 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 according to the first updated historical detection times and the first updated historical target detection times. Therefore, through the alarm of the service message delay information, the ability to capture a small amount of abnormal delay information of the service message more accurately is achieved, the high-precision monitoring of the service quality is achieved, and the problem that the service message delay information in the prior art cannot be fully captured is solved.

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

[0197] The electronic device 40 may include a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, 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 execution instructions stored in the memory 402, so that at least one processor 401 executes the above alarm method for service message transmission.

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

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

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

[0202] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0203] In some embodiments, a computer program product is also 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, which will not be described in detail here.

[0205] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed 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, and the instructions can be loaded by a processor to execute the steps in any one of the service message transmission alarm methods provided in the embodiments 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 one 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 one 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. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be 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 precise structures that have been 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: 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; Obtaining first current delay information of the service message transmitted from the first node to the second node in a current detection cycle, and first historical detection information of the service message transmitted from the first node to the second node in a historical detection cycle, 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 number and a first historical target detection number, and the first historical target detection number is the number of the first historical detection number that characterizes the delay anomaly in the historical detection cycle; Determine, according to a 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; 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 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 times and the first update history target detection times.

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

3. The method according to claim 2, characterized in that The obtaining 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, characterized in that: 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: 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; 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, characterized in that After determining a first comparison delay corresponding to the first target delay according to 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 normal time delay of transmitting 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 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, the first updated historical detection number and the first historical target detection number are used as the historical detection information, and the step of determining a first comparison delay corresponding to the first target delay according to 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 and the first update history target detection number, and a preset delay ratio threshold; If the ratio value is greater than the delay ratio threshold, the user sends an alarm message.

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; Determine, 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 the preset comparison requirement, determining that the delay of transmitting the service message from the second node to the third node is abnormal; According to the abnormal delay of transmitting the service message from the second node to the third node, updating the second historical detection number and the second historical target detection number in the second historical detection information 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, used 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, used 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 number and a first historical target detection number, and the first historical target detection number is the number of the first historical detection number that characterizes the delay anomaly in the historical detection period; a determination module, configured to determine a first comparison delay corresponding to the first target delay according to 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 the delay of the service message being transmitted from the first node to the second node is abnormal; an update module, configured to update, based on the delay of the service message being transmitted 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, and when the computer-executable instructions are executed by a processor, they are used to implement the alarm method for service message transmission as described in 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

  • Method for determining route, electronic equipment and computer readable medium

    CN116566892A

  • Time-triggered scheduling method, node, electronic device, and storage medium

    WO2023116126A1