CN111294251A - Method, device, equipment and medium for detecting link time delay - Google Patents

Method, device, equipment and medium for detecting link time delay Download PDF

Info

Publication number
CN111294251A
CN111294251A CN201811497599.9A CN201811497599A CN111294251A CN 111294251 A CN111294251 A CN 111294251A CN 201811497599 A CN201811497599 A CN 201811497599A CN 111294251 A CN111294251 A CN 111294251A
Authority
CN
China
Prior art keywords
source port
link
port
delay
time delay
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
Application number
CN201811497599.9A
Other languages
Chinese (zh)
Other versions
CN111294251B (en
Inventor
郑松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Group Liaoning Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Liaoning Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Group Liaoning Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811497599.9A priority Critical patent/CN111294251B/en
Publication of CN111294251A publication Critical patent/CN111294251A/en
Application granted granted Critical
Publication of CN111294251B publication Critical patent/CN111294251B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/087Jitter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Abstract

The invention discloses a method, a device, equipment and a medium for detecting link time delay. The method comprises the following steps: taking a network equipment port on at least one side of each link in the aggregated links as a source port, and enabling the source port to send an Internet packet explorer Ping test message to a destination port; obtaining a test result of the Ping test message, and determining a common source port to which the Ping test message returns; according to the test result, determining a first time delay used by the Ping test message from the source port to the common source port and a second time delay used by the Ping test message from the common source port to the common source port; and determining the time delay of each link in the aggregation link according to the first time delay and the second time delay. According to the embodiment of the invention, the time delay of each link in the aggregation link can be detected.

Description

Method, device, equipment and medium for detecting link time delay
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a medium for detecting a link delay.
Background
At present, communication operators generally adopt a multi-port physical link aggregation mode in an Internet Protocol (IP) network for interconnection between networks, and use aggregation links for interconnection between devices. The delay is one of the important indexes reflecting the network quality between two network devices, and directly affects the quality of service signals flowing through the devices and finally affects the service perception of users.
For the time delay detection between network devices, usually, a test task is deployed between the network devices, and the network quality index of time delay is obtained by recording the test task. The following two situations are common practice:
in the first case: as shown in fig. 1, a Network Quality Analysis (NQA) test is deployed on network devices at both ends. The NQA analyzes the network performance and the service quality by sending the test message, and the time delay is an important test index.
In the second case: as shown in fig. 2, network probes are respectively connected to network devices at two ends, the network probes send network quality test messages, and test results are returned to a probe server for network performance and service quality analysis, where time delay is an important test index.
From the above two kinds of situation analysis, both the NQA test and the probe test construct a test message between tested links, for example, the delay and Packet loss rate test often uses the Internet Packet explorer (ping), which is an Internet Control Message Protocol (ICMP), to return the test result to the server for summary analysis.
However, when the aggregation link mode is used between two network devices, the test result shows the time delay of the aggregation link, and the two test methods cannot reflect the time delay of each member link.
In addition, at present, a few communication device manufacturers pay attention to the problem of link quality test in an aggregated link application scenario, and provide a method for performing quality test on a member link in an aggregated link, where a Two-way Active Measurement Protocol (TWAMP) is used to control reserved bytes in a message, and an aggregated member information related field is added, and before sending a test message, Two-end devices negotiate on which member link the test message is sent and received, that is, it is clear that a local end sending port and an opposite end reflection port are on the same member link, and a subsequent test message is sent and received on the member link, thereby implementing independent test and coverage on each member link.
The existing test method for the time delay of the aggregation link has the following defects:
both the NQA test and the probe test are constructed test messages. The NQA test takes the management IP or interface IP of the two-end equipment as a source and a destination address; the probe test is to construct a test message by taking the IP of the probes at two ends as a source address and a destination address. In the forwarding process of the aggregation link for the IP packet, a load sharing algorithm based on a triplet (source IP address, destination IP address, application protocol) or a quintuple (source IP address, source port, destination IP address, destination port, application protocol) is generally adopted to achieve the purpose of sharing different service flows in each member link in a balanced manner. Thus, the test message constructed in the NQA test and the probe test is calculated to be selected to a certain member link under the action of the aggregation link load sharing algorithm, and the test result of the aggregation link is actually the test result of the selected member link. The quality of the other member links is not measured and monitored.
In addition, a few device manufacturers add aggregated member information fields in reserved bytes of TWAMP control messages, and negotiate a method of sending ports and reflecting ports of two-end devices through the control messages before sending test messages, so that independent tests on all member links can be realized, but the definition and use of the reserved bytes are specified in the current unsolicited Comments (RFC) standard and belong to the customization of a few device manufacturers. The problem of intercommunication among different manufacturer devices exists, and practical application in the network is limited.
Disclosure of Invention
In order to solve at least one technical problem, embodiments of the present invention provide a method, an apparatus, a device, and a medium for detecting a link delay. According to the embodiment of the invention, the detection of the time delay of each member link in the aggregation link can be realized.
In a first aspect, an embodiment of the present invention provides a method for detecting a link delay, where the method includes:
taking a network equipment port on at least one side of each link in the aggregated links as a source port, and enabling the source port to send an Internet packet explorer Ping test message to a destination port;
obtaining a test result of the Ping test message, and determining a common source port to which the Ping test message returns;
determining a first time delay for the Ping test packet to be sent from the source port to return to the common source port and a second time delay for the Ping test packet to be sent from the common source port to return to the common source port according to the test result;
and determining the time delay of each link in the aggregation link according to the first time delay and the second time delay.
According to the method for detecting the link delay provided by the present invention, determining the delay of each link in the aggregated link according to the first delay and the second delay includes:
the delay of each link in the aggregated link comprises a result of multiplying the first delay by 2 and subtracting the second delay.
According to the method for detecting link delay provided by the present invention, the step of using the network device port on at least one side of each link in the aggregated link as the source port comprises:
and respectively taking the network equipment ports on two sides of each link in the aggregation link as source ports.
According to the method for detecting the link delay provided by the invention, the method further comprises the following steps:
taking a network equipment port on one side of each link in an aggregated link as a first source port, and taking a network equipment port on the other side of the link as a second source port, wherein the first source ports are in one-to-one correspondence with the second source ports;
enabling the first source port to send a first Ping test message to a second source port, and enabling the second source port to send a second Ping test message to the first source port;
acquiring a first test result of the first Ping test message, and determining a first public source port to which the first Ping test message returns;
acquiring a second test result of the second Ping test message, and determining a second public source port to which the second Ping test message returns;
determining a time delay TAn used by the first Ping test packet from being sent from the first source port to being returned to the first public source port and a time delay TA' used by the first Ping test packet from being sent from the first source port corresponding to the second public source port to being returned to the first public source port according to the first test result;
determining a time delay TBn used by the second Ping test packet from the second source port to return to the second public source port and a time delay TB' used by the second Ping test packet from the second source port corresponding to the first public source port to return to the second public source port according to the second test result;
and determining the time delay of each link in the aggregated link according to the time delay TAN, the time delay TA ', the time delay TBn and the time delay TB', wherein An is the port number of the network equipment on the side, and Bn is the port number of the network equipment on the side.
According to the method for detecting the link time delay provided by the invention, the calculation formula of the time delay of each link in the aggregated links is as follows:
Tn=TAn+TBn-(TA’+TB’)/2
wherein, Tn is the time delay of the nth link, and n is a positive integer.
According to the link delay detection method provided by the invention, one side of each link in the aggregation link corresponds to one port.
According to the method for detecting the link delay provided by the invention, the method further comprises the following steps:
and setting the Ping test message according to the network equipment on the two sides of the link.
According to the method for detecting the link delay provided by the invention, the command format of the Ping test message comprises the following steps:
ping-i [ source port number ] -ri-a [ source network protocol IP address ] [ destination IP address ];
the source IP address is an IP address corresponding to the source port, the destination IP address is an IP address corresponding to the destination port, and the ri identifies the public source port number.
According to the method for detecting the link time delay provided by the invention, the IP addresses corresponding to all the source ports are consistent, and the IP addresses corresponding to all the destination ports are consistent.
According to the method for detecting the link delay provided by the invention, the method further comprises the following steps:
and setting the number of the network equipment port.
In a second aspect, an embodiment of the present invention provides a device for detecting a link delay, where the device includes:
a source port determining module, configured to use a network device port on at least one side of each link in the aggregated links as a source port, so that the source port sends an internet packet explorer Ping test packet to a destination port;
a public source port determining module, configured to obtain a test result of the Ping test packet, and determine a common source port to which the Ping test packet is returned;
a first delay determining module, configured to determine, according to the test result, a first delay used by the Ping test packet to be sent from the source port to return to the common source port, and a second delay used by the Ping test packet to be sent from the common source port to return to the common source port;
and a second delay determining module, configured to determine, according to the first delay and the second delay, a delay of each link in the aggregated link.
In a third aspect, an embodiment of the present invention provides a device for detecting a link delay, where the device includes: at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of the first aspect of the embodiments described above.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which computer program instructions are stored, which, when executed by a processor, implement the method of the first aspect in the foregoing embodiments.
In the method, the port of the network equipment at least at one side of each link in the aggregated link is used as a source port, so that the source port sends out a Ping test message of an Internet packet explorer to a destination port; obtaining a test result of the Ping test message, and determining a common source port to which the Ping test message returns; according to the test result, determining a first time delay used by the Ping test message from the source port to the common source port and a second time delay used by the Ping test message from the common source port to the common source port; and determining the time delay of each link in the aggregation link according to the first time delay and the second time delay. According to the embodiment of the invention, the time delay of each link in the aggregation link can be detected.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram illustrating a prior art scheme for testing link latency using Network Quality Analyzer (NQA);
FIG. 2 is a diagram illustrating the use of probes to test link delay in a prior art scheme;
FIG. 3 is a flow chart of a method for testing link latency according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating that two ends of the embodiment of the present invention perform link delay tests simultaneously;
FIG. 5 is a diagram illustrating a single-ended link delay test according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a link delay testing apparatus according to an embodiment of the present invention;
fig. 7 is a hardware configuration diagram of a link delay test apparatus according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The following describes a method, an apparatus, a device, and a medium for detecting a link delay according to an embodiment of the present invention in detail with reference to fig. 3 to 7. It should be noted that the examples are not intended to limit the scope of the present invention.
Fig. 3 is a flowchart illustrating a method for testing link latency according to an embodiment of the present invention. As shown in fig. 3, the method for testing link latency according to the embodiment of the present invention includes the following steps:
s110, taking at least one side of network equipment port of each link in the aggregated link as a source port, and enabling the source port to send an Internet packet seeker Ping test message to a destination port;
s120, obtaining a test result of the Ping test message, and determining a common source port to which the Ping test message returns;
s130, according to the test result, determining a first time delay used by the Ping test message from the source port to the common source port and a second time delay used by the Ping test message from the common source port to the common source port;
and S140, determining the time delay of each link in the aggregated links according to the first time delay and the second time delay.
According to the embodiment of the invention, the time delay of each link in the aggregation link can be detected.
It should be noted that, in the present invention, the ping command is executed on the network devices at both ends (set as the a-end network device and the B-end network device) by using the member link ports as the source interfaces, and the home-end member port returned by the ping message is recorded by configuring the command parameters.
In addition, the command format of each vendor device may be different, and may be queried through the product document thereof, taking hua as a router as an example, the command format may be the expression (1):
ping-i [ number of member link port ] -ri-a [ source IP address ] [ destination IP address ] (1)
Wherein, the source IP address and the destination IP address are respectively the interface IP addresses of the network equipment at the two ends of the tested aggregation link A/B. The i [ member link port number ] parameter identifies which member link port in the aggregated link the ping message originates from. The ri parameter identifies which member link port in the aggregated link to record from which to return when the ping message returns.
As an example, for a certain ping test command, the partial program code of which returns the result may be as follows:
<Router A>ping-i 100ge3/1/0/0-ri-a 211.137.47.1 211.137.47.2
PING 211.137.47.2:56data bytes,press CTRL_C to break
Reply from 211.137.47.2via Eth-Trunk10(100GE3/2/0/0):bytes=56Sequence=1 ttl=254 time=2ms
Reply from 211.137.47.2via Eth-Trunk10(100GE3/2/0/0):bytes=56Sequence=2 ttl=254 time=2ms
Reply from 211.137.47.2via Eth-Trunk10(100GE3/2/0/0):bytes=56Sequence=3 ttl=254 time=2ms
Reply from 211.137.47.2via Eth-Trunk10(100GE3/2/0/0):bytes=56Sequence=4 ttl=254 time=2ms
Reply from 211.137.47.2via Eth-Trunk10(100GE3/2/0/0):bytes=56Sequence=5 ttl=254 time=2ms
---211.137.47.2ping statistics---
5packet(s)transmitted
5packet(s)received
0.00%packet loss
round-trip min/avg/max=2/2/2ms
from the above return results, it can be seen that the test packet is sent from the member link port 100GE3/1/0/0 in the aggregated link (Eth-Trunk10) of the a-side network device, and returns from the member link port 100GE3/2/0/0 of the a-side device after the B-side device responds, with a delay of 2 milliseconds.
Fig. 4 is a schematic diagram illustrating that two ends simultaneously perform link delay testing according to an embodiment of the present invention. As shown in fig. 4, assuming that the number of member links in the aggregated link between the a-side device and the B-side device is n, the a-side and B-side member link ports are respectively recorded as a1, a2 … An, B1, and B2 … Bn. And respectively carrying out ping test on the A-end equipment by taking the A1 and A2 … An ports as source ports, recording the returned time delay parameters of TA1 and TA2 … TAN, and recording the member port number (AX port) of the returned message.
Because the response of the ping test message of the a port is sent to the a port by the B port device, according to the aggregation link load sharing algorithm of the B port device, no matter from which member link port the a port device sends, as long as the source IP address and the destination IP address are not changed, the B port device will respond from the same member port. Thus, from the perspective of the a-side device, the AX ports are the same in the test results of the a1 and a2 … An ports. And recording that the B-end equipment is sent from the corresponding BX port through the corresponding relationship of the member ports at the two ends of the A/B.
Similarly, ping tests are respectively carried out on the B-end equipment By taking B1 and B2 … Bn ports as source ports, returned delay parameters are recorded as TB1 and TB2 … TBn, and member port numbers (By ports) of returned messages are recorded. According to the same principle, in the test results of the B1 and B2 … Bn ports, the By ports are the same. And through the corresponding relation of the member ports at the two ends of the A/B, the equipment at the A end is sent out from the corresponding Ay port.
Finding a test result corresponding to the Ay port in test results TA1 and TA2 … TAN of the A-end equipment, and marking the test result as TA'; and finding the test result corresponding to the Bx port in the test results TB1 and TB2 … TBn of the B-side equipment, and marking the test result as TB'.
As An example, according to the A/B two-end member port correspondence, for example, a first link is between the A1 port and the B1 port, a second link is between the A2 port and the B2 port, and so on, and An nth link is between the An port and the Bn port. The method comprises the steps that an A1 port is used as a source port to conduct ping test on an A-end device, ping messages are sent out from an A1 port to a B-end device, the B-end device is supposed to return to an A3 port of the A-end device from a B3 port after answering, and namely A3 rd link is a public link. A ping message sent from any port of the a-side device returns through the 3 rd link.
Similarly, a B1 port on the B-side device performs ping test for the source port, a ping message is sent from the B1 port to the a-side device, and it is assumed that the a-side device returns to the B2 port of the B-side device from the a2 port after responding, that is, the 2 nd link is a public link. A ping message sent from any port of the B-side device returns via the 2 nd link.
In the 2n test results of the a terminal and the B terminal, paths taken by only one test result are overlapped, for example, the a terminal device a2 sends A3 back and the B terminal device B3 sends a B2 back in fig. 4, and the test results under the same path are theoretically the same, that is, TA2 — TB 3. However, considering the test accuracy and the difference of the response time delay of the device except the transmission time delay, the two results are only relatively close, the relative influence of the response time delay of the device is small when the ports of the device are all opened in an icmp-fast mode, and the average value calculation can be carried out. The common path is easy to find through the belt-ri parameter and the port corresponding relation, and the time delay of the common path is recorded. And the time delay of each independent link is the sum of the test results at the two ends of the link and the subtraction of the common path.
Finally, respectively calculating time delays T1 and T2 … Tn of each member link between the devices at two ends of the A/B by using formulas (2), (3) and (4)
T1=TA1+TB1-(TA’+TB’)/2 (2)
T2=TA2+TB2-(TA’+TB’)/2 (3)
Tn=TAn+TBn-(TA’+TB’)/2 (4)
Fig. 5 is a schematic diagram illustrating a single-ended link delay test according to an embodiment of the present invention. As shown in fig. 5, when a certain end network device does not have the collection test condition, the following test and calculation method may be adopted to measure the delay of the member link in the aggregated link.
As an example, assume that the number of member links in an aggregated link between an a-side device and a B-side device is n, and the B-side device does not have a collection test condition. The a-terminal member link ports are recorded as a1, a2 … An. And respectively carrying out ping test on the A-end equipment by taking the A1 and A2 … An ports as source ports, recording the returned time delay parameters of TA1 and TA2 … TAN, and recording the member port number (AX port) of the returned message. And finding out a test result corresponding to the Ax port from the test results TA1 and TA2 … TAN of the A-side equipment, and marking the test result as TA'. In this scenario, it is approximately considered that the time delay of transceiving two channels on the same physical link is the same, i.e. the round-trip path is 2 times that of the single round-trip path. Each physical link delay can therefore be approximated using the relationship of the common backhaul path.
Respectively calculating the time delay T1 and the time delay T2 … Tn of each member link between the devices at the two ends of the A/B by using the following formulas:
T1=2TA1-TA’ (5)
T2=2TA2-TA’ (6)
Tn=2TAn-TA’ (7)
the invention is suitable for detecting the time delay of the member link of the network equipment under the condition of using the aggregation link for interconnection. Meanwhile, two situations that both ends of the network equipment can be used for acquisition test and only one end of the network equipment can be used for acquisition test are considered.
The invention realizes the specific measurement of the time delay index of each member link in the aggregation link between the IP network devices. The invention is a universal measuring method, solves the blind point in time delay quality monitoring under the application environment of the IP network aggregation link by utilizing the technical characteristics of the load sharing of the network equipment aggregation link, can be applied to the networking environment of multiple manufacturers, and has good application prospect.
Fig. 6 is a schematic structural diagram illustrating a link delay testing apparatus according to an embodiment of the present invention. As shown in fig. 6, the link latency testing apparatus according to the embodiment of the present invention includes the following modules:
a source port determining module 601, configured to use a network device port on at least one side of each link in the aggregated links as a source port, so that the source port sends an internet packet explorer Ping test packet to a destination port;
a common source port determining module 602, configured to obtain a test result of the Ping test packet and determine a common source port to which the Ping test packet is returned;
a first and second delay determining module 603, configured to determine, according to the test result, a first delay used by the Ping test packet to be sent from the source port to return to the common source port, and a second delay used by the Ping test packet to be sent from the common source port to return to the common source port;
a link delay determining module 604, configured to determine a delay of each link in the aggregated link according to the first delay and the second delay.
In a specific embodiment, the link delay determining module 604 is specifically configured to:
the delay of each link in the aggregated link comprises the result of multiplying the first delay by 2 and subtracting the second delay.
In one embodiment, the source port determining module 601 is specifically configured to:
and respectively taking the network equipment ports on two sides of each link in the aggregation link as source ports.
In one embodiment, the source port determining module 601 is specifically configured to:
taking a network equipment port at one side of each link in an aggregated link as a first source port, and taking a network equipment port at the other side of the link as a second source port, wherein the first source ports correspond to the second source ports one to one;
enabling the first source port to send a first Ping test message to the second source port, and enabling the second source port to send a second Ping test message to the first source port;
acquiring a first test result of the first Ping test message, and determining a first public source port to which the first Ping test message returns;
acquiring a second test result of the second Ping test message, and determining a second public source port to which the second Ping test message returns;
determining a time delay TAN used by the first Ping test message from the first source port to return to the first public source port and a time delay TA' used by the first Ping test message from the first source port corresponding to the second public source port to return to the first public source port according to the first test result;
determining a time delay TBn used by the second Ping test message from the second source port to return to the second public source port and a time delay TB' used by the second Ping test message from the second source port corresponding to the first public source port to return to the second public source port according to the second test result;
and determining the time delay of each link in the aggregated link according to the time delay TAN, the time delay TA ', the time delay TBn and the time delay TB', wherein An is the port number of the network equipment on one side, and Bn is the port number of the network equipment on one side.
In one embodiment, the source port determining module 601 is specifically configured to:
Tn=TAn+TBn-(TA’+TB’)/2
wherein, Tn is the time delay of the nth link, and n is a positive integer.
In one embodiment, the source port determining module 601 is specifically configured to:
one side of each link in the aggregation link corresponds to one port.
In one embodiment, the source port determining module 601 is specifically configured to:
and setting Ping test messages according to the network equipment on the two sides of the link.
In one embodiment, the source port determining module 601 is specifically configured to:
ping-i [ source port number ] -ri-a [ source network protocol IP address ] [ destination IP address ];
the source IP address is an IP address corresponding to the source port, the destination IP address is an IP address corresponding to the destination port, and ri identifies the public source port number.
In one embodiment, the source port determining module 601 is specifically configured to:
and the IP addresses corresponding to all the source ports are consistent, and the IP addresses corresponding to all the destination ports are consistent.
In one embodiment, the source port determining module 601 is specifically configured to:
the number of the network device port is set.
In addition, the method for testing the link delay according to the embodiment of the present invention described in conjunction with fig. 3 may be implemented by a device for testing the link delay. Fig. 7 is a schematic diagram illustrating a hardware structure of a link latency testing device according to an embodiment of the present invention.
Computing device 1000 includes input device 1001, input interface 1002, processor 1003, memory 1004, output interface 1005, and output device 1006.
The input interface 1002, the processor 1003, the memory 1004, and the output interface 1005 are connected to each other via a bus 1010, and the input device 1001 and the output device 1006 are connected to the bus 1010 via the input interface 1002 and the output interface 1005, respectively, and further connected to other components of the computing device 1000.
Specifically, the input device 1001 receives input information from the outside and transmits the input information to the processor 1003 via the input interface 1002; the processor 1003 processes the input information based on computer-executable instructions stored in the memory 1004 to generate output information, stores the output information temporarily or permanently in the memory 1004, and then transmits the output information to the output device 1006 through the output interface 1005; output device 1006 outputs the output information external to computing device 1000 for use by a user.
The computing device 1000 may perform the steps in the testing of link latency described above in this application.
Processor 1003 may be one or more Central Processing Units (CPUs). When the processor 601 or the processor 701 is one CPU, the CPU may be a single-core CPU or a multi-core CPU.
The memory 1004 may be, but is not limited to, one or more of Random Access Memory (RAM), Read Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM), compact disc read only memory (CD-ROM), a hard disk, and the like. The memory 1004 is used to store program codes.
It is understood that, in the embodiment of the present application, the functions of any one or all of the processing modules provided in fig. 6 may be implemented by the central processing unit 1003 shown in fig. 7.
The embodiment of the present invention further provides a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the computer program instructions implement the steps in the method for testing link latency according to the embodiment of the present invention.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When used in whole or in part, can be implemented in a computer program product that includes one or more computer instructions. When loaded or executed on a computer, cause the flow or functions according to embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL), or wireless (e.g., infrared, wireless, microwave, etc.)). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
All parts of the specification are described in a progressive mode, the same and similar parts of all embodiments can be referred to each other, and each embodiment is mainly introduced to be different from other embodiments. In particular, as to the apparatus and system embodiments, since they are substantially similar to the method embodiments, the description is relatively simple and reference may be made to the description of the method embodiments in relevant places.

Claims (13)

1. A method for detecting link latency, the method comprising:
taking a network equipment port on at least one side of each link in the aggregated links as a source port, and enabling the source port to send an Internet packet explorer Ping test message to a destination port;
obtaining a test result of the Ping test message, and determining a common source port to which the Ping test message returns;
determining a first time delay for the Ping test packet to be sent from the source port to return to the common source port and a second time delay for the Ping test packet to be sent from the common source port to return to the common source port according to the test result;
and determining the time delay of each link in the aggregation link according to the first time delay and the second time delay.
2. The method of claim 1, wherein the determining the delay of each of the aggregated links according to the first delay and the second delay comprises:
the delay of each link in the aggregated link comprises a result of multiplying the first delay by 2 and subtracting the second delay.
3. The method of claim 1, wherein the taking a port of a network device on at least one side of each of the aggregated links as a source port comprises:
and respectively taking the network equipment ports on two sides of each link in the aggregation link as source ports.
4. The method of claim 3, further comprising:
taking a network equipment port on one side of each link in an aggregated link as a first source port, and taking a network equipment port on the other side of the link as a second source port, wherein the first source ports are in one-to-one correspondence with the second source ports;
enabling the first source port to send a first Ping test message to a second source port, and enabling the second source port to send a second Ping test message to the first source port;
acquiring a first test result of the first Ping test message, and determining a first public source port to which the first Ping test message returns;
acquiring a second test result of the second Ping test message, and determining a second public source port to which the second Ping test message returns;
determining a time delay TAn used by the first Ping test packet from being sent from the first source port to being returned to the first public source port and a time delay TA' used by the first Ping test packet from being sent from the first source port corresponding to the second public source port to being returned to the first public source port according to the first test result;
determining a time delay TBn used by the second Ping test packet from the second source port to return to the second public source port and a time delay TB' used by the second Ping test packet from the second source port corresponding to the first public source port to return to the second public source port according to the second test result;
and determining the time delay of each link in the aggregated link according to the time delay TAN, the time delay TA ', the time delay TBn and the time delay TB', wherein An is the port number of the network equipment on the side, and Bn is the port number of the network equipment on the side.
5. The method of claim 4, wherein the delay of each link in the aggregated links is calculated by:
Tn=TAn+TBn-(TA’+TB’)/2
wherein, Tn is the time delay of the nth link, and n is a positive integer.
6. The method of claim 1, wherein each of the aggregated links has a port on one side of the aggregated link.
7. The method of claim 1, further comprising:
and setting the Ping test message according to the network equipment on the two sides of the link.
8. The method of claim 1, wherein the command format of the Ping test packet comprises:
ping-i [ source port number ] -ri-a [ source network protocol IP address ] [ destination IP address ];
the source IP address is an IP address corresponding to the source port, the destination IP address is an IP address corresponding to the destination port, and the ri identifies the public source port number.
9. The method of claim 1, wherein the IP addresses of all the source ports are consistent, and the IP addresses of all the destination ports are consistent.
10. The method of claim 1, further comprising:
and setting the number of the network equipment port.
11. An apparatus for detecting link delay, the apparatus comprising:
a source port determining module, configured to use a network device port on at least one side of each link in the aggregated links as a source port, so that the source port sends an internet packet explorer Ping test packet to a destination port;
a public source port determining module, configured to obtain a test result of the Ping test packet, and determine a common source port to which the Ping test packet is returned;
a first delay determining module, configured to determine, according to the test result, a first delay used by the Ping test packet to be sent from the source port to return to the common source port, and a second delay used by the Ping test packet to be sent from the common source port to return to the common source port;
and a second delay determining module, configured to determine, according to the first delay and the second delay, a delay of each link in the aggregated link.
12. A device for detecting link latency, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of any of claims 1-10.
13. A computer-readable storage medium having computer program instructions stored thereon, which when executed by a processor implement the method of any one of claims 1-10.
CN201811497599.9A 2018-12-07 2018-12-07 Method, device, equipment and medium for detecting link time delay Active CN111294251B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811497599.9A CN111294251B (en) 2018-12-07 2018-12-07 Method, device, equipment and medium for detecting link time delay

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811497599.9A CN111294251B (en) 2018-12-07 2018-12-07 Method, device, equipment and medium for detecting link time delay

Publications (2)

Publication Number Publication Date
CN111294251A true CN111294251A (en) 2020-06-16
CN111294251B CN111294251B (en) 2021-08-03

Family

ID=71029308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811497599.9A Active CN111294251B (en) 2018-12-07 2018-12-07 Method, device, equipment and medium for detecting link time delay

Country Status (1)

Country Link
CN (1) CN111294251B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112152872A (en) * 2020-08-31 2020-12-29 新华三大数据技术有限公司 Network sub-health detection method and device
CN112600748A (en) * 2020-12-02 2021-04-02 广东中兴新支点技术有限公司 Multi-link aggregation method, system and storage medium for VPN tunnel
CN113507394A (en) * 2021-06-10 2021-10-15 广州虎牙科技有限公司 Network performance detection method and device, electronic equipment and storage medium
CN113973327A (en) * 2020-07-22 2022-01-25 中国移动通信集团广东有限公司 Method and device for debugging and testing physical link of domain area network and electronic equipment
CN115242301A (en) * 2022-07-22 2022-10-25 中国电信股份有限公司 Network link monitoring method and device, storage medium and communication equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534249A (en) * 2009-04-15 2009-09-16 杭州华三通信技术有限公司 Method for transmitting data on bound link and network equipment thereof
CN102685007A (en) * 2012-05-04 2012-09-19 华为技术有限公司 Method and device for processing member links in multi-link bundled link group
US20140304543A1 (en) * 2013-04-09 2014-10-09 International Business Machines Corporation Fabric multipathing based on dynamic latency-based calculations
CN107889132A (en) * 2016-09-30 2018-04-06 中兴通讯股份有限公司 The method, apparatus and system of a kind of link quality measurements

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534249A (en) * 2009-04-15 2009-09-16 杭州华三通信技术有限公司 Method for transmitting data on bound link and network equipment thereof
CN102685007A (en) * 2012-05-04 2012-09-19 华为技术有限公司 Method and device for processing member links in multi-link bundled link group
US20140304543A1 (en) * 2013-04-09 2014-10-09 International Business Machines Corporation Fabric multipathing based on dynamic latency-based calculations
CN107889132A (en) * 2016-09-30 2018-04-06 中兴通讯股份有限公司 The method, apparatus and system of a kind of link quality measurements

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113973327A (en) * 2020-07-22 2022-01-25 中国移动通信集团广东有限公司 Method and device for debugging and testing physical link of domain area network and electronic equipment
CN112152872A (en) * 2020-08-31 2020-12-29 新华三大数据技术有限公司 Network sub-health detection method and device
CN112152872B (en) * 2020-08-31 2022-05-27 新华三大数据技术有限公司 Network sub-health detection method and device
CN112600748A (en) * 2020-12-02 2021-04-02 广东中兴新支点技术有限公司 Multi-link aggregation method, system and storage medium for VPN tunnel
CN113507394A (en) * 2021-06-10 2021-10-15 广州虎牙科技有限公司 Network performance detection method and device, electronic equipment and storage medium
CN115242301A (en) * 2022-07-22 2022-10-25 中国电信股份有限公司 Network link monitoring method and device, storage medium and communication equipment

Also Published As

Publication number Publication date
CN111294251B (en) 2021-08-03

Similar Documents

Publication Publication Date Title
CN111294251B (en) Method, device, equipment and medium for detecting link time delay
EP1807952B1 (en) Remote estimation of round-trip delays in a data network
US9100300B2 (en) Mitigating network connection problems using supporting devices
US10623280B2 (en) Diagnostic testing
CA2998436C (en) Network status evaluation
JP2019501551A (en) Cloud-based system and method for managing messages related to operation of cable test devices
US9148354B2 (en) Apparatus and method for monitoring of connectivity services
US20080232261A1 (en) Transmission apparatus, test method, and transmission apparatus control program
CN111181760B (en) Network fault detection method and device, computer readable medium and electronic equipment
CN102984018B (en) Ethernet loss packet test method, equipment and system
US20180262414A1 (en) Analysis of network performance
US10979335B2 (en) Network link performance
EP3682595B1 (en) Obtaining local area network diagnostic test results
CN114584485B (en) Method, apparatus, device and computer readable storage medium for detecting edge network quality
CN108199913B (en) Method and equipment for realizing time delay test
US20160021555A1 (en) Method of diagnosis of degradation in a heterogeneous network using a neighbour network
JP4487311B2 (en) Network quality evaluation equipment
CN113810238A (en) Network monitoring method, electronic device and storage medium
CN115002008B (en) Method, device, equipment and storage medium for measuring network delay
US10700740B2 (en) Communication-based physical media monitoring
CN111385160B (en) Packet loss rate detection method, device, system and medium
US20150341242A1 (en) Transmission monitoring method and device
JP6068540B2 (en) Information providing apparatus, communication apparatus, information providing method, and program
WO2023105640A1 (en) Communication device, communication method, and non-transitory computer-readable medium
GB2566467A (en) Obtaining local area network diagnostic test results

Legal Events

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