CN102232278B - Method and device for detecting 1588 equipment performance - Google Patents

Method and device for detecting 1588 equipment performance Download PDF

Info

Publication number
CN102232278B
CN102232278B CN201180000784.2A CN201180000784A CN102232278B CN 102232278 B CN102232278 B CN 102232278B CN 201180000784 A CN201180000784 A CN 201180000784A CN 102232278 B CN102232278 B CN 102232278B
Authority
CN
China
Prior art keywords
time
actual
transmitting time
default
messages
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
CN201180000784.2A
Other languages
Chinese (zh)
Other versions
CN102232278A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN102232278A publication Critical patent/CN102232278A/en
Application granted granted Critical
Publication of CN102232278B publication Critical patent/CN102232278B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/087Jitter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • H04L43/106Active monitoring, e.g. heartbeat, ping or trace-route using time related information in packets, e.g. by adding timestamps

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Environmental & Geological Engineering (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The present invention discloses a method and a device for detecting 1588 equipment performance, and relates to the technical field of communication. The present invention can detect correctness of a timestamp value of a 1588 message, so as to realize positioning for performance problems of the 1588 equipment. The method comprises the steps of: obtaining a preset sending time, an actual sending time, an actual receiving time of the 1588 message; if the preset sending time is equal to the actual sending time, determining that the actual sending time is accurate; obtaining a jitter value of a route transmission time; and if the jitter value corresponding to the current work cycle is within a preset jitter range, determining that the actual receiving time is accurate. The present invention issuitable for positioning the performance problems of the 1588 equipment.

Description

Detect method and the device of 1588 equipment performances
Technical field
The present invention relates to communication technical field, relate in particular to the method and the device that detect 1588 equipment performances.
Background technology
IEEE 1588V2 is a kind of exact time synchronization agreement (Precision Time Protocol that is based upon on the message basis, hereinafter to be referred as: PTP), adopt the PTP agreement by main (Master) clock and from message transmission between (Slave) clock, can in the network that grouping transmits, realize exact time synchronization and Frequency Synchronization.Described Frequency Synchronization refers to keep certain strict particular kind of relationship on frequency between the signal or the phase place, and occurs with same Mean Speed its corresponding significant instant, moves with identical speed to keep equipment all in the communication network.Described time synchronized refers to be consistent on the identical and phase place of the frequency between the signal.
RTC (Real Time Clock, real-time clock) correctness of the timestamp value of the accuracy of operating frequency and 1588 messages is to influence the factor that IEEE 1588V2 agreement realizes precision, the accuracy of described RTC operating frequency can be measured the RTC of master clock side respectively and from the operating frequency of the RTC of clock side by frequency meter, if the RTC operating frequency of the described master clock side of measuring and equate from the operating frequency of the RTC of clock side, illustrate that then described RTC operating frequency is accurately, otherwise, illustrate that then described RTC operating frequency is not accurately.So accurately under the prerequisite, the correctness of the timestamp value of described 1588 messages is most important for the performance of 1588 equipment in described RTC operating frequency.
Yet, do not have in the prior art a kind of specially at the detection method of the correctness of the timestamp value of 1588 messages, thereby can not be to the performance issue location of 1588 equipment.
Summary of the invention
Embodiments of the invention provide a kind of method and device of detection 1588 equipment performances, can detect the correctness of the timestamp value of 1588 messages, thereby realize the performance issue location to 1588 equipment.
For achieving the above object, embodiments of the invention adopt following technical scheme:
A kind of method of detection 1588 equipment performances comprises:
In the work at present cycle, obtain the default transmitting time of 1588 messages, actual transmitting time, actual time of reception;
Judge whether described default transmitting time and actual transmitting time equate;
When described default transmitting time is equal with actual transmitting time, determine that described actual transmitting time is accurately;
When described default transmitting time and actual transmitting time are unequal, determine that described actual transmitting time is inaccurate;
When described actual transmitting time when being accurate, calculate path transmission time in the work at present cycle according to described actual time of reception and described actual transmitting time;
The path transmission time that calculates in work period according to the default number before the path transmission time in the described work at present cycle and described work at present cycle, obtain the jitter value in path transmission time, and judge that described jitter value is whether in default jitter range;
When jitter value corresponding in the described work at present cycle is in default jitter range, determine that described actual time of reception is accurately;
When jitter value corresponding in the described work at present cycle is not in default jitter range, determine that described actual time of reception is inaccurate.
A kind of device of detection 1588 equipment performances comprises:
Acquiring unit was used for obtaining the default transmitting time of 1588 messages, actual transmitting time, actual time of reception in the work at present cycle;
First judging unit is used for judging whether described default transmitting time and actual transmitting time equate;
First determining unit is used for determining that described actual transmitting time is accurately when described default transmitting time is equal with actual transmitting time;
Described first determining unit also is used for determining that described actual transmitting time is inaccurate when described default transmitting time and actual transmitting time are unequal;
Computing unit is used for when described actual transmitting time when being accurate, calculates path transmission time in the work at present cycle according to described actual time of reception and described actual transmitting time;
Second judging unit, for the path transmission time that calculates in the work period according to the default number before the path transmission time in the described work at present cycle and described work at present cycle, obtain the jitter value in path transmission time, and judge that described jitter value is whether in default jitter range;
Second determining unit is used for determining that described actual time of reception is accurately when jitter value corresponding in the described work at present cycle is in default jitter range;
Described second determining unit also is used for determining that described actual time of reception is inaccurate when jitter value corresponding in the described work at present cycle is not in default jitter range.
Method and the device of detection 1588 equipment performances that the embodiment of the invention provides, by in the work at present cycle, to the default transmitting time of 1588 messages that obtain and actual transmitting time relatively, determine the accuracy of described actual transmitting time, then when described actual transmitting time be accurately the time, calculate path transmission time in the work at present cycle according to described actual time of reception and described actual transmitting time, the path transmission time that calculates in work period according to the default number before the path transmission time in the described work at present cycle and described work at present cycle, obtain the jitter value in path transmission time, and judge that described jitter value whether in default jitter range, determines the accuracy of described actual time of reception.By the judgement to the accuracy of described actual transmitting time and described actual time of reception, can accurately locate the performance issue of 1588 equipment.With the method that does not have in the prior art specially at the correctness of the timestamp value that detects 1588 messages, thereby can not compare the performance issue location of 1588 equipment, the scheme that the embodiment of the invention provides can detect the correctness of the timestamp value of 1588 messages, thereby realizes the performance issue location to 1588 equipment.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
A kind of flow chart that detects the method for 1588 equipment performances that Fig. 1 provides for the embodiment of the invention 1;
A kind of block diagram that detects the device of 1588 equipment performances that Fig. 2 provides for the embodiment of the invention 1;
A kind of flow chart that detects the method for 1588 equipment performances that Fig. 3 provides for the embodiment of the invention 2;
The schematic diagram of the intermittent phase that Fig. 4 provides for the embodiment of the invention 2;
A kind of block diagram that detects the device of 1588 equipment performances that Fig. 5 provides for the embodiment of the invention 2.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Embodiment 1
The embodiment of the invention provides a kind of method of detection 1588 equipment performances, and as shown in Figure 1, this method comprises:
Step 101 in the work at present cycle, is obtained the default transmitting time of 1588 messages, actual transmitting time, actual time of reception;
Step 102 judges whether described default transmitting time and actual transmitting time equate;
Step 103 when described default transmitting time is equal with actual transmitting time, determines that described actual transmitting time is accurately;
Step 104 when described default transmitting time and actual transmitting time are unequal, determines that described actual transmitting time is inaccurate;
Step 105 when described actual transmitting time when being accurate, calculates path transmission time in the work at present cycle according to described actual time of reception and described actual transmitting time;
Step 106, the path transmission time that calculates in work period according to the default number before the path transmission time in the described work at present cycle and described work at present cycle, obtain the jitter value in path transmission time, and judge that described jitter value is whether in default jitter range;
Step 107 when jitter value corresponding in the described work at present cycle is in default jitter range, determines that described actual time of reception is accurately;
Step 108 when jitter value corresponding in the described work at present cycle is not in default jitter range, determines that described actual time of reception is inaccurate.
The method of detection 1588 equipment performances that the embodiment of the invention provides, by to the default transmitting time of 1588 messages that obtain and actual transmitting time relatively, determine the accuracy of described actual transmitting time, then when described actual transmitting time be accurately the time, calculate path transmission time in the work at present cycle according to described actual time of reception and described actual transmitting time, the path transmission time that calculates in work period according to the default number before the path transmission time in the described work at present cycle and described work at present cycle, obtain the jitter value in path transmission time, and judge that described jitter value whether in default jitter range, determines the accuracy of described actual time of reception.With the method that does not have in the prior art specially at the correctness of the timestamp value that detects 1588 messages, thereby can not compare the performance issue location of 1588 equipment, the scheme that the embodiment of the invention provides can detect the correctness of the timestamp value of 1588 messages, thereby realizes the performance issue location to 1588 equipment.
In order to realize the method for above-mentioned detection 1588 equipment performances, the present invention also provides a kind of device of detection 1588 equipment performances, as shown in Figure 2, this device comprises: acquiring unit 201, first judging unit, 202, the first determining units 203, computing unit 204, second judging unit, 205, the second determining units 206.
Acquiring unit 201 was used for obtaining the default transmitting time of 1588 messages, actual transmitting time, actual time of reception in the work at present cycle;
First judging unit 202 is used for judging whether described default transmitting time and actual transmitting time equate;
First determining unit 203 is used for determining that described actual transmitting time is accurately when described default transmitting time is equal with actual transmitting time;
Described first determining unit 203 also is used for determining that described actual transmitting time is inaccurate when described default transmitting time and actual transmitting time are unequal;
Computing unit 204 is used for when described actual transmitting time when being accurate, calculates path transmission time in the work at present cycle according to described actual time of reception and described actual transmitting time;
Second judging unit 205, for the path transmission time that calculates in the work period according to the default number before the path transmission time in the described work at present cycle and described work at present cycle, obtain the jitter value in path transmission time, and judge that described jitter value is whether in default jitter range;
Second determining unit 206 is used for determining that described actual time of reception is accurately when jitter value corresponding in the described work at present cycle is in default jitter range;
Described second determining unit 205 also is used for determining that described actual time of reception is inaccurate when jitter value corresponding in the described work at present cycle is not in default jitter range.
The device of detection 1588 equipment performances that the embodiment of the invention provides, by the default transmitting time of 1588 messages that acquiring unit is obtained and the comparison of actual transmitting time, determining unit is determined the accuracy of described actual transmitting time then, computing unit calculates path transmission time in the work at present cycle according to described actual time of reception and described actual transmitting time then, the path transmission time that judging unit calculated in the work period according to the default number before the path transmission time in the described work at present cycle and described work at present cycle, obtain the jitter value in path transmission time, and judge that described jitter value is whether in default jitter range, when jitter value corresponding in the described work at present cycle is in default jitter range, determine the accuracy of described actual time of reception, can accurately locate the performance issue of 1588 equipment like this.With the method that does not have in the prior art specially at the correctness of the timestamp value that detects 1588 messages, thereby can not compare the performance issue location of 1588 equipment, the scheme that the embodiment of the invention provides can detect the correctness of the timestamp value of 1588 messages, thereby realizes the performance issue location to 1588 equipment.
Embodiment 2
Present embodiment provides a kind of method of detection 1588 equipment performances, and as shown in Figure 3, this method comprises:
Step 301 in the work at present cycle, is obtained the default transmitting time of 1588 messages, actual transmitting time, actual time of reception;
Particularly, described 1588 messages can be sync message SYNC message, also can be for postponing request message Delay-req message and delayed response message Delay-resp message.
At first, the chip internal logic of master clock side is obtained the value of issuing and the local value of master clock side RTC, and obtain from the value of issuing and the local value of the RTC of clock side from the chip internal logic of clock side, described chip internal logic is a hardware of chip internal, described master clock side and describedly from the clock side a described chip internal logic is arranged respectively, and the value of issuing of the RTC of the described master clock side of obtaining respectively and local value, package from the value of issuing and the local value of clock RTC, the bag type is 1.The described bag type that the chip internal logic of described master clock side will obtain is 1 group bag, at the MAC of a free time (Media Access Control, medium access control) downlink port, sends to the outer Ethernet interface of chip.
Described local value is for to the time of described RTC before adjusting, and the described value of issuing is for adjusting to the local value of described RTC the time of the described value of issuing, to keep described master clock and described synchronous from clock.Particularly, on the equipment at described 1588 equipment places, described master clock side and describedly controlled by central control equipment respectively from the clock side is adjusted the time by actuating logic equipment, and with the time of the central control equipment of described master clock side be benchmark.
The value of issuing of described master clock side is handed down to the actuating logic equipment of described master clock side by the central control equipment of described master clock side, so that the actuating logic equipment of described master clock side is adjusted the local value of described master clock side to the value of issuing of described master clock side, free when poor when the time that the actuating logic equipment of time of the central control equipment of described master clock side and described master clock side is adjusted, then need to adjust the local value of described master clock side;
Described value of issuing from the clock side is handed down to described actuating logic equipment from the clock side by described central control equipment from the clock side, so that described actuating logic equipment from the clock side is adjusted described local value from the clock side to described value of issuing from the clock side, described delay request message and described delayed response message when described 1588 messages that described central control equipment from the clock side passes through to send, obtain described time difference from clock and described master clock, the then described local zone time (local value) that need adjust oneself from clock by calculating.
The value of issuing of the value of issuing of the RTC of described master clock side and local value, described RTC from the clock side and local value are used for determining that the described intermittent phase of intermittent phase is used for the analysis to the data of described 1588 messages that obtain.
When described 1588 messages are the SYNC message, the default transmitting time of described 1588 messages by the chip internal logic of described master clock side before described master clock one side sends described SYNC message, obtain in described master clock one side, and the default transmitting time of the described SYNC message that obtains packaged, the bag type is 2.The described bag type that the chip internal logic of described master clock side will obtain is 2 group bag, at the MAC of free time downlink port, sends to the outer Ethernet interface of chip.
Send described SYNC message in described master clock one side then, and actual transmitting time deposited in the described SYNC message, so, the actual transmitting time of described 1588 messages, is obtained from described SYNC message after described master clock one side sends described SYNC message by described chip internal logic.Receive described SYNC message described from the clock side joint, the actual time of reception of described 1588 messages when receiving described SYNC message from the clock side joint, is obtained from the clock side described described by described chip internal logic from the clock side.At this moment, in described SYNC message, obtain and proofread and correct the territory, and actual transmitting time, described actual time of reception and the described correction territory of the described SYNC message that obtains package, the bag type is 3, the described bag type that the chip internal logic of described master clock side will obtain is 3 group bag, at the MAC of free time downlink port, send to the outer Ethernet interface of chip.
When described 1588 messages are when postponing request message Delay-req message, the default transmitting time of described 1588 messages by described chip internal logic from the clock side described send described Delay-req message from the clock side before, obtain from the clock side described, and the default transmitting time of the described Delay-req message that will obtain packages, the bag type is 5, the described bag type that the chip internal logic of described master clock side will obtain is 5 group bag, at the MAC of free time downlink port, send to the outer Ethernet interface of chip.
Send described Delay-req message described from clock one side then, and actual transmitting time deposited in the described Delay-req message, so, the actual transmitting time of described 1588 messages by described chip internal logic from the clock side described send described Delay-req message from the clock side after, from described Delay-req message, obtain.
Receive described Delay-req message at described master clock side joint, obtain the actual time of reception of described Delay-req message, and the actual time of reception of described Delay-req message deposited in the delayed response message Delay-resp message, send to described from clock one side then.
So, the actual time of reception of described 1588 messages, is obtained from described Delay-resp message after described master clock side sends the delayed response message Delay-resp message of the actual time of reception that carries described Delay-req message by described chip internal logic from the clock side.At this moment, in described Delay-resp message, obtain and proofread and correct the territory, and the correction territory in actual transmitting time, described actual time of reception and the described Delay-resp message of the described Delay-req message that obtains packages, the bag type is 4, the described bag type that the chip internal logic of described master clock side will obtain is 4 group bag, at the MAC of free time downlink port, send to the outer Ethernet interface of chip.。
Need to prove that when in E2E (End To End, end-to-end) pattern following time, described delayed response message is the Delay-resp message; When in P2P (Peer To Peer, point-to-point) pattern following time, described delayed response message is the PDelay-resp message.
Then at PC (Personal Computer, personal computer) going up the special Software tool of use collects the described group of bag that receives, for example, can use the Wireshark instrument that the described group of bag that receives collected, and described group of bag extraction data to collecting, described data are the default transmitting time of 1588 messages, actual transmitting time, actual time of reception, be in particular the default transmitting time of described SYNC message, actual transmitting time, actual time of reception, the default transmitting time of described Delay-req message, actual transmitting time, described actual time of reception.
Step 302 judges whether described default transmitting time and actual transmitting time equate;
From the data of clock side to described extraction, default transmitting time, the actual transmitting time of 1588 messages that namely obtain are analyzed particularly.
Need to prove, beginning from step 302 is analysis to the default transmitting time 1588 messages that get access to, actual transmitting time, actual time of reception, to determine the time of 1588 equipment generation performance issues, realize the accurate location to the performance issue of described 1588 equipment.When data are analyzed, need and describedly carry out during in the intermittent phase from clock two ends common point at described master clock, further, it is the data that grasp in the described intermittent phase that the described data of analyzing in the described intermittent phase also need.The time interval that twice RTC of described index futures at intermittence adjusts, the value of the issuing when RTC that namely obtains the described master clock side of obtaining for twice in described bag Class1 adjusts, the time interval of the value of issuing when adjusting from the RTC of clock side, described RTC is in described master clock one side and describedly respectively have one from clock one side, intermittent phase schematic diagram as shown in Figure 4, the time that twice RTC of described master clock side readjusts (i.e. the value of issuing) is 2 μ S and 8 μ S, the described time of readjusting from twice RTC of clock side (i.e. the value of issuing) is 3 μ S and 9 μ S, the time interval between described intermittence index futures 3 μ S and the 8 μ S.
When described 1588 messages are described SYNC message, judge whether the default transmitting time of described SYNC message, actual transmitting time equate.
Step 303 when described default transmitting time and actual transmitting time are unequal, determines that described actual transmitting time is inaccurate;
Particularly, when default transmitting time and the actual transmitting time of described SYNC message unequal, the actual transmitting time that can determine described SYNC message is inaccurate, this timestamp value of actual transmitting time that 1588 messages are described is inaccurate, at this moment can accurately locate the performance issue of 1588 equipment, not need to carry out following flow process.
Step 304 when described default transmitting time is equal with actual transmitting time, determines that described actual transmitting time is accurately;
Particularly, when default transmitting time and the actual transmitting time of described SYNC message are equal, can determine that the actual transmitting time of described SYNC message is accurately, illustrate that this timestamp value of actual transmitting time of 1588 messages is accurately.
Step 305 when described actual transmitting time when being accurate, calculates path transmission time in the work at present cycle according to described actual time of reception and described actual transmitting time;
Particularly, when the default transmitting time of described SYNC message and actual transmitting time equate, according to the actual time of reception of 1588 messages that obtain, the transmitting time that the actual time of reception of interior described SYNC message of calculating work at present cycle deducts described SYNC message gets the outbound path transmission time.
Step 306 in the path transmission time that calculates in the path transmission time that calculates and the work period of the default number before the described work at present cycle, is obtained maximum path transmission time and minimal path transmission time in the described work at present cycle;
Here, all path transmission times that will calculate in the observation period compare, and obtain maximum path transmission time and the minimal path transmission time of described path in the transmission time.
Step 307 deducts the jitter value that the described minimal path transmission time draws the current path transmission time with the described maximum path transmission time;
Here, the jitter value in path transmission time is the difference in uncertain path transmission time of floating within the specific limits, and it be to determine according to step 305-step 307, and in the present invention, certain limit refers to preset jitter range.
Step 308 judges that the described jitter value calculate is whether in default jitter range;
Described default jitter range is the jitter range of being made up of the maximum jitter value in the jitter value of correspondence in the work period of continuous before default number of described work at present cycle and minimum jitter value, here, the work period of described default number can be four work periods.
Step 309 when jitter value corresponding in the described work at present cycle is not in default jitter range, determines that described actual time of reception is inaccurate.
When the actual time of reception of determining described SYNC message is inaccurate, can accurately locate the performance issue of 1588 equipment, do not need to carry out again following flow process.
Step 310 when jitter value corresponding in the described work at present cycle is in default jitter range, determines that described actual time of reception is accurately;
When jitter value corresponding in the described work at present cycle is in default jitter range, can determine that the actual time of reception of described SYNC message is accurately.
Need to prove, when described actual transmitting time and described actual time of reception when all being correct, judge whether the adjusted value that side-play amount Offset and RTC issue equates;
Particularly, determine described Offset according to Offset=T2-T1-MPD-CF, wherein, Offset is side-play amount, T2 is described actual time of reception, T1 is described actual transmitting time, MPD (Mean Path Delay) is the average path time delay, draw according to 1588 agreements regulation, CF (Correction Field) is for proofreading and correct the territory, and the initial value of CF is 0, if at described master clock and described from there not being other intermediate equipments between the clock, then described CF is 0, if at described master clock and described from also having other intermediate equipments between the clock, then described CF is not 0.What the adjusted value that described RTC issues was described value of issuing that issues from clock one side RTC with local value is poor.
When the adjusted value that issues as described Offset and described RTC equates, determine that then described Offset=T2-T1-MPD-CF algorithm is correct, when if the adjusted value that described Offset and described RTC issue equates, determine that then described Offset=T2-T1-MPD-CF algorithm is incorrect.When described Offset=T2-T1-MPD-CF algorithm is correct, can provide initial data to support the algorithm modeling of 1588 systems.
In addition, when the actual time of reception of the actual transmitting time of described SYNC message and described SYNC message is all correct, continue to detect the actual transmitting time of described Delay-req message, the correctness of described actual time of reception, can detect according to the flow process of step 302-step 307.
Particularly, when described 1588 messages are described Delay-req message, judge at first whether the default transmitting time of described Delay-req message and the actual transmitting time of described Delay-req message equate, when the actual transmitting time of the default transmitting time of described Delay-req message and described Delay-req message equates, the actual transmitting time of determining described Delay-req message is correct, proceeds the detection of the actual time of reception of described Delay-req message; When the actual transmitting time of the default transmitting time of described Delay-req message and described Delay-req message is unequal, the actual transmitting time of determining described Delay-req message is incorrect, at this moment, can the performance issue of 1588 equipment be positioned, do not need to carry out following flow process.
When the actual transmitting time of described Delay-req message is correct, the actual transmitting time of judging the actual time of reception of described Delay-req message and described Delay-req message in the work at present cycle corresponding jitter value whether in default jitter range, when jitter value corresponding in the described work at present cycle is in default jitter range, determine that the actual time of reception of described Delay-req message is accurately; When jitter value corresponding in the described work at present cycle is not in default jitter range, determine that the actual time of reception of described Delay-req message is inaccurate, at this moment, can the performance issue of 1588 equipment be positioned.
The method of detection 1588 equipment performances that the embodiment of the invention provides, by to the default transmitting time of 1588 messages that obtain and actual transmitting time relatively, determine the accuracy of described actual transmitting time, then when described actual transmitting time be accurately the time, according to described actual time of reception and the jitter value in described actual transmitting time acquisition path transmission time, and according to the described jitter value of judging whether in default jitter range, determine the accuracy of described actual time of reception.With the method that does not have in the prior art specially at the correctness of the timestamp value that detects 1588 messages, thereby can not compare the performance issue location of 1588 equipment, the scheme that the embodiment of the invention provides can detect the correctness of the timestamp value of 1588 messages, thereby can shorten test period, realize the performance issue of 1588 equipment is accurately located.
In order to realize the method for above-mentioned detection 1588 equipment performances, the present invention also provides a kind of device of detection 1588 equipment performances, as shown in Figure 5, this device comprises: acquiring unit 501, the first judging units 502, first determining unit 503, second determining unit 504, computing unit 505, acquisition module 506, obtain module 507, the second judging units 508.
Acquiring unit 501 was used for obtaining the default transmitting time of 1588 messages, actual transmitting time, actual time of reception in the work at present cycle;
Particularly, described 1588 messages can be SYNC message, Delay-req message and Delay-resp message.
When described 1588 messages were described SYNC message, the default transmitting time of described 1588 messages, was obtained in described master clock one side before master clock one side sends described SYNC message by the chip internal logic of master clock side;
The actual transmitting time of described 1588 messages, is obtained from described SYNC message after described master clock one side sends described SYNC message by the chip internal logic of described master clock side;
The actual time of reception of described 1588 messages by from the chip internal logic of clock side when receiving described SYNC message from clock one side joint, obtaining from clock one side.
When described 1588 messages are the Delay-req message, the default transmitting time that is used for described 1588 messages by described chip internal logic from the clock side described send described Delay-req message from clock one side before, obtain from clock one side described;
The actual transmitting time of described 1588 messages by described chip internal logic from the clock side described after clock one side sends described Delay-req message, from described Delay-req message, obtain;
The actual time of reception of described 1588 messages, is obtained from described Delay-resp message after described master clock one side sends the delayed response message Delay-resp message of the actual time of reception that carries described Delay-req message by described chip internal logic from the clock side.
After acquiring unit 501 obtained the default transmitting time of described 1588 messages, actual transmitting time, actual time of reception, first judging unit 502 judged whether described default transmitting time and actual transmitting time equate.
When described default transmitting time was equal with actual transmitting time, first determining unit 503 determined that described actual transmitting times are accurately.
When described default transmitting time and actual transmitting time were unequal, described first determining unit 503 also was used for determining that described actual transmitting time is inaccurate, at this moment can accurately locatees the performance issue of 1588 equipment.
When described actual transmitting time when being accurate, computing unit 505, calculate path transmission time in the work at present cycle according to described actual time of reception and described actual transmitting time;
The path transmission time that second judging unit 508 calculated in the work period according to the default number before the path transmission time in the described work at present cycle and described work at present cycle, obtain the jitter value in path transmission time, and judge that described jitter value is whether in default jitter range;
Particularly, acquisition module 506 in described second judging unit 508, in the path transmission time that calculates in work period for the path transmission time that in the described work at present cycle, calculates and the default number before the described work at present cycle, obtain maximum path transmission time and minimal path transmission time.
Obtain maximum path transmission time and minimal path after the transmission time at described acquisition module 506, obtain module 507 the described maximum path transmission time is deducted the jitter value that the described minimal path transmission time draws the current path transmission time.
Described default jitter range is the jitter range of being made up of the maximum jitter value in the jitter value of correspondence in the work period of continuous before default number of described work at present cycle and minimum jitter value.
When jitter value corresponding in the described work at present cycle was in default jitter range, second determining unit 505 determined that described actual time of reception is accurately;
When jitter value corresponding in the described work at present cycle was not in default jitter range, described second determining unit 505 also was used for determining that described actual time of reception is inaccurate, at this moment can accurately locatees the performance issue of 1588 equipment.
Need to prove, this device need be when described 1588 messages be described SYNC message, whether the actual time of reception that detects the actual transmitting time of described SYNC message and described SYNC message is accurate, when the actual time of reception of the actual transmitting time of described SYNC message and described SYNC message was accurate, whether the actual time of reception that detects the actual transmitting time of described Delay-req message and described Delay-req message again was accurate.When detecting any timestamp value when inaccurate, detect again with regard to not needing, just can the performance issue of 1588 equipment be positioned.When detecting the timestamp value when accurate, then proceed to detect or carry out the detection of next work period.
The device of detection 1588 equipment performances that the embodiment of the invention provides, by the default transmitting time of 1588 messages that acquiring unit is obtained and the comparison of actual transmitting time, determining unit is determined the accuracy of described actual transmitting time then, when described actual transmitting time when being accurate, computing unit calculates path transmission time in the work at present cycle according to described actual time of reception and described actual transmitting time, path transmission time that is calculated in work period according to the default number before the path transmission time in the described work at present cycle and described work at present cycle by second judging unit again, obtain the jitter value in path transmission time, and judge that described jitter value is whether in default jitter range, second determining unit is determined the accuracy of described actual time of reception, can accurately locate the performance issue of 1588 equipment like this.With the method that does not have in the prior art specially at the correctness of the timestamp value that detects 1588 messages, thereby can not compare the performance issue location of 1588 equipment, the scheme that the embodiment of the invention provides can detect the correctness of the timestamp value of 1588 messages, fast the performance issue of 1588 equipment is positioned thereby can reach the shortening sense cycle.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by described protection range with claim.

Claims (11)

1. a method that detects 1588 equipment performances is characterized in that, comprising:
In the work at present cycle, obtain the default transmitting time of 1588 messages, actual transmitting time, actual time of reception;
Judge whether described default transmitting time and actual transmitting time equate;
When described default transmitting time is equal with actual transmitting time, determine that described actual transmitting time is accurately;
When described default transmitting time and actual transmitting time are unequal, determine that described actual transmitting time is inaccurate;
When described actual transmitting time when being accurate, calculate path transmission time in the work at present cycle according to described actual time of reception and described actual transmitting time;
The path transmission time that calculates in work period according to the default number before the path transmission time in the described work at present cycle and described work at present cycle, obtain the jitter value in path transmission time, and judge that described jitter value is whether in default jitter range;
When jitter value corresponding in the described work at present cycle is in default jitter range, determine that described actual time of reception is accurately;
When jitter value corresponding in the described work at present cycle is not in default jitter range, determine that described actual time of reception is inaccurate.
2. the method for detection 1588 equipment performances according to claim 1 is characterized in that, the described default transmitting time of 1588 messages, actual transmitting time, actual time of reception obtained comprises:
Obtain default transmitting time, actual transmitting time, the actual time of reception of 1588 messages of chip internal logic transmission.
3. the method for detection 1588 equipment performances according to claim 2 is characterized in that, when described 1588 messages are sync message SYNC message,
The default transmitting time of described 1588 messages, was obtained in described master clock one side before master clock one side sends described SYNC message by the chip internal logic of master clock side;
The actual transmitting time of described 1588 messages, is obtained from described SYNC message after described master clock one side sends described SYNC message by the chip internal logic of described master clock side;
The actual time of reception of described 1588 messages by from the chip internal logic of clock side when receiving described SYNC message from clock one side joint, obtaining from clock one side.
4. the method for detection 1588 equipment performances according to claim 2 is characterized in that, described 1588 messages are when postponing request message Delay-req message,
The default transmitting time of described 1588 messages by from the chip internal logic of clock side described send described Delay-req message from clock one side before, obtain from clock one side described;
The actual transmitting time of described 1588 messages by described chip internal logic from the clock side described after clock one side sends described Delay-req message, from described Delay-req message, obtain;
The actual time of reception of described 1588 messages, is obtained from described Delay-resp message after master clock one side sends the delayed response message Delay-resp message of the actual time of reception that carries described Delay-req message by described chip internal logic from the clock side.
5. the method for detection 1588 equipment performances according to claim 1 is characterized in that, carries out when described method is co-located on the intermittent phase at master clock with from clock.
6. the method for detection 1588 equipment performances according to claim 1, it is characterized in that described default jitter range is the jitter range of being made up of the maximum jitter value in the jitter value of correspondence in the work period of continuous before default number of described work at present cycle and minimum jitter value.
7. a device that detects 1588 equipment performances is characterized in that, comprising:
Acquiring unit was used for obtaining the default transmitting time of 1588 messages, actual transmitting time, actual time of reception in the work at present cycle;
First judging unit is used for judging whether described default transmitting time and actual transmitting time equate;
First determining unit is used for determining that described actual transmitting time is accurately when described default transmitting time is equal with actual transmitting time;
Described first determining unit also is used for determining that described actual transmitting time is inaccurate when described default transmitting time and actual transmitting time are unequal;
Computing unit is used for when described actual transmitting time when being accurate, calculates path transmission time in the work at present cycle according to described actual time of reception and described actual transmitting time;
Second judging unit, for the path transmission time that calculates in the work period according to the default number before the path transmission time in the described work at present cycle and described work at present cycle, obtain the jitter value in path transmission time, and judge that described jitter value is whether in default jitter range;
Second determining unit is used for determining that described actual time of reception is accurately when jitter value corresponding in the described work at present cycle is in default jitter range;
Described second determining unit also is used for determining that described actual time of reception is inaccurate when jitter value corresponding in the described work at present cycle is not in default jitter range.
8. the device of detection 1588 equipment performances according to claim 7 is characterized in that, described acquiring unit specifically is used for: the default transmitting time, actual transmitting time, the actual time of reception that obtain 1588 messages of chip internal logic transmission.
9. the device of detection 1588 equipment performances according to claim 8 is characterized in that, when described 1588 messages are sync message SYNC message,
The default transmitting time of described 1588 messages, was obtained in described master clock one side before master clock one side sends described SYNC message by the chip internal logic of master clock side;
The actual transmitting time of described 1588 messages, is obtained from described SYNC message after described master clock one side sends described SYNC message by the chip internal logic of described master clock side;
The actual time of reception of described 1588 messages by from the chip internal logic of clock side when receiving described SYNC message from clock one side joint, obtaining from clock one side.
10. the device of detection 1588 equipment performances according to claim 8 is characterized in that, described 1588 messages are when postponing request message Delay-req message,
The default transmitting time of described 1588 messages by from the chip internal logic of clock side described send described Delay-req message from clock one side before, obtain from clock one side described;
The actual transmitting time of described 1588 messages by described chip internal logic from the clock side described after clock one side sends described Delay-req message, from described Delay-req message, obtain;
The actual time of reception of described 1588 messages, is obtained from described Delay-resp message after master clock one side sends the delayed response message Delay-resp message of the actual time of reception that carries described Delay-req message by described chip internal logic from the clock side.
11. the device of detection 1588 equipment performances according to claim 7, it is characterized in that described default jitter range is the jitter range of being made up of the maximum jitter value in the jitter value of correspondence in the work period of continuous before default number of described work at present cycle and minimum jitter value.
CN201180000784.2A 2011-06-23 2011-06-23 Method and device for detecting 1588 equipment performance Active CN102232278B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/076204 WO2012103702A1 (en) 2011-06-23 2011-06-23 Method and device for detecting 1588 equipment performance

Publications (2)

Publication Number Publication Date
CN102232278A CN102232278A (en) 2011-11-02
CN102232278B true CN102232278B (en) 2013-09-11

Family

ID=44844477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201180000784.2A Active CN102232278B (en) 2011-06-23 2011-06-23 Method and device for detecting 1588 equipment performance

Country Status (2)

Country Link
CN (1) CN102232278B (en)
WO (1) WO2012103702A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610727A (en) * 2015-11-06 2016-05-25 瑞斯康达科技发展股份有限公司 Network data transmission method and device

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139002B (en) * 2011-11-30 2017-12-29 中兴通讯股份有限公司 1588 thing error detection method and devices between network element
CN103457790B (en) * 2013-08-16 2016-09-21 北京华为数字技术有限公司 The labeling method of a kind of time stamp and the detection method of time stamp, device and system
CN103647615B (en) * 2013-12-05 2016-05-25 华为技术有限公司 Delay jitter removing method and device in message transmission procedure
CN104270217B (en) * 2014-09-19 2018-09-14 国家电网公司 A method of realizing Enhanced time synchronizing process link delay fault-tolerance
CN104852827A (en) * 2015-04-16 2015-08-19 国网电力科学研究院 Attack testing method and system of precision time synchronization protocol (PTP) clock
CN105450467B (en) * 2015-11-11 2020-06-12 腾讯科技(深圳)有限公司 Monitoring method, access machine and service server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863100A (en) * 2005-09-19 2006-11-15 华为技术有限公司 Method based on elastic group ring for obtaining link evaluating parameter
CN101447861A (en) * 2008-12-29 2009-06-03 中兴通讯股份有限公司 IEEE 1588 time synchronization system and implementation method thereof
CN102098205A (en) * 2009-12-10 2011-06-15 中兴通讯股份有限公司 Clock synchronization method and system for broadband power line node

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070147435A1 (en) * 2005-12-23 2007-06-28 Bruce Hamilton Removing delay fluctuation in network time synchronization
WO2007098775A1 (en) * 2006-02-22 2007-09-07 Siemens Enterprise Communications Gmbh & Co. Kg. Methods and devices for sending transmission-time or reception-time information for a transmitted or received message
CN101729180A (en) * 2008-10-21 2010-06-09 华为技术有限公司 Method and system for synchronizing precision clocks, and precision clock frequency/time synchronizing device
CN101834685B (en) * 2010-04-16 2013-03-27 华为技术有限公司 1588 message extracting and processing method and equipment
CN101931481B (en) * 2010-08-30 2013-11-06 新邮通信设备有限公司 IEEE 1588 clock output device and method
CN102104475B (en) * 2011-01-31 2013-07-03 上海交通大学 IEEE 1588-based synchronization system and synchronization method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863100A (en) * 2005-09-19 2006-11-15 华为技术有限公司 Method based on elastic group ring for obtaining link evaluating parameter
CN101447861A (en) * 2008-12-29 2009-06-03 中兴通讯股份有限公司 IEEE 1588 time synchronization system and implementation method thereof
CN102098205A (en) * 2009-12-10 2011-06-15 中兴通讯股份有限公司 Clock synchronization method and system for broadband power line node

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610727A (en) * 2015-11-06 2016-05-25 瑞斯康达科技发展股份有限公司 Network data transmission method and device
CN105610727B (en) * 2015-11-06 2019-02-12 瑞斯康达科技发展股份有限公司 A kind of network data transmission method and device

Also Published As

Publication number Publication date
CN102232278A (en) 2011-11-02
WO2012103702A1 (en) 2012-08-09

Similar Documents

Publication Publication Date Title
CN102232278B (en) Method and device for detecting 1588 equipment performance
US9923656B2 (en) Methods, systems, and computer readable media for testing recovered clock quality
CN100461721C (en) System, method and apparatus for testing long-distance frame time delay
EP3009897B1 (en) Distribution device, distribution system, and distribution method
CN104836630B (en) IEEE1588 clock synchronization system and implementation method therefor
US8730868B2 (en) Network node, time synchronization method and network system
CN101331736B (en) Using travel-time as means for improving the accuracy of simple network time protocol
US9306692B2 (en) Method and device for assessing the performance of one or more packet synchronization services in a packet data transmission network
CN102638324B (en) Method and device for realizing precise time synchronization
CN105680975A (en) Time synchronization method of master-slave structure multi-node network
CN109150357A (en) The method for synchronizing time of hybrid bus based on RS485 and Ethernet
CN104185274B (en) High-precision WLAN based on precision clock synchronously with TDOA principles is positioned
CN102244572A (en) Clock synchronization method and device
CN101771487A (en) Equipment for network time service precision detection and detection method using the detection equipment
CN102291196A (en) Implementation method and device for detecting asymmetrical time delay of 1588 link circuit automatically
CN101425865A (en) Method and system for synchronizing clock of transmission network as well as subordinate clock side entity
Mahmood et al. Impact of hard-and software timestamping on clock synchronization performance over IEEE 802.11
CN105306159A (en) Clock timestamp compensation method and clock timestamp compensation device
CN102638339B (en) Method and device for realizing precision time synchronization
CN105634716A (en) Airborne network IEEE1588 protocol slave clock port synchronization method
CN102710359B (en) Accurate clock frequency synchronizing method and device based on IEEE1588 (institute of electrical and electronics engineers)
CN105634715A (en) Airborne network IEEE1588 protocol transparent clock port synchronization method
CN107483136A (en) A kind of clock synchronizing method between fixed communication apparatus
EP2627040B1 (en) Method for eliminating systematical error components in a set of one-way delay measurement results for communications between two or more computing systems in a communication network, apparatus for performing the method and computer program product
Li et al. A study of precision of hardware time stamping packet traces

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant