CN106375055B - A kind of network equipment clock jitter measurement method and measuring apparatus - Google Patents

A kind of network equipment clock jitter measurement method and measuring apparatus Download PDF

Info

Publication number
CN106375055B
CN106375055B CN201610782375.7A CN201610782375A CN106375055B CN 106375055 B CN106375055 B CN 106375055B CN 201610782375 A CN201610782375 A CN 201610782375A CN 106375055 B CN106375055 B CN 106375055B
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.)
Active
Application number
CN201610782375.7A
Other languages
Chinese (zh)
Other versions
CN106375055A (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of network equipment clock jitter measurement method and measuring apparatus.By preset time interval the n data packets for carrying timestamp value are sent to the network equipment;The n response packages for carrying timestamp value that the network equipment is sent are received, and record receives the time value of the n response packages with timestamp value successively, obtains first time value sequence;The timestamp value of the n response packages with timestamp value is handled successively, obtains the second time value sequence;The first time value sequence and the second time value sequence are handled, the clock jitter of the network equipment is obtained.

Description

A kind of network equipment clock jitter measurement method and measuring apparatus
Technical field
The present invention relates to computer communication fields, more particularly to a kind of network equipment clock jitter measurement method and measurement Equipment.
Background technology
In electronic equipment (such as the clock pulses of timing:Quartz-crystal resonator) all with its unique constant crystal oscillator The difference of frequency, this crystal oscillator frequency and the rated frequency of the clock pulses is referred to as the accuracy error of the clock pulses.Therefore it is electric The clock jitter of sub- equipment is unique.
Measuring clock jitter at present mainly has following two methods:
One measures the clock jitter of the electronic equipment using high-precision clock measuring apparatus, however this high-precision Clock measuring apparatus cost it is very high, while also needing to measuring apparatus and the network equipment carrying out physical link, to by region The limitation in space.
Secondly can be same by the way that the clock server of electronic equipment and clock source (such as quartz clock, GPS) are carried out the time Step, obtains the time adjustment of high accurancy and precision to calculate clock jitter.But this method needs to access clock server and clock Source, so that it is complicated for operation, and there is presently no a kind of algorithms of the effectively calculating clock jitter based on this method.
Invention content
To solve the above problems, the first aspect of the present invention provides a kind of network equipment clock jitter measurement method.Institute The method of stating includes:
By preset time interval the n data packets for carrying timestamp value are sent to the network equipment;
The n response packages for carrying timestamp value that the network equipment is sent are received, and record receives institute successively The time value for stating the n response packages with timestamp value, obtains first time value sequence;
The timestamp value of the n response packages with timestamp value is handled successively, obtained for the second time Value sequence;
The first time value sequence and the second time value sequence are handled, obtain the network equipment when Clock deviation.
Further, it is by the method that the first time value sequence is handled with the second time value sequence:
Exceptional value judgement is carried out by sequence from front to back to the time value in the first time value sequence, and to described the Time value in two time value sequences carries out exceptional value judgement by vertical sequence;
Obtain the first time value in the first time value sequence at first position and the second time value sequence Described in the second time value at first position;The first time value and second time value are not exceptional value;It is described In first time value sequence and the second time value sequence in the time value before the first position, at same position Two time value at least one values be exceptional value;
From the latter time value being worth at the first time described in the first time value sequence, each time value successively with It is poor that the first time value is made, and obtains the first sequence of differences;And obtain between each time value and the first time value when Between be spaced, obtain first time interval sequence;
From the latter time value of the second time value described in the second time value sequence, each time value successively with It is poor that second time value is made, and obtains the second sequence of differences;
It is poor that first sequence of differences and the difference of the second sequence of differences corresponding position are made, and obtains third difference sequence Row;
The exceptional value in the third sequence of differences is eliminated, the 4th sequence of differences is obtained;And it eliminates between the first time Every, with the time interval value at the exceptional value same position in the third sequence of differences, obtaining the second time interval sequence in sequence Row;
4th sequence of differences and the second time interval sequence are subjected to linear regression and obtain the network equipment Clock jitter.
Further, it is by the method that the first time value sequence is handled with the second time value sequence:
Exceptional value judgement is carried out by sequence from back to front to the time value in the first time value sequence, and to described Sequence from back to front is pressed in second time value sequence respectively and carries out exceptional value judgement;
Obtain the third time value of the second place and the second time value sequence in the first time value sequence Described in the second place the 4th time value;The third time value and the 4th time value are not exceptional value;It is described In first time value sequence and the second time value sequence in the time value after the second position, at same position Two time value at least one values be exceptional value;
By each time value before third time value described in the first time value sequence and the third time value It is poor to make successively, obtains the 5th sequence of differences;And obtain the third time value and each time before the third time value Time interval between value obtains third time interval sequence;
4th time value described in the second time value sequence is made successively with the time value before the 4th time value Difference obtains the 6th sequence of differences;
It is poor that 5th sequence of differences and the difference of the 6th sequence of differences corresponding position are made, and obtains the 7th difference sequence Row;
The exceptional value in the 7th sequence of differences is eliminated, the 8th sequence of differences is obtained;And it eliminates between the third time Every, with the time interval value at the exceptional value same position in the 7th sequence of differences, obtaining the 4th time interval sequence in sequence Row;
8th sequence of differences and the 4th time interval sequence are subjected to linear regression and obtain the network equipment Clock jitter.
Further, the side timestamp value of the n response packages with timestamp value handled successively Method is:
Obtain the timestamp value in each described response package with timestamp value;
Each corresponding described response package for carrying timestamp value, by the timestamp value divided by system in the data packet Clock frequency obtains the second time value sequence.
Further, the clock frequency in kernel version file of the system clock frequency by reading the network equipment Rate is worth to.
Further, the system clock frequency obtains by the following method:
Timestamp value in receive two response packages with timestamp value is obtained into difference as difference;
Obtained difference divided by the time interval for receiving described two response packages with timestamp value are obtained The system clock frequency.
Further, the exceptional value eliminated in the third sequence of differences includes:
The exceptional value in the third sequence of differences is eliminated based on Pauta criterion or Grubbs test method.
Further, the exceptional value eliminated in the 7th sequence of differences includes:
The exceptional value in the 7th sequence of differences is eliminated based on Pauta criterion or Grubbs test method.
The second aspect of the present invention provides a kind of measuring apparatus, including:
Information acquisition module, for sending the n data packets for carrying timestamp value to the network equipment by preset time interval, And receive the n response packages for carrying timestamp value that the network equipment is sent;
Data measurement module, for recording the time for receiving the n response packages with timestamp value successively Value, obtains first time value sequence;
Computing module, for the timestamp value of the n response packages with timestamp value to be handled successively, The second time value sequence is obtained, the First ray time value and the second sequence time value are subjected to calculation processing, obtained The clock jitter of the network equipment
Advantageous effect
A kind of network equipment clock jitter measurement method and measuring apparatus of the present invention.By acquiring network equipment band The data packet of having time timestamp value extracts its timestamp value, and is handled it to obtain the second time value sequence, re-records reception Time when data packet is worth to first time sequence, to be handled to obtain to first time sequence and the second time series The clock jitter of net equipment.
The present invention does not need the clock source and clock server of accessing network equipment compared with prior art, does not need high-precision yet The measuring instrument of degree measures clock jitter value, it is seen that easy to operate and cost of the invention is very low, docks into any of network Target device can measure clock jitter by the measuring apparatus according to above-mentioned measurement method, therefore the present invention is not also by ground Domain limits, you can realizes the long-range clock jitter for measuring the network equipment.
Description of the drawings
Fig. 1 is network equipment clock jitter measurement method flow diagram provided by the invention.
Fig. 2 is network equipment clock jitter measuring apparatus structure diagram provided by the invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts all other Embodiment shall fall within the protection scope of the present invention.
A kind of network equipment clock jitter measurement method provided by the invention, as shown in Figure 1, this method includes:
Step S1:By preset time interval Δ t the n data packets for carrying timestamp value are sent to the network equipment;Receiving should The n response packages for carrying timestamp value that the network equipment is sent, and record receives the n numbers for carrying timestamp value successively According to the time value of packet response, first time value sequence is obtained, is denoted as Ti, i=1,2 ..., n;
Step S2:The timestamp value of the n response packages with timestamp value is handled successively, when obtaining second Between value sequence, be denoted as T'i, i=1,2 ..., n;
Specifically, step S2 includes:
The timestamp value in each response package with timestamp value is obtained, by the time in each data packet System clock frequency in timestamp value divided by corresponding data packet obtains the second time value sequence, is denoted as T'i, i=1,2 ..., n;
The system clock frequency can be obtained by following two modes:
Mode one:The clock frequency value of the directly long-range kernel version file for reading the network equipment, such as the network equipment System kernel version be 4.6.1, then read filename/boot/config-4.6.1, you can measure the target device when Clock frequency.
Mode two:It is obtained by calculating, specifically,
It is poor that system clock frequency is made by the timestamp value in receive two response packages with timestamp value Difference is obtained, then the time interval of the response package of the difference divided by above-mentioned two with timestamp value is obtained.
Step S3:First time value sequence and the second time value sequence are handled, obtain the network equipment when Clock accuracy error.
Specifically, it can be obtained by following two processing methods:
Method one:It is carried out to pressing sequence from front to back in first time value sequence Ti and the second time value sequence T'i respectively Exceptional value judges;Herein, first time value sequence Ti and the second time value sequence T'i can be carried out at the same time judgement, can also be first First time value sequence Ti and the second time value sequence are successively judged, wherein the method for judgement can be:Due to be according to The time value of secondary record, then the time value in first time value sequence and the second time value sequence should be proportional incremental, If some time value deviate considerably from this increasing trend if be exceptional value;
When judging two times in first time value sequence Ti and the second time value sequence T'i at same position for the first time When value is not exceptional value, the time value at the position in first time value sequence Ti is recorded, is denoted as value at the first time, records the Time value in two time value sequence T'i at the position is denoted as the second time value, and first time value sequence Ti and described second It is located in time value sequence T'i in the time value before the position, two time value at least one values at same position are Exceptional value;
For example, judging for the first time in first time value sequence Ti in second time value T2 and the second time value sequence T'i When second time value T'2 is not exceptional value, record T2 is to be worth at the first time, and T'2 is the second time value.
From in first time value sequence Ti at the first time the latter time value T3 of value T2 successively with value T2 at the first time It is poor to make, and the first sequence of differences Ri is obtained, specifically, such as following formula:
Ri=T (i)-T2, i=1,2 ..., n-2;
The time interval between each time value and at the first time value is obtained again, obtains first time interval sequence, specifically Ground, such as following formula:
Mi=i* Δs t, i=1,2 ..., n-2;
From the latter time value T'3 of the second time value T'2 in the second time value sequence successively with the second time value T'2 It is poor to make, and obtains the second sequence of differences R'i, specifically,
R'i=T'(i)-T'2, i=1,2 ..., n-2;
By the first sequence of differences Ri and the second sequence of differences R'i be corresponding in turn to make it is poor, obtain third sequence of differences Ei;Specifically Ground, Ei=Ri-R'i, i=1,2 ..., n-2;
Exceptional value in third sequence of differences Ei is eliminated, the 4th sequence of differences E'i, i=1,2 ..., n-1 are obtained;Specifically Ground, after third sequence of differences Ei is eliminated the exceptional value in third sequence of differences Ei based on Pauta criterion or Grubbs test method Obtain the 4th sequence of differences E'i, and eliminate in first time interval sequence with the exceptional value same position in third sequence of differences The time interval value at place obtains the second time interval sequence;
The clock that 4th sequence of differences E'i is obtained to the network equipment with the progress linear regression of the second time interval sequence is inclined Difference;Wherein, the method for carrying out linear regression can be with simple least square method, weighted least-squares method, ordinary least square One kind in method.
Method two:
To first time value sequence Ti in the second time value sequence T'i respectively by from back to front sequence carry out exceptional value sentence It is disconnected;Herein, first time value sequence Ti and the second time value sequence T'i can be carried out at the same time judgement, can also first to first when Between value sequence Ti and the second time value sequence successively judged, wherein the method for judgement can be:Due to recording successively Time value, then the time value in first time value sequence should be proportional incremental, if some time value deviates considerably from this Kind increasing trend is then exceptional value, and similarly, the exceptional value judgment method of the second time value sequence is also consistent;
When judging two times in first time value sequence Ti and the second time value sequence T'i at same position for the first time When value is not exceptional value, the time value at the position in first time value sequence is recorded, is denoted as third time value, described in record Time value in second time value sequence at the position is denoted as the 4th time value, and first time value sequence Ti and described second It is located in time value sequence T'i in the time value before the position, two time value at least one values at same position are Exceptional value;For example, judging penultimate time value T (n-1) and the second time value sequence in first time value sequence Ti for the first time Arrange T'i in penultimate time value T'(n-1) be exceptional value when, record T (n-1) be third time value, T'(n-1) be 4th time value.
Third time value T (n-1) in first time value sequence is made successively with the time value before third time value T (n-1) Difference obtains the 5th sequence of differences Ni;Specifically, such as following formula:
Ri=T (n-1)-Ti, i=1,2 ..., n-2,
The time interval between each time value and at the first time value is obtained again, obtains third time interval sequence, specifically Ground, such as following formula:
M'i=(n-i) * Δs 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 It is poor to make, and obtains the 6th sequence of differences N'i;Specifically, R'i=T'(n-1)-T'i, i=1,2 ..., n-1;
By the 5th sequence of differences Ni and the 6th sequence of differences N'i be corresponding in turn to make it is poor, obtain 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, the 8th sequence of differences D'i, i=1,2 ..., n-1 are obtained;Specifically Ground, after the 7th sequence of differences Di is eliminated 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, at the same eliminate in third time interval sequence with the exceptional value identical bits in the 7th sequence of differences The time interval value for setting place obtains the 4th time interval sequence;
The clock that 8th sequence of differences D'i is obtained to the network equipment with the progress linear regression of the 4th time interval sequence is inclined Difference;Wherein, the method for carrying out linear regression can be with simple least square method, weighted least-squares method, ordinary least square One kind in method.
In specific embodiment, the data with timestamp can wrap as the data packet in open system interconnection network model.
A kind of measuring apparatus provided by the invention, as shown in Figure 2:Including:Information acquisition module 201, data measurement module 202 and computing module 203.
Information acquisition module 201, for sending the n data for carrying timestamp value to the network equipment with preset time interval Packet, and receive the n response packages for carrying timestamp value of network equipment transmission;
Data measurement module 202, for recording the time for receiving the n response packages with timestamp value successively Value, obtains first time value sequence, is denoted as Ti, i=1,2 ..., n;
Computing module 203, for the timestamp value of the n response packages with timestamp value to be handled successively, The second time value sequence is obtained, T'i is denoted as, i=1,2 ..., n;When by the First ray time value and second sequence Between value carry out calculation processing, obtain the clock jitter of the network equipment.
Wherein, n is related with the clock accuracy of measuring apparatus and the network equipment, such as the clock accuracy of measuring apparatus is Second, and the clock accuracy of the network equipment is millisecond, then n >=1000+1.
Specifically, when computing module 203 is by the timestamp value in each data packet divided by system in corresponding data packet Clock frequency obtains the second time value sequence, is denoted as T'i, i=1,2 ..., n;
The system clock frequency can be obtained by following two modes:
Mode one:Information acquisition module 201 acquires the data 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:It is obtained by calculating, specifically,
Computing module 203 will be in 201 collected two response packages with timestamp value of information acquisition module Timestamp value obtains difference as difference, then by the time interval of the response package of the difference divided by above-mentioned two with timestamp value It obtains.
Further, the clock jitter of the network equipment is obtained by following two operations:
Operation one:
Computing module 203 to pressing sequence from front to back respectively in first time value sequence Ti and the second time value sequence T'i Carry out exceptional value judgement;Herein, first time value sequence Ti and the second time value sequence T'i can be carried out at the same time judgement, also may be used First successively to judge first time value sequence Ti and the second time value sequence, wherein the method for judgement can be:Due to It is the time value recorded successively, then the time value in first time value sequence and the second time value sequence should be proportional incremental , if some time value deviate considerably from this increasing trend if be exceptional value;
When judging two times in first time value sequence Ti and the second time value sequence T'i at same position for the first time When value is not exceptional value, the time value at the position in first time value sequence Ti is recorded, is denoted as value at the first time, records the Time value in two time value sequence T'i at the position is denoted as the second time value, and first time value sequence Ti and described second It is located in time value sequence T'i in the time value before the position, two time value at least one values at same position are Exceptional value;For example, judging for the first time in first time value sequence Ti in second time value T2 and the second time value sequence T'i When two time value T'2 are not exceptional value, record T2 is to be worth at the first time, and T'2 is the second time value.
From in first time value sequence at the first time the latter time value T3 of value T2 successively with value T2 works at the first time Difference obtains the first sequence of differences Ri, specifically,
Ri=T (i+2)-T2, i=1,2 ..., n-2,
The time interval between each time value and at the first time value is obtained again, obtains first time interval sequence, specifically Ground, such as following formula:
Mi=i* Δs t, i=1,2 ..., n-2;
From the latter time value T'3 of the second time value T'2 described in the second time value sequence successively with the second time It is poor that value T'2 makees, and obtains the second sequence of differences R'i, specifically,
R'i=T'(i)-T'2, i=1,2 ..., n-2;
By the first sequence of differences Ri and the second sequence of differences R'i be corresponding in turn to make it is poor, obtain third sequence of differences Ei;Specifically Ground, Ei=Ri-R'i, i=1,2 ..., n-2;
Exceptional value in third sequence of differences Ei is eliminated, the 4th sequence of differences E'i, i=1,2 ..., n-2 are obtained;Specifically Ground, after third sequence of differences Ei is eliminated the exceptional value in third sequence of differences Ei based on Pauta criterion or Grubbs test method Obtain the 4th sequence of differences E'i, and eliminate in first time interval sequence with the exceptional value same position in third sequence of differences The time interval value at place obtains the second time interval sequence;.
The clock that 4th sequence of differences E'i is obtained to the network equipment with the progress linear regression of the second time interval sequence is inclined Difference;Wherein, the method for carrying out linear regression can be with simple least square method, weighted least-squares method, ordinary least square One kind in method.
Operation two:
Computing module 203 to pressing sequence from back to front respectively in first time value sequence Ti and the second time value sequence T'i Carry out exceptional value judgement;Herein, first time value sequence Ti and the second time value sequence T'i can be carried out at the same time judgement, also may be used First successively to judge first time value sequence Ti and the second time value sequence, wherein the method for judgement can be:Due to It is the time value recorded successively, then the time value in first time value sequence should be proportional incremental, if some time What value deviated considerably from this increasing trend is then exceptional value, and similarly, the exceptional value judgment method of the second time value sequence is also consistent;
When judging two times in first time value sequence Ti and the second time value sequence T'i at same position for the first time When value is not exceptional value, the time value at the position in first time value sequence is recorded, is denoted as third time value, described in record Time value in second time value sequence at the position is denoted as the 4th time value, and first time value sequence Ti and described second It is located in time value sequence T'i in the time value before the position, two time value at least one values at same position are Exceptional value;For example, judging penultimate time value T (n-1) and the second time value sequence in first time value sequence Ti for the first time Arrange T'i in penultimate time value T'(n-1) be exceptional value when, record T (n-1) be third time value, T'(n-1) be 4th time value.
For example, judging penultimate time value T (n-1) and the second time value sequence in first time value sequence Ti for the first time Arrange T'i in penultimate time value T'(n-1) be exceptional value when, record T (n-1) be third time value, T'(n-1) be 4th time value.
Third time value T (n-1) in first time value sequence is made successively with the time value before third time value T (n-1) Difference obtains the 5th sequence of differences Ni;Specifically, Ri=T (n-1)-Ti, i=1,2 ..., n-1,
The time interval between each time value and at the first time value is obtained again, obtains third time interval sequence, specifically Ground, such as following formula:
M'i=(n-i) * Δs 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 It is poor to make, and obtains the 6th sequence of differences N'i;Specifically, R'i=T'(n-1)-T'i, i=1,2 ..., n-2;
By the 5th sequence of differences Ni and the 6th sequence of differences N'i be corresponding in turn to make it is poor, obtain 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, the 8th sequence of differences D'i, i=1,2 ..., n-1 are obtained;Specifically Ground, after the 7th sequence of differences Di is eliminated 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, at the same eliminate in third time interval sequence with the exceptional value identical bits in the 7th sequence of differences The time interval value for setting place obtains the 4th time interval sequence;.
The clock that 8th sequence of differences D'i is obtained to the network equipment with the progress linear regression of the 4th time interval sequence is inclined Difference;Wherein, the method for carrying out linear regression can be with simple least square method, weighted least-squares method, ordinary least square One kind in method.
In specific embodiment, the data with timestamp, which can wrap, is at all levels in open system interconnection network model Data packet.
It is to have been carried out in detail to a kind of network equipment clock jitter measurement method provided by the present invention and measuring apparatus above It is thin to introduce.It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, Can be with several improvements and modifications are made to the present invention, these improvement and modification also fall into the protection domain of the claims in the present invention It is interior.

Claims (8)

1. a kind of network equipment clock jitter measurement method, which is characterized in that including:
By preset time interval the n data packets for carrying timestamp value are sent to the network equipment;
The n response packages for carrying timestamp value that the network equipment is sent are received, and record receives the n successively The time value of response package with timestamp value obtains first time value sequence Ti, i=1,2 ..., n;
The timestamp value of the n response packages with timestamp value is handled successively, obtains the second time value sequence Arrange T'i, i=1,2 ..., n;
By the first time value sequence Ti and the second time value sequence T'i processing, the network equipment is obtained Clock jitter;
Wherein, it is by the method that the timestamp value of the n response packages with timestamp value is handled successively:
Obtain the timestamp value in each described response package with timestamp value;
Each corresponding described response package for carrying timestamp value, by the timestamp value divided by system clock in the data packet Frequency obtains the second time value sequence T'i.
2. network equipment clock jitter measurement method according to claim 1, which is characterized in that the first time to be worth Sequence Ti and the second time value sequence T'i methods handled are:
Exceptional value judgement is carried out by sequence from front to back to the time value in the first time value sequence Ti, and to described second Time value in time value sequence T'i carries out exceptional value judgement by vertical sequence;
Obtain the first time value in the first time value sequence Ti at first position and the second time value sequence T' The second time value at first position described in i;The first time value and second time value are not exceptional value;It is described It is identical in first time value sequence Ti and the second time value sequence T'i in the time value before the first position Two at least one values of time value at position are exceptional value;
From the latter time value being worth at the first time described in the first time value sequence Ti, each time value successively with institute It is poor to state value work at the first time, obtains the first sequence of differences;And obtain the time between each time value and the first time value Interval, obtains first time interval sequence;
From the latter time value of the second time value described in the second time value sequence T'i, each time value successively with It is poor that second time value is made, and obtains the second sequence of differences;
It is poor that first sequence of differences and the difference of the second sequence of differences corresponding position are made, and obtains third sequence of differences;
The exceptional value in the third sequence of differences is eliminated, the 4th sequence of differences is obtained;And eliminate the first time interval sequence With the time interval value at the exceptional value same position in the third sequence of differences in row, the second time interval sequence is obtained;
By the 4th sequence of differences and the second time interval sequence carry out linear regression obtain the network equipment when Clock deviation;
Wherein, the method for exceptional value judgement is:Due to being the time value recorded successively, then when first time value sequence Ti and second Between time value in value sequence T'i should be proportional incremental, if some time value deviates considerably from this increasing trend It is then exceptional value.
3. network equipment clock jitter measurement method according to claim 1, which is characterized in that the first time to be worth Sequence Ti and the second time value sequence T'i methods handled are:
Exceptional value judgement is carried out by sequence from back to front to the time value in the first time value sequence Ti, and to described the Sequence from back to front is pressed in two time value sequence T'i respectively and carries out exceptional value judgement;
Obtain the third time value of the second place and the second time value sequence T' in the first time value sequence Ti 4th time value of the second place described in i;The third time value and the 4th time value are not exceptional value;It is described It is identical in first time value sequence Ti and the second time value sequence T'i in the time value after the second position Two at least one values of time value at position are exceptional value;
By each time value before third time value described in the first time value sequence Ti and the third time value according to Secondary work is poor, obtains the 5th sequence of differences;And obtain the third time value and each time value before the third time value Between time interval, obtain third time interval sequence;
4th time value described in the second time value sequence T'i is made successively with the time value before the 4th time value Difference obtains the 6th sequence of differences;
It is poor that 5th sequence of differences and the difference of the 6th sequence of differences corresponding position are made, and obtains the 7th sequence of differences;
The exceptional value in the 7th sequence of differences is eliminated, the 8th sequence of differences is obtained;And eliminate the third time interval sequence With the time interval value at the exceptional value same position in the 7th sequence of differences in row, the 4th time interval sequence is obtained;
By the 8th sequence of differences and the 4th time interval sequence carry out linear regression obtain the network equipment when Clock deviation;
Wherein, the method for exceptional value judgement is:Due to being the time value recorded successively, then when first time value sequence Ti and second Between time value in value sequence T'i should be proportional incremental, if some time value deviates considerably from this increasing trend It is then exceptional value.
4. network equipment clock jitter measurement method according to claim 1, which is characterized in that the system clock frequency The clock frequency in kernel version file by reading the network equipment is worth to.
5. network equipment clock jitter measurement method according to claim 1, which is characterized in that the system clock frequency It obtains by the following method:
Timestamp value in receive two response packages with timestamp value is obtained into difference as difference;
Obtained difference divided by the time interval for receiving described two response packages with timestamp value are obtained described System clock frequency.
6. network equipment clock jitter measurement method according to claim 2, which is characterized in that described to eliminate the third Exceptional value in sequence of differences includes:
The exceptional value in the third sequence of differences is eliminated based on Pauta criterion or Grubbs test method.
7. network equipment clock jitter measurement method according to claim 3, which is characterized in that described to eliminate the described 7th Exceptional value in sequence of differences includes:
The exceptional value in the 7th sequence of differences is eliminated based on Pauta criterion or Grubbs test method.
8. a kind of measuring apparatus based on network equipment clock jitter measurement method described in claim 1, which is characterized in that packet It includes:
Information acquisition module carries the data packet of timestamp value for sending n to the network equipment by preset time interval, and connects Receive the n response packages for carrying timestamp value that the network equipment is sent;
Data measurement module is obtained for recording the time value for receiving the n response packages with timestamp value successively To first time value sequence Ti;
Computing module is obtained for handling the timestamp value of the n response packages with timestamp value successively The First ray time value and the second sequence time value are carried out calculation processing, obtain institute by the second time value sequence T'i State 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 CN106375055A (en) 2017-02-01
CN106375055B true 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11800474B2 (en) * 2018-09-27 2023-10-24 Telefonaktiebolaget Lm Ericsson (Publ) Methods, second node and apparatus for determining clock asynchronization

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Citations (4)

* 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5911601B2 (en) * 2012-11-28 2016-04-27 三菱電機株式会社 COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND TIME SYNCHRONIZATION METHOD

Patent Citations (4)

* 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
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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11800474B2 (en) * 2018-09-27 2023-10-24 Telefonaktiebolaget Lm Ericsson (Publ) Methods, second node and apparatus for determining clock asynchronization

Also Published As

Publication number Publication date
CN106375055A (en) 2017-02-01

Similar Documents

Publication Publication Date Title
CN106375055B (en) A kind of network equipment clock jitter measurement method and measuring apparatus
US20030158706A1 (en) Instrument timing using synchronized clocks
CN102411091B (en) Device for detecting multi-channel signal stability and detection method
CN206657470U (en) With the rod-type pump controller that oil pumper is used together
TWI442241B (en) Data Synchronization System and Method for Multi - measure Instrument
CN104393981B (en) The time labeling method and system of a kind of multichannel measurement data parallel
CN216748451U (en) High-precision time service precision measurement system
CN105785402A (en) GNSS signal simulator time delay calibration system and GNSS signal simulator time delay calibration method
EP1756678B1 (en) Measuring clock jitter
CN109005002A (en) Sensing data processing unit, sensing system and the method for determining reduced parameter in the scope of the sensing system
CN105890591B (en) A method of calculating the Rotating Platform for High Precision Star Sensor time of exposure using pps pulse per second signal
CN110007144A (en) A kind of frequency measurement method and associated component of input signal
KR101942719B1 (en) Real Time Clock Apparatus
CN105974787B (en) On-site time testing device and method based on satellite common-view technology
US6876938B2 (en) Method to provide a calibrated path for multi-signal cables in testing of integrated circuits
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
CN105092036B (en) Synchronous triggering calibrating method and device in rotary device type spectroscopic ellipsometers
US7519484B2 (en) Power supply monitor
CN113098650B (en) Time deviation measuring method, apparatus, communication device and readable storage medium
Gojcic et al. Synchronization routine for real-time synchronization of robotic total stations
CN113986633A (en) FPGA (field programmable Gate array) measuring unit and channel delay compensation method and device based on FPGA measuring unit
CN115913430A (en) Clock synchronization method of control system and control system
CN102855172A (en) Method for recording network card receiving time at high precision
CN109831251A (en) Bit error rate acquisition methods and equipment based on dynamic resource allocation algorithm

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