CN114615178A - Link quality detection method and device - Google Patents
Link quality detection method and device Download PDFInfo
- Publication number
- CN114615178A CN114615178A CN202210258760.7A CN202210258760A CN114615178A CN 114615178 A CN114615178 A CN 114615178A CN 202210258760 A CN202210258760 A CN 202210258760A CN 114615178 A CN114615178 A CN 114615178A
- Authority
- CN
- China
- Prior art keywords
- detection
- link
- packet loss
- identifier
- loss rate
- 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.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 297
- 230000004044 response Effects 0.000 claims abstract description 55
- 238000000034 method Methods 0.000 claims abstract description 47
- 239000000523 sample Substances 0.000 claims description 45
- 230000005540 biological transmission Effects 0.000 claims description 19
- 238000003860 storage Methods 0.000 claims description 14
- 230000003203 everyday effect Effects 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 10
- 238000009499 grossing Methods 0.000 claims description 9
- 238000013441 quality evaluation Methods 0.000 claims description 9
- 239000003550 marker Substances 0.000 claims description 7
- 238000011156 evaluation Methods 0.000 abstract description 5
- 238000012545 processing Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 14
- 238000004891 communication Methods 0.000 description 13
- 238000005516 engineering process Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 6
- 230000003993 interaction Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 239000000835 fiber Substances 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 230000001902 propagating effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 238000013144 data compression Methods 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 238000009795 derivation Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5003—Managing SLA; Interaction between SLA and QoS
- H04L41/5009—Determining service level performance parameters or violations of service level contracts, e.g. violations of agreed response time or mean time between failures [MTBF]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/04—Processing captured monitoring data, e.g. for logfile generation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
- H04L43/0829—Packet loss
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
- H04L43/087—Jitter
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/12—Network monitoring probes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Mining & Analysis (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The disclosure relates to a link quality detection method and a device, which are applied to an SD-WAN network comprising a station, a controller and at least one network node connected with the station through a link, wherein each network node is connected with the station through a plurality of links, and the method comprises the following steps: the control site sends corresponding detection messages to each network node through links between the network nodes; the control site receives a detection response message returned by each network node through a link in response to the detection message; the control station calculates detection data according to all the detection response messages; the control controller determines the link quality corresponding to each link according to the detection data; and the control controller determines the link quality between the outbound point and the network node according to the link quality corresponding to each link. The link quality between the outbound and the network node can be simply, quickly and accurately determined, and a basis is provided for checking the network condition evaluation between the network nodes and the sites provided by different operators.
Description
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for detecting link quality.
Background
Traditional enterprise applications, including E-mail, file sharing, Web applications, etc., adopt a centralized deployment mode, usually an enterprise deploys a data center in the headquarters, and connects a branch mechanism to the data center by renting a dedicated line of an operator, such as SDH (Synchronous Digital Hierarchy), OTN (Optical Transport Network), Ethernet, MPLS (Multi-Protocol Label Switching), etc.
The Service Level Agreement (SLA) promised by the operator for the private line Service includes bandwidth, time delay, jitter, packet loss rate, etc., and meets the requirements of the enterprise for deploying various applications in each branch, such as storage Service, unified communication system, etc. The traditional private line network has poor acquirability, optical fibers/circuits need to be deployed independently, and the consumed period is long; when the private line spans a plurality of networks/operators, the service opening period is longer; moreover, the price of the private line is high, the service cannot be flexibly ordered, a relatively long contract period is usually required, and the service opening cost is relatively high. In order to increase the utilization rate of a private line as much as possible, various WAN (Wide Area Network) optimization and application acceleration technologies are developed, including QoS (Quality of Service) flow Control, TCP (Transmission Control Protocol) Protocol optimization, Protocol proxy, data caching technology, data compression technology, and the like.
With the popularization of Ethernet technology, operators provide Ethernet services, can provide E-Line, E-Tree and E-LAN services, and subscribe bandwidth flexibly. An SDN (Software Defined Network) technology is currently introduced by an operator, an SDN controller and a coordinator are deployed in a WAN Network, and the efficiency of private line service delivery will be significantly improved. The high reliability of the private line depends on the private network of the operator, or the operator allocates exclusive network resources for the private line, and the cost of the private line is still high.
The SDN concept is gradually fermented in the ICT (Information and Communications Technology) field and introduced into the enterprise WAN market, driving SD-WAN derivation.
The software-defined wide area network SD-WAN inherits concepts of SDN control, forwarding separation, centralized control and the like, deploys a software control system in the enterprise WAN and helps enterprises to deal with challenges brought by cloud services and office mobility.
Disclosure of Invention
In view of this, the present disclosure provides a link quality detection method and apparatus.
According to an aspect of the present disclosure, there is provided a link quality detection method applied to an SD-WAN, the SD-WAN network including a station, a controller, and at least one network node connected to the station through a link, each network node being connected to the station through a plurality of links, the method including:
controlling the station to send a corresponding detection message to each network node through a link between the network node and the station;
controlling the site to receive a detection response message which is sent by each network node through a link between the network node and the site and is returned in response to the detection message;
controlling the station to calculate detection data according to all the received detection response messages, and sending the detection data to the controller;
controlling the controller to determine the link quality corresponding to each link according to the received detection data;
and controlling the controller to determine the link quality between the site and the network node according to the link quality corresponding to each link.
In a possible implementation manner, controlling the station to send a corresponding probe packet to each network node through a link between the network node and the station includes:
acquiring a first transmission number of data packets transmitted to the network node through each link, which is counted by a transmission counter corresponding to each link;
generating a detection message corresponding to each link according to the first sending quantity corresponding to each link and the determined mode identifier and timestamp;
sending the detection message to the network node through a link corresponding to the detection message according to the detection frequency corresponding to the mode identifier in the detection message;
the timestamp is used for indicating the sending time of the detection message, the mode identifier includes a conventional identifier or a high-frequency identifier, the conventional identifier is used for indicating that the detection mode of the detection message is a conventional detection mode, the high-frequency identifier is used for indicating that the detection mode of the detection message is a high-frequency detection mode and indicating the detection times, the detection frequency includes a first frequency corresponding to the conventional detection mode and a second frequency corresponding to the high-frequency detection mode, and the second frequency is greater than the first frequency.
In a possible implementation manner, the response to the probe response packet includes: responding to a first detection response message of the detection message with a conventional identifier or responding to a second detection response message of the detection message with a high-frequency identifier;
wherein, the first detection response message includes: the timestamp and the mode identifier copied from the received detection message, a second transmission number of data packets which are transmitted to the station through a link receiving the detection message and are counted by a transmission counter in the network node, and a first packet loss rate of the network node; the first packet loss rate is determined by the network node according to a first receiving number of data packets from the station received by a link receiving the detection message counted by a receiving counter in the network node and a first sending number in the responded detection message;
the second probe response packet includes: and copying the timestamp and the mode identifier from the received detection message.
In a possible implementation manner, controlling the station to calculate the probe data according to all the received probe response messages includes at least one of the following operations:
determining the current delay of a link for receiving the detection response message according to the receiving time of the detection response message and the timestamp in the detection response message;
calculating the smooth delay of each link at the time by using an exponential smoothing method according to the current delay and the smooth delay of each link at the last time;
calculating the current jitter of each link according to the current delay of each link and the smooth delay of the time;
and determining a second packet loss rate of the station according to the second sending number of the received detection response messages and the second receiving number of the data packets counted by the receiving counter corresponding to the link receiving the detection response messages.
In a possible implementation manner, controlling the station to send a corresponding probe packet to each network node through a link between the network node and the station further includes:
determining the mode identifier of the next detection message according to the mode identifier, the detection times and/or the link delay difference value in the detection message sent by each link, wherein the link delay difference value is the difference value between the current delay determined at this time and the delay after smoothing;
under the condition that the mode identifier in the current detection message is a conventional identifier or a high-frequency identifier and the link delay difference is smaller than the difference threshold, the mode identifier of the next detection message is the conventional identifier, and the detection times are cleared;
under the condition that the mode identifier in the current detection message is a conventional identifier or a high-frequency identifier and the detection times are greater than a time threshold, the mode identifier of the next detection message is a conventional identifier, and the detection times are cleared;
under the condition that the mode identification in the current detection message is a conventional identification, the link delay difference is greater than or equal to the difference threshold and the detection times are less than or equal to the times threshold, the mode identification of the next detection message is a high-frequency identification, and the times marked by the detection times are increased once;
and under the condition that the mode identifier in the current detection message is the high-frequency identifier and the detection times are marked for less than or equal to the times threshold, the mode identifier of the next detection message is the high-frequency identifier, and the times marked for the detection times are increased once.
In a possible implementation manner, controlling the station to send a corresponding probe packet to each network node through a link between the network node and the station further includes:
determining the mode identifier of the next detection message according to the mode identifier, the detection times and/or the link delay difference value in the detection message sent by each link, wherein the link delay difference value is the difference value between the current delay determined at this time and the delay after smoothing;
under the condition that the mode identifier in the current detection message is a conventional identifier, the link delay difference is greater than or equal to the difference threshold, and the frequency of the detection frequency marker is less than or equal to the frequency threshold, the mode identifier of the next detection message is a high-frequency identifier, and the frequency of the detection frequency marker is increased once;
under the condition that the mode identifier in the current detection message is a high-frequency identifier and the link delay difference value is smaller than the difference threshold value, the mode identifier of the next detection message is a conventional identifier, and the detection times are cleared;
under the condition that the mode identifier in the current detection message is a high-frequency identifier and the frequency of the detection frequency marker is greater than a frequency threshold value, the mode identifier of the next detection message is a conventional identifier, and the detection frequency is cleared;
under the condition that the mode identifier in the current detection message is a high-frequency identifier, the link delay difference is greater than or equal to the difference threshold, the detection times are marked for less than or equal to the times threshold and the switching condition is met, the mode identifier of the next detection message is a conventional identifier;
under the condition that the mode identifier in the current detection message is a high-frequency identifier, the link delay difference value is greater than or equal to the difference threshold value, the detection times marked times are less than or equal to the times threshold value and the switching condition is not met, the mode identifier of the next detection message is the high-frequency identifier, and the detection times marked times are increased once;
wherein the handover condition includes: the estimated sending time for sending the next detection message with the conventional identifier, which is determined according to the sending time of the detection message with the conventional identifier sent last time, is before or the same as the estimated sending time for sending the next detection message with the high-frequency identifier, which is determined according to the sending time of the detection message with the high-frequency identifier.
In a possible implementation manner, determining link quality corresponding to each link according to all the received probe response messages further includes:
determining the link quality of each link according to the detection data corresponding to each link and quality evaluation conditions, wherein the quality evaluation conditions comprise a good quality condition, a poor quality condition and a general quality condition, and the detection data comprise the current delay, the current jitter and the second packet loss rate of the link;
wherein the link quality of the link is good when the link satisfies the quality good condition; and when the link meets the quality difference condition, the link quality of the link is the quality difference, and when the link meets the quality general condition, the link quality of the link is the quality general.
In one possible implementation manner, the probe data further includes a first packet loss rate,
satisfying the quality-good condition includes: the current delay is less than or equal to a first delay threshold, the second packet loss rate is less than or equal to a first packet loss rate threshold, the current jitter is less than or equal to a first jitter threshold, and the first packet loss rate is less than or equal to a third packet loss rate threshold;
satisfying the poor quality condition includes the link satisfying at least one of the following conditions: the current delay is greater than or equal to a second delay threshold, the second packet loss rate is greater than or equal to a second packet loss rate threshold, the current jitter is greater than or equal to a second jitter threshold, and the first packet loss rate is greater than or equal to a fourth packet loss rate threshold;
the quality general condition being satisfied comprises the link not satisfying the quality good condition and not satisfying a quality poor condition;
wherein the first delay threshold is smaller than the second delay threshold, the first packet loss rate threshold is smaller than the second packet loss rate threshold, the third packet loss rate threshold is smaller than the fourth packet loss rate threshold, and the first jitter threshold is smaller than the second jitter threshold.
In a possible implementation manner, the first delay threshold, the second delay threshold, the first packet loss rate threshold, the second packet loss rate threshold, the third packet loss rate threshold, the fourth packet loss rate threshold, the first jitter threshold, and the second jitter threshold are respectively products of corresponding initial thresholds and corresponding adjustment coefficients, and the method further includes:
and controlling the controller to respectively determine a delay adjustment coefficient corresponding to the delay, a first packet loss rate adjustment coefficient corresponding to the first packet loss rate, a second packet loss rate adjustment coefficient corresponding to the second packet loss rate and a jitter adjustment coefficient corresponding to the jitter according to the historical delay, the historical second packet loss rate, the historical first packet loss rate and the historical jitter.
In a possible implementation manner, controlling the controller to determine a delay adjustment coefficient corresponding to the delay, a first packet loss rate adjustment coefficient corresponding to the first packet loss rate, a second packet loss rate adjustment coefficient corresponding to the second packet loss rate, and a jitter adjustment coefficient corresponding to the jitter according to the historical delay, the historical second packet loss rate, the historical first packet loss rate, and the historical jitter includes:
determining the ratio of a second average value of the current delay detected in the target time period before the current detection corresponding to the current time interval to a first average value of the current delay detected in the target time period before the current detection every day in the specified time interval as a delay adjustment coefficient corresponding to the current time interval;
determining the ratio of a second average value of the jitter detected in the target time period before the current detection corresponding to the current time interval to a first average value of the jitter detected in the target time period before the current detection every day in the specified time interval as a jitter adjustment coefficient corresponding to the current time interval;
determining a ratio of a second average value of a first packet loss rate detected in a target time period before the current detection corresponding to the current time interval to a first average value of a first packet loss rate detected in a designated time interval every day in the target time period before the current detection as a first packet loss rate adjustment coefficient corresponding to the current time interval;
and determining the ratio of a second average value of a second packet loss rate detected in a target time period before the current detection and a first average value of a second packet loss rate detected in a designated time period every day in the target time period before the current detection as a second packet loss rate adjustment coefficient corresponding to the current time period.
In a possible implementation manner, controlling the controller to determine the link quality between the station and the network node according to the link quality corresponding to each link includes:
and determining the optimal link quality in the link qualities of all the links as the link quality between the station and the network node.
According to another aspect of the present disclosure, there is provided a link quality detection apparatus including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the above method.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement the above-described method.
The application provides a link quality detection method and device, which can simply, quickly and accurately determine the link quality between an outbound site and a network node, and provide a basis for a user to check network condition evaluation between network nodes and sites provided by different operators.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 shows a flow chart of a link quality detection method according to an embodiment of the present disclosure.
Fig. 2 shows a flow interaction diagram of a link quality detection method according to an embodiment of the present disclosure.
Fig. 3 is a block diagram illustrating an apparatus 800 for link quality detection in accordance with an example embodiment.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
The SD-WAN network comprises sites (sites), controllers and network nodes. And transmitting the control type message between the controller and the site in the SD-WAN network to realize the control of the site or the site to the controller. There may be multiple sites in the SD-WAN network, and the site may be an enterprise headquarters accessing the SD-WAN network, a branch office, or an office device requiring access to the SD-WAN network. The SD-WAN network further includes a point-of-presence (POP) node connected to each station via a link (link), so as to implement network access connection of the station. In the related art, the POP is mostly provided by an operator, and the operator describes the network quality of the service provided by the operator through bandwidth, time delay, jitter, packet loss rate and the like, so that a user can select the operator according to needs. However, the link quality between the site and the POP is actually one of the evaluation factors for the user to select the operator, and how to provide a method capable of evaluating the quality of the last kilometer between the site and the POP is a technical problem to be solved urgently.
In order to solve the above technical problem, the present application provides a link quality detection method and apparatus. The method can simply, quickly and accurately determine the link quality between the outbound point and the network node, and provides a basis for a user to check the network condition evaluation between the network nodes and the sites provided by different operators. It can be applied to stations in an SD-WAN network. The stations are connected by links to Customer Premise Equipment (CPE) of the network node.
Fig. 1 shows a flow chart of a link quality detection method according to an embodiment of the present disclosure. Fig. 2 shows a flow interaction diagram of a link quality detection method according to an embodiment of the present disclosure. Fig. 2 is used to illustrate the information exchange process between a station (or CPE of a station) and a network node during the execution of the method. As shown in fig. 1 and 2, the method is applied to an SD-WAN network, and includes steps S11 to S15.
In step S11, the control station sends a corresponding Probe message to each network node through a link between the network node and the station.
In one possible implementation, step S11 may include: acquiring a first transmission number of packets transmitted to the network node through each link counted by a transmission Counter (Packet Send Counter) corresponding to each link; generating a detection message corresponding to each link according to the first sending quantity corresponding to each link and the determined mode identifier and Timestamp (Timestamp); and sending the detection message to the network node through a link corresponding to the detection message according to the detection frequency corresponding to the mode identifier in the detection message.
Wherein, the timestamp is used for indicating the sending time of the detection message. The mode identifier includes a normal identifier or a high-frequency identifier, the normal identifier is used to indicate that the detection mode of the detection packet is a normal detection mode, the high-frequency identifier is used to indicate that the detection mode of the detection packet is a high-frequency detection mode and indicate the detection times (explicit Count), the detection frequency includes a first frequency corresponding to the normal detection mode and a second frequency corresponding to the high-frequency detection mode, and the second frequency is greater than the first frequency.
Wherein, the regular detection mode is detection according to a preset time interval period. And the high frequency sounding mode is a sounding performed temporarily when a link quality degradation is detected.
In one possible implementation, step S11 may include: and an identifier determining step of determining the mode identifier of the next transmitted detection message after receiving the detection response message returned in response to the detection message each time. The identification determining step may include: and determining the mode identifier of the next detection message according to the mode identifier, the detection times and/or the link delay difference in the detection message sent by each link. The link delay difference is the difference between the Current delay (Current delay) and the Smoothed delay (Smoothed delay) determined this time. The current delay and the smoothed delay are calculated as follows. The identification determining step may determine the mode identification through the following one or two methods.
The first method is as follows:
under the condition that the mode identifier in the current detection message is a conventional identifier or a high-frequency identifier and the link delay difference is smaller than the difference threshold value, the mode identifier of the next detection message is the conventional identifier, and the detection times are cleared;
under the condition that the mode identifier in the current detection message is a conventional identifier or a high-frequency identifier and the detection times are greater than a time threshold, the mode identifier of the next detection message is a conventional identifier, and the detection times are cleared;
under the condition that the mode identification in the current detection message is a conventional identification, the link delay difference is greater than or equal to the difference threshold and the detection times are less than or equal to the times threshold, the mode identification of the next detection message is a high-frequency identification, and the times marked by the detection times are increased once;
and under the condition that the mode identifier in the current detection message is the high-frequency identifier and the detection times are marked for less than or equal to the times threshold, the mode identifier of the next detection message is the high-frequency identifier, and the times marked for the detection times are increased once.
For example, it is assumed that in the normal probing mode, the probing message is sent every 10 minutes (i.e. the first frequency is 10 min/time), that is, the probing message corresponding to the normal probing mode (for simplicity, also referred to as Probe0 hereinafter) is sent at a time node with a time interval of 10 minutes, 20 minutes, 30 minutes, 40 minutes … …, and so on from the current time. In the process of sending the Probe message corresponding to the normal probing mode at intervals of 10 minutes, if it is detected that the probing in the high-frequency probing mode needs to be temporarily performed at a certain time, the sending of multiple probing messages (hereinafter also referred to as Probe2 for simplicity) corresponding to the high-frequency probing mode is immediately performed. Assuming that the first frequency is 10 min/time, the threshold of the number of probing times is 2 times, and the second frequency is 2 min/time, if the mode identifier of the Probe packet is determined in the first reference mode, the transmission of Probe0 is just completed at the current time t0, and it is determined that the Probe needs to be performed in the high-frequency probing mode at the time t0+1min based on the Probe response packet of Probe0 responding to t0, and it is determined that the Probe needs to be performed in the high-frequency probing mode after the Probe2 is transmitted twice. The actually sent detection packet condition may be: probe2 is transmitted at t0+1min, Probe2 is transmitted at t0+3min, Probe0 is transmitted at t0+13min, and Probe0 … … is transmitted at t0+23 min.
The second method comprises the following steps:
under the condition that the mode identifier in the current detection message is a conventional identifier, the link delay difference is greater than or equal to the difference threshold, and the detection times are marked for less than or equal to the times threshold, the mode identifier of the next detection message is a high-frequency identifier, and the detection times are marked for one time;
under the condition that the mode identifier in the current detection message is a high-frequency identifier and the link delay difference value is smaller than the difference threshold value, the mode identifier of the next detection message is a conventional identifier, and the detection times are cleared;
under the condition that the mode identifier in the current detection message is a high-frequency identifier and the frequency of the detection frequency marker is greater than a frequency threshold value, the mode identifier of the next detection message is a conventional identifier, and the detection frequency is cleared;
under the condition that the mode identifier in the current detection message is a high-frequency identifier, the link delay difference is greater than or equal to the difference threshold, the detection times are marked for less than or equal to the times threshold and the switching condition is met, the mode identifier of the next detection message is a conventional identifier;
under the condition that the mode identifier in the current detection message is a high-frequency identifier, the link delay difference value is greater than or equal to the difference threshold value, the detection times marked times are less than or equal to the times threshold value and the switching condition is not met, the mode identifier of the next detection message is the high-frequency identifier, and the detection times marked times are increased once;
wherein the handover condition includes: the estimated sending time for sending the next detection message with the conventional identifier, which is determined according to the sending time of the detection message with the conventional identifier sent last time, is before or the same as the estimated sending time for sending the next detection message with the high-frequency identifier, which is determined according to the sending time of the detection message with the high-frequency identifier.
For example, assuming that the first frequency is 10 min/time, the threshold of the number of probing times is 2 times, and the second frequency is 2 min/time, if the mode identifier of the Probe packet is determined according to the second method, the transmission of Probe0 is just completed at the current time t0, and it is determined that the Probe needs to be performed in the high-frequency probing mode at the time t0+1min based on the Probe response packet of Probe0 responding to t0, and it is determined that the Probe needs to be performed in the high-frequency probing mode after the Probe2 is transmitted twice. The actually sent detection packet condition may be: probe2 is transmitted at t0+1min, Probe2 is transmitted at t0+3min, Probe0 is transmitted at t0+10min, and Probe0 … … is transmitted at t0+20 min.
In one possible implementation, the number of probing times may be directly used as a mode flag, for example, the ExponentialCount may be set to "0", i.e., the normal probing mode. ExponentiaCount is an integer greater than 0, which is the high frequency detection mode. Thus, in the high frequency detection mode, the detection times can be directly accumulated in the ExponentialCount.
In step S12, the control station receives a Probe-reply (Probe-reply) message sent by each network node through a link between the network node and the station and returned in response to the Probe message.
The detection response message may be a first detection response message or a second detection response message due to different detection modes corresponding to the detection message.
The first probe response message is generated by the network node in response to said probe message with the regular identity. The first detection response message includes: the timestamp and the pattern identifier copied from the received probe packet, a second transmission number of data packets transmitted to the station through a link receiving the probe packet, which is counted by a transmission counter in the network node, and a first packet loss rate of the network node. The first Packet loss rate is determined by the network node according to a first receiving number of data packets from the station received by a link receiving the probe Packet counted by a receiving Counter (Packet Receive Counter) in the network node and a first sending number in the responded probe Packet.
The second probe response message is generated by the network node in response to the probe message with the high frequency identification. The second probe response packet includes: and copying the timestamp and the mode identifier from the received detection message.
Calculating a first packet loss rate:
the network node may determine a first packet loss rate of the network node according to the first receiving number and the first sending number in the probe message responded by the probe response message. The first Packet Loss rate Current Packet Loss1 can be calculated by equation 1:
similarly, the Smoothed first Packet Loss rate smoothened Packet Loss1 may also be calculated.
In step S13, the control station calculates probe data according to all the received probe response messages.
In one possible implementation, step S13 may include at least one of the following operations: calculating Current delay (Current Latency), calculating Smoothed delay (Smoothed Latency), calculating Current Jitter (Current Jitter), and calculating Packet Loss (Packet Loss) (including calculating a second Packet Loss), wherein detailed execution processes of the operations are as follows:
calculating the current delay:
and determining the current delay of the link receiving the detection response message according to the receiving time of the detection response message and the timestamp in the detection response message. That is, the Current delay is the time indicated by the reception time-timestamp. In this way, the current delay of all links to which the station is connected can be calculated.
Calculating the delay after smoothing:
and calculating the smooth delay of each link at the time by using an exponential smoothing method according to the current delay and the smooth delay of each link at the last time. Wherein the post-smoothing delay smoothened Latency may be calculated by the following equation 2:
smoothened Latency + (1-a) Current Latency formula 2
Wherein a is a coefficient, and the value range of a is [0,1 ].
Calculating jitter:
and calculating the current jitter of each link according to the current delay of each link and the smooth delay of the time. Wherein, the Current Jitter can be calculated based on equation 3:
current Jitter-smoothened Latency formula 3
Furthermore, the Smoothed Jitter may also be calculated in the same way as the Smoothed delay, which may be calculated with reference to equation 4:
smoothened Jitter + (1-b) Current Jitter of formula 4
Wherein, b is a coefficient, and the value range is [0,1 ]. b may be the same as or different from a.
Calculating a second packet loss rate:
and determining a second packet loss rate of the station according to the second sending number of the received detection response messages and the second receiving number of the data packets counted by the receiving counter corresponding to the link receiving the detection response messages. The second Packet Loss rate Current Packet Loss2 can be calculated by equation 5:
similarly, the Smoothed first Packet Loss rate smoothened Packet Loss2 may also be calculated.
In step S14, the controller is controlled to determine link quality corresponding to each link according to the received probe data.
In one possible implementation, step S14 may further include: and determining the link quality of each link according to the detection data corresponding to each link and quality evaluation conditions, wherein the quality evaluation conditions comprise a good quality condition, a poor quality condition and a general quality condition, and the detection data comprise the current delay, the current jitter and the second packet loss rate of the link.
Wherein the link quality of the link is good when the link satisfies the quality good condition; and when the link meets the quality difference condition, the link quality of the link is poor, and when the link meets the quality general condition, the link quality of the link is general.
The probe data may further include a first packet loss rate. So as to ensure that the link quality can be evaluated more accurately based on the bidirectional packet loss rate determination. The conditions of good quality, poor quality and general quality can be set according to actual needs so as to meet the link quality evaluation requirements of users at different sites. For example:
satisfying the quality good condition includes: the current delay is less than or equal to a first delay threshold, the second packet loss rate is less than or equal to a first packet loss rate threshold, the current jitter is less than or equal to a first jitter threshold, and the first packet loss rate is less than or equal to a third packet loss rate threshold.
Satisfying the poor quality condition includes the link satisfying at least one of the following conditions: the current delay is greater than or equal to a second delay threshold, the second packet loss rate is greater than or equal to a second packet loss rate threshold, the current jitter is greater than or equal to a second jitter threshold, and the first packet loss rate is greater than or equal to a fourth packet loss rate threshold.
Satisfying the quality general condition includes the link not satisfying the quality good condition and not satisfying a quality poor condition.
Wherein the first delay threshold is smaller than the second delay threshold, the first packet loss rate threshold is smaller than the second packet loss rate threshold, the third packet loss rate threshold is smaller than the fourth packet loss rate threshold, and the first jitter threshold is smaller than the second jitter threshold.
Alternatively, the conditions satisfying the quality common conditions may be set separately, such as: satisfying the quality general condition includes the link satisfying at least one of the following conditions: the current delay is greater than a first delay threshold, the second packet loss rate is greater than a first packet loss rate threshold, the current jitter is greater than a first jitter threshold, and the first packet loss rate is greater than a third packet loss rate threshold.
In a possible implementation manner, the first delay threshold, the second delay threshold, the first packet loss rate threshold, the second packet loss rate threshold, the third packet loss rate threshold, the fourth packet loss rate threshold, the first jitter threshold, and the second jitter threshold are respectively products of corresponding initial thresholds and corresponding adjustment coefficients, and the method further includes:
the control controller respectively determines a delay adjustment coefficient corresponding to the delay, a first packet loss rate adjustment coefficient corresponding to the first packet loss rate, a second packet loss rate adjustment coefficient corresponding to the second packet loss rate and a jitter adjustment coefficient corresponding to the jitter according to the historical delay, the historical second packet loss rate, the historical first packet loss rate and the historical jitter.
Wherein, according to the historical delay, the historical second packet loss rate, the historical first packet loss rate, and the historical jitter, determining a delay adjustment coefficient corresponding to the delay, a first packet loss rate adjustment coefficient corresponding to the first packet loss rate, a second packet loss rate adjustment coefficient corresponding to the second packet loss rate, and a jitter adjustment coefficient corresponding to the jitter, respectively, the method comprises:
determining the ratio of a second average value of the current delay detected in the target time period before the current detection corresponding to the current time interval to a first average value of the current delay detected in the target time period before the current detection every day in the specified time interval as a delay adjustment coefficient corresponding to the current time interval;
determining the ratio of the second average value of the jitter detected in the target time period before the current detection corresponding to the current time interval to the first average value of the jitter detected in the target time period before the current detection every day in the specified time interval as a jitter adjustment coefficient corresponding to the current time interval;
determining a ratio of a second average value of a first packet loss rate detected in a target time period before the current detection and a first average value of a first packet loss rate detected in a designated time period every day in the target time period before the current detection as a first packet loss rate adjustment coefficient corresponding to the current time period;
and determining the ratio of a second average value of a second packet loss rate detected in a target time period before the current detection and a first average value of a second packet loss rate detected in a designated time period every day in the target time period before the current detection as a second packet loss rate adjustment coefficient corresponding to the current time period.
The target time period may be a time period of three months, one month, one week, and the like before the current detection. The designated time interval may be a time period of a day, such as 1:00 to 2: 00. The current time interval may be a time interval corresponding to the current time (including whether it is a working day and which time of the day it belongs to), and the length of the time interval may be 1 hour, for example, assuming that the current time is 4:35 of a non-working day, the corresponding current time interval may be 4:00-5:00 of the non-working day. Assuming that the current time is 4:35 of the working day, the corresponding current time interval may be 4:00-5:00 of the working day. The adjustment coefficient can be updated every preset time, for example, every day and every hour, so that the adjustment coefficient is updated in time according to the change condition of the link quality, and the accuracy of quality evaluation is ensured.
For example, it is assumed that the adjustment coefficient is to be updated, the target time period is one month, the specified time interval is 1: 00-2: 00, and one hour corresponding to the current time is the current time interval. When updating the adjustment coefficient at t1 (e.g., 4:50), first average values respectively corresponding to each current delay, first packet loss rate, second packet loss rate, and current jitter obtained by detecting at 1: 00-2: 00 of the non-working day 1: 00-2: 00 of a month before the current time t1 of the non-working day may be calculated. And then calculating second average values respectively corresponding to each current delay, the first packet loss rate, the second packet loss rate and the current jitter obtained by detection in a current time interval 4:00-5:00 corresponding to a non-working day of a month before the current time t1 of the non-working day. The delay adjustment coefficient is the ratio of the second average value of the current delay to the first average value of the current delay. The jitter adjustment coefficient is the ratio of the second average value of the current jitter to the first average value of the current jitter. The first packet loss rate adjustment coefficient is a ratio of a second average value of the first packet loss rate to a first average value of the first packet loss rate. The second packet loss ratio adjustment coefficient is a ratio of a second average value of the second packet loss ratio to a first average value of the second packet loss ratio.
In step S15, the control controller determines the link quality between the station and the network node according to the link quality corresponding to each link.
And determining the optimal link quality in the link qualities of all links as the link quality between the site and the network node. The link quality can be evaluated as good, bad and general according to the quality evaluation condition, and the evaluation corresponding to one or more links with the best quality is determined as the link quality between the station and the network node. And, link quality between the site and the network node can be determined and shown for the user, and/or the network node and the link corresponding to the optimal link quality can be shown.
For example, assume a site is connected to 3 network nodes 1, 2, 3, network node 1 is connected to the site by links 1-1, 1-2, 1-3, network node 2 is connected to the site by links 2-1, 2-2, 2-3, and network node 3 is connected to the site by links 3-1, 3-2. If the links 3-1, 2-2 are determined to be of good quality, the link quality between the station and the network node may be determined to be good.
It should be noted that, although the above embodiments are described as examples of the link quality detection method and apparatus, those skilled in the art can understand that the disclosure should not be limited thereto. In fact, the user can flexibly set each step and module according to personal preference and/or actual application scene, as long as the technical scheme of the disclosure is met.
The present application further provides a link quality detection apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of link quality detection described above.
Fig. 3 is a block diagram illustrating an apparatus 800 for link quality detection in accordance with an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 3, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium, such as the memory 804, is also provided that includes computer program instructions executable by the processor 820 of the device 800 to perform the above-described methods.
The present disclosure may be systems, methods, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
Claims (13)
1. A link quality detection method applied to an SD-WAN network including a station, a controller, and at least one network node connected to the station by a link, each network node being connected to the station by a plurality of links, the method comprising:
controlling the station to send a corresponding detection message to each network node through a link between the network node and the station;
controlling the site to receive a detection response message which is sent by each network node through a link between the network node and the site and is returned in response to the detection message;
controlling the station to calculate detection data according to all the received detection response messages, and sending the detection data to the controller;
controlling the controller to determine the link quality corresponding to each link according to the received detection data;
and controlling the controller to determine the link quality between the site and the network node according to the link quality corresponding to each link.
2. The method of claim 1, wherein controlling the station to send a corresponding probe packet to each network node via a link between the network node and the station comprises:
acquiring a first transmission number of data packets transmitted to the network node through each link, which is counted by a transmission counter corresponding to each link;
generating a detection message corresponding to each link according to the first sending quantity corresponding to each link and the determined mode identifier and timestamp;
sending the detection message to the network node through a link corresponding to the detection message according to the detection frequency corresponding to the mode identifier in the detection message;
the timestamp is used for indicating the sending time of the detection message, the mode identifier includes a conventional identifier or a high-frequency identifier, the conventional identifier is used for indicating that the detection mode of the detection message is a conventional detection mode, the high-frequency identifier is used for indicating that the detection mode of the detection message is a high-frequency detection mode and indicating the detection times, the detection frequency includes a first frequency corresponding to the conventional detection mode and a second frequency corresponding to the high-frequency detection mode, and the second frequency is greater than the first frequency.
3. The method of claim 2, wherein the probe response message returned in response to the probe message comprises: responding to a first detection response message of the detection message with a conventional identifier or responding to a second detection response message of the detection message with a high-frequency identifier;
wherein, the first detection response message includes: the timestamp and the mode identifier copied from the received detection message, a second transmission number of data packets which are transmitted to the station through a link receiving the detection message and are counted by a transmission counter in the network node, and a first packet loss rate of the network node; the first packet loss rate is determined by the network node according to a first receiving number of data packets from the station received by a link receiving the detection message counted by a receiving counter in the network node and a first sending number in the responded detection message;
the second probe response packet includes: and copying the timestamp and the mode identifier from the received detection message.
4. The method according to claim 2, wherein controlling the station to calculate the probe data according to all the received probe response messages comprises at least one of:
determining the current delay of a link for receiving the detection response message according to the receiving time of the detection response message and the timestamp in the detection response message;
calculating the smooth delay of each link at the time by using an exponential smoothing method according to the current delay and the smooth delay of each link at the last time;
calculating the current jitter of each link according to the current delay of each link and the smooth delay of the time;
and determining a second packet loss rate of the station according to the second sending number of the received detection response messages and the second receiving number of the data packets counted by the receiving counter corresponding to the link receiving the detection response messages.
5. The method of claim 2, wherein controlling the station to send a corresponding probe packet to each network node via a link between the network node and the station further comprises:
determining the mode identifier of the next detection message according to the mode identifier, the detection times and/or the link delay difference value in the detection message sent by each link, wherein the link delay difference value is the difference value between the current delay determined at this time and the delay after smoothing;
under the condition that the mode identifier in the current detection message is a conventional identifier or a high-frequency identifier and the link delay difference is smaller than the difference threshold, the mode identifier of the next detection message is the conventional identifier, and the detection times are cleared;
under the condition that the mode identifier in the current detection message is a conventional identifier or a high-frequency identifier and the detection times are greater than a time threshold, the mode identifier of the next detection message is a conventional identifier, and the detection times are cleared;
under the condition that the mode identification in the current detection message is a conventional identification, the link delay difference is greater than or equal to the difference threshold and the detection times are less than or equal to the times threshold, the mode identification of the next detection message is a high-frequency identification, and the times marked by the detection times are increased once;
and under the condition that the mode identifier in the current detection message is the high-frequency identifier and the detection times are marked for less than or equal to the times threshold, the mode identifier of the next detection message is the high-frequency identifier, and the times marked for the detection times are increased once.
6. The method of claim 2, wherein controlling the station to send a corresponding probe packet to each network node via a link between the network node and the station further comprises:
determining the mode identifier of the next detection message according to the mode identifier, the detection times and/or the link delay difference value in the detection message sent by each link, wherein the link delay difference value is the difference value between the current delay determined at this time and the delay after smoothing;
under the condition that the mode identifier in the current detection message is a conventional identifier, the link delay difference is greater than or equal to the difference threshold, and the frequency of the detection frequency marker is less than or equal to the frequency threshold, the mode identifier of the next detection message is a high-frequency identifier, and the frequency of the detection frequency marker is increased once;
under the condition that the mode identifier in the current detection message is a high-frequency identifier and the link delay difference value is smaller than the difference threshold value, the mode identifier of the next detection message is a conventional identifier, and the detection times are cleared;
under the condition that the mode identifier in the current detection message is a high-frequency identifier and the frequency of the detection frequency marker is greater than a frequency threshold value, the mode identifier of the next detection message is a conventional identifier, and the detection frequency is cleared;
under the condition that the mode identifier in the current detection message is a high-frequency identifier, the link delay difference is greater than or equal to the difference threshold, the detection times are marked for less than or equal to the times threshold and the switching condition is met, the mode identifier of the next detection message is a conventional identifier;
under the condition that the mode identifier in the current detection message is a high-frequency identifier, the link delay difference value is greater than or equal to the difference threshold value, the detection times marked times are less than or equal to the times threshold value and the switching condition is not met, the mode identifier of the next detection message is the high-frequency identifier, and the detection times marked times are increased once;
wherein the handover condition includes: the estimated sending time for sending the next detection message with the conventional identifier, which is determined according to the sending time of the detection message with the conventional identifier sent last time, is before or the same as the estimated sending time for sending the next detection message with the high-frequency identifier, which is determined according to the sending time of the detection message with the high-frequency identifier.
7. The method of claim 4, wherein controlling the controller to determine the link quality corresponding to each link according to the received probe data comprises:
determining the link quality of each link according to the detection data corresponding to each link and quality evaluation conditions, wherein the quality evaluation conditions comprise a good quality condition, a poor quality condition and a general quality condition, and the detection data comprise the current delay, the current jitter and the second packet loss rate of the link;
wherein the link quality of the link is good when the link satisfies the quality good condition; and when the link meets the quality difference condition, the link quality of the link is poor, and when the link meets the quality general condition, the link quality of the link is general.
8. The method of claim 7, wherein the probe data further comprises a first packet loss rate,
satisfying the quality-good condition includes: the current delay is less than or equal to a first delay threshold, the second packet loss rate is less than or equal to a first packet loss rate threshold, the current jitter is less than or equal to a first jitter threshold, and the first packet loss rate is less than or equal to a third packet loss rate threshold;
satisfying the poor quality condition includes the link satisfying at least one of the following conditions: the current delay is greater than or equal to a second delay threshold, the second packet loss rate is greater than or equal to a second packet loss rate threshold, the current jitter is greater than or equal to a second jitter threshold, and the first packet loss rate is greater than or equal to a fourth packet loss rate threshold;
the quality general condition being satisfied comprises the link not satisfying the quality good condition and not satisfying a quality poor condition;
wherein the first delay threshold is smaller than the second delay threshold, the first packet loss rate threshold is smaller than the second packet loss rate threshold, the third packet loss rate threshold is smaller than the fourth packet loss rate threshold, and the first jitter threshold is smaller than the second jitter threshold.
9. The method of claim 8, wherein the first delay threshold, the second delay threshold, the first packet loss rate threshold, the second packet loss rate threshold, the third packet loss rate threshold, the fourth packet loss rate threshold, the first jitter threshold, and the second jitter threshold are respectively products of corresponding initial thresholds and corresponding adjustment coefficients, and the method further comprises:
and controlling the controller to respectively determine a delay adjustment coefficient corresponding to the delay, a first packet loss rate adjustment coefficient corresponding to the first packet loss rate, a second packet loss rate adjustment coefficient corresponding to the second packet loss rate and a jitter adjustment coefficient corresponding to the jitter according to the historical delay, the historical second packet loss rate, the historical first packet loss rate and the historical jitter.
10. The method of claim 9, wherein controlling the controller to determine a delay adjustment coefficient corresponding to the delay, a first packet loss rate adjustment coefficient corresponding to the first packet loss rate, a second packet loss rate adjustment coefficient corresponding to the second packet loss rate, and a jitter adjustment coefficient corresponding to the jitter according to the historical delay, the historical second packet loss rate, the historical first packet loss rate, and the historical jitter comprises:
determining the ratio of a second average value of the current delay detected in the target time period before the current detection corresponding to the current time interval to a first average value of the current delay detected in the target time period before the current detection every day in the specified time interval as a delay adjustment coefficient corresponding to the current time interval;
determining the ratio of the second average value of the jitter detected in the target time period before the current detection corresponding to the current time interval to the first average value of the jitter detected in the target time period before the current detection every day in the specified time interval as a jitter adjustment coefficient corresponding to the current time interval;
determining a ratio of a second average value of a first packet loss rate detected in a target time period before the current detection and a first average value of a first packet loss rate detected in a designated time period every day in the target time period before the current detection as a first packet loss rate adjustment coefficient corresponding to the current time period;
and determining the ratio of a second average value of a second packet loss rate detected in a target time period before the current detection and a first average value of a second packet loss rate detected in a designated time period every day in the target time period before the current detection as a second packet loss rate adjustment coefficient corresponding to the current time period.
11. The method according to any one of claims 1 to 10, wherein controlling the controller to determine the link quality between the station and the network node according to the link quality corresponding to each link comprises:
and determining the optimal link quality in the link qualities of all the links as the link quality between the station and the network node.
12. A link quality detection apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to carry out the method of any one of claims 1 to 11 when executed.
13. A non-transitory computer readable storage medium having stored thereon computer program instructions, wherein the computer program instructions, when executed by a processor, implement the method of any one of claims 1 to 11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210258760.7A CN114615178B (en) | 2022-03-16 | 2022-03-16 | Link quality detection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210258760.7A CN114615178B (en) | 2022-03-16 | 2022-03-16 | Link quality detection method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114615178A true CN114615178A (en) | 2022-06-10 |
CN114615178B CN114615178B (en) | 2024-02-13 |
Family
ID=81862175
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210258760.7A Active CN114615178B (en) | 2022-03-16 | 2022-03-16 | Link quality detection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114615178B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115250245A (en) * | 2022-06-24 | 2022-10-28 | 中信百信银行股份有限公司 | Method and device for prepositioning and applying multiple activities of multi-computer-room payment system |
CN116032730A (en) * | 2022-12-28 | 2023-04-28 | 天翼云科技有限公司 | Method for supporting special line fast switching by multiple AZ scenes |
CN116112398A (en) * | 2023-02-28 | 2023-05-12 | 苏州浪潮智能科技有限公司 | Link jitter suppression method and device, storage medium and electronic equipment |
CN116192757A (en) * | 2022-12-27 | 2023-05-30 | 天翼云科技有限公司 | Load balancing method and device, electronic equipment and readable storage medium |
CN117614519A (en) * | 2024-01-23 | 2024-02-27 | 成都星联芯通科技有限公司 | Satellite link self-healing method and device, master station gateway and storage medium |
CN118158117A (en) * | 2024-05-10 | 2024-06-07 | 山东首瀚信息科技有限公司 | Data processing method and system based on industrial Internet of things gateway |
Citations (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101192951A (en) * | 2006-11-29 | 2008-06-04 | 华为技术有限公司 | Measuring method and device for utilization rate of IPv6 network link and IPv6 network router |
WO2010003365A1 (en) * | 2008-07-07 | 2010-01-14 | 华为技术有限公司 | Method and device for measuring quality of service of internet protocol transmission network |
CN103957538A (en) * | 2014-04-04 | 2014-07-30 | 杭州华三通信技术有限公司 | Method and device for detecting network quality |
WO2016045098A1 (en) * | 2014-09-26 | 2016-03-31 | 华为技术有限公司 | Switch, controller, system and link quality detection method |
CN106209337A (en) * | 2015-04-29 | 2016-12-07 | 中国移动通信集团公司 | A kind of time synchronized message transmission frequency adaptive approach, device and equipment |
US9762495B1 (en) * | 2016-09-13 | 2017-09-12 | International Business Machines Corporation | Weighted distribution across paths of degraded quality |
CN107453884A (en) * | 2016-05-30 | 2017-12-08 | 华为技术有限公司 | The service quality detection method and device of a kind of network equipment |
CN107612754A (en) * | 2017-10-30 | 2018-01-19 | 新华三技术有限公司 | Two-way conversion link fault detection method, device and apparatus for network node |
CN108173718A (en) * | 2018-01-29 | 2018-06-15 | 赛特斯信息科技股份有限公司 | The system and method for BFD link detectings and assessment based on SD-WAN scenes |
CN108600228A (en) * | 2018-04-26 | 2018-09-28 | 杭州迪普科技股份有限公司 | A kind of IPSec link selecting methods and device |
CN108696428A (en) * | 2018-05-17 | 2018-10-23 | 北京大米科技有限公司 | Routing detection method, routing node based on tunneling technique and central server |
CN108737206A (en) * | 2017-04-24 | 2018-11-02 | 中兴通讯股份有限公司 | Route selecting method, device and its computer equipment of network channel |
WO2019153337A1 (en) * | 2018-02-12 | 2019-08-15 | 深圳前海达闼云端智能科技有限公司 | Network quality evaluation method and apparatus, network detection device, and readable storage medium |
CN111769997A (en) * | 2019-07-15 | 2020-10-13 | 北京京东尚科信息技术有限公司 | Method, server, device and computer readable medium for network monitoring |
CN111835639A (en) * | 2020-07-06 | 2020-10-27 | 杭州网银互联科技股份有限公司 | SD-WAN network intelligent link selection method based on cloud computing |
CN112738855A (en) * | 2020-09-29 | 2021-04-30 | 网络通信与安全紫金山实验室 | Multilink-based transmission method and device applied to QUIC |
CN112910742A (en) * | 2021-03-15 | 2021-06-04 | 杭州迪普科技股份有限公司 | Link state detection method and device |
CN113347089A (en) * | 2021-07-05 | 2021-09-03 | 北京字跳网络技术有限公司 | Software Defined Network (SDN) system, network configuration method, device and equipment |
CN113365166A (en) * | 2021-06-25 | 2021-09-07 | 北京轻网科技有限公司 | Network configuration method and device |
WO2021254056A1 (en) * | 2020-06-20 | 2021-12-23 | 华为技术有限公司 | Delay measurement method and device |
-
2022
- 2022-03-16 CN CN202210258760.7A patent/CN114615178B/en active Active
Patent Citations (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101192951A (en) * | 2006-11-29 | 2008-06-04 | 华为技术有限公司 | Measuring method and device for utilization rate of IPv6 network link and IPv6 network router |
WO2010003365A1 (en) * | 2008-07-07 | 2010-01-14 | 华为技术有限公司 | Method and device for measuring quality of service of internet protocol transmission network |
CN103957538A (en) * | 2014-04-04 | 2014-07-30 | 杭州华三通信技术有限公司 | Method and device for detecting network quality |
WO2016045098A1 (en) * | 2014-09-26 | 2016-03-31 | 华为技术有限公司 | Switch, controller, system and link quality detection method |
CN106209337A (en) * | 2015-04-29 | 2016-12-07 | 中国移动通信集团公司 | A kind of time synchronized message transmission frequency adaptive approach, device and equipment |
CN107453884A (en) * | 2016-05-30 | 2017-12-08 | 华为技术有限公司 | The service quality detection method and device of a kind of network equipment |
US9762495B1 (en) * | 2016-09-13 | 2017-09-12 | International Business Machines Corporation | Weighted distribution across paths of degraded quality |
CN108737206A (en) * | 2017-04-24 | 2018-11-02 | 中兴通讯股份有限公司 | Route selecting method, device and its computer equipment of network channel |
CN107612754A (en) * | 2017-10-30 | 2018-01-19 | 新华三技术有限公司 | Two-way conversion link fault detection method, device and apparatus for network node |
CN108173718A (en) * | 2018-01-29 | 2018-06-15 | 赛特斯信息科技股份有限公司 | The system and method for BFD link detectings and assessment based on SD-WAN scenes |
WO2019153337A1 (en) * | 2018-02-12 | 2019-08-15 | 深圳前海达闼云端智能科技有限公司 | Network quality evaluation method and apparatus, network detection device, and readable storage medium |
CN108600228A (en) * | 2018-04-26 | 2018-09-28 | 杭州迪普科技股份有限公司 | A kind of IPSec link selecting methods and device |
CN108696428A (en) * | 2018-05-17 | 2018-10-23 | 北京大米科技有限公司 | Routing detection method, routing node based on tunneling technique and central server |
CN111769997A (en) * | 2019-07-15 | 2020-10-13 | 北京京东尚科信息技术有限公司 | Method, server, device and computer readable medium for network monitoring |
WO2021254056A1 (en) * | 2020-06-20 | 2021-12-23 | 华为技术有限公司 | Delay measurement method and device |
CN111835639A (en) * | 2020-07-06 | 2020-10-27 | 杭州网银互联科技股份有限公司 | SD-WAN network intelligent link selection method based on cloud computing |
CN112738855A (en) * | 2020-09-29 | 2021-04-30 | 网络通信与安全紫金山实验室 | Multilink-based transmission method and device applied to QUIC |
CN112910742A (en) * | 2021-03-15 | 2021-06-04 | 杭州迪普科技股份有限公司 | Link state detection method and device |
CN113365166A (en) * | 2021-06-25 | 2021-09-07 | 北京轻网科技有限公司 | Network configuration method and device |
CN113347089A (en) * | 2021-07-05 | 2021-09-03 | 北京字跳网络技术有限公司 | Software Defined Network (SDN) system, network configuration method, device and equipment |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115250245A (en) * | 2022-06-24 | 2022-10-28 | 中信百信银行股份有限公司 | Method and device for prepositioning and applying multiple activities of multi-computer-room payment system |
CN116192757A (en) * | 2022-12-27 | 2023-05-30 | 天翼云科技有限公司 | Load balancing method and device, electronic equipment and readable storage medium |
CN116032730A (en) * | 2022-12-28 | 2023-04-28 | 天翼云科技有限公司 | Method for supporting special line fast switching by multiple AZ scenes |
CN116112398A (en) * | 2023-02-28 | 2023-05-12 | 苏州浪潮智能科技有限公司 | Link jitter suppression method and device, storage medium and electronic equipment |
CN117614519A (en) * | 2024-01-23 | 2024-02-27 | 成都星联芯通科技有限公司 | Satellite link self-healing method and device, master station gateway and storage medium |
CN117614519B (en) * | 2024-01-23 | 2024-03-29 | 成都星联芯通科技有限公司 | Satellite link self-healing method and device, master station gateway and storage medium |
CN118158117A (en) * | 2024-05-10 | 2024-06-07 | 山东首瀚信息科技有限公司 | Data processing method and system based on industrial Internet of things gateway |
Also Published As
Publication number | Publication date |
---|---|
CN114615178B (en) | 2024-02-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114615178B (en) | Link quality detection method and device | |
US11483819B2 (en) | Data transmission method and apparatus and user equipment | |
CN109474538B (en) | Data transmission method and device, terminal equipment and storage medium | |
CN108401501B (en) | Data transmission method and device and unmanned aerial vehicle | |
US11641667B2 (en) | Methods, apparatuses and systems for transmitting data, and storage medium | |
CN105049219B (en) | Flow booking method and system, mobile terminal and server | |
CN109792320B (en) | Data transmission method and device | |
CN106792892B (en) | Access control method and device for application program | |
CN110602776B (en) | Reference Signal Received Power (RSRP) measuring method and device for direct link | |
CN108476408B (en) | Method and device for adjusting backhaul bandwidth | |
CN113365166B (en) | Network configuration method and device | |
CN109922465B (en) | Network configuration method and device | |
CN109565650B (en) | Method and device for broadcasting and receiving configuration information of synchronous signal block | |
WO2019153197A1 (en) | Drone indication method and apparatus | |
CN109819691B (en) | Wireless link monitoring method and device and indication receiving method and device | |
WO2020143717A1 (en) | Data feedback processing method and device | |
CN110719598B (en) | Data transmission method and device, electronic equipment and storage medium | |
CN114430370B (en) | Method, device, equipment and storage medium for determining network slice | |
CN108924085B (en) | Network scheduling method, device and storage medium | |
CN110784340A (en) | Configuration information updating method and device | |
CN104618165A (en) | Network evaluation method and device | |
CN113940019B (en) | Uplink control information sending method and device | |
WO2024148495A1 (en) | Information processing method and apparatus, and communication device and storage medium | |
CN113316213B (en) | Multi-hop network, control method for multi-hop network, and storage medium | |
CN116033264B (en) | Image processing parameter adjusting method, device and equipment |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Room 01, block C, No. 101, 6th floor, building 24, yard 68, Beiqing Road, Haidian District, Beijing 100096 Applicant after: Beijing Light Network Technology Co.,Ltd. Address before: Room 01, block C, No. 101, 6th floor, building 24, yard 68, Beiqing Road, Haidian District, Beijing 100096 Applicant before: Beijing Light Network Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |