Alarm information sending method and device

CN116436756BActive Publication Date: 2026-09-22CHINA CONSTRUCTION BANK +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310526414.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-11
Publication Date
2026-09-22
Estimated Expiration
2043-05-11

AI Technical Summary

Technical Problem

但如果用户本地数据中心或云平台上,没有完成相应的联动配置,当链路故障时,没有完成配置的一端无法主动切换备用链路,从而导致网络中断

Benefits of technology

[0059]上述发明中的一个实施例具有如下优点或有益效果:在监测到目标链路发生故障的情况下,获取目标链路的流量信息,并确定目标链路的阶段信息;根据阶段信息,确定目标链路对应的告警信息及发送频率,并按照发送频率发送针对目标链路的告警信息。因此,利用本发明实施例提供的方法,在链路发生故障时,能够智能化地发送告警信息,以使运维人员快速完成链路切换,提高整个网络的稳定性,减轻运维工作人员的工作压力。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116436756B_ABST
    Figure CN116436756B_ABST
Patent Text Reader

Abstract

The application discloses an alarm information sending method and device, and relates to the technical field of network fault detection. A specific embodiment of the method comprises the following steps: monitoring whether a target link is faulty; in response to the target link being faulty, acquiring traffic information of the target link; determining stage information of the target link according to the traffic information of the target link; determining alarm information corresponding to the target link and a sending frequency according to the stage information, and sending the alarm information according to the sending frequency. The embodiment can intelligently send alarm information when the link is faulty, so that an operation and maintenance personnel can quickly complete link switching, the stability of the whole network is improved, and the work pressure of the operation and maintenance personnel is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of network fault detection technology, and in particular to a method and apparatus for sending alarm information. Background Technology

[0002] In hybrid cloud deployment scenarios, leased line access provides a fast and secure way to connect cloud platforms and on-premises data centers. Users can use a single physical leased line to connect cloud platform computing resources located in multiple regions, enabling flexible and reliable hybrid cloud deployments. Leased line access offers predictable, high-throughput, and reliable connections. Users' on-premises data centers can leverage the elastic computing capabilities of the cloud to flexibly expand the application layer capabilities of their on-premises data centers, enjoying the scale and economic benefits of the public cloud without sacrificing network performance.

[0003] To ensure the reliability of leased line connections, redundant physical leased lines and primary / backup channels are typically created. This requires configuring the leased line and BFD (Bidirectional Forwarding Detection) together on both the user's local data center and the cloud platform to establish network connectivity. However, if the corresponding configuration is not completed on the user's local data center or cloud platform, the unconfigured end cannot actively switch to the backup link when the link fails, resulting in network interruption. Summary of the Invention

[0004] In view of this, embodiments of the present invention provide an alarm information sending method and apparatus that can intelligently send alarm information when a link failure occurs, enabling maintenance personnel to quickly complete link switching, improve the stability of the entire network, and reduce the workload of maintenance personnel.

[0005] In a first aspect, embodiments of the present invention provide a method for sending alarm information, including:

[0006] Monitor whether the target link has failed;

[0007] In response to a failure of the target link, the traffic information of the target link is obtained;

[0008] Based on the traffic information of the target link, determine the stage information of the target link;

[0009] Based on the stage information, determine the alarm information and transmission frequency corresponding to the target link, and transmit the alarm information according to the transmission frequency.

[0010] Optionally, the target link is used to connect the cloud platform and the local data center, and a traffic table is set in the cloud platform or the local data center;

[0011] The step of obtaining the traffic information of the target link includes:

[0012] At preset intervals, obtain traffic statistics information of the target link in each time period;

[0013] The traffic statistics and their corresponding time periods are stored in the traffic table;

[0014] Based on the data in the traffic table, the average traffic of the target link during the statistical period is calculated, and the average traffic is determined as the traffic information of the target link.

[0015] Optionally, determining the stage information of the target link based on the traffic information of the target link includes:

[0016] Determine whether the traffic information is 0;

[0017] In response to the traffic information being 0, it is determined that the stage information indicates that the target link is in the debugging stage;

[0018] In response to the traffic information being non-zero, it is determined that the stage information indicates that the target link has been debugged.

[0019] Optionally, determining the alarm information and transmission frequency corresponding to the target link based on the stage information includes:

[0020] In response to the stage information indicating that the target link is in the debugging stage, an alarm message corresponding to the target link is generated, the alarm message including: link identifier and the stage information;

[0021] The first frequency is determined as the transmission frequency.

[0022] Optionally, after determining that the stage information indicates that the target link has been debugged, the process further includes:

[0023] Determine the link information of the target link, wherein the link information is used to characterize whether the target link is a main line;

[0024] The step of determining the alarm information and transmission frequency corresponding to the target link based on the stage information includes:

[0025] Based on the stage information and the link information, determine the alarm information and transmission frequency corresponding to the target link.

[0026] Optionally, determining the alarm information and transmission frequency corresponding to the target link based on the stage information and the link information includes:

[0027] In response to the stage information indicating that the target link has been debugged and the link indicates that the target link is the main line, the alarm information is generated, the alarm information includes: link identifier, the stage information and the link information; and the second frequency is determined as the transmission frequency;

[0028] In response to the stage information indicating that the target link has been debugged and the link indicates that the target link is a backup line, the alarm information is generated, the alarm information includes: link identifier, the stage information and the link information; and the third frequency is determined as the transmission frequency.

[0029] Optionally, determining the second frequency as the transmission frequency includes:

[0030] Determine the average daily traffic before and after the failure of the target link;

[0031] The base frequency is adjusted based on the comparison between the average daily flow before the fault and the average daily flow after the fault.

[0032] The adjusted reference frequency is determined as the second frequency.

[0033] Secondly, embodiments of the present invention provide an alarm information sending device, comprising:

[0034] The monitoring module is used to monitor whether the target link has failed.

[0035] A traffic acquisition module is used to acquire traffic information of the target link in response to a failure of the target link;

[0036] The phase determination module is used to determine the phase information of the target link based on the traffic information of the target link;

[0037] The information sending module is used to determine the alarm information and sending frequency corresponding to the target link based on the stage information, and to send the alarm information according to the sending frequency.

[0038] Optionally, the target link is used to connect the cloud platform and the local data center, and a traffic table is set in the cloud platform or the local data center;

[0039] The traffic acquisition module is specifically used for:

[0040] At preset intervals, obtain traffic statistics information of the target link in each time period;

[0041] The traffic statistics and their corresponding time periods are stored in the traffic table;

[0042] Based on the data in the traffic table, the average traffic of the target link during the statistical period is calculated, and the average traffic is determined as the traffic information of the target link.

[0043] Optionally, the stage determination module is specifically used for:

[0044] Determine whether the traffic information is 0;

[0045] In response to the traffic information being 0, it is determined that the stage information indicates that the target link is in the debugging stage;

[0046] In response to the traffic information being non-zero, it is determined that the stage information indicates that the target link has been debugged.

[0047] Optionally, the information sending module is specifically used for:

[0048] In response to the stage information indicating that the target link is in the debugging stage, an alarm message corresponding to the target link is generated, the alarm message including: link identifier and the stage information;

[0049] The first frequency is determined as the transmission frequency.

[0050] Optionally, the information sending module is specifically used for:

[0051] Determine the link information of the target link, wherein the link information is used to characterize whether the target link is a main line;

[0052] Based on the stage information and the link information, determine the alarm information and transmission frequency corresponding to the target link.

[0053] Thirdly, embodiments of the present invention provide an electronic device, including:

[0054] One or more processors;

[0055] Storage device for storing one or more programs.

[0056] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the above embodiments.

[0057] Fourthly, embodiments of the present invention provide a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the methods described in any of the above embodiments.

[0058] Fifthly, embodiments of the present invention provide a computer program product, including a computer program that, when executed by a processor, implements the methods described in any of the above embodiments.

[0059] One embodiment of the above invention has the following advantages or beneficial effects: when a target link failure is detected, the traffic information of the target link is obtained, and the stage information of the target link is determined; based on the stage information, the alarm information and sending frequency corresponding to the target link are determined, and the alarm information for the target link is sent according to the sending frequency. Therefore, using the method provided by the embodiments of the present invention, alarm information can be intelligently sent when a link failure occurs, enabling maintenance personnel to quickly complete link switching, improving the stability of the entire network, and reducing the workload of maintenance personnel.

[0060] The further effects of the aforementioned unconventional alternative methods will be explained below in conjunction with specific implementation methods. Attached Figure Description

[0061] The accompanying drawings are provided to better understand the invention and are not intended to unduly limit the scope of the invention. Wherein:

[0062] Figure 1 This is an exemplary system architecture diagram in which embodiments of the present invention can be applied;

[0063] Figure 2 This is a flowchart illustrating an alarm information sending method provided in the first embodiment of the present invention;

[0064] Figure 3 This is a flowchart illustrating an alarm information sending method provided in the second embodiment of the present invention;

[0065] Figure 4 This is a flowchart illustrating an alarm information sending method provided in the third embodiment of the present invention;

[0066] Figure 5 This is a schematic diagram of the structure of an alarm information sending device provided in an embodiment of the present invention;

[0067] Figure 6 This is a schematic diagram of the structure of a computer system suitable for implementing terminal devices or servers of the present invention. Detailed Implementation

[0068] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of the present invention, including various details to aid understanding. These details should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0069] It should be noted that the collection, analysis, use, transmission, and storage of user personal information involved in the technical solution of this invention all comply with relevant laws and regulations, are used for legitimate and reasonable purposes, and are not shared, disclosed, or sold outside of these legitimate uses, and are subject to supervision and management by regulatory authorities. Necessary measures should be taken to prevent unauthorized access to such personal information data, ensure that personnel authorized to access personal information data comply with relevant laws and regulations, and ensure the security of user personal information. Once this user personal information data is no longer needed, the risk should be minimized by restricting or even prohibiting data collection and / or deleting the data.

[0070] Figure 1 This is an exemplary system architecture diagram in which embodiments of the present invention can be applied. For example... Figure 1 As shown, a single physical leased line can connect cloud platform computing resources located in multiple regions, enabling flexible and reliable hybrid cloud deployments. To ensure the reliability of the leased line connection, redundant physical leased lines and primary / backup channels are typically created. If the leased line uses a static routing configuration, the redundant lines achieve route convergence through bidirectional BFD configuration. The leased line and BFD must be configured together in both the user's local data center and the cloud platform to establish network connectivity.

[0071] Because static routes lack a built-in detection mechanism, they cannot automatically switch between primary and backup routes when a network failure occurs, requiring manual intervention. BFD (Browser-Dependent Routing) and static route linkage allows binding BFD sessions to static routes, using these sessions to detect the status of the links containing the static routes. Normally, BFD binding for static routes needs to be configured on both ends of the network. If the binding is only configured on one side, even if the initial network is normal, a link failure will prevent the other end from actively switching routes, leading to network interruption.

[0072] The cloud platform or local data center monitors whether the target link has failed. If a failure is detected, the traffic information of the target link is obtained. Based on the traffic information, the stage information of the target link is determined. Based on the stage information, the corresponding alarm information and sending frequency for the target link are determined, and alarm information is sent according to the sending frequency to enable staff to perform line switching.

[0073] It should be noted that the alarm information sending method provided in the embodiments of the present invention is generally executed by the user's local data center or cloud platform, and correspondingly, the alarm information sending device is generally set in the local data center or cloud platform.

[0074] It should be understood that Figure 1The number of local data centers or cloud platforms shown is merely illustrative. Any number of local data centers or cloud platforms can be used depending on implementation needs.

[0075] This invention primarily addresses the network redundancy failure issue arising from inconsistent BFD configurations for dedicated lines (VLCs) on the cloud platform and user-side data centers in hybrid cloud deployment scenarios. It improves overall network stability and reduces the workload of operations and maintenance personnel. Figure 2 This is a flowchart illustrating an alarm information sending method provided in the first embodiment of the present invention, as shown below. Figure 2 As shown, the method includes:

[0076] Step 201: Monitor whether the target link has failed.

[0077] The target link is a dedicated line connecting the cloud platform and the local data center.

[0078] Step 202: In response to a failure in the target link, obtain the traffic information of the target link.

[0079] Step 203: Determine the stage information of the target link based on the traffic information of the target link.

[0080] Stage information is used to characterize the stage of the target link, such as the debugging stage or the stage after debugging is completed.

[0081] Step 204: Based on the stage information, determine the alarm information and transmission frequency corresponding to the target link, and send the alarm information according to the transmission frequency.

[0082] Alarm information may include: the target link's link identifier, stage information, traffic information, and whether it is a primary link.

[0083] The transmission frequency can be set as needed. If the target link is in the commissioning phase, a lower transmission frequency can be set, such as once a day or once every three days. If the target link has been commissioned and is the main line, a higher transmission frequency can be set, such as once an hour or once every 30 minutes.

[0084] If the solution of this embodiment of the invention is applied to a cloud platform, alarm information can be sent to the local data center. If the solution of this embodiment of the invention is applied to a local data center, alarm information can be sent to the cloud platform. Both sides of the system can promptly obtain information about the faulty link, resolving the network redundancy failure problem caused by differences in configuration for dedicated lines on the cloud platform and the user-side data center.

[0085] In the solution of this embodiment of the invention, when a target link fails, the traffic information of the target link is obtained, and the stage information of the target link is determined. Based on the stage information, the alarm information and sending frequency corresponding to the target link are determined, and the alarm information for the target link is sent according to the sending frequency. Therefore, using the method provided by this embodiment of the invention, alarm information can be intelligently sent when a link fails, enabling maintenance personnel to quickly complete link switching, improving the stability of the entire network, and reducing the workload of maintenance personnel.

[0086] The solution of this invention can be applied to cloud platforms. By monitoring the health status of dedicated line links, the cloud platform utilizes its alarm function to intelligently notify maintenance personnel of any network problems it discovers. This intelligently reminds network maintenance personnel to promptly synchronize configurations on the cloud platform and the user-side data center, preparing for network stability in advance and reducing the workload of network maintenance staff. Based on the characteristics and priority of line faults, a dynamic time interval is determined, and the cloud platform periodically sends alarms to on-duty personnel according to this interval, ensuring that network problems are quickly detected and resolved.

[0087] Figure 3 This is a flowchart illustrating an alarm information sending method provided in the second embodiment of the present invention, as shown below. Figure 3 As shown, the method includes:

[0088] Step 301: Monitor whether the target link has failed. The target link is used to connect the cloud platform and the local data center. A traffic table is set in the cloud platform or the local data center.

[0089] If the solution of this embodiment is applied to a cloud platform, the cloud platform has a traffic table. Traffic information is determined based on the traffic table, and corresponding alarm information is generated and sent to the local data center. If the solution of this embodiment is applied to a local data center, the local data center has a traffic table and generates corresponding alarm information, which is sent to the cloud platform. Through the alarm information, staff on both the cloud platform and the local data center can promptly learn about the relevant status of the faulty link, resolving the issue of different configurations of dedicated lines on both sides.

[0090] Step 302: In response to a failure of the target link, obtain traffic statistics information of the target link at preset intervals for each time period.

[0091] The preset interval can be set to 5 minutes or 10 minutes, etc., depending on the situation.

[0092] Step 303: Store the traffic statistics and their corresponding time periods in the traffic table.

[0093] At preset intervals, traffic statistics are obtained within the preset interval. The traffic statistics are the total traffic within the preset interval, and the traffic statistics are stored in the traffic table.

[0094] Step 304: Based on the data in the traffic table, calculate the average traffic of the target link during the statistical period, and determine the average traffic as the traffic information of the target link.

[0095] The statistical period can be set to half a day, one day, or two days, depending on the situation.

[0096] Step 305: Determine the stage information of the target link based on the traffic information of the target link.

[0097] If the traffic information of the target link is less than the traffic threshold, the determination stage information indicates that the target link is in the debugging stage. If the traffic information of the target link is not less than the traffic threshold, the determination stage information indicates that the target link has been debugged.

[0098] Step 306: Based on the stage information, determine the alarm information and transmission frequency corresponding to the target link, and send the alarm information according to the transmission frequency.

[0099] In this embodiment of the invention, a traffic table is maintained to record traffic statistics for leased lines at preset intervals. The health status of the leased lines is monitored, and based on the characteristics of the leased link, it is determined whether the target link is in the commissioning phase of a new leased line. If the link is an already operational leased line, the alarm interval is determined based on whether the link is a main line and the traffic on the link. Then, the alarm function of the cloud platform is used to take intelligent alarm measures, ensuring that network problems are quickly detected and resolved.

[0100] Figure 4 This is a flowchart illustrating an alarm information sending method provided in the third embodiment of the present invention, as shown below. Figure 4 As shown, the method includes:

[0101] Step 401: Monitor whether the target link has failed.

[0102] Step 402: In response to a failure in the target link, obtain the traffic information of the target link.

[0103] Step 403: Determine if the traffic information is 0.

[0104] If the traffic information is 0, the target link is in the commissioning phase of a newly built leased line, and proceed to step 404. If the traffic information is not 0, the target link is a leased line that is already in use, and proceed to step 407.

[0105] Step 404: Determine the stage information to indicate that the target link is in the debugging stage.

[0106] Step 405: Generate alarm information corresponding to the target link. The alarm information includes: link identifier and stage information.

[0107] Step 406: Determine the first frequency as the transmission frequency.

[0108] The target link is in the debugging stage, the fault level is not high, and the impact is small. A low initial frequency is set, such as once a day or once every three days.

[0109] Step 407: Determine that the target link for the stage information representation has been debugged.

[0110] Step 408: Determine the link information of the target link. The link information is used to identify whether the target link is the main line.

[0111] Step 409: Based on the stage information and link information, determine the alarm information and transmission frequency corresponding to the target link.

[0112] If the stage information indicates that the target link has been debugged and the link indicates that the target link is the main line, an alarm message is generated. The alarm message includes: link identifier, stage information and link information; the second frequency is determined as the transmission frequency.

[0113] The target link has been commissioned and is the main line. The fault level is high, and the impact is significant. Therefore, a higher secondary frequency is set, such as once per hour or once every 30 minutes. The secondary frequency should be higher than the primary frequency.

[0114] As one possible implementation method, the second frequency can be determined as follows: determine the average daily traffic before and after the failure of the target link; adjust the base frequency based on the comparison results of the average daily traffic before and after the failure; and determine the adjusted base frequency as the second frequency.

[0115] The base frequency can be once per hour, once every 10 minutes, etc. A mapping relationship between the flow difference and the adjustment value can be preset in the system. Determine the flow difference between the average daily flow after the fault and the average daily flow before the fault, and then determine the target adjustment value based on this flow difference and the mapping relationship; add the base frequency and the target adjustment value to obtain the second frequency.

[0116] Specifically, the average daily traffic Flow_ave before a failure is calculated from the time the link was put into use. Then, the average daily traffic Flow1, Flow2, ..., Flown for the n days before the link failure is calculated, where n can be set to 7 days. Flowi (i = 1 to n) is compared with Flow_ave, and the value of the second frequency is determined based on the comparison result. If Flowi is less than Flow_ave, it means the link is not currently used very frequently, and the value of the second frequency can be set slightly lower, such as once every 6 hours. If Flowi > Flow_ave, it means the link is currently used very frequently, and the link failure needs to be handled quickly. In this case, the value of the second frequency can be set slightly higher, such as once every hour.

[0117] If the stage information indicates that the target link has been debugged and the link indicates that the target link is a backup line, an alarm message is generated. The alarm message includes: link identifier, stage information and link information; the third frequency is determined as the transmission frequency.

[0118] The target link has been commissioned and is a backup line with a medium fault level. Set a corresponding third frequency, such as once every 3 hours or once every 6 hours. The third frequency should be between the first and second frequencies.

[0119] Step 410: Send alarm information according to the sending frequency.

[0120] In the solution of this embodiment of the invention, when a target link fails, the stage information of the target link is determined based on the link's traffic information. When the stage information indicates that the target link has been debugged, the alarm information and transmission frequency corresponding to the target link are determined based on the stage information and link information. The transmission frequency is dynamically determined according to the characteristics and priority of the faulty line, and alarm information is periodically sent to maintenance personnel according to this transmission frequency to ensure that network problems can be quickly detected and resolved.

[0121] To facilitate understanding of the embodiments of the present invention, a method for sending alarm information applied to a cloud platform is described below. A traffic table is maintained on the cloud platform, recording the traffic statistics of the dedicated line at preset intervals. The daily average traffic Flow_T = Flow_total / number of days, where Flow_total is the total traffic of the dedicated line within a fixed number of days.

[0122] The system sets two time values: a maximum time Tmax and a minimum time Tmin. For example, the maximum time Tmax is 1 day, and the minimum time Tmin is dynamically adjusted based on link traffic statistics. The alarm information is sent using the following methods:

[0123] Step S01: Monitor the health status of the target link on the cloud platform. After the cloud platform completes the configuration of static routing and BFD linkage, the health status of the link can be determined through the BFD status.

[0124] Step S02: If a link failure is detected, calculate the average daily traffic Flow_T of the link within time T. If the traffic is 0, it indicates that the link is newly established and may currently be in the debugging phase. The cloud platform then sends an alarm message to the on-duty personnel every Tmax time interval. The on-duty personnel can learn from the alarm content that the configuration of the dedicated line is not yet complete and can complete the link configuration in a timely manner according to the actual situation.

[0125] Step S03: If Flow_T is not 0, it means the leased line has been debugged and is ready for actual use, or has already been put into use. Then, determine if the target link is the primary line. If it is the primary line, determine Tmin based on the historical traffic data on that link. The cloud platform sends an alarm for primary line anomalies to the on-duty personnel every Tmin, allowing network operations personnel to quickly intervene and determine whether traffic should be switched to the backup line.

[0126] If traffic in the local data center fails to switch to the backup line due to a lack of routing and BFD linkage configuration, the local data center's network operations personnel can quickly complete the correct configuration and resolve the issue.

[0127] Step S04: If the target link is not the primary link, then it is the backup link. Since the primary link is still healthy, the fault is of secondary priority. Alarm information can be sent to on-duty personnel via the cloud platform every Tmax time interval. On-duty personnel can learn about the backup link anomaly through the alarm content and take appropriate action.

[0128] The solution in this invention intelligently reminds operations and maintenance personnel to promptly synchronize configurations on the cloud platform and the user-side data center, preparing for network stability in advance and reducing the workload of network operations and maintenance staff. Simultaneously, based on the characteristics and priority of link failures, a dynamic time interval is determined, and the cloud platform periodically sends alarm information to on-duty personnel according to this interval, ensuring that network problems are quickly detected and resolved. Therefore, it can solve the network redundancy failure problem caused by different dedicated line configurations on the cloud platform and the local data center in hybrid cloud deployment scenarios.

[0129] Figure 5 This is a schematic diagram of the structure of an alarm information sending device provided in one embodiment of the present invention, as shown below. Figure 5 As shown, the device includes:

[0130] Monitoring module 501 is used to monitor whether the target link has failed;

[0131] The traffic acquisition module 502 is used to acquire traffic information of the target link in response to a failure of the target link;

[0132] The phase determination module 503 is used to determine the phase information of the target link based on the traffic information of the target link.

[0133] The information sending module 504 is used to determine the alarm information and sending frequency corresponding to the target link based on the stage information, and to send the alarm information according to the sending frequency.

[0134] Optionally, the target link is used to connect the cloud platform and the local data center, and a traffic table is set up in the cloud platform or the local data center;

[0135] The traffic acquisition module 502 is specifically used for:

[0136] At preset intervals, obtain traffic statistics for the target link in each time period;

[0137] Store traffic statistics and their corresponding time periods in a traffic table;

[0138] Based on the data in the traffic table, calculate the average traffic of the target link during the statistical period, and determine the average traffic as the traffic information of the target link.

[0139] Optionally, the phase determination module 503 is specifically used for:

[0140] Determine if the traffic information is 0;

[0141] When the traffic information is 0, it is determined that the phase information indicates that the target link is in the debugging phase.

[0142] In response to the traffic information being non-zero, it is determined that the phase information indicates that the target link has been debugged.

[0143] Optionally, the information sending module 504 is specifically used for:

[0144] In response to the stage information indicating that the target link is in the debugging stage, alarm information corresponding to the target link is generated. The alarm information includes: link identifier and stage information;

[0145] The first frequency is determined as the transmission frequency.

[0146] Optionally, the information sending module 504 is specifically used for:

[0147] Determine the link information of the target link, which is used to identify whether the target link is a main line;

[0148] Based on the stage information and link information, determine the alarm information and transmission frequency corresponding to the target link.

[0149] Optionally, the information sending module 504 is specifically used for:

[0150] In response to the stage where the phase information indicates that the target link has been debugged and the link indicates that the target link is the main line, an alarm message is generated, which includes: link identifier, stage information and link information; and the second frequency is determined as the transmission frequency.

[0151] In response to the stage where the phase information indicates that the target link has been debugged and the link indicates that the target link is a backup line, an alarm message is generated. The alarm message includes: link identifier, phase information and link information; and the third frequency is determined as the transmission frequency.

[0152] Optionally, the information sending module 504 is also used for:

[0153] Determine the average daily traffic before and after the target link failure;

[0154] The base frequency was adjusted based on the comparison between the average daily flow before and after the fault.

[0155] The adjusted reference frequency is determined as the second frequency.

[0156] This invention provides an electronic device, comprising:

[0157] One or more processors;

[0158] Storage device for storing one or more programs.

[0159] When one or more programs are executed by one or more processors, the one or more processors implement the methods of any of the above embodiments.

[0160] This invention provides a computer program product, including a computer program that, when executed by a processor, implements the enterprise risk assessment method of this invention.

[0161] The following is for reference. Figure 6 It shows a schematic diagram of the structure of a computer system 600 suitable for implementing a terminal device of the present invention. Figure 6 The terminal device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.

[0162] like Figure 6As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 602 or programs loaded from storage section 608 into random access memory (RAM) 603. The RAM 603 also stores various programs and data required for the operation of the system 600. The CPU 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0163] The following components are connected to I / O interface 605: an input section 606 including a keyboard, mouse, etc.; an output section 607 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to I / O interface 605 as needed. A removable medium 611, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 610 as needed so that computer programs read from it can be installed into storage section 608 as needed.

[0164] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 609, and / or installed from removable medium 611. When the computer program is executed by central processing unit (CPU) 601, it performs the functions defined above in the system of this invention.

[0165] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0166] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0167] The modules described in the embodiments of the present invention can be implemented in software or hardware. The described modules can also be housed in a processor, and for example, can be described as: a monitoring module, a traffic acquisition module, a phase determination module, and an information sending module. The names of these modules do not necessarily limit the module itself; for example, a monitoring module can also be described as "a module that monitors whether a target link has failed."

[0168] In another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently and not assembled into the device. The computer-readable medium carries one or more programs, which, when executed by the device, cause the device to include:

[0169] Monitor whether the target link has failed;

[0170] In response to a failure of the target link, the traffic information of the target link is obtained;

[0171] Based on the traffic information of the target link, determine the stage information of the target link;

[0172] Based on the stage information, determine the alarm information and transmission frequency corresponding to the target link, and transmit the alarm information according to the transmission frequency.

[0173] According to the technical solution of the present invention, when a target link fails, the traffic information of the target link is obtained, and the stage information of the target link is determined. Based on the stage information, the alarm information and sending frequency corresponding to the target link are determined, and the alarm information for the target link is sent according to the sending frequency. Therefore, using the method provided by the embodiments of the present invention, alarm information can be intelligently sent when a link fails, enabling maintenance personnel to quickly complete link switching, improving the stability of the entire network, and reducing the workload of maintenance personnel.

[0174] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for sending alarm information, characterized in that, include: Monitor whether the target link has failed; In response to a failure of the target link, the traffic information of the target link is obtained; Based on the traffic information of the target link, determine the stage information of the target link; The stage information is used to characterize the stage in which the target link is located; The step of determining the stage information of the target link based on the traffic information of the target link includes: determining whether the traffic information is 0; in response to the traffic information being 0, determining that the stage information indicates that the target link is in the debugging stage; in response to the traffic information not being 0, determining that the stage information indicates that the target link has been debugged. Based on the stage information, determine the alarm information and transmission frequency corresponding to the target link, and send the alarm information according to the transmission frequency; the alarm information includes: the link identifier of the target link, stage information, traffic information, and whether it is a main line; The step of determining the alarm information and sending frequency corresponding to the target link based on the stage information includes: determining whether the target link is in the commissioning stage of a newly built leased line; if the target link is a leased line that has been put into use, determining the alarm time interval based on whether the link is a main line and the traffic on the link, and then taking alarm measures using the alarm function of the cloud platform.

2. The method according to claim 1, characterized in that, The target link is used to connect the cloud platform and the local data center, and a traffic table is set in the cloud platform or the local data center; The step of obtaining the traffic information of the target link includes: At preset intervals, obtain traffic statistics information of the target link in each time period; The traffic statistics and their corresponding time periods are stored in the traffic table; Based on the data in the traffic table, the average traffic of the target link during the statistical period is calculated, and the average traffic is determined as the traffic information of the target link.

3. The method according to claim 1, characterized in that, The step of determining the alarm information and transmission frequency corresponding to the target link based on the stage information includes: In response to the stage information indicating that the target link is in the debugging stage, alarm information corresponding to the target link is generated; The first frequency is determined as the transmission frequency.

4. The method according to claim 1, characterized in that, After determining that the stage information indicates that the target link has been debugged, the process further includes: Determine the link information of the target link, wherein the link information is used to characterize whether the target link is a main line; The step of determining the alarm information and transmission frequency corresponding to the target link based on the stage information includes: Based on the stage information and the link information, determine the alarm information and transmission frequency corresponding to the target link.

5. The method according to claim 4, characterized in that, The step of determining the alarm information and transmission frequency corresponding to the target link based on the stage information and the link information includes: In response to the stage information indicating that the target link has been debugged and the link indicates that the target link is the main line, the alarm information is generated, the alarm information includes: link identifier, the stage information and the link information; and the second frequency is determined as the transmission frequency; In response to the stage information indicating that the target link has been debugged and the link indicates that the target link is a backup line, the alarm information is generated, the alarm information includes: link identifier, the stage information and the link information; and the third frequency is determined as the transmission frequency.

6. The method according to claim 5, characterized in that, Determining the second frequency as the transmission frequency includes: Determine the average daily traffic before and after the failure of the target link; The base frequency is adjusted based on the comparison between the average daily flow before the fault and the average daily flow after the fault. The adjusted reference frequency is determined as the second frequency.

7. An alarm information sending device, characterized in that, include: The monitoring module is used to monitor whether the target link has failed. The traffic acquisition module is used to acquire traffic information of the target link in response to a failure of the target link; The phase determination module is used to determine the phase information of the target link based on the traffic information of the target link; The stage information is used to characterize the stage in which the target link is located; The stage determination module is specifically used to: determine whether the traffic information is 0; in response to the traffic information being 0, determine that the stage information indicates that the target link is in the debugging stage; In response to the traffic information being non-zero, it is determined that the stage information indicates that the target link has been debugged. The information sending module is used to determine the alarm information and sending frequency corresponding to the target link based on the stage information, and to send the alarm information according to the sending frequency; the alarm information includes: the link identifier of the target link, stage information, traffic information, and whether it is a main line; The information sending module is specifically used to: determine whether the target link is in the commissioning phase of a newly built leased line; if the target link is a leased line that has been put into use, determine the alarm time interval based on whether the link is a main line and the traffic on the link, and then take alarm measures using the alarm function of the cloud platform.

8. The apparatus according to claim 7, characterized in that, The target link is used to connect the cloud platform and the local data center, and a traffic table is set in the cloud platform or the local data center; The traffic acquisition module is specifically used for: At preset intervals, obtain traffic statistics information of the target link in each time period; The traffic statistics and their corresponding time periods are stored in the traffic table; Based on the data in the traffic table, the average traffic of the target link during the statistical period is calculated, and the average traffic is determined as the traffic information of the target link.

9. The apparatus according to claim 7, characterized in that, The information sending module is specifically used for: In response to the stage information indicating that the target link is in the debugging stage, alarm information corresponding to the target link is generated; The first frequency is determined as the transmission frequency.

10. The apparatus according to claim 7, characterized in that, The information sending module is specifically used for: Determine the link information of the target link, wherein the link information is used to characterize whether the target link is a main line; Based on the stage information and the link information, determine the alarm information and transmission frequency corresponding to the target link.

11. An electronic device, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-6.

12. A computer-readable medium having a computer program stored thereon, characterized in that... When the program is executed by the processor, it implements the method as described in any one of claims 1-6.

13. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Vehicle-mounted monitoring alarm terminal, system and alarm method

    CN101656013A

  • BFD (Bidirectional Forwarding Detection) protocol-based link detection method and apparatus and network processor

    CN102780593A

  • Communication Monitor And Prediction Method

    CN103929322A