CN106375055A - Method and device for measuring clock error of network device - Google Patents

Method and device for measuring clock error of network device Download PDF

Info

Publication number
CN106375055A
CN106375055A CN201610782375.7A CN201610782375A CN106375055A CN 106375055 A CN106375055 A CN 106375055A CN 201610782375 A CN201610782375 A CN 201610782375A CN 106375055 A CN106375055 A CN 106375055A
Authority
CN
China
Prior art keywords
sequence
value
time value
time
differences
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
CN201610782375.7A
Other languages
Chinese (zh)
Other versions
CN106375055B (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.)
Chengdu Source Information Technology Co Ltd
Original Assignee
Chengdu Source Information Technology 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 Chengdu Source Information Technology Co Ltd filed Critical Chengdu Source Information Technology Co Ltd
Priority to CN201610782375.7A priority Critical patent/CN106375055B/en
Publication of CN106375055A publication Critical patent/CN106375055A/en
Application granted granted Critical
Publication of CN106375055B publication Critical patent/CN106375055B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes

Abstract

The invention discloses a method and device for measuring a clock error of a network device. The method comprises the following steps: sending n data packets with timestamps to the network device according to a preset time interval; receiving n data packet responses carrying timestamp values sent by the network device, and sequentially recording the time values of the n data packet responses carrying timestamp values to obtain a first time value sequence; sequentially processing the timestamp values of the n data packet responses carrying the timestamp values to obtain a second time value sequence; and processing the first time value sequence and the second time value sequence to obtain the clock error of the network device.

Description

A kind of network equipment clock jitter measuring method and measuring apparatus
Technical field
The present invention relates to computer communication field, more particularly to a kind of network equipment clock jitter measuring method and measurement Equipment.
Background technology
The clock pulses (such as: quartz-crystal resonator) being used for timing in electronic equipment all has its uniquely constant crystal oscillator The difference of the rated frequency of frequency, this crystal oscillator frequency and this clock pulses is referred to as the accuracy error of this clock pulses.Therefore it is electric The clock jitter of sub- equipment is unique.
At present measurement clock jitter mainly has following two methods:
One measures the clock jitter of this electronic equipment using high-precision clock measuring apparatus, but this high accuracy Clock measuring apparatus cost very high, also need to for measuring apparatus and the network equipment to carry out physical link, thus being subject to region simultaneously The restriction in space.
Its two can by by the clock server of electronic equipment and clock source (as crystal clock, gps etc.) carry out the time with Step, obtains the time adjustment of high accurancy and precision thus calculating clock jitter.But the method needs to access clock server and clock Source, so that complex operation, and there is presently no a kind of algorithm of the effectively calculating clock jitter based on the method.
Content of the invention
For solving the above problems, a first aspect of the present invention provides a kind of network equipment clock jitter measuring method.Institute The method of stating includes:
Send the n packet with timestamp value by preset time interval to the network equipment;
Receive the n response package with timestamp value that the described network equipment sends, and record receives institute successively State the n time value with the response package of timestamp value, obtain very first time value sequence;
The described n timestamp value with the response package of timestamp value is processed successively, was obtained for the second time Value sequence;
Described very first time value sequence is processed with described second time value sequence, obtain the described network equipment when Clock deviation.
Further, the method described very first time value sequence being processed with described second time value sequence is:
To the time value in described very first time value sequence by sequentially carrying out exceptional value judgement from front to back, and to described Time value in two time value sequences carries out exceptional value judgement by vertical order;
Obtain the very first time value of first position in described very first time value sequence, and described second time value sequence Described in first position the second time value;Described very first time value and described second time value are not all exceptional value;Described In the very first time value sequence and described second time value sequence middle position time value before described primary importance, at same position Two time values at least be worth for exceptional value;
From the very first time described in the described very first time value sequence value a rear time value, each time value successively with Described very first time value is poor, obtains the first sequence of differences;And obtain between each time value and described very first time value when Between be spaced, obtain very first time intervening sequence;
From a rear time value of the second time value described in described second time value sequence, each time value successively with Described second time value is poor, obtains the second sequence of differences;
Described first sequence of differences is poor with the difference of described second sequence of differences correspondence position, obtain the 3rd difference sequence Row;
Eliminate the exceptional value in described 3rd sequence of differences, obtain the 4th sequence of differences;And eliminate between the described very first time In sequence with described 3rd sequence of differences in exceptional value same position at time interval value, obtain the second time interval sequence Row;
Described 4th sequence of differences and described second time interval sequence are carried out linear regression and obtains the described network equipment Clock jitter.
Further, the method described very first time value sequence being processed with described second time value sequence is:
By order from back to front, exceptional value judgement is carried out to the time value in described very first time value sequence, and to described Respectively by sequentially carrying out exceptional value judgement from back to front in second time value sequence;
Obtain the 3rd time value of second position in described very first time value sequence, and described second time value sequence Described in second position the 4th time value;Described 3rd time value and described 4th time value are not all exceptional value;Described In the very first time value sequence and described second time value sequence middle position time value after the described second position, at same position Two time values at least be worth for exceptional value;
By each time value before the 3rd time value described in described very first time value sequence and described 3rd time value Poor successively, obtain the 5th sequence of differences;And obtain each time before described 3rd time value and described 3rd time value Time interval between value, obtains the 3rd time interval sequence;
4th time value described in described second time value sequence is made successively with the time value before described 4th time value Difference, obtains the 6th sequence of differences;
Will be poor with the difference of described 6th sequence of differences correspondence position for described 5th sequence of differences, obtain the 7th difference sequence Row;
Eliminate the exceptional value in described 7th sequence of differences, obtain the 8th sequence of differences;And eliminate between described 3rd time In sequence with described 7th sequence of differences in exceptional value same position at time interval value, obtain the 4th time interval sequence Row;
Described 8th sequence of differences and described 4th time interval sequence are carried out linear regression and obtains the described network equipment Clock jitter.
Further, the side described n timestamp value with the response package of timestamp value being processed successively Method is:
Obtain the timestamp value in each described response package with timestamp value;
Each described response package with timestamp value corresponding, by the timestamp value in this packet divided by system Clock frequency obtains the second time value sequence.
Further, described system clock frequency passes through to read the clock frequency in the kernel version file of the described network equipment Rate is worth to.
Further, described system clock frequency obtains by the following method:
Receive two timestamp value carrying in the response package of timestamp value are made difference and obtains difference;
The difference obtaining is obtained divided by the time interval receiving described two response packages with timestamp value Described system clock frequency.
Further, the described exceptional value eliminating in described 3rd sequence of differences includes:
Eliminate the exceptional value in described 3rd sequence of differences based on Pauta criterion or Grubbs test method.
Further, the described exceptional value eliminating in described 7th sequence of differences includes:
Eliminate the exceptional value in described 7th sequence of differences based on Pauta criterion or Grubbs test method.
A second aspect of the present invention provides a kind of measuring apparatus, comprising:
Information acquisition module, for sending the n packet with timestamp value by preset time interval to the network equipment, And receive the n response package with timestamp value that the described network equipment sends;
Data measurement module, receives the described n time with the response package of timestamp value for record successively Value, obtains very first time value sequence;
Computing module, for the described n timestamp value with the response package of timestamp value is processed successively, Obtain the second time value sequence, described First ray time value and described second sequence time value are carried out calculating process, obtains The clock jitter of the described network equipment
Beneficial effect
A kind of network equipment clock jitter measuring method of the present invention and measuring apparatus.By gathering network equipment band The packet having timestamp value extracts its timestamp value, and it is carried out with process obtains the second time value sequence, re-records reception Time during packet is worth to very first time sequence, thus carry out process to very first time sequence and the second time serieses obtaining The clock jitter of net equipment.
The present invention does not need the clock source of accessing network equipment and clock server it is not required that high-precision compared to existing technology The measuring instrument of degree measures clock jitter value it is seen that the present invention easy and simple to handle and cost is very low, any to access network Target device all can measure clock jitter according to above-mentioned measuring method by described measuring apparatus, and the therefore present invention is not also subject to ground Domain limits, you can realize the clock jitter of long-range Measurement Network equipment.
Brief description
The network equipment clock jitter measuring method schematic flow sheet that Fig. 1 provides for the present invention.
The network equipment clock jitter measuring apparatus structured flowchart that Fig. 2 provides for the present invention.
Specific 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 description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is all other that those of ordinary skill in the art are obtained under the premise of not making creative work Embodiment, broadly falls into the scope of protection of the invention.
A kind of network equipment clock jitter measuring method that the present invention provides, as shown in figure 1, the method includes:
Step s1: send the n packet with timestamp value to the network equipment by preset time interval δ t;Receiving should The n response package with timestamp value that the network equipment sends, and record receives the n number with timestamp value successively According to the time value of bag response, obtain very first time value sequence, be designated as ti, i=1,2 ..., n;
Step s2: the n timestamp value with the response package of timestamp value is processed successively, when obtaining second Between value sequence, be designated as t'i, i=1,2 ..., n;
Specifically, step s2 includes:
Obtain each with the timestamp value in the response package of timestamp value, by the time in each packet Timestamp value obtains the second time value sequence divided by the system clock frequency in corresponding data bag, is designated as t'i, i=1,2 ..., n;
This system clock frequency can be obtained by following two modes:
Mode one: directly remotely read the clock frequency value of the kernel version file of the network equipment, such as this network equipment System kernel version be 4.6.1, then read filename/boot/config-4.6.1, you can measure this target device when Clock frequency.
Mode two: obtained by calculating, specifically,
Two timestamp value carrying in the response package of timestamp value that system clock frequency passes through to receive are poor Obtain difference, then the time interval with the response package of timestamp value obtains divided by above-mentioned two by this difference.
Step s3: very first time value sequence is processed with the second time value sequence, obtain the described network equipment when Clock accuracy error.
Specifically, can be obtained by following two processing methods:
Method one: in very first time value sequence ti and the second time value sequence t'i respectively by sequentially carrying out from front to back Exceptional value judges;Herein, very first time value sequence ti and the second time value sequence t'i can be judged it is also possible to first simultaneously , being judged, wherein, the method for judgement can be to very first time value sequence ti and the second time value sequence priority: due to be according to The time value of secondary record, then the time value in very first time value sequence and the second time value sequence should be proportional incremental, If some time value deviates considerably from this increasing trend, it is exceptional value;
When judging two times at same position in very first time value sequence ti and the second time value sequence t'i first When value is all not exceptional value, in record very first time value sequence ti, the time value at this position, is designated as very first time value, records the Time value at this position in two time value sequence t'i, is designated as the second time value, and very first time value sequence ti and described second It is located in time value sequence t'i in the time value before this position, two time values at least at same position are worth and are Exceptional value;
For example, judge first in second time value t2 and the second time value sequence t'i in very first time value sequence ti When second time value t'2 is all not exceptional value, record t2 was worth for the very first time, and t'2 is the second time value.
Rear time value t3 of very first time value t2 from very first time value sequence ti successively with very first time value t2 Differ from, obtain the first sequence of differences ri, specifically, such as below equation:
Ri=t (i)-t2, i=1,2 ..., n-2;
Obtain the time interval between each time value and very first time value again, obtain very first time intervening sequence, specifically Ground, such as below equation:
Mi=i* δ t, i=1,2 ..., n-2;
Rear time value t'3 of the second time value t'2 from the second time value sequence successively with the second time value t'2 Differ from, obtain the second sequence of differences r'i, specifically,
R'i=t'(i)-t'2, i=1,2 ..., n-2;
It is poor that first sequence of differences ri and the second sequence of differences r'i are corresponding in turn to, and obtains the 3rd sequence of differences ei;Specifically Ground, ei=ri-r'i, i=1,2 ..., n-2;
Exceptional value in 3rd sequence of differences ei is eliminated, obtains the 4th sequence of differences e'i, i=1,2 ..., n-1;Specifically Ground, the 3rd sequence of differences ei is eliminated after the exceptional value in the 3rd sequence of differences ei based on Pauta criterion or Grubbs test method Obtain the 4th sequence of differences e'i, and eliminate in very first time intervening sequence with the 3rd sequence of differences in exceptional value same position The time interval value at place, obtains the second time interval sequence;
By the 4th sequence of differences e'i and the second time interval sequence carry out linear regression obtain the network equipment clock inclined Difference;Wherein, the method carrying out linear regression can be with simple method of least square, weighted least-squares method, ordinary least square One of method.
Method two:
Sentence by sequentially carrying out exceptional value from back to front respectively in very first time value sequence ti and the second time value sequence t'i Disconnected;Herein, very first time value sequence ti and the second time value sequence t'i can be judged it is also possible to during first to first simultaneously Between value sequence ti and the second time value sequence priority judged, wherein, the method for judgement can: due to being to record successively Time value, then the time value in very first time value sequence should be proportional incremental, if some time value deviates considerably from this Plant increasing trend is then exceptional value, and in the same manner, the exceptional value determination methods of the second time value sequence are also consistent;
When judging two times at same position in very first time value sequence ti and the second time value sequence t'i first When value is all not exceptional value, record the time value at this position in very first time value sequence, be designated as the 3rd time value, record is described Time value at this position in second time value sequence, is designated as the 4th time value, and very first time value sequence ti and described second It is located in time value sequence t'i in the time value before this position, two time values at least at same position are worth and are Exceptional value;For example, penultimate time value t (n-1) and the second time value sequence in very first time value sequence ti are judged first Penultimate time value t'(n-1 in row t'i) when being all not exceptional value, record t (n-1) is the 3rd time value, t'(n-1) be 4th time value.
3rd time value t (n-1) and the time value before the 3rd time value t (n-1) in very first time value sequence are made successively Difference, obtains the 5th sequence of differences ni;Specifically, as below equation:
Ri=t (n-1)-ti, i=1,2 ..., n-2,
Obtain the time interval between each time value and very first time value again, obtain the 3rd time interval sequence, specifically Ground, such as below equation:
M'i=(n-i) * δ t, i=1,2 ..., n-2;
By the 4th time value t'(n-1 in the second time value sequence) with the 4th time value t'(n-1) before time value successively Differ from, obtain the 6th sequence of differences n'i;Specifically, r'i=t'(n-1)-t'i, i=1,2 ..., n-1;
It is poor that 5th sequence of differences ni and the 6th sequence of differences n'i are corresponding in turn to, and obtains the 7th sequence of differences di;Specifically Ground, di=ni-n'i, i=1,2 ..., n-2;
Exceptional value in 7th sequence of differences di is eliminated, obtains the 8th sequence of differences d'i, i=1,2 ..., n-1;Specifically Ground, the 7th sequence of differences di is eliminated after the exceptional value in the 7th sequence of differences di based on Pauta criterion or Grubbs test method Obtain the 8th sequence of differences d'i, simultaneously eliminate the 3rd time interval sequence in the 7th sequence of differences in exceptional value identical bits Put the time interval value at place, obtain the 4th time interval sequence;
By the 8th sequence of differences d'i and the 4th time interval sequence carry out linear regression obtain the network equipment clock inclined Difference;Wherein, the method carrying out linear regression can be with simple method of least square, weighted least-squares method, ordinary least square One of method.
In specific embodiment, the data with timestamp can be wrapped as the packet in open system interconnection network model.
A kind of measuring apparatus that the present invention provides, as shown in Figure 2: include: information acquisition module 201, data measurement module 202 and computing module 203.
Information acquisition module 201, for sending the n data with timestamp value with preset time interval to the network equipment Bag, and receive the n response package with timestamp value of network equipment transmission;
Data measurement module 202, receives the n time with the response package of timestamp value for record successively Value, obtains very first time value sequence, is designated as ti, i=1,2 ..., n;
Computing module 203, for the n timestamp value with the response package of timestamp value is processed successively, Obtain the second time value sequence, be designated as t'i, i=1,2 ..., n;During by described First ray time value with described second sequence Between value carry out calculating process, obtain the clock jitter of the network equipment.
Wherein, n is all relevant with the clock accuracy of measuring apparatus and the network equipment, and the clock accuracy of such as measuring apparatus is Second, and the clock accuracy of the network equipment is millisecond, then n >=1000+1.
Specifically, computing module 203 by the timestamp value in each packet divided by system in corresponding data bag when Clock frequency obtains the second time value sequence, is designated as t'i, i=1,2 ..., n;
This system clock frequency can be obtained by following two modes:
Mode one: information acquisition module 201 gathers the packet of the kernel version file of the network equipment, and reads out network The clock frequency value of the kernel version file of equipment.
Mode two: obtained by calculating, specifically,
In two response packages with timestamp value that information acquisition module 201 is collected by computing module 203 Timestamp value is made difference and is obtained difference, then the time interval this difference being carried the response package of timestamp value divided by above-mentioned two Obtain.
Further, the clock jitter of the network equipment is obtained by following two operations:
Operation one:
Computing module 203 is pressed from front to back sequentially respectively in very first time value sequence ti and the second time value sequence t'i Carry out exceptional value judgement;Herein, very first time value sequence ti and the second time value sequence t'i can be judged simultaneously, also may be used First, being judged, wherein, the method for judgement can be to very first time value sequence ti and the second time value sequence priority: due to It is the time value recording successively, then the time value in very first time value sequence and the second time value sequence should be incremented by for proportional , if some time value deviates considerably from this increasing trend, it is exceptional value;
When judging two times at same position in very first time value sequence ti and the second time value sequence t'i first When value is all not exceptional value, in record very first time value sequence ti, the time value at this position, is designated as very first time value, records the Time value at this position in two time value sequence t'i, is designated as the second time value, and very first time value sequence ti and described second It is located in time value sequence t'i in the time value before this position, two time values at least at same position are worth and are Exceptional value;For example, judge first in second time value t2 and the second time value sequence t'i in very first time value sequence ti When two time values t'2 are all not exceptional value, record t2 was worth for the very first time, and t'2 is the second time value.
Make with very first time value t2 successively rear time value t3 of very first time value t2 from very first time value sequence Difference, obtains the first sequence of differences ri, specifically,
Ri=t (i+2)-t2, i=1,2 ..., n-2,
Obtain the time interval between each time value and very first time value again, obtain very first time intervening sequence, specifically Ground, such as below equation:
Mi=i* δ t, i=1,2 ..., n-2;
From rear time value t'3 of the second time value t'2 described in the second time value sequence successively with the second time Value t'2 is poor, obtains the second sequence of differences r'i, specifically,
R'i=t'(i)-t'2, i=1,2 ..., n-2;
It is poor that first sequence of differences ri and the second sequence of differences r'i are corresponding in turn to, and obtains the 3rd sequence of differences ei;Specifically Ground, ei=ri-r'i, i=1,2 ..., n-2;
Exceptional value in 3rd sequence of differences ei is eliminated, obtains the 4th sequence of differences e'i, i=1,2 ..., n-2;Specifically Ground, the 3rd sequence of differences ei is eliminated after the exceptional value in the 3rd sequence of differences ei based on Pauta criterion or Grubbs test method Obtain the 4th sequence of differences e'i, and eliminate in very first time intervening sequence with the 3rd sequence of differences in exceptional value same position The time interval value at place, obtains the second time interval sequence;.
By the 4th sequence of differences e'i and the second time interval sequence carry out linear regression obtain the network equipment clock inclined Difference;Wherein, the method carrying out linear regression can be with simple method of least square, weighted least-squares method, ordinary least square One of method.
Operation two:
Computing module 203 is pressed from back to front sequentially respectively in very first time value sequence ti and the second time value sequence t'i Carry out exceptional value judgement;Herein, very first time value sequence ti and the second time value sequence t'i can be judged simultaneously, also may be used First, being judged, wherein, the method for judgement can be to very first time value sequence ti and the second time value sequence priority: due to It is the time value recording successively, then the time value in very first time value sequence should be proportional incremental, if some time What value deviated considerably from this increasing trend is then exceptional value, and in the same manner, the exceptional value determination methods of the second time value sequence are also consistent;
When judging two times at same position in very first time value sequence ti and the second time value sequence t'i first When value is all not exceptional value, record the time value at this position in very first time value sequence, be designated as the 3rd time value, record is described Time value at this position in second time value sequence, is designated as the 4th time value, and very first time value sequence ti and described second It is located in time value sequence t'i in the time value before this position, two time values at least at same position are worth and are Exceptional value;For example, penultimate time value t (n-1) and the second time value sequence in very first time value sequence ti are judged first Penultimate time value t'(n-1 in row t'i) when being all not exceptional value, record t (n-1) is the 3rd time value, t'(n-1) be 4th time value.
For example, penultimate time value t (n-1) and the second time value sequence in very first time value sequence ti are judged first Penultimate time value t'(n-1 in row t'i) when being all not exceptional value, record t (n-1) is the 3rd time value, t'(n-1) be 4th time value.
3rd time value t (n-1) and the time value before the 3rd time value t (n-1) in very first time value sequence are made successively Difference, obtains the 5th sequence of differences ni;Specifically, ri=t (n-1)-ti, i=1,2 ..., n-1,
Obtain the time interval between each time value and very first time value again, obtain the 3rd time interval sequence, specifically Ground, such as below equation:
M'i=(n-i) * δ t, i=1,2 ..., n-2;
By the 4th time value t'(n-1 in the second time value sequence) with the 4th time value t'(n-1) before time value successively Differ from, obtain the 6th sequence of differences n'i;Specifically, r'i=t'(n-1)-t'i, i=1,2 ..., n-2;
It is poor that 5th sequence of differences ni and the 6th sequence of differences n'i are corresponding in turn to, and obtains the 7th sequence of differences di;Specifically Ground, di=ni-n'i, i=1,2 ..., n-2;
Exceptional value in 7th sequence of differences di is eliminated, obtains the 8th sequence of differences d'i, i=1,2 ..., n-1;Specifically Ground, the 7th sequence of differences di is eliminated after the exceptional value in the 7th sequence of differences di based on Pauta criterion or Grubbs test method Obtain the 8th sequence of differences d'i, simultaneously eliminate the 3rd time interval sequence in the 7th sequence of differences in exceptional value identical bits Put the time interval value at place, obtain the 4th time interval sequence;.
By the 8th sequence of differences d'i and the 4th time interval sequence carry out linear regression obtain the network equipment clock inclined Difference;Wherein, the method carrying out linear regression can be with simple method of least square, weighted least-squares method, ordinary least square One of method.
In specific embodiment, the data with timestamp can be wrapped as at all levels in open system interconnection network model Packet.
It is more than that a kind of network equipment clock jitter measuring method provided by the present invention and measuring apparatus have been carried out in detail Thin introduction.It should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention, The present invention can also be carried out with some improvement and modify, these improve and modify the protection domain also falling into the claims in the present invention Interior.

Claims (9)

1. a kind of network equipment clock jitter measuring method is it is characterised in that include:
Send the n packet with timestamp value by preset time interval to the network equipment;
Receive the n response package with timestamp value that the described network equipment sends, and record receives described n successively The time value of the response package with timestamp value, obtains very first time value sequence;
The described n timestamp value with the response package of timestamp value is processed successively, is obtained the second time value sequence Row;
Described very first time value sequence is processed with described second time value sequence, the clock obtaining the described network equipment is inclined Difference.
2. network equipment clock jitter measuring method according to claim 1 is it is characterised in that be worth the described very first time The method that sequence is processed with described second time value sequence is:
To the time value in described very first time value sequence by sequentially carrying out exceptional value judgement from front to back, and during to described second Between time value in value sequence carry out exceptional value judgement by vertical order;
Obtain the very first time value of first position in described very first time value sequence, and institute in described second time value sequence State the second time value of first position;Described very first time value and described second time value are not all exceptional value;Described first In the time value sequence and described second time value sequence middle position time value before described primary importance, at same position two Individual time value at least one is worth for exceptional value;
From the very first time described in the described very first time value sequence value a rear time value, each time value successively with described Very first time value is poor, obtains the first sequence of differences;And be spaced between obtaining between each time value and described very first time value, Obtain very first time intervening sequence;
From a rear time value of the second time value described in described second time value sequence, each time value successively with described Second time value is poor, obtains the second sequence of differences;
Described first sequence of differences is poor with the difference of described second sequence of differences correspondence position, obtain the 3rd sequence of differences;
Eliminate the exceptional value in described 3rd sequence of differences, obtain the 4th sequence of differences;And eliminate interval sequence of the described very first time In row with described 3rd sequence of differences in exceptional value same position at time interval value, obtain the second time interval sequence;
By described 4th sequence of differences and described second time interval sequence carry out linear regression obtain the described network equipment when Clock deviation.
3. network equipment clock jitter measuring method according to claim 1 is it is characterised in that be worth the described very first time The method that sequence is processed with described second time value sequence is:
By order from back to front, exceptional value judgement is carried out to the time value in described very first time value sequence, and to described second Respectively by sequentially carrying out exceptional value judgement from back to front in time value sequence;
Obtain the 3rd time value of second position in described very first time value sequence, and institute in described second time value sequence State the 4th time value of second position;Described 3rd time value and described 4th time value are not all exceptional value;Described first In the time value sequence and described second time value sequence middle position time value after the described second position, at same position two Individual time value at least one is worth for exceptional value;
By each time value before the 3rd time value described in described very first time value sequence and described 3rd time value successively Differ from, obtain the 5th sequence of differences;And obtain each time value before described 3rd time value and described 3rd time value it Between time interval, obtain the 3rd time interval sequence;
Will be poor successively with the time value before described 4th time value for the 4th time value described in described second time value sequence, obtain To the 6th sequence of differences;
Will be poor with the difference of described 6th sequence of differences correspondence position for described 5th sequence of differences, obtain the 7th sequence of differences;
Eliminate the exceptional value in described 7th sequence of differences, obtain the 8th sequence of differences;And eliminate described 3rd time interval sequence In row with described 7th sequence of differences in exceptional value same position at time interval value, obtain the 4th time interval sequence;
By described 8th sequence of differences and described 4th time interval sequence carry out linear regression obtain the described network equipment when Clock deviation.
4. network equipment clock jitter measuring method according to claim 1 is it is characterised in that by described n band sometimes Between the method that processed successively of timestamp value of response package of timestamp value be:
Obtain the timestamp value in each described response package with timestamp value;
Each described response package with timestamp value corresponding, by the timestamp value in this packet divided by system clock Frequency obtains the second time value sequence.
5. network equipment clock jitter measuring method according to claim 4 is it is characterised in that described system clock frequency It is worth to by the clock frequency in the kernel version file of the described network equipment of reading.
6. network equipment clock jitter measuring method according to claim 4 is it is characterised in that described system clock frequency Obtain by the following method:
Receive two timestamp value carrying in the response package of timestamp value are made difference and obtains difference;
The difference obtaining is obtained described divided by the time interval receiving described two response packages with timestamp value System clock frequency.
7. network equipment clock jitter measuring method according to claim 2 is it is characterised in that described elimination the described 3rd Exceptional value in sequence of differences includes:
Eliminate the exceptional value in described 3rd sequence of differences based on Pauta criterion or Grubbs test method.
8. network equipment clock jitter measuring method according to claim 3 is it is characterised in that described elimination the described 7th Exceptional value in sequence of differences includes:
Eliminate the exceptional value in described 7th sequence of differences based on Pauta criterion or Grubbs test method.
9. a kind of measuring apparatus are it is characterised in that include:
Information acquisition module, for sending the n packet with timestamp value by preset time interval to the network equipment, and connects Receive the n response package with timestamp value that the described network equipment sends;
Data measurement module, receives the described n time value with the response package of timestamp value for record successively, obtains To very first time value sequence;
Computing module, for being processed the described n timestamp value with the response package of timestamp value successively, obtains Second time value sequence, described First ray time value and described second sequence time value are carried out calculating process, obtain described The clock jitter of the network equipment.
CN201610782375.7A 2016-08-30 2016-08-30 A kind of network equipment clock jitter measurement method and measuring apparatus Active CN106375055B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610782375.7A CN106375055B (en) 2016-08-30 2016-08-30 A kind of network equipment clock jitter measurement method and measuring apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610782375.7A CN106375055B (en) 2016-08-30 2016-08-30 A kind of network equipment clock jitter measurement method and measuring apparatus

Publications (2)

Publication Number Publication Date
CN106375055A true CN106375055A (en) 2017-02-01
CN106375055B CN106375055B (en) 2018-09-21

Family

ID=57898656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610782375.7A Active CN106375055B (en) 2016-08-30 2016-08-30 A kind of network equipment clock jitter measurement method and measuring apparatus

Country Status (1)

Country Link
CN (1) CN106375055B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108075852A (en) * 2017-11-16 2018-05-25 北京三快在线科技有限公司 Acquisition methods, device, electronic equipment and the storage medium of network standard time
CN109426911A (en) * 2017-08-31 2019-03-05 华为技术有限公司 A kind of appraisal procedure and device of the software runtime environment quality of equipment
US20220039042A1 (en) * 2018-09-27 2022-02-03 Telefonaktiebolaget Lm Ericsson (Publ) Methods, second node and apparatus for determining clock asynchronization

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888292A (en) * 2009-05-13 2010-11-17 中兴通讯股份有限公司 Clock synchronization method and device based on packet switching
CN102802255A (en) * 2011-05-24 2012-11-28 无锡物联网产业研究院 Computing method and system for time migration error
CN103516508A (en) * 2013-09-17 2014-01-15 中国科学院计算技术研究所 Method and system for correcting clock drift in one-way and two-way delay variation measurement
CN104604163A (en) * 2012-08-09 2015-05-06 西门子公司 Transmitting event signal
US20150188691A1 (en) * 2012-11-28 2015-07-02 Mitsubishi Electric Corporation Communication apparatus, communication system, and time synchronization method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888292A (en) * 2009-05-13 2010-11-17 中兴通讯股份有限公司 Clock synchronization method and device based on packet switching
CN102802255A (en) * 2011-05-24 2012-11-28 无锡物联网产业研究院 Computing method and system for time migration error
CN104604163A (en) * 2012-08-09 2015-05-06 西门子公司 Transmitting event signal
US20150188691A1 (en) * 2012-11-28 2015-07-02 Mitsubishi Electric Corporation Communication apparatus, communication system, and time synchronization method
CN103516508A (en) * 2013-09-17 2014-01-15 中国科学院计算技术研究所 Method and system for correcting clock drift in one-way and two-way delay variation measurement

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109426911A (en) * 2017-08-31 2019-03-05 华为技术有限公司 A kind of appraisal procedure and device of the software runtime environment quality of equipment
WO2019042102A1 (en) * 2017-08-31 2019-03-07 华为技术有限公司 Method and apparatus for evaluating software running environment quality of device
US11263112B2 (en) 2017-08-31 2022-03-01 Huawei Technologies Co., Ltd. Method and apparatus for evaluating quality of software running environment of device
CN109426911B (en) * 2017-08-31 2022-04-05 华为技术有限公司 Method and device for evaluating software running environment quality of equipment
CN108075852A (en) * 2017-11-16 2018-05-25 北京三快在线科技有限公司 Acquisition methods, device, electronic equipment and the storage medium of network standard time
US20220039042A1 (en) * 2018-09-27 2022-02-03 Telefonaktiebolaget Lm Ericsson (Publ) Methods, second node and apparatus for determining clock asynchronization

Also Published As

Publication number Publication date
CN106375055B (en) 2018-09-21

Similar Documents

Publication Publication Date Title
US11652561B2 (en) Techniques for determining timestamp inaccuracies in a transceiver
CN100461721C (en) System, method and apparatus for testing long-distance frame time delay
US6741952B2 (en) Instrument timing using synchronized clocks
CN104349163B (en) End-to-end video transmission delay measurements display device and the system of measurement
CN103970008B (en) Timekeeping method based on crystal oscillator error compensation
US4777616A (en) Increased resolution logic analyzer using asynchronous sampling
CN106375055A (en) Method and device for measuring clock error of network device
CN105549379A (en) Synchronous measurement apparatus based on high precision time reference triggering and method thereof
CN104518839B (en) frequency deviation detection method and device
CN104570012A (en) System and method for time delay calibration of Beidou navigation signal hardware simulator
CN106656451A (en) Time-keeping and timing precision test device, time-keeping precision test method and timing precision test method based on satellite timing system
CN104393981B (en) The time labeling method and system of a kind of multichannel measurement data parallel
CN102411091B (en) Device for detecting multi-channel signal stability and detection method
CN105785402A (en) GNSS signal simulator time delay calibration system and GNSS signal simulator time delay calibration method
CN111431650A (en) Satellite signal real-time service method and system based on FPGA
EP1756678B1 (en) Measuring clock jitter
CN103227643B (en) A kind of method determining sampling instant according to the data receiver moment
CN109709393A (en) Device based on stability of frequency of time domain signal measurement
CN110007144A (en) A kind of frequency measurement method and associated component of input signal
CN105974787B (en) On-site time testing device and method based on satellite common-view technology
JP5515088B2 (en) Method and system for determining a dependency between device parameters and signal parameters of a mobile phone
CN202230133U (en) Multipath detection device for stability of frequency signals
CN105388512B (en) A kind of calibration method and device of earthquake data acquisition exploration time
CN110062223A (en) A kind of method and its circuit system of high-precise synchronization test camera frame signal
CN210953042U (en) Synchronous method flow testing device

Legal Events

Date Code Title Description
C06 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