CN109104338B - Link intelligent detection method, storage medium and computer equipment - Google Patents

Link intelligent detection method, storage medium and computer equipment Download PDF

Info

Publication number
CN109104338B
CN109104338B CN201811338991.9A CN201811338991A CN109104338B CN 109104338 B CN109104338 B CN 109104338B CN 201811338991 A CN201811338991 A CN 201811338991A CN 109104338 B CN109104338 B CN 109104338B
Authority
CN
China
Prior art keywords
link
working state
local
tolerance
bandwidth utilization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811338991.9A
Other languages
Chinese (zh)
Other versions
CN109104338A (en
Inventor
于越
赵沛静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Original Assignee
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Topsec Technology Co Ltd, Beijing Topsec Network Security Technology Co Ltd, Beijing Topsec Software Co Ltd filed Critical Beijing Topsec Technology Co Ltd
Priority to CN201811338991.9A priority Critical patent/CN109104338B/en
Publication of CN109104338A publication Critical patent/CN109104338A/en
Application granted granted Critical
Publication of CN109104338B publication Critical patent/CN109104338B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The invention provides a link intelligent detection method, a storage medium and computer equipment, wherein the method comprises the following steps: detecting the working state of a local link by using the existing network protocol; and marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance when the working state indicates that the local link is unavailable. The invention judges the working state of the current link in a multidimensional way, can more accurately detect the working state of the current link, avoids misjudgment on the working state of the current link caused by network congestion in the peak period of surfing the Internet, and has good user experience of surfing the Internet.

Description

Link intelligent detection method, storage medium and computer equipment
Technical Field
The invention relates to the technical field of computer network communication, in particular to an intelligent detection method for a computer link, and specifically relates to an intelligent detection method for a link, a storage medium and computer equipment.
Background
An important task of the load balancing server is to automatically detect software and hardware failures of the server by using a link load balancing health check technology, and if the server is not detected and the failed server is found, the client may send data request information to the failed server (for example, the server which has been stopped). For a server that has failed, the network administrator must manually replace or remove the failure of the server before the server can be reused by the client.
The link load balancing health check technology is to send a probe message to a server or some network nodes in a network by using some network protocols to determine whether the server or the network nodes are working normally. The link load balancing health check technology detects whether a server or a network node is in fault according to the characteristics of a used network protocol, link load balancing health detection can be carried out on the server or the network node based on different network protocols according to different requirements of users so as to determine whether the server or the network node is in fault, and the network protocol for detecting whether the server or the network node is in fault can select a TCP (transmission control protocol), an ARP (two-layer protocol), an ICMP/ICMPv6 (three-layer protocol), a TCP/UDP (four-layer protocol), an HTTP (hyper text transport protocol), an HTTPS (hypertext transfer protocol), an FTP (file transfer protocol) and the like. For example, the TCP protocol is a reliable transmission protocol, data transmission can be performed only after three handshakes are performed, link load balancing health check is performed on a server or a network node by using the characteristic, and if the three handshakes are successful, the server works normally.
However, sometimes the server may not have a fault, but due to a software bug, a network oscillation, a peak of network utilization, and the like, the application system running on the server may not work normally (for example, although the Web application may run normally, a page returned by the Web application is wrong content), and at this time, the load balancing server may confirm that the server has a fault, thereby causing a misjudgment on the server state.
Therefore, those skilled in the art need to develop a reliable network link load detection method to accurately determine the operating status of network nodes such as a server.
Disclosure of Invention
In view of this, the technical problem to be solved by the present invention is to provide a link intelligent detection method, a storage medium and a computer device, so as to solve the problems of single network link state judgment method and poor reliability of the judgment result in the prior art.
In order to solve the above technical problem, a specific embodiment of the present invention provides a link intelligent detection method, including: detecting the working state of a local link by using the existing network protocol; and marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance when the working state indicates that the local link is unavailable.
Further, before the step of marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance, the method further includes: and presetting the link tolerance according to the requirement.
Further, the step of marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance specifically includes: if the link bandwidth utilization is greater than or equal to the link tolerance, marking the final working state of the local link as available; otherwise, updating the link tolerance by using the link bandwidth utilization rate, and marking the final working state of the local link as unavailable.
Further, the link intelligent detection method further comprises the following steps: marking the final operating state of the local link as available when the operating state indicates that the local link is available.
Further, the step of detecting the working state of the local link by using the existing network protocol specifically includes: the working state of the local link is detected according to a preset period by utilizing the existing network protocol.
Further, after the operating status indicates that the local link is available, the method further includes: calculating a plurality of said link bandwidth utilization rates for said local link according to said predetermined period; storing the link bandwidth utilization within a recent predetermined time period to a database.
Further, before the step of marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance, the method further includes: calculating the link tolerance using the link bandwidth utilization for the most recent time period in the database.
The specific calculation formula of the link tolerance is as follows:
Figure BDA0001862015910000031
wherein y is the link tolerance; m is the first piece of data in the database in the latest time period; n is the last data in the latest time period in the database; x is the number ofiIs the link bandwidth utilization; a is variable coefficient for adjusting link tolerancePercentage of degree.
The embodiment of the invention also provides a storage medium, wherein the storage medium stores a computer program, and the computer program realizes the steps of the link intelligent detection method when being executed by a processor.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the link intelligent detection method when executing the computer program.
According to the above embodiments of the present invention, the link intelligent detection method, the storage medium and the computer device have at least the following advantages: the working state of the network link can be judged more accurately, and better service is provided for the user. Compared with the prior art that the working state of the network link is judged by only using the link load balancing monitoring technology, the method and the device have the advantages that the problem of network disconnection of a user caused by network link state monitoring failure due to network congestion in the network utilization peak period is solved through the link tolerance, and meanwhile, the working state of the network link is comprehensively judged by combining the link tolerance and the link bandwidth utilization rate, so that the judgment result is more accurate.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart of a first embodiment of a link intelligent detection method according to an embodiment of the present invention;
fig. 2 is a flowchart of a second embodiment of a link intelligent detection method according to a specific embodiment of the present invention;
fig. 3 is a flowchart of a third embodiment of a link intelligent detection method according to a specific embodiment of the present invention;
fig. 4 is a flowchart of a fourth embodiment of a link intelligent detection method according to the present invention;
fig. 5 is a flowchart of a fifth embodiment of a link intelligent detection method according to the present invention;
fig. 6 is a flowchart of a sixth embodiment of a link intelligent detection method according to a specific embodiment of the present invention.
Detailed Description
For the purpose of promoting a clear understanding of the objects, aspects and advantages of the embodiments of the invention, reference will now be made to the drawings and detailed description, wherein there are shown in the drawings and described in detail, various modifications of the embodiments described herein, and other embodiments of the invention will be apparent to those skilled in the art.
The exemplary embodiments of the present invention and the description thereof are provided to explain the present invention and not to limit the present invention. Additionally, the same or similar numbered elements/components used in the drawings and the embodiments are used to represent the same or similar parts.
As used herein, the terms "first," "second," …, etc., do not denote any order or sequence, nor are they used to limit the present invention, but rather are used to distinguish one element from another or from another element or operation described in the same technical language.
With respect to directional terminology used herein, for example: up, down, left, right, front or rear, etc., are simply directions with reference to the drawings. Accordingly, the directional terminology used is intended to be illustrative and is not intended to be limiting of the present teachings.
As used herein, the terms "comprising," "including," "having," "containing," and the like are open-ended terms that mean including, but not limited to.
As used herein, "and/or" includes any and all combinations of the described items.
References to "plurality" herein include "two" and "more than two"; reference to "multiple sets" herein includes "two sets" and "more than two sets".
As used herein, the terms "substantially", "about" and the like are used to modify any slight variation in quantity or error that does not alter the nature of the variation. Generally, the range of slight variations or errors modified by such terms may be 20% in some embodiments, 10% in some embodiments, 5% in some embodiments, or other values. It should be understood by those skilled in the art that the aforementioned values can be adjusted according to actual needs, and are not limited thereto.
Certain words used to describe the present application are discussed below or elsewhere in this specification to provide additional guidance to those skilled in the art in describing the present application.
Fig. 1 is a flowchart of a first embodiment of a link intelligent detection method according to an embodiment of the present invention, as shown in fig. 1, monitoring an operating state of a local link by using a conventional link load balancing monitoring technique, and if it is detected that the local link is not available, further determining whether the local link is available according to a link bandwidth utilization rate and a link tolerance.
In the specific implementation shown in the drawing, the link intelligent detection method includes:
s101: the working state of the local link is detected by using the existing network protocol. In the embodiment of the present invention, the existing network protocols include a TCP protocol, an ARP protocol (two-layer protocol), an ICMP/ICMPv6 protocol (three-layer protocol), a TCP/UDP protocol (four-layer protocol), an HTTP protocol, an HTTPs protocol, an FTP protocol, and the like. The local link is also the current link.
S102: and marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance when the working state indicates that the local link is unavailable. In the embodiment of the present invention, the link bandwidth utilization is the actual bandwidth utilization of the local link.
Referring to fig. 1, a dual determination basis is provided for determining the working state of the local link, the problem of network disconnection of a user due to detection failure caused by network speed congestion at a network utilization peak is reduced, the problem of poor user internet experience due to inaccurate state detection is reduced, and a better internet service is provided for the user.
Fig. 2 is a flowchart of an embodiment two of a link intelligent detection method according to a specific embodiment of the present invention, as shown in fig. 2, step S201 in fig. 2 is the same as step S101 in fig. 1, step S203 in fig. 2 is the same as step S102 in fig. 1, before marking a final working state of the local link according to a link bandwidth utilization rate and a link tolerance, a user may preset a link tolerance as needed, specifically, the user may configure a link tolerance actually required in current detection according to a configuration item, where the need may be selected by the user through several preset link tolerance options or link tolerance intervals, and the specific selection of the user is the preset link tolerance, which reflects an actual need of the user in the current detection.
In the specific implementation shown in the drawing, the link intelligent detection method includes:
s201: the working state of the local link is detected by using the existing network protocol.
S202: and presetting the link tolerance according to the requirement. In the embodiment of the invention, the user can configure the link tolerance according to the configuration item.
S203: and marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance when the working state indicates that the local link is unavailable.
Referring to fig. 2, a user can configure the link tolerance according to needs, so that personalized needs are met, and the user experience is high.
Fig. 3 is a flowchart of a third embodiment of a link intelligent detection method according to an embodiment of the present invention, as shown in fig. 3, step S301 in fig. 3 is the same as step S101 in fig. 1, and step S302 in fig. 3 is the same as step S102 in fig. 1, and a final working state of a local link is determined by comparing a size between a link bandwidth utilization rate and a link tolerance.
In the specific implementation shown in the drawing, the link intelligent detection method includes:
s301: the working state of the local link is detected by using the existing network protocol.
S3021: and if the link bandwidth utilization rate is greater than or equal to the link tolerance, marking the final working state of the local link as available. In the embodiment of the invention, although the local link is displayed to be unavailable when the working state of the local link is detected by using the existing network protocol, if the bandwidth utilization rate of the link is more than or equal to the tolerance of the link, the local link is still determined to be available.
S3022: otherwise, updating the link tolerance by using the link bandwidth utilization rate, and marking the final working state of the local link as unavailable. In the embodiment of the invention, if the link bandwidth utilization rate is less than the link tolerance, the local link is finally determined to be unavailable.
Referring to fig. 3, whether the final working state of the local link is available is determined by comparing the bandwidth utilization rate of the link with the tolerance of the link, and the multiple judgment bases make the state judgment result of the local link more accurate, so that a better service can be provided for a user.
Fig. 4 is a flowchart of a fourth embodiment of a link intelligent detection method according to an embodiment of the present invention, as shown in fig. 4, step S401 in fig. 4 is the same as step S101 in fig. 1, and step S402 in fig. 4 is the same as step S102 in fig. 1, and if the working state of the local link is detected to be available by using the existing network protocol, the final working state of the local link is finally determined to be available.
In the specific implementation shown in the drawing, the link intelligent detection method includes:
s401: the working state of the local link is detected by using the existing network protocol.
S402: and marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance when the working state indicates that the local link is unavailable.
S403: marking the final operating state of the local link as available when the operating state indicates that the local link is available. In the embodiment of the invention, if the working state of the local link is detected by using the existing network protocol, the local link is detected to be available, the final working state of the local link is directly determined to be available without further considering the link bandwidth utilization rate and the link tolerance.
Referring to fig. 4, if the working state of the local link is detected by using the existing network protocol, and the local link is directly determined to be available, the final working state of the local link is directly determined to be available, the detection efficiency is high, and the detection packet does not cause the increase of the flow of the local link.
Fig. 5 is a flowchart of a fifth embodiment of a link intelligent detection method according to an embodiment of the present invention, as shown in fig. 5, step S502 in fig. 5 is the same as step S402 in fig. 4, and step S503 in fig. 5 is the same as step S403 in fig. 4, and if the operating state of the local link is detected according to a predetermined cycle by using the existing network protocol, which indicates that the local link is unavailable, multiple link bandwidth utilization rates of the local link are calculated according to the predetermined cycle, and the link bandwidth utilization rates in the latest predetermined time period are stored in the database.
In the specific implementation shown in the drawing, the link intelligent detection method includes:
s501: the working state of the local link is detected according to a preset period by utilizing the existing network protocol.
S502: and marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance when the working state indicates that the local link is unavailable.
S503: marking the final operating state of the local link as available when the operating state indicates that the local link is available.
S504: calculating a plurality of said link bandwidth utilizations of said local link according to said predetermined period. In embodiments of the present invention, the predetermined period may be any time less than 60 minutes, for example, 5 minutes, 10 minutes, 15 minutes, 20 minutes, 30 minutes, and the like.
S505: storing the link bandwidth utilization within a recent predetermined time period to a database. In an embodiment of the present invention, the last predetermined period of time generally refers to within the last 12 hours of the present. The link bandwidth utilization stored in the database is shown in table 1 below, where table 1 is a link bandwidth utilization statistical table.
TABLE 1
Figure BDA0001862015910000091
Figure BDA0001862015910000101
Referring to fig. 5, when determining that the final working state of the local link is available, periodically calculating the link bandwidth utilization of the local link, and storing the link bandwidth utilization within the latest predetermined time period (for example, within the latest 12 hours) in the database; when the working state of the local link is detected by using the existing network protocol and the local link is displayed to be unavailable, and the link tolerance is not set by a user and needs to be calculated in a self-adaptive manner, the link tolerance is calculated by using the link bandwidth utilization rate in the latest time period (for example, in the latest hour) stored in the database, so that the working state of the local link is comprehensively judged by combining the common detection of the link and the link bandwidth utilization rate, and the judgment result of the link is more accurate according to a plurality of judgment bases.
Fig. 6 is a flowchart of a sixth embodiment of a link intelligent detection method according to an embodiment of the present invention, as shown in fig. 6, step S601 in fig. 6 is the same as step S501 in fig. 5, step S603 in fig. 6 is the same as step S502 in fig. 5, step S604 in fig. 6 is the same as step S503 in fig. 5, step S605 in fig. 6 is the same as step S504 in fig. 5, and step S606 in fig. 6 is the same as step S505 in fig. 5, and the link tolerance is calculated by using the link bandwidth utilization rate in the database within the last hour through an average value method.
In the specific implementation shown in the drawing, the link intelligent detection method includes:
s601: the working state of the local link is detected according to a preset period by utilizing the existing network protocol.
S602: calculating the link tolerance using the link bandwidth utilization for the most recent time period in the database. In an embodiment of the invention, the recent time period may be the link bandwidth utilization within the last hour.
S603: and marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance when the working state indicates that the local link is unavailable.
S604: marking the final operating state of the local link as available when the operating state indicates that the local link is available.
S605: calculating a plurality of said link bandwidth utilizations of said local link according to said predetermined period.
S606: storing the link bandwidth utilization within the latest predetermined time period to a database for use in step S602.
In a specific embodiment of the present invention, a specific calculation formula of the link tolerance is as follows:
Figure BDA0001862015910000112
wherein y is the link tolerance; m is the first piece of data in the database in the latest time period; n is the last data in the latest time period in the database; x is the number ofiIs the link bandwidth utilization; a is a variable coefficient used to adjust the percentage of the link tolerance.
If the user configures four links Link _01, Link _02, Link _03 and Link _04, the first two links automatically learn the Link tolerance and the second two links specify the Link tolerance according to the Link tolerance, where table 2 is a "Link _01 Link probing statistical table" and table 3 is a "Link _02 Link probing statistical table" as follows:
TABLE 2
Figure BDA0001862015910000111
Figure BDA0001862015910000121
TABLE 3
Time of warehousing Link name Percentage of link bandwidth
2018-8-15 10:16:20 link_02 85%
2018-8-15 10:26:29 link_02 88%
2018-8-15 11:36:23 link_02 93%
2018-8-15 11:46:20 link_02 89%
…… …… ……
2018-8-15 11:06:00 link_02 56%
Taking Table 2 as an example, the link tolerance is calculated by the link tolerance formula
Figure BDA0001862015910000122
Can obtain the product
Figure BDA0001862015910000123
I.e., link tolerance of 96%, where n-m ═ 6, i.e., approximately one hour, coexists in 6 pieces of data, probing every 10 minutes on average,
Figure BDA0001862015910000124
the network flow tends to be stable in the period of time corresponding to the sum of the utilization rates of the link bandwidths in the last hour; according to the calculation result, when the link bandwidth utilization rate is less than 96%, the link detection should be successful, that is, the final working state of the current link is available.
The invention provides a storage medium, wherein a computer program is stored on the storage medium, and when the computer program is executed by a processor, the method for realizing link intelligent detection comprises the following steps:
s101: the working state of the local link is detected by using the existing network protocol.
S102: and marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance when the working state indicates that the local link is unavailable.
The specific implementation manner of the present invention further provides a storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method for implementing link intelligent detection includes the following steps:
s201: the working state of the local link is detected by using the existing network protocol.
S202: and presetting the link tolerance according to the requirement.
S203: and marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance when the working state indicates that the local link is unavailable.
The specific implementation manner of the present invention further provides a storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method for implementing link intelligent detection includes the following steps:
s301: the working state of the local link is detected by using the existing network protocol.
S3021: and if the link bandwidth utilization rate is greater than or equal to the link tolerance, marking the final working state of the local link as available.
S3022: otherwise, updating the link tolerance by using the link bandwidth utilization rate, and marking the final working state of the local link as unavailable.
The specific implementation manner of the present invention further provides a storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method for implementing link intelligent detection includes the following steps:
s401: the working state of the local link is detected by using the existing network protocol.
S402: and marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance when the working state indicates that the local link is unavailable.
S403: marking the final operating state of the local link as available when the operating state indicates that the local link is available.
The specific implementation manner of the present invention further provides a storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method for implementing link intelligent detection includes the following steps:
s501: the working state of the local link is detected according to a preset period by utilizing the existing network protocol.
S502: and marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance when the working state indicates that the local link is unavailable.
S503: marking the final operating state of the local link as available when the operating state indicates that the local link is available.
S504: calculating a plurality of said link bandwidth utilizations of said local link according to said predetermined period.
S505: storing the link bandwidth utilization within a recent predetermined time period to a database.
The specific implementation manner of the present invention further provides a storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method for implementing link intelligent detection includes the following steps:
s601: the working state of the local link is detected according to a preset period by utilizing the existing network protocol.
S602: calculating the link tolerance using the link bandwidth utilization for the most recent time period in the database.
S603: and marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance when the working state indicates that the local link is unavailable.
S604: marking the final operating state of the local link as available when the operating state indicates that the local link is available.
S605: calculating a plurality of said link bandwidth utilizations of said local link according to said predetermined period.
S606: storing the link bandwidth utilization within the latest predetermined time period to a database for use in step S602.
The specific implementation manner of the present invention provides a computer device, which is characterized by comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein when the processor executes the computer program, the method for realizing link intelligent detection is implemented, and the method comprises the following steps:
s101: the working state of the local link is detected by using the existing network protocol.
S102: and marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance when the working state indicates that the local link is unavailable.
The specific implementation manner of the present invention further provides a computer device, which is characterized by comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein when the processor executes the computer program, the method for implementing link intelligent detection is implemented, and the method comprises the following steps:
s201: the working state of the local link is detected by using the existing network protocol.
S202: and presetting the link tolerance according to the requirement.
S203: and marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance when the working state indicates that the local link is unavailable.
The specific implementation manner of the present invention further provides a computer device, which is characterized by comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein when the processor executes the computer program, the method for implementing link intelligent detection is implemented, and the method comprises the following steps:
s301: the working state of the local link is detected by using the existing network protocol.
S3021: and if the link bandwidth utilization rate is greater than or equal to the link tolerance, marking the final working state of the local link as available.
S3022: otherwise, updating the link tolerance by using the link bandwidth utilization rate, and marking the final working state of the local link as unavailable.
The specific implementation manner of the present invention further provides a computer device, which is characterized by comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein when the processor executes the computer program, the method for implementing link intelligent detection is implemented, and the method comprises the following steps:
s401: the working state of the local link is detected by using the existing network protocol.
S402: and marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance when the working state indicates that the local link is unavailable.
S403: marking the final operating state of the local link as available when the operating state indicates that the local link is available.
The specific implementation manner of the present invention further provides a computer device, which is characterized by comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein when the processor executes the computer program, the method for implementing link intelligent detection is implemented, and the method comprises the following steps:
s501: the working state of the local link is detected according to a preset period by utilizing the existing network protocol.
S502: and marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance when the working state indicates that the local link is unavailable.
S503: marking the final operating state of the local link as available when the operating state indicates that the local link is available.
S504: calculating a plurality of said link bandwidth utilizations of said local link according to said predetermined period.
S505: storing the link bandwidth utilization within a recent predetermined time period to a database.
The specific implementation manner of the present invention further provides a storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method for implementing link intelligent detection includes the following steps:
s601: the working state of the local link is detected according to a preset period by utilizing the existing network protocol.
S602: calculating the link tolerance using the link bandwidth utilization for the most recent time period in the database.
S603: and marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance when the working state indicates that the local link is unavailable.
S604: marking the final operating state of the local link as available when the operating state indicates that the local link is available.
S605: calculating a plurality of said link bandwidth utilizations of said local link according to said predetermined period.
S606: storing the link bandwidth utilization within the latest predetermined time period to a database for use in step S602.
The embodiments of the invention described above may be implemented in various hardware, software code, or combinations of both. For example, an embodiment of the present invention may also be program code for executing the above method in a Digital Signal Processor (DSP). The invention may also relate to a variety of functions performed by a computer processor, digital signal processor, microprocessor, or Field Programmable Gate Array (FPGA). The processor described above may be configured according to the present invention to perform certain tasks by executing machine-readable software code or firmware code that defines certain methods disclosed herein. Software code or firmware code may be developed in different programming languages and in different formats or forms. Software code may also be compiled for different target platforms. However, the different code styles, types, and languages of software code and other types of configuration code that perform tasks in accordance with the present invention do not depart from the spirit and scope of the present invention.
The foregoing is merely an illustrative embodiment of the present invention, and any equivalent changes and modifications made by those skilled in the art without departing from the spirit and principle of the present invention should fall within the protection scope of the present invention.

Claims (8)

1. A link intelligent detection method is characterized by comprising the following steps:
detecting the working state of a local link by using the existing network protocol;
when the working state indicates that the local link is unavailable, marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance;
marking the final working state of the local link according to the link bandwidth utilization rate and the link tolerance, specifically comprising:
if the link bandwidth utilization is greater than or equal to the link tolerance, marking the final working state of the local link as available; and
otherwise, updating the link tolerance by using the link bandwidth utilization rate, and marking the final working state of the local link as unavailable;
the specific calculation formula of the link tolerance is as follows:
Figure FDA0002602767430000011
wherein y is the link tolerance; m is the first piece of data in the database in the latest time period; n is the last data in the latest time period in the database; x is the number ofiIs the link bandwidth utilization; a is a variable coefficient used to adjust the percentage of the link tolerance.
2. The method of claim 1, wherein prior to the step of marking the final operating status of the local link according to link bandwidth utilization and link tolerance, the method further comprises:
and presetting the link tolerance according to the requirement.
3. The link intelligent detection method according to claim 1, further comprising:
marking the final operating state of the local link as available when the operating state indicates that the local link is available.
4. The method according to claim 3, wherein the step of detecting the working status of the local link using the existing network protocol specifically includes: the working state of the local link is detected according to a preset period by utilizing the existing network protocol.
5. The method of claim 4, wherein when the operating status indicates that the local link is available, the method further comprises:
calculating a plurality of said link bandwidth utilization rates for said local link according to said predetermined period; and
storing the link bandwidth utilization within a recent predetermined time period to a database.
6. The method of claim 5, wherein prior to the step of marking the final operating status of the local link according to link bandwidth utilization and link tolerance, the method further comprises:
calculating the link tolerance using the link bandwidth utilization for the most recent time period in the database.
7. A storage medium having stored thereon a computer program for performing the steps of the method of any one of claims 1 to 6 when executed by a processor.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1 to 6 when executing the computer program.
CN201811338991.9A 2018-11-12 2018-11-12 Link intelligent detection method, storage medium and computer equipment Active CN109104338B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811338991.9A CN109104338B (en) 2018-11-12 2018-11-12 Link intelligent detection method, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811338991.9A CN109104338B (en) 2018-11-12 2018-11-12 Link intelligent detection method, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN109104338A CN109104338A (en) 2018-12-28
CN109104338B true CN109104338B (en) 2020-10-16

Family

ID=64870163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811338991.9A Active CN109104338B (en) 2018-11-12 2018-11-12 Link intelligent detection method, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN109104338B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1578234A (en) * 2003-07-29 2005-02-09 华为技术有限公司 Detecting method for Link routine state
CN101202677A (en) * 2007-12-12 2008-06-18 华为技术有限公司 Method and device for detecting link
WO2014065651A1 (en) * 2012-10-25 2014-05-01 Mimos Bhd A system for data throughput
CN104113449A (en) * 2014-07-15 2014-10-22 华为技术有限公司 Link detection method and apparatus
CN105515912A (en) * 2015-12-22 2016-04-20 河北远东通信系统工程有限公司 Detecting and processing method for validity of link among multiple nodes
CN106817264A (en) * 2015-11-27 2017-06-09 华为软件技术有限公司 A kind of methods, devices and systems of link failure detection

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5793746A (en) * 1996-04-29 1998-08-11 International Business Machines Corporation Fault-tolerant multichannel multiplexer ring configuration
US8958497B2 (en) * 2012-06-12 2015-02-17 Silicon Image, Inc. Simultaneous transmission of clock and bidirectional data over a communication channel

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1578234A (en) * 2003-07-29 2005-02-09 华为技术有限公司 Detecting method for Link routine state
CN101202677A (en) * 2007-12-12 2008-06-18 华为技术有限公司 Method and device for detecting link
WO2014065651A1 (en) * 2012-10-25 2014-05-01 Mimos Bhd A system for data throughput
CN104113449A (en) * 2014-07-15 2014-10-22 华为技术有限公司 Link detection method and apparatus
CN106817264A (en) * 2015-11-27 2017-06-09 华为软件技术有限公司 A kind of methods, devices and systems of link failure detection
CN105515912A (en) * 2015-12-22 2016-04-20 河北远东通信系统工程有限公司 Detecting and processing method for validity of link among multiple nodes

Also Published As

Publication number Publication date
CN109104338A (en) 2018-12-28

Similar Documents

Publication Publication Date Title
US10318366B2 (en) System and method for relationship based root cause recommendation
CN106294073B (en) Service calling method and device
US10909018B2 (en) System and method for end-to-end application root cause recommendation
US8347143B2 (en) Facilitating event management and analysis within a communications environment
US8943209B2 (en) Methods, systems, and computer readable media for policy and charging rules function (PCRF) fault tolerance
US8230051B1 (en) Method and apparatus for mapping and identifying resources for network-based services
US8429455B2 (en) Computer system management method and management system
CN109189640A (en) Monitoring method, device, computer equipment and the storage medium of server
US8949653B1 (en) Evaluating high-availability configuration
EP3232620B1 (en) Data center based fault analysis method and device
CN104579765A (en) Disaster tolerance method and device for cluster system
US10754722B1 (en) Method for remotely clearing abnormal status of racks applied in data center
CN109104338B (en) Link intelligent detection method, storage medium and computer equipment
JP4449929B2 (en) Transaction apparatus, delay fault detection apparatus and method, and program
CN110737548A (en) Data request method and server
US11477098B2 (en) Identification of candidate problem network entities
CN109962914B (en) Firewall configuration method and device
CN112039727A (en) Data transmission method and device, electronic equipment and storage medium
KR101590590B1 (en) Control apparatus and method thereof in software defined network
US11153769B2 (en) Network fault discovery
US11695671B2 (en) Method of checking connection integrity of source nodes in cluster, electronic device, and computer readable storage medium applying method
CN104348641A (en) Fault detection method and fault detection device
CN114064105A (en) Application program update pushing method, device, system and storage medium
US20180139113A1 (en) Efficiently Calculating Per Service Impact Of Ethernet Ring Status Changes
CN107070742B (en) Service server health state checking method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant