CN107147544A - A kind of method and device of test network delay - Google Patents
A kind of method and device of test network delay Download PDFInfo
- Publication number
- CN107147544A CN107147544A CN201710330323.0A CN201710330323A CN107147544A CN 107147544 A CN107147544 A CN 107147544A CN 201710330323 A CN201710330323 A CN 201710330323A CN 107147544 A CN107147544 A CN 107147544A
- Authority
- CN
- China
- Prior art keywords
- packet
- temporal information
- destination
- source
- time
- 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.)
- Pending
Links
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/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/50—Testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of method and device of test network delay, including:Packet A is sent to destination from source, and determines that source sends packet A very first time information and destination received data packet A the second temporal information;The packet B that destination is constructed is sent to source, and determines that destination sends packet B the 3rd temporal information, and source received data packet B the 4th temporal information;Packet A and packet B transmission total time are determined according to very first time information, the second temporal information, the 3rd temporal information and the 4th temporal information, total time transmission is regard as network delay time.By to very first time information, the second temporal information, the 3rd temporal information, the 4th temporal information calculating, packet A and packet B transmission total time can only be calculated, omit processing time of the purpose end equipment to data bag, the influence of destination hardware is namely have ignored, therefore the precision of network delay test can be greatly improved.
Description
Technical field
The present invention relates to testing field, the method and apparatus being delayed more specifically to a kind of test network.
Background technology
With the development of network, network transmission speed is more and more faster, to performance index requirements also more and more higher.Wherein, net
Network delay is the basic index for evaluating network performance, is also test delay jitter, the basis of network broadband performance indications.Network prolongs
When test network performance detection, user's behaviors analysis, network application design etc. field have a wide range of applications.
Network delay test is from source to initially enter network by test data bag and initially move off network to it to enter mesh
End between time draw network delay result.Network delay test is typically test round trip delay time, in the prior art, is surveyed
Try three below part:
Transmission time of the message from source to destination;
Purpose end equipment wraps processing time to data bag processing time;
Packet transmission time of the destination to source.
Wherein, the time that purpose end equipment is handled data bag, is to be determined according to the hardware condition of destination, it is impossible to embody
The performance of network.
Carried out in the prior art using ICMP agreements construction packet or udp protocol construction packet as test data bag
Test, but some nodes in destination or transmission path can fall ICMP Packet Filterings, cause to be tested, i.e.,
Make to carry out testing the problem of still test result also has not accurate enough.Although UDP message bag can be not filtered, survey
Test result can generally also have larger error.With the required precision more and more higher that the lifting of network rate, network delay are tested,
But all can not accurately test out network delay using the above method.
Therefore, measuring accuracy how is improved, accurate test network delay is the problem of art personnel need solution.
The content of the invention
It is an object of the invention to provide a kind of method of test network delay, to improve measuring accuracy, accurate Test Network
Network is delayed.
To achieve the above object, the embodiments of the invention provide following technical scheme:
A kind of method of test network delay, including:
Packet A is sent to destination from source, and determines that the source sends the very first time letter of the packet A
Breath, and the destination receive the second temporal information of the packet A;
The packet B that the destination is constructed is sent to the source, and determines that the destination sends the data
B the 3rd temporal information is wrapped, and the source receives the 4th temporal information of the packet B;
During according to the very first time information, second temporal information, the 3rd temporal information and the described 4th
Between information determine the packet A and packet B transmission total time, during using the transmission total time as network delay
Between.
Preferably, it is described to send packet A to destination from source, and determine that the source sends the packet A
Very first time information, and the destination receives the second temporal information of the packet A, including:
Packet A is sent to destination by udp protocol from source, and determines that the source sends the packet A
Very first time information, and the destination receives the second temporal information of the packet A.
Preferably, the packet B that the destination is constructed is sent to the source, and determines the destination hair
The 3rd temporal information of the packet B, and the source is sent to receive the 4th temporal information of the packet B, including:
The packet B that the destination is constructed is sent to the source by udp protocol, and determines the destination hair
The 3rd temporal information of the packet B, and the source is sent to receive the 4th temporal information of the packet B.
Preferably, it is described according to the very first time information, second temporal information, the 3rd temporal information and
4th temporal information determines the packet A and the packet B transmission total time, using it is described transmission total time as
Network delay time, including:
The destination sends second temporal information and the 3rd temporal information to the source;
The source determines the transmission total time of the packet A and packet B using following rule:
RTT=(T2-T1)+(T4-T3);
Wherein, RTT is the network delay time, and T1 is the very first time information, and T2 is second temporal information,
T3 is the 3rd temporal information, and T4 is the 4th temporal information;
Total time it regard the transmission as network delay time.
Preferably, the destination sends second temporal information and the 3rd temporal information to source, including:
The destination sends second temporal information and the 3rd temporal information to the source by Transmission Control Protocol.
Preferably, it is described according to the very first time information, second temporal information, the 3rd temporal information and
4th temporal information determines the packet A and the packet B transmission total time, using it is described transmission total time as
Network delay time, including:
The destination calculates the difference of second temporal information and the 3rd temporal information, and the difference is sent to institute
State source;
The source determines the transmission total time of the packet A and packet B using following rule:
RTT=(T4-T1)-(T3-T2);
Wherein, RTT is the network delay time, and T1 is the very first time information, and T2 is second temporal information,
T3 is the 3rd temporal information, and T4 is the 4th temporal information, and (T3-T2) is the difference.
Preferably, the destination calculates the difference of second temporal information and the 3rd temporal information, by the difference
Send to source, including:
Destination calculates the difference of second temporal information and the 3rd temporal information, and the difference is passed through into Transmission Control Protocol
Send to source.
Preferably, the very first time information, the 4th temporal information are recorded in source physical layer, the second time letter
Breath, the 3rd temporal information are recorded in destination physical layer.
A kind of device of test network delay, including:
First sending module, for packet A to be sent to destination from source, and determines that the source sends the number
The second temporal information of the packet A is received according to bag A very first time information, and the destination;
Second sending module, the packet B for the destination to be constructed is sent to the source, and determines the mesh
End send the 3rd temporal information of the packet B, and the source receives the 4th temporal information of the packet B;
Computing module, for according to the very first time information, second temporal information, the 3rd temporal information with
And the 4th temporal information determines the packet A and the packet B transmission total time, the transmission total time is made
For network delay time.
Preferably, the very first time information, the 4th temporal information are recorded in source physical layer, the second time letter
Breath, the 3rd temporal information are recorded in destination physical layer.
A kind of method for test network delay that the present invention is provided, packet A is sent to destination from source, and is determined
The source sends the very first time information of the packet A, and the destination receives the second time of the packet A
Information;The packet B that the destination is constructed is sent to the source, and determines that the destination sends the packet B
The 3rd temporal information, and the source receives the 4th temporal information of the packet B;Believed according to the very first time
Breath, second temporal information, the 3rd temporal information and the 4th temporal information determine the packet A and described
Packet B transmission total time, total time it regard the transmission as network delay time.
It can be seen that, in this programme, by very first time information, the second temporal information, the 3rd temporal information, the 4th time
The calculating of information, can only calculate the packet A and the packet B transmission total time, omit purpose end equipment logarithm
According to the processing time of bag, that is, the influence of destination hardware is have ignored, therefore network delay test can be greatly improved
Precision.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of method flow diagram of test network delay disclosed in the embodiment of the present invention;
Fig. 2 is a kind of method flow diagram of specific test network delay disclosed in the embodiment of the present invention;
Fig. 3 is a kind of apparatus structure schematic diagram of test network delay disclosed in the embodiment of the present invention;
Fig. 4 is a specific first sending module structural representation disclosed in the embodiment of the present invention;
Fig. 5 is that specific second sending module disclosed in the embodiment of the present invention shows that structure is intended to;
Fig. 6 is a specific computing module structural representation disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
A kind of method of test network delay provided the embodiment of the invention discloses the present invention, test essence is improved to realize
Degree, accurate test network delay.
Referring to Fig. 1, a kind of method of test network delay provided in an embodiment of the present invention, including:
S101, packet A is sent to destination from source, and determines that the source sends the first of the packet A
Temporal information, and the destination receive the second temporal information of the packet A.
Specifically, source construction packet A is sent as test data bag, and by packet A by a kind of procotol
To destination, meanwhile, source record sends packet A very first time information, i.e. record data bag A leaves the time of source
Stamp.When packet A reaches destination, destination record received data packet A the second temporal information, i.e. record data bag A is arrived
Up to the timestamp of destination.
S102, the packet B that the destination is constructed is sent to the source, and it is described to determine that the destination is sent
Packet B the 3rd temporal information, and the source receive the 4th temporal information of the packet B.
It is understood that destination constructs new packet B after packet A is received, and packet B is sent to source
End.Destination record sends packet B the 3rd temporal information, i.e. record data bag B leaves the timestamp of destination.Work as source
When receiving packet B, record source received data packet B the 4th temporal information, i.e. record data bag B reaches the time of source
Stamp.
S103, according to the very first time information, second temporal information, the 3rd temporal information and described
Four temporal informations determine the packet A and the packet B transmission total time, and the transmission is prolonged total time as network
When the time.
Specifically, destination believes the second temporal information and the 3rd temporal information, or the second temporal information with the 3rd time
The difference of breath is sent to source, and source calculates packet A and packet B transmission total time using four temporal informations,
That is, do not include processing time of the destination to packet in this transmission total time.
Therefore, by very first time information, the second temporal information, the 3rd temporal information, the 4th temporal information calculating,
The packet A and the packet B transmission total time can be only calculated, when omitting purpose end equipment to the processing of data bag
Between, that is, the influence of destination hardware is avoided, therefore the precision of network delay test can be greatly improved.
The embodiment of the invention discloses a kind of specifically network delay method, an embodiment, the present embodiment pair are different from
Packet A and the packet B transmission total time have done specific restriction described in determination in a upper embodiment, other steps
Content is roughly the same with a upper embodiment, and detailed content may refer to the corresponding part of an embodiment, and here is omitted.
Specifically:
Source determines the transmission total time of the packet A and packet B using following rule:
RTT=(T2-T1)+(T4-T3);
Wherein, RTT is the network delay time, and T1 is the very first time information, and T2 is second temporal information,
T3 is the 3rd temporal information, and T4 is the 4th temporal information;
Total time it regard the transmission as network delay time.
It should be understood that T2-T1 is packet A transmission time, T4-T3 is packet B transmission time.Therefore, pass
Defeated total time is exactly packet A transmission time sum of the transmission time with packet B.
It should be noted that in RTT=(T2-T1)+(T4-T3)=(T4-T1)-(T3-T2) formula, T4 is with T1
The temporal information of source record, holds the temporal information of record for the purpose of T3, T2, therefore in destination to source transmission time information
Before, T3 can be made the difference with T2, one data of difference is sent to source, calculated and prolonged using RTT=(T4-T1)-(T3-T2)
When the time.Therefore, when source only transmits a data to destination, the possibility of data inaccuracy after transmission can be reduced.
The method introduced by the present embodiment determines the packet A and the packet B transmission total time i.e. network
Delay time, is exactly packet A transmission time sum of the transmission time with packet B.Can by destination to packet at
The time of reason omits, therefore avoids the influence of destination hardware environment, adds the precision of network delay test.
The embodiment of the invention discloses a kind of specifically network delay method, relative to a upper embodiment, the present embodiment pair
Technical scheme has done further instruction and optimization.Referring to Fig. 2, a kind of side of test network delay provided in an embodiment of the present invention
Method, including:
S201, packet A is sent to destination by udp protocol from source, and determines that the source sends the number
The second temporal information of the packet A is received according to bag A very first time information, and the destination.
It should be noted that the packet A for test is the packet constructed by udp protocol, and pass through udp protocol
It is transferred to destination.Because udp protocol is a stateless host-host protocol, it is very fast when transmitting data, therefore
For transmitting test bag also just faster, test delay is more accurate.The host-host protocol that test bag can be transmitted also has ICMP, but mesh
End or transmission path in some nodes can filter ICMP packets, therefore can also avoid this problem using udp protocol.
S202, the packet B that the destination is constructed is sent to the source by udp protocol, and determine the mesh
End send the 3rd temporal information of the packet B, and the source receives the 4th temporal information of the packet B.
It is understood that for the packet B of test udp protocol can also be selected to carry out when destination is transmitted to source
Transmission, meets the condition that packet is not filtered and transmission speed is fast.
S203, the destination sends second temporal information and the 3rd temporal information to described by Transmission Control Protocol
Source.
Specifically, the destination is sent to source using the second temporal information and the 3rd temporal information as packet.It is right
It is reliably to transmit in the transmission requirement of temporal information, it is ensured that the temporal information for reaching source is accurate.But udp protocol is
Towards connectionless agreement, if network quality is bad, packet loss is just easy to, data are easily lost, therefore it cannot be guaranteed that transmission
Temporal information to source is accurate.And the Transmission Control Protocol in host-host protocol, with towards the mechanism being reliably connected, although pass
Defeated speed is relatively low but transmission data are reliable.Therefore when transmission time information, transmission speed is not required but the accurate of transmission is required
Property, the packet including the second temporal information and the 3rd temporal information is transferred to source by selection Transmission Control Protocol as host-host protocol
End, it is ensured that the temporal information that source is received is accurate.
S204, according to the very first time information, second temporal information, the 3rd temporal information and described
Four temporal informations determine the packet A and the packet B transmission total time, and the transmission is prolonged total time as network
When the time.
Specifically, source determines the transmission total time of the packet A and packet B using following rule:
RTT=(T2-T1)+(T4-T3);
Wherein, RTT is the network delay time, and T1 is the very first time information, and T2 is second temporal information,
T3 is the 3rd temporal information, and T4 is the 4th temporal information;
Total time it regard the transmission as network delay time.
It should be understood that T2-T1 is packet A transmission time, T4-T3 is packet B transmission time.Therefore, pass
Defeated total time is exactly packet A transmission time sum of the transmission time with packet B.
It should be noted that in RTT=(T2-T1)+(T4-T3)=(T4-T1)-(T3-T2) formula, T4 is with T1
The temporal information of source record, holds the temporal information of record for the purpose of T3, T2, therefore in destination to source transmission time information
Before, T3 can be made the difference with T2, one data of difference is sent to source, calculated and prolonged using RTT=(T4-T1)-(T3-T2)
When the time.
Therefore, the speed of test bag transmission can be improved by using udp protocol transmission test bag and avoided by mesh
End and other nodes filter out, while using the packet of Transmission Control Protocol transmission time information, it is ensured that temporal information
Accurately, then by very first time information, the second temporal information, the 3rd temporal information, the 4th temporal information calculating, can only
The packet A and the packet B transmission total time are calculated, processing time of the purpose end equipment to data bag is omitted,
The influence of destination hardware is exactly have ignored, therefore the precision of network delay test can be greatly improved.
The embodiment of the invention discloses a kind of specifically network delay method, an embodiment, the present embodiment pair are different from
Temporal information record position in a upper embodiment has done specific restriction, and other step contents are roughly the same with a upper embodiment
Detailed content may refer to the corresponding part of an embodiment, and here is omitted.Specifically:
Very first time information, the 4th temporal information record are recorded in the physical layer of source, when the second temporal information, the 3rd
Between information destination physical layer record.
Specifically, when packet A leaves source network interface card, very first time information is recorded, when packet reaches destination net
During card, the second temporal information is recorded;When packet B leaves destination network interface card, the 3rd temporal information is recorded, when packet B is arrived
During up to source network interface card, the 4th temporal information is recorded.
In the embodiment of the present invention, due to packet and the test bag of temporal information be separately send to source, can not
Temporal information is determined before packet construction, therefore temporal information can be moved on to physical layer record, is more accurately recorded
The time that packet leaves.If be transmitted that is, temporal information is put into test bag, such as by packet B
The 3rd temporal information for leaving destination is put into packet B and is transferred to source, and now the 3rd temporal information is exactly packet B structures
Time before making, rather than the time of destination is really left, this time gap really sends the time of packet also
Far, measurement error can be caused, but the 3rd temporal information is recorded in physical layer network interface card position, be exactly that packet B leaves destination
The temporal information at that moment.
Therefore, by after temporal information and test data bag separately send, temporal information can be recorded to network interface card, also
It is to say the position that temporal information recorded and leave destination, it is possible to reduce the error of temporal information record.
A kind of network delay test device provided in an embodiment of the present invention is introduced below, a kind of net described below
Network delay test device can be with cross-referenced with a kind of above-described network time-delay testing method.
Referring to Fig. 3, a kind of network delay test device provided in an embodiment of the present invention, including the first sending module 301, the
Two sending modules 302, computing module 303.
First sending module 301, for packet A to be sent to destination from source, and determines that the source sends institute
Packet A very first time information is stated, and the destination receives the second temporal information of the packet A.
Second sending module 302, the packet B for the destination to be constructed is sent to the source, and determines institute
The 3rd temporal information that destination sends the packet B is stated, and the source receives the 4th time letter of the packet B
Breath.
Computing module 303, for being believed according to the very first time information, second temporal information, the 3rd time
Breath and the 4th temporal information determine the packet A and packet B transmission total time, by the transmission it is total when
Between be used as network delay time.
Therefore, computing module 303 is by the very first time information, the second temporal information that are determined to the first sending module 301,
And second sending module 302 determine the 3rd temporal information, the calculating of the 4th temporal information, can only calculate the packet
A and the packet B transmission total time, processing time of the purpose end equipment to data bag is omitted, that is, avoid purpose
The influence of hardware is held, therefore the precision of network delay test can be greatly improved.
Referring to Fig. 4, the first sending module 301 in above-described embodiment is specifically included:
Transmitting element 301a, constructs packet A, and send to purpose by udp protocol for source by udp protocol
End.
Determining unit 301b, for determining that packet A leaves the very first time information of source in source network interface card.
Receiving unit 301c, for determining that packet A reaches the second temporal information of destination in destination network interface card.
Referring to Fig. 5, the second sending module 302 in above-described embodiment is specifically included:
First transmitting element 302a, for constructing packet B by udp protocol in destination, and is sent by udp protocol
To source.
First determining unit 302b, for determining that packet B leaves the 3rd time of destination in destination.
Second determining unit 302c, for determining that packet B leaves the temporal information of destination the 3rd and data in destination
Wrap the difference that B reaches the second temporal information of destination.
Receiving unit 302d:The 4th temporal information for reaching source in source network interface card position record data bag B.
Second transmitting element 302e, for sending the 3rd temporal information and the second time letter by Transmission Control Protocol in destination
Breath, or the difference that the second determining unit 302c is determined.
Referring to Fig. 6, the computing module 303 in above-described embodiment is specifically included:
First computing unit 303a, for when source receives the second temporal information and three temporal informations, passing through rule
Then RTT=(T2-T1)+(T4-T3) calculates packet A and packet B transmission total time.
Second computing unit 303b, the temporal information of destination the 3rd and data are left for receiving packet B in source
Wrap B reach destination the second temporal information difference when, by regular RTT=(T4-T1)-(T3-T2) calculate packet A and
The transmission total time of the packet B.
According to a kind of above-mentioned specifically network delay test device, specifically it can be applied in specific examples below,
Specifically:
S301, the transmitting element 301a of the first sending module 301 constructs test data bag A according to udp protocol, then by number
Destination is sent to according to bag A.
S302, the determining unit 301b of the first sending module 301 determines that packet A leaves source network interface card in source network interface card
Very first time information, such as time stamp T 1.And time stamp T 1 is stored in the delay computing module 303 of source physical layer.
S303, the receiving unit 301c of the first sending module 301 determines that packet A reaches destination in destination network interface card
Second temporal information, such as time stamp T 2.And be stored in time stamp T 2 in the communication module of destination physical layer.
S304, destination is responded to packet A, and the first transmitting element 302a of the second sending module 302 is in purpose
End constructs packet B by udp protocol, and is sent to source by udp protocol.
S305, the first determining unit 302b of the second sending module 302 determines that packet B leaves destination in destination
3rd time, such as time stamp T 3, and time stamp T 3 is stored in the communication module of destination physical layer.
S306, the receiving unit 302d of the second sending module 302 reaches source in source network interface card position record data bag B
4th temporal information, such as time stamp T 4, and time stamp T 4 is delivered to the delay computing module 303 of source physical layer.
S307, the second transmitting element 302e of the second sending module 302 sent for the 3rd time in destination by Transmission Control Protocol
Information is timestamp T3 and the second temporal information i.e. timestamp T2.
S308, the first computing unit 303a of computing module 303 receives the second temporal information and the 3rd time in source
During information, packet A and packet B transmission total time is calculated by regular RTT=(T2-T1)+(T4-T3).
Therefore, the first transmitting element 301a of the first sending module 301 sends test bag by using udp protocol and can carried
The speed of high test bag transmission and avoiding is filtered out by destination and other nodes, while the second sending module 302
Second transmitting element 302e uses the packet of Transmission Control Protocol transmission time information, it is ensured that accurate, the calculating mould of temporal information
Block 303 again by very first time information, the second temporal information, the 3rd temporal information, the 4th temporal information calculating, can only
The packet A and the packet B transmission total time are calculated, processing time of the purpose end equipment to data bag is omitted,
The influence of destination hardware is exactly have ignored, therefore the precision of network delay test can be greatly improved.
The embodiment of the invention discloses a kind of specifically network delay method, an embodiment, the present embodiment pair are different from
The first determining unit 302b of the second sending module 302 is changed in the second determining unit 302c, other steps in a upper embodiment
Appearance is roughly the same with a upper embodiment, and detailed content may refer to the corresponding part of an embodiment, and here is omitted.Tool
Body:
Second determining unit 302c of the second sending module 302 is when destination determines that packet B leaves destination the 3rd
Between information and date bag B reach destination the second temporal information difference.Correspondingly, the second hair of the second sending module 302
Unit 302e is sent to send the difference that the second determining unit 302c is determined by Transmission Control Protocol in destination, computing module 303 second is counted
Calculate unit 303b and receive packet B leaves the temporal information of destination the 3rd and packet B arrival destinations second in source
During the difference of temporal information, the transmission for calculating the packet A and packet B by regular RTT=(T4-T1)-(T3-T2) is total
Time.
Therefore, the difference that the second determining unit 302c is determined is sent, is exactly only to send a data to source, more effectively
The accurate transmission of temporal information is improved, to improve the degree of accuracy i.e. precision of network delay test of transmission total time.
The embodiment of each in this specification is described by the way of progressive, and what each embodiment was stressed is and other
Between the difference of embodiment, each embodiment identical similar portion mutually referring to.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or using the present invention.
A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention
The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one
The most wide scope caused.
Claims (10)
1. a kind of method of test network delay, it is characterised in that including:
Packet A is sent to destination from source, and determines that the source sends the very first time information of the packet A,
And the destination receives the second temporal information of the packet A;
The packet B that the destination is constructed is sent to the source, and determines that the destination sends the packet B's
3rd temporal information, and the source receive the 4th temporal information of the packet B;
Believed according to the very first time information, second temporal information, the 3rd temporal information and the 4th time
Breath determines the transmission total time of the packet A and packet B, total time regard the transmission as network delay time.
2. according to the method described in claim 1, it is characterised in that described to send packet A to destination from source, and really
The fixed source sends the very first time information of the packet A, and the destination is when receiving the second of the packet A
Between information, including:
Packet A is sent to destination by udp protocol from source, and determines that the source sends the of the packet A
One temporal information, and the destination receive the second temporal information of the packet A.
3. according to the method described in claim 1, it is characterised in that the packet B for constructing the destination send to
The source, and determine that the destination sends the 3rd temporal information of the packet B, and the source receives the number
According to bag B the 4th temporal information, including:
The packet B that the destination is constructed is sent to the source by udp protocol, and determines that the destination sends institute
Packet B the 3rd temporal information is stated, and the source receives the 4th temporal information of the packet B.
4. according to the method described in claim 1, it is characterised in that it is described according to the very first time information, described second when
Between information, the 3rd temporal information and the 4th temporal information determine the packet A and packet B transmission
Total time, using the transmission total time as network delay time, including:
The destination sends second temporal information and the 3rd temporal information to the source;
The source determines the transmission total time of the packet A and packet B using following rule:
RTT=(T2-T1)+(T4-T3);
Wherein, RTT is the network delay time, and T1 is the very first time information, and T2 is second temporal information, and T3 is
3rd temporal information, T4 is the 4th temporal information;
Total time it regard the transmission as network delay time.
5. method according to claim 4, it is characterised in that when the destination is by second temporal information and the 3rd
Between information send to source, including:
The destination sends second temporal information and the 3rd temporal information to the source by Transmission Control Protocol.
6. according to the method described in claim 1, it is characterised in that it is described according to the very first time information, described second when
Between information, the 3rd temporal information and the 4th temporal information determine the packet A and packet B transmission
Total time, using the transmission total time as network delay time, including:
The destination calculates the difference of second temporal information and the 3rd temporal information, and the difference is sent to the source
End;
The source determines the transmission total time of the packet A and packet B using following rule:
RTT=(T4-T1)-(T3-T2);
Wherein, RTT is the network delay time, and T1 is the very first time information, and T2 is second temporal information, and T3 is
3rd temporal information, T4 is the 4th temporal information, and (T3-T2) is the difference.
7. method according to claim 6, it is characterised in that the destination calculates second temporal information and the 3rd
The difference of temporal information, the difference is sent to source, including:
Destination calculates the difference of second temporal information and the 3rd temporal information, and the difference is sent by Transmission Control Protocol
To source.
8. method as claimed in any of claims 1 to 7, it is characterised in that when the very first time information, the 4th
Between information source physical layer record, second temporal information, the 3rd temporal information destination physical layer record.
9. a kind of device of test network delay, it is characterised in that including:
First sending module, for packet A to be sent to destination from source, and determines that the source sends the packet
A very first time information, and the destination receive the second temporal information of the packet A;
Second sending module, the packet B for the destination to be constructed is sent to the source, and determines the destination
The 3rd temporal information of the packet B is sent, and the source receives the 4th temporal information of the packet B;
Computing module, for according to the very first time information, second temporal information, the 3rd temporal information and institute
The transmission total time that the 4th temporal information determines the packet A and the packet B is stated, total time the transmission is regard as net
Network delay time.
10. device according to claim 9, it is characterised in that the very first time information, the 4th temporal information are in source
Physical layer is recorded, and second temporal information, the 3rd temporal information are recorded in destination physical layer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710330323.0A CN107147544A (en) | 2017-05-11 | 2017-05-11 | A kind of method and device of test network delay |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710330323.0A CN107147544A (en) | 2017-05-11 | 2017-05-11 | A kind of method and device of test network delay |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107147544A true CN107147544A (en) | 2017-09-08 |
Family
ID=59777294
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710330323.0A Pending CN107147544A (en) | 2017-05-11 | 2017-05-11 | A kind of method and device of test network delay |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107147544A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107769997A (en) * | 2017-10-27 | 2018-03-06 | 中国航空无线电电子研究所 | AFDX trade-to products switching technology delay index testing device and method of testing |
CN108880942A (en) * | 2018-06-29 | 2018-11-23 | 咪咕音乐有限公司 | Method, device and storage medium for determining abnormity of TCP session flow |
CN108924867A (en) * | 2018-05-07 | 2018-11-30 | 上海康斐信息技术有限公司 | A kind of Bluetooth rate test method and test host based on Android |
CN109257246A (en) * | 2018-08-09 | 2019-01-22 | 华为技术有限公司 | Detect the method, apparatus and system of time delay |
CN112398935A (en) * | 2020-11-05 | 2021-02-23 | 广发证券股份有限公司 | Full link load balancing algorithm based on time delay |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070058559A1 (en) * | 2005-09-15 | 2007-03-15 | Sharp Laboratories Of America, Inc. | Method and system of assigning priority to detection messages |
CN103427935A (en) * | 2012-05-16 | 2013-12-04 | 中国科学院声学研究所 | Network delay measuring method and system for eliminating position errors |
CN104144088A (en) * | 2014-07-24 | 2014-11-12 | 重庆邮电大学 | Network delay measuring method with delay measuring accuracy improved |
-
2017
- 2017-05-11 CN CN201710330323.0A patent/CN107147544A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070058559A1 (en) * | 2005-09-15 | 2007-03-15 | Sharp Laboratories Of America, Inc. | Method and system of assigning priority to detection messages |
CN103427935A (en) * | 2012-05-16 | 2013-12-04 | 中国科学院声学研究所 | Network delay measuring method and system for eliminating position errors |
CN104144088A (en) * | 2014-07-24 | 2014-11-12 | 重庆邮电大学 | Network delay measuring method with delay measuring accuracy improved |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107769997A (en) * | 2017-10-27 | 2018-03-06 | 中国航空无线电电子研究所 | AFDX trade-to products switching technology delay index testing device and method of testing |
CN107769997B (en) * | 2017-10-27 | 2021-04-23 | 中国航空无线电电子研究所 | AFDX exchange product exchange technology delay index testing device |
CN108924867A (en) * | 2018-05-07 | 2018-11-30 | 上海康斐信息技术有限公司 | A kind of Bluetooth rate test method and test host based on Android |
CN108880942A (en) * | 2018-06-29 | 2018-11-23 | 咪咕音乐有限公司 | Method, device and storage medium for determining abnormity of TCP session flow |
CN109257246A (en) * | 2018-08-09 | 2019-01-22 | 华为技术有限公司 | Detect the method, apparatus and system of time delay |
WO2020029602A1 (en) * | 2018-08-09 | 2020-02-13 | 华为技术有限公司 | Time delay detection method and apparatus, and system |
CN112398935A (en) * | 2020-11-05 | 2021-02-23 | 广发证券股份有限公司 | Full link load balancing algorithm based on time delay |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107147544A (en) | A kind of method and device of test network delay | |
EP2668748B1 (en) | Method for queuing data packets and node therefore | |
US9210050B2 (en) | System and method for a testing vector and associated performance map | |
CN101272290B (en) | Measuring method, measuring apparatus for route congestion state in IP network | |
CN108234235A (en) | For the method for data monitoring, the network equipment and computer readable storage medium | |
CN100446479C (en) | Method for measuring end-to-end available bandwidth based on network compact link position | |
CN105391592B (en) | A kind of methods, devices and systems Packet Transport Network business detecting and measured | |
CN102449957B (en) | Ip network fault locating method, apparatus, and system | |
CN107579869B (en) | Network performance detection method and network equipment | |
CN104144088A (en) | Network delay measuring method with delay measuring accuracy improved | |
CN106656679B (en) | Availability bandwidth measurement method | |
CN104717108B (en) | Network bottleneck Bandwidth Measurement Method based on active measurement and inter-packet gap model | |
CN104852828B (en) | A kind of network delay detection method, apparatus and system | |
CN102104502A (en) | Ethernet equipment performance test platform based on Linux system | |
CN103117900A (en) | Configurable industrial Ethernet data parsing system and parsing method | |
CN106603333A (en) | Network performance measuring method, apparatus and system | |
CN106487613A (en) | A kind of bandwidth test methods, devices and systems | |
CN106656643A (en) | Measuring method of segmental calculation of network delay | |
CN104486167A (en) | Concurrence network performance and network trending direction testing method based on MESH network | |
US8036132B1 (en) | Systems, devices, and methods for determining network failures | |
Kocak et al. | Performance measurement of IP networks using two-way active measurement protocol | |
WO2014095927A1 (en) | Probing a network | |
Olvera-Irigoyen et al. | Available bandwidth probing for path selection in heterogeneous home networks | |
CN103139014A (en) | Method and device for network quality evaluating based on by-pass | |
CN110248379A (en) | The performance test methods and device of base station in WLAN |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170908 |