[go: up one dir, main page]

CN107465475A - A kind of network equipment clock/time detecting method and apparatus - Google Patents

A kind of network equipment clock/time detecting method and apparatus Download PDF

Info

Publication number
CN107465475A
CN107465475A CN201610395533.3A CN201610395533A CN107465475A CN 107465475 A CN107465475 A CN 107465475A CN 201610395533 A CN201610395533 A CN 201610395533A CN 107465475 A CN107465475 A CN 107465475A
Authority
CN
China
Prior art keywords
clock
network equipment
index
time
hop count
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610395533.3A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610395533.3A priority Critical patent/CN107465475A/en
Priority to PCT/CN2017/082002 priority patent/WO2017211140A1/en
Publication of CN107465475A publication Critical patent/CN107465475A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • 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/0644External master-clock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the present invention provides a kind of network equipment clock/time method for inspecting and device, and the Testing index detected by reading at least one set to clock/time of the network equipment, Testing index includes following five groups:Clock/time synchronized index, clock/exceeded index of time synchronized hop count are not supported, are lacked primary or standby clock source distribu-tion index, clock and are synchronously configured to fourth finger mark, non-opening time coincident indicator;Detection parameters corresponding to each Testing index are obtained, and detection parameters are detected with corresponding Testing index, generate testing result;Export testing result;It can automatically, efficiently, accurately detect at least one of clock/time configuration hidden danger of following five kinds of network equipments:1st, clock/time synchronized is not supported;2nd, clock/time synchronized hop count is exceeded;3rd, the configuration of primary or standby clock source is lacked;4th, synchronously configuration is cyclic for clock;5th, the non-opening time is synchronous.It ensure that the stability of Network.

Description

A kind of network equipment clock/time detecting method and apparatus
Technical field
The present invention relates to the communications field, more particularly to a kind of network equipment clock/time detecting method and apparatus.
Background technology
In modern communication networks, the normal operations of the most of business of operator all to full-mesh network equipment clock/when Between have strict demand, otherwise can seriously affect the stability of Network.But at present, the network equipment of operator when Between/clock be arranged to it is more complicated so that in the network equipment of existing network operation, there is very big hidden danger in the configuration of clock/time, main There are following 5 big hidden danger:1st, clock/time synchronized is not supported;2nd, clock/time synchronized hop count is exceeded;3rd, lack primary or standby Configured with clock source;4th, synchronously configuration is cyclic for clock;5th, the non-opening time is synchronous., can be to net if these hidden danger are investigated not in time The stability of network business has a huge impact, and is all to investigate these hidden danger using artificial means before existing network, and efficiency is low, consumption Take manpower and accuracy can not be ensured.
It is this area skill in view of the above-mentioned problems, proposing a kind of efficient, accurate network equipment clock/time detecting method Art personnel technical problem urgently to be resolved hurrily.
The content of the invention
The embodiment of the present invention mainly solving the technical problems that, there is provided a kind of network equipment clock/time detecting method and Device, solve in the prior art, the efficiency caused by the hidden danger of network equipment clock/time configuration to be investigated using artificial means Low, labor intensive and the problem of accuracy can not be ensured.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of network equipment clock/time detecting method, bag Include:
The Testing index that at least one set is detected to clock/time of the network equipment is read, Testing index includes following Five groups:Clock/time synchronized index, clock/exceeded index of time synchronized hop count are not supported, are lacked primary or standby clock source and are matched somebody with somebody Put index, clock and be synchronously configured to fourth finger mark, non-opening time coincident indicator;
Detection parameters corresponding to each Testing index are obtained, and detection parameters are detected with corresponding Testing index, it is raw Into testing result;
Export testing result.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of network equipment clock/time detection device, bag Include:
Read module, the Testing index detected for reading at least one set to clock/time of the network equipment, detection Index includes following five groups:Do not support clock/time synchronized index, clock/exceeded index of time synchronized hop count, lack it is primary or Standby clock source distribu-tion index, clock are synchronously configured to fourth finger mark, non-opening time coincident indicator;
Processing module, refer to for obtaining detection parameters corresponding to each Testing index, and to detection parameters with corresponding detection Mark is detected, and generates testing result;
Output module, for exporting testing result.
In order to solve the above technical problems, the embodiment of the present invention also provides a kind of computer-readable storage medium, computer storage is situated between Computer executable instructions are stored with matter, when computer executable instructions are used to perform the network equipment of foregoing any one Clock/time detecting method.
The beneficial effects of the invention are as follows:
Network equipment clock/time detecting the method, apparatus and computer-readable storage medium provided according to embodiments of the present invention, The Testing index detected by reading at least one set to clock/time of the network equipment, Testing index include following five groups: Clock/time synchronized index, clock/exceeded index of time synchronized hop count are not supported, are lacked the configuration of primary or standby clock source and are referred to Mark, clock are synchronously configured to fourth finger mark, non-opening time coincident indicator;Detection parameters corresponding to each Testing index are obtained, and it is right Detection parameters are detected with corresponding Testing index, generate testing result;Export testing result., can be with using such scheme Automatically at least one of clock/time configuration hidden danger of following five kinds of network equipments, is efficiently and accurately detected:1st, do not prop up Hold clock/time synchronized;2nd, clock/time synchronized hop count is exceeded;3rd, the configuration of primary or standby clock source is lacked;4th, clock is synchronous Configuration cyclization;5th, the non-opening time is synchronous.So as to save manpower, the efficiency of lifting network equipment clock/time detecting, it is ensured that The accuracy of testing result and the stability of Network.
Brief description of the drawings
Fig. 1 is a kind of flow chart for network equipment clock/time detecting method that the embodiment of the present invention one provides;
Fig. 2 is the stream whether a kind of detection network equipment that the embodiment of the present invention one provides does not support clock/time synchronized Cheng Tu;
Fig. 3 is a kind of whether exceeded flow of the clock synchronization hop count for detection network equipment that the embodiment of the present invention one provides Figure;
Fig. 4 is a kind of whether exceeded flow of the time synchronized hop count for detection network equipment that the embodiment of the present invention one provides Figure;
Fig. 5 is whether a kind of detection network equipment that the embodiment of the present invention one provides lacks the configuration of primary or standby clock source Flow chart;
Fig. 6 be the embodiment of the present invention one provide a kind of detection network equipment clock synchronously configuration whether cyclization flow Figure;
Fig. 7 is a kind of flow chart for the whether non-opening time synchronization of detection network equipment that the embodiment of the present invention one provides;
Fig. 8 is a kind of structural representation for network equipment clock/time detection device that the embodiment of the present invention two provides.
Embodiment
The embodiment of the present invention is described in further detail below by embodiment combination accompanying drawing.
Embodiment one
In order to solve using artificial means come investigate efficiency caused by the hidden danger of network equipment clock/time configuration it is low, Labor intensive and the problem of can not ensure accuracy, the present embodiment provides a kind of network equipment clock/time detecting method, please Referring to Fig. 1, comprise the following steps:
S101:The Testing index that at least one set is detected to clock/time of the network equipment is read, Testing index includes Five groups below:Clock/time synchronized index, clock/exceeded index of time synchronized hop count are not supported, lack primary or standby clock Source distribu-tion index, clock are synchronously configured to fourth finger mark, non-opening time coincident indicator.
Wherein, before the S101, can also include:Five groups of above-mentioned Testing index are set.The side of Testing index is set Formula can be default setting and/or be configured according to user's operation that on the basis of default setting, user can also be according to reality Demand is modified to Testing index, can be inputted by user and not supported clock/time synchronized index, clock/time synchronized to jump The exceeded indexs of number, lack that primary or standby clock source distribu-tion index, clock are synchronously configured to fourth finger mark, the non-opening time synchronously refers to Mark, completes the pre-configured of the clock to full-mesh network equipment/time detecting index, ensures the correctness of Testing index.
Wherein, every group of Testing index correspondingly detects the configuration of different classes of network equipment clock/time, do not support clock/ Time synchronized index correspondingly detects whether the network equipment does not support clock/time synchronized, the clock/exceeded index of time synchronized hop count Whether corresponding detection network equipment clock/time synchronized hop count is exceeded, lacks the corresponding inspection of primary or standby clock source distribu-tion index Survey the network equipment and whether lack the configuration of primary or standby clock source, when clock is synchronously configured to fourth finger mark and correspondingly detects the network equipment Whether clock synchronously configures cyclization, and it is synchronous that non-opening time coincident indicator correspondingly detects the network equipment whether non-opening time.
S102:Detection parameters corresponding to each Testing index are obtained, and detection parameters are examined with corresponding Testing index Survey, generate testing result.
Every group of Testing index correspondingly detects different classes of network equipment clock/time configuration, and every group of detection is all It is each independent to carry out, be non-interfering.When reading two groups and Testing index more than two, obtain and examined corresponding to each Testing index Parameter is surveyed, and can be including any in following two modes with the mode that corresponding Testing index is detected to detection parameters It is a kind of:Mode one, all detection parameters are obtained, be grouped and detection parameters are detected with corresponding Testing index;Mode two, One group of detection parameters is obtained, and detection parameters are detected with corresponding Testing index;Then next group of detection parameters are obtained, And detection parameters are detected with corresponding Testing index, join until having detected all Testing index with corresponding detection Number.
In one embodiment, when checking whether the network equipment does not support clock/time synchronized, Testing index is included not Clock/time synchronized index is supported, does not support clock/time synchronized index to include not supporting the network of clock/time synchronized to set Standby version, veneer, port.The version, veneer, port of the network equipment to be detected are obtained, when the version of the network equipment meets not Clock/time synchronized index is supported, or when the version of the network equipment is unsatisfactory for not supporting clock/time synchronized index, network to set When standby veneer or port meet not supporting clock/time synchronized index and light connects be present, then it is judged as that the network equipment does not prop up Hold clock/time synchronized.
Referring to Fig. 2, specific deterministic process includes:Judge whether the version of the network equipment belongs to and do not support clock/time Synchronous network appliance version;It is abnormality if so, being then directly judged as that the network equipment does not support clock/time synchronized;If No, then whether the veneer or port for determining whether the network equipment belong to the single board of network device for not supporting clock/time synchronized Or port;If the veneer of the network equipment or port are not belonging to not support single board of network device or the port of clock/time synchronized, It is judged as normal condition;If the veneer of the network equipment or port belong to the single board of network device of not supporting clock/time synchronized or Port, in order to which judged result is more accurate, determine whether that corresponding ports configure with the presence or absence of light connects, if in the presence of, just judge Do not support clock/time synchronized for the network equipment, be abnormality;If being not present, it is judged as normal condition.
It should be appreciated that when checking whether the network equipment does not support clock/time synchronized, check that the network equipment does not prop up Hold that clock is synchronous and Testing index, the judgment mechanism of time synchronized are just as, and in order to realize to the network equipment clock/when Between comprehensive inspection for configuring, to ensure the stability of Network, in practical operation, check that the network equipment does not support that clock is same Step and time synchronized are all very necessary, indispensable, and clock is synchronously that frequency is consistent, and time synchronized is frequency, phase Position is consistent, and specific deterministic process is referring to herein below:
When checking whether the network equipment does not support clock synchronization, Testing index includes not supporting clock coincident indicator, obtains The version, veneer, port for the network equipment for not supporting clock synchronous are taken, judges whether the version of the network equipment belongs to when not supporting The synchronous network appliance version of clock;It is abnormality if so, being then directly judged as that the network equipment does not support that clock is synchronous;If it is not, Then determine whether the veneer of the network equipment or port belong to the single board of network device or port for not supporting that clock is synchronous;If The veneer of the network equipment or port are not belonging to not support single board of network device or the port of clock/time synchronized, then are judged as just Normal state;If the veneer of the network equipment or port belong to the single board of network device or port for not supporting that clock is synchronous, in order to judge As a result it is more accurate, corresponding ports are determined whether with the presence or absence of light connects configuration, if in the presence of being just judged as that the network equipment does not prop up Clock synchronization is held, is abnormality;If being not present, it is judged as normal condition.
When checking whether the network equipment does not support time synchronized, Testing index includes not supporting time synchronized index, obtains The version, veneer, port for the network equipment for not supporting time synchronized are taken, judges whether the version of the network equipment belongs to when not supporting Between synchronous network appliance version;It is abnormality if so, being then directly judged as that the network equipment does not support time synchronized;If it is not, Whether the veneer or port for then determining whether the network equipment belong to the single board of network device for not supporting time synchronized or port;If The veneer of the network equipment or port are not belonging to not support single board of network device or the port of time synchronized, then are judged as normal shape State;If the veneer of the network equipment or port belong to the single board of network device for not supporting time synchronized or port, for judged result It is more accurate, determine whether that corresponding ports configure with the presence or absence of light connects, if in the presence of when being just judged as that the network equipment is not supported Between it is synchronous, be abnormality;If being not present, it is judged as normal condition.
Using such scheme, it can automatically, efficiently and accurately detect that clock/time of the network equipment configures hidden danger:Net Network equipment does not support clock/time synchronized function.So as to save manpower, the efficiency of lifting network equipment clock/time detecting, really The accuracy of testing result and the stability of Network are protected.
In one embodiment, when whether clock/time synchronized the hop count for checking the network equipment is exceeded, Testing index bag Include:Clock/exceeded the index of time synchronized hop count;Clock/exceeded index of time synchronized hop count could be arranged to clock/time synchronized Hop count threshold value.Detection parameters corresponding to each Testing index are obtained, and detection parameters are detected with corresponding Testing index, it is raw Include at least one of in the following manner into testing result:
Mode one:Hop count of the local clock apart from grandfather's clock of the network equipment is obtained, when hop count is same more than clock/time When walking the exceeded index of hop count, then it is judged as that the time synchronized hop count of the network equipment is exceeded;
Mode two:When the current sync timing source of the network equipment is takes out ethernet clock, obtain it and set with another network The hop count of distance between standby;The current sync timing source of another network equipment is external clock, internal clock, GPS (Global Positioning System, global positioning system) clock or 1588 clocks, or the current sync timing source of another network equipment It is farthest to take out ethernet clock and the network equipment and another network equipment distance;It is exceeded that hop count is more than clock/time synchronized hop count During index, then it is judged as that the clock synchronization hop count of the network equipment is exceeded.
The specific deterministic process of above two mode includes:
Mode one:Referring to Fig. 3, judge whether the local clock of the network equipment is same more than the time apart from the hop count of grandfather's clock Hop count threshold value is walked, is abnormality if so, being then judged as that the time synchronized hop count of the network equipment is exceeded;If it is not, then it is judged as just Normal state.Wherein it is possible to the distance by 1588 status inquiry local clocks to grandfather's clock.
Mode two:Referring to Fig. 4, judge whether network equipment current sync timing source is to take out ethernet clock, if it is not, then It is not involved in assessing;If so, then judge whether the network equipment can find root node, root node include current sync timing source for it is outer when Clock, internal clock, the network equipment of gps clock or 1588 clocks;
If root node can be found, judge whether the network equipment is more than clock synchronization hop count threshold apart from the hop count of its root node Value, is abnormality if so, being then judged as that the clock synchronization hop count of the network equipment is exceeded;If it is not, then it is judged as normal condition;
If root node can not be found, judge whether the network equipment is more than clock synchronization apart from the hop count of another network equipment Hop count threshold value, another network equipment current sync timing source also to take out ethernet clock, the network equipment and another network equipment away from From farthest;It is abnormality if so, being then judged as that the clock synchronization hop count of the network equipment is exceeded;If it is not, then it is judged as normal shape State.
It should be appreciated that mode one is to judge whether the time synchronized hop count of the network equipment is exceeded, mode two is judgement Whether the clock synchronization hop count of the network equipment is exceeded, in order to realize comprehensive inspection to network equipment clock/time configuration, to protect Demonstrate,prove the stability of Network, in practical operation, check the network equipment whether clock synchronization hop count exceeded and time synchronized Whether exceeded hop count is all very necessary, indispensable.
Using such scheme, it can automatically, efficiently and accurately detect that clock/time of the network equipment configures hidden danger:When Clock/time synchronized hop count is exceeded.So as to save manpower, the efficiency of lifting network equipment clock/time detecting, detection knot ensure that The accuracy of fruit and the stability of Network.
In one embodiment, when checking whether the network equipment lacks the configuration of primary or standby clock source, Testing index Including lacking primary or standby clock source distribu-tion index, lacking primary or standby clock source distribu-tion index can include:Network is set The quantity of standby light connects and the clock source amount threshold of corresponding light connects port configuration.
Wherein, the quantity of the light connects of the network equipment and the clock source amount threshold of corresponding light connects port configuration include Following two situations:1st, when the light connects quantity of the network equipment is less than or equal to 1, the clock source number of corresponding light connects port configuration It is 1 to measure threshold value, and clock source here includes taking out ethernet clock, circuit takes out clock or branch road takes out clock;If the in addition, network equipment Light connects port configuration clock source quantity be less than the threshold value, then can determine whether to lack primary or standby clock source for the network equipment Configuration;2nd, when the light connects quantity of the network equipment is more than 1, the clock source amount threshold of corresponding light connects port configuration is 2, this In clock source include taking out ethernet clock, circuit takes out clock, branch road takes out clock, external clock, gps clock or 1588 clocks, no Including internal clock;In addition, if the clock source quantity of the light connects port configuration of the network equipment is less than the threshold value, can determine whether as net Network equipment lacks the configuration of primary or standby clock source.
Detection parameters corresponding to each Testing index are obtained, and detection parameters are detected with corresponding Testing index, it is raw Include into testing result:
Obtain the light connects quantity of the network equipment and the clock source quantity of the light connects port configuration of the network equipment;
When light connects quantity be less than or equal to 1, clock source quantity be less than 1 and clock source include take out ethernet clock, circuit is taken out When clock or branch road take out clock, or 1, clock source quantity is less than 2 and clock source does not include internal clock when light connects quantity is more than When, then it is judged as that the network equipment lacks the configuration of primary or standby clock source.
Referring to Fig. 5, specific deterministic process includes:Judge whether the light connects quantity of the network equipment is more than 1, if network is set Standby light connects quantity is less than or equal to 1, then judges whether the clock source quantity of the light connects port configuration of the network equipment is less than 1, Clock source is including taking out ethernet clock, circuit takes out clock or branch road takes out clock;If so, be then judged as the network equipment lack it is primary or Standby clock source configures, and is abnormality;If it is not, being then judged as normal condition, the situation of such a normal condition is specially:If net The light connects quantity of network equipment is equal to 1, then whether the clock source quantity for judging the light connects port configuration of the network equipment is 1, when Zhong Yuan is including taking out ethernet clock, circuit takes out clock or branch road takes out clock;If so, then it is judged as normal condition.
If the light connects quantity of the network equipment is more than 1, the clock source number of the light connects port configuration of the network equipment is judged Whether amount is less than 2, and clock source here includes taking out ethernet clock, circuit takes out clock, branch road takes out clock, external clock, gps clock Or 1588 clocks, not including internal clock;If so, then it is judged as that the network equipment lacks the configuration of primary or standby clock source, for exception State;If it is not, then it is judged as normal condition.
Using such scheme, it can automatically, efficiently and accurately detect that clock/time of the network equipment configures hidden danger:Lack Few primary or standby clock source configuration.So as to save manpower, the efficiency of lifting network equipment clock/time detecting, inspection ensure that Survey the accuracy of result and the stability of Network.
In one embodiment, when checking whether the synchronization configuration of network equipment clock is cyclic, Testing index includes clock Fourth finger mark is synchronously configured to, obtains detection parameters corresponding to each Testing index, and detection parameters are entered with corresponding Testing index Row detection, generation testing result include:The version, veneer, port of the network equipment are obtained, when the network equipment and another network equipment Between light connects quantity is more than that 1, the network equipment and another network equipment configure is to take out ethernet clock and according to network When the version of equipment, veneer, port determine that take out clock source along light connects link is upwardly formed closed loop in side, then it is judged as network Synchronously configuration is cyclic for equipment clock.
Referring to Fig. 6, specific deterministic process includes:Whether judge network equipments configuration is to take out ethernet clock, if it is not, Then it is not involved in assessing, if than network equipments configuration being that circuit takes out clock or branch road takes out clock, then is not involved in assessing.If network Device configuration is to take out ethernet clock, then judges whether the light connects quantity between two network equipments is more than 1, if so, then Judge whether take out clock source on direction along light connects link forms closed loop according to the version, veneer, port of the network equipment, if It is then to be judged as network equipment clock synchronously configuration cyclization, is abnormality;If it is not, then it is judged as normal condition.If two nets Light connects quantity between network equipment is not greater than 1, then judges whether the light connects quantity between two network equipments is 1, if Light connects quantity between two network equipments is 1, then is judged according to the version, veneer, port of the network equipment along light connects chain Road takes out whether clock source forms closed loop on direction, if so, being then judged as normal condition.
The network equipment can be determined when in light connects state according to the version, veneer, port of the network equipment itself Which direction clock source is taken out toward.If it should be strongly noted that when only existing 1 light connects between two network equipments, if Clock source is configured to mutually take out, and such case is not judged as clock synchronously configuration cyclization, is normal condition.
It should be appreciated that the network equipment of ethernet clock is taken out to being configured with, formed with orientation tree, along present tree knot The corresponding clock configuration of structure has been withdrawn into source network device again, then can determine whether map network equipment clock configuration cyclization.
If light connects are directly carried out between network equipment A and network equipment B and the quantity of light connects is more than 1, this feelings The light connects quantity that condition belongs between network equipment A and network equipment B is more than 1;If should between network equipment A and network equipment B Check to be clock synchronously configuration cyclization with above-mentioned rule, be then judged as clock synchronously configuration cyclization.If network equipment A is set with network Light connects are directly carried out between standby B and light connects are also carried out by network equipment C between network equipment A and network equipment B, then The light connects quantity that such case is fallen between network equipment A and network equipment B is more than 1;If network equipment A and the network equipment Check to be clock synchronously configuration cyclization between B using above-mentioned rule, be then judged as that clock synchronously configures cyclization.It should be understood that It is that the light connects quantity between network equipment A and network equipment B is not limited in above two more than 1, than as exemplified below And one way in which:Light connects are carried out by network equipment C between network equipment A and network equipment B and form light connects chain Light connects are also carried out by network equipment D between road 1, network equipment A and network equipment B and form light connects link 2.
Using such scheme, it can automatically, efficiently and accurately detect that clock/time of the network equipment configures hidden danger:When Synchronously configuration is cyclic for clock.So as to save manpower, the efficiency of lifting network equipment clock/time detecting, testing result ensure that Accuracy and the stability of Network.
In one embodiment, when checking the function of the whether non-opening time synchronization of the network equipment, Testing index includes Non- opening time coincident indicator, detection parameters corresponding to each Testing index are obtained, and to detection parameters and corresponding Testing index Detected, generation testing result includes:Obtain PTP (Precision Time Protocol, the chronometer time of the network equipment Agreement) time port configuration item, when PTP time port configuration items are not present in the network equipment, then it is judged as that the network equipment is not opened Open time synchronized.
Referring to Fig. 7, specific deterministic process includes:Judge that the network equipment whether there is PTP time port configuration items, if not In the presence of being then judged as that the network equipment non-opening time is synchronous, be abnormality;If in the presence of being judged as normal condition.
Using such scheme, it can automatically, efficiently and accurately detect that clock/time of the network equipment configures hidden danger:Not Opening time is synchronous.So as to save manpower, the efficiency of lifting network equipment clock/time detecting, the standard that ensure that testing result True property and the stability of Network.
S103:Export testing result.
The each group of testing result detected is read, generates and exports into assessment report and be stored in database.
Network equipment clock/time detecting the method provided according to embodiment, by reading at least one set to the network equipment The Testing index that is detected of clock/time, Testing index includes following five groups:Do not support clock/time synchronized index, when Clock/exceeded the index of time synchronized hop count, lack primary or standby clock source distribu-tion index, clock and be synchronously configured to fourth finger mark, not Opening time coincident indicator;Detection parameters corresponding to each Testing index are obtained, and detection parameters are entered with corresponding Testing index Row detection, generates testing result;Export testing result.Using such scheme, can automatically, efficiently and accurately detect following At least one of the clock of five kinds of network equipments/time configuration hidden danger:1st, clock/time synchronized is not supported;2nd, clock/time Synchronous hop count is exceeded;3rd, the configuration of primary or standby clock source is lacked;4th, synchronously configuration is cyclic for clock;5th, the non-opening time is synchronous. So as to save manpower, the efficiency of lifting network equipment clock/time detecting, it is ensured that the accuracy and network industry of testing result The stability of business.
Embodiment two
In order to solve using artificial means come investigate efficiency caused by the hidden danger of network equipment clock/time configuration it is low, Labor intensive and the problem of can not ensure accuracy, the present embodiment provides a kind of network equipment clock/time detection device, please Referring to Fig. 8, the network equipment clock/time detection device 20 can include processor, and processor is stored in storage for execution In device with lower module:Read module 201, the inspection detected for reading at least one set to clock/time of the network equipment Index is surveyed, Testing index includes following five groups:Clock/time synchronized index, clock/exceeded finger of time synchronized hop count are not supported Mark, lack primary or standby clock source distribu-tion index, clock and be synchronously configured to fourth finger mark, non-opening time coincident indicator.
Processing module 202, for obtaining detection parameters corresponding to each Testing index, and to detection parameters and corresponding detection Index is detected, and generates testing result.
Output module 203, for exporting testing result.
Wherein, can also include:Setup module 204, for reading at least one set to the network equipment in read module 201 Before the Testing index that clock/time is detected, five groups of above-mentioned Testing index are set.Set the mode of Testing index can be with It is configured for default setting and/or according to user's operation, on the basis of default setting, user can also be right according to the actual requirements Testing index is modified, and can be inputted by user and not supported that clock/time synchronized index, clock/time synchronized hop count are exceeded Index, lack primary or standby clock source distribu-tion index, clock and be synchronously configured to fourth finger mark, non-opening time coincident indicator, it is complete Clock/time detecting index of full-mesh network equipment is pre-configured in pairs, ensures the correctness of Testing index.
Wherein, every group of Testing index correspondingly detects the configuration of different classes of network equipment clock/time, do not support clock/ Time synchronized index correspondingly detects whether the network equipment does not support clock/time synchronized, the clock/exceeded index of time synchronized hop count Whether corresponding detection network equipment clock/time synchronized hop count is exceeded, lacks the corresponding inspection of primary or standby clock source distribu-tion index Survey the network equipment and whether lack the configuration of primary or standby clock source, when clock is synchronously configured to fourth finger mark and correspondingly detects the network equipment Whether clock synchronously configures cyclization, and it is synchronous that non-opening time coincident indicator correspondingly detects the network equipment whether non-opening time.
Every group of Testing index correspondingly detects different classes of network equipment clock/time configuration, and every group of detection is all It is each independent to carry out, be non-interfering.When read module 201 reads two groups and Testing index more than two, processing module 202 Detection parameters corresponding to each Testing index are obtained, and detection parameters can be wrapped with the mode that corresponding Testing index is detected Include any one in following two modes:Mode one, all detection parameters are obtained, be grouped to detection parameters and corresponding inspection Index is surveyed to be detected;Mode two, one group of detection parameters is obtained, and detection parameters are detected with corresponding Testing index; Then next group of detection parameters are obtained, and detection parameters are detected with corresponding Testing index, until having detected all Testing index and corresponding detection parameters.
In one embodiment, when checking whether the network equipment does not support clock/time synchronized, read module 201 is read The Testing index taken includes not supporting clock/time synchronized index, when not supporting that clock/time synchronized index includes not supporting The version of the network equipment of clock/time synchronized, veneer, port.Processing module 202 is used for:Obtain the version of the network equipment to be detected Sheet, veneer, port, when the version of the network equipment meets not supporting clock/time synchronized index, or when the network equipment version not Satisfaction do not support clock/time synchronized index, the veneer of the network equipment or port meet not support clock/time synchronized index, And when light connects be present, then it is judged as that the network equipment does not support clock/time synchronized.
Wherein, processing module 202 is used for:Judge whether the version of the network equipment belongs to and do not support clock/time synchronized Network appliance version;It is abnormality if so, being then directly judged as that the network equipment does not support clock/time synchronized;If it is not, then Whether the veneer or port for determining whether the network equipment belong to the single board of network device for not supporting clock/time synchronized or end Mouthful;If the veneer of the network equipment or port are not belonging to not support single board of network device or the port of clock/time synchronized, judge For normal condition;If the veneer of the network equipment or port belong to the single board of network device for not supporting clock/time synchronized or port, In order to which judged result is more accurate, determine whether that corresponding ports configure with the presence or absence of light connects, if in the presence of, just it is judged as network Equipment does not support clock/time synchronized, is abnormality;If being not present, it is judged as normal condition.
It should be appreciated that when checking whether the network equipment does not support clock/time synchronized, check that the network equipment does not prop up Hold that clock is synchronous and Testing index, the judgment mechanism of time synchronized are just as, and in order to realize to the network equipment clock/when Between comprehensive inspection for configuring, to ensure the stability of Network, in practical operation, check that the network equipment does not support that clock is same Step and time synchronized are all very necessary, indispensable, and clock is synchronously that frequency is consistent, and time synchronized is frequency, phase Position is consistent, and 202 specific deterministic process of processing module is referring to herein below:
When checking whether the network equipment does not support clock synchronization, the Testing index that read module 201 is read includes not propping up Clock coincident indicator is held, processing module 202 obtains the version, veneer, port for the network equipment for not supporting clock synchronous, judges net Whether the version of network equipment belongs to the network appliance version for not supporting that clock is synchronous;If so, then directly it is judged as the network equipment not Support that clock is synchronous, be abnormality;If it is not, then determining whether the veneer of the network equipment or whether port belongs to when not supporting The synchronous single board of network device of clock or port;If the veneer of the network equipment or port are not belonging to not support clock/time synchronized Single board of network device or port, then be judged as normal condition;If the veneer of the network equipment or port, which belong to, does not support that clock is synchronous Single board of network device or port, in order to which judged result is more accurate, determine whether that corresponding ports are matched somebody with somebody with the presence or absence of light connects Put, if in the presence of being just judged as that the network equipment does not support that clock is synchronous, be abnormality;If being not present, it is judged as normal shape State.
When checking whether the network equipment does not support time synchronized, the Testing index that read module 201 is read includes not propping up Time synchronized index is held, processing module 202 obtains the version, veneer, port for the network equipment for not supporting time synchronized, judges net Whether the version of network equipment belongs to the network appliance version for not supporting time synchronized;If so, then directly it is judged as the network equipment not Time synchronized is supported, is abnormality;If it is not, then determining whether the veneer of the network equipment or whether port belongs to when not supporting Between synchronous single board of network device or port;If the veneer of the network equipment or port are not belonging to not support the network of time synchronized to set Standby plane or port, then be judged as normal condition;If the veneer of the network equipment or port belong to the network for not supporting time synchronized Equipment veneer or port, in order to which judged result is more accurate, determine whether that corresponding ports configure with the presence or absence of light connects, if depositing Just it is being judged as that the network equipment does not support time synchronized, is being abnormality;If being not present, it is judged as normal condition.
Using such scheme, it can automatically, efficiently and accurately detect that clock/time of the network equipment configures hidden danger:Net Network equipment does not support clock/time synchronized function.So as to save manpower, the efficiency of lifting network equipment clock/time detecting, really The accuracy of testing result and the stability of Network are protected.
In one embodiment, when whether clock/time synchronized the hop count for checking the network equipment is exceeded, read module 201 Testing index read include:Clock/exceeded the index of time synchronized hop count;Clock/exceeded index of time synchronized hop count can be with It is arranged to clock/time synchronized hop count threshold value.
Processing module 202 obtains detection parameters corresponding to each Testing index, and to detection parameters and corresponding Testing index Detected, generation testing result includes at least one of in the following manner:
Mode one:Processing module 202 obtains hop count of the local clock apart from grandfather's clock of the network equipment, when hop count is more than During the exceeded index of clock/time synchronized hop count, then it is judged as that the time synchronized hop count of the network equipment is exceeded.
Mode two:Processing module 202 when the network equipment current sync timing source for take out ethernet clock when, obtain its with The hop count of distance between another network equipment;When the current sync timing source of another network equipment is external clock, internal clock, GPS Clock or 1588 clocks, or the current sync timing source of another network equipment is takes out ethernet clock and the network equipment and another net Network equipment distance is farthest;When hop count is more than clock/time synchronized hop count exceeded index, then it is judged as that the clock of the network equipment is synchronous Hop count is exceeded.
Wherein, mode one is specially:Processing module 202 judges hop count of the local clock apart from grandfather's clock of the network equipment Whether it is more than time synchronized hop count threshold value, is abnormality if so, being then judged as that the time synchronized hop count of the network equipment is exceeded; If it is not, then it is judged as normal condition.Wherein it is possible to the distance by 1588 status inquiry local clocks to grandfather's clock.
Mode two is specially:Processing module 202 judges whether the current sync timing source of the network equipment is when taking out Ethernet Clock, if it is not, being then not involved in assessing;If so, then judging whether the network equipment can find root node, root node includes current sync Timing source is the network equipment of external clock, internal clock, gps clock or 1588 clocks;
If root node can be found, judge whether the network equipment is more than clock synchronization hop count threshold apart from the hop count of its root node Value, is abnormality if so, being then judged as that the clock synchronization hop count of the network equipment is exceeded;If it is not, then it is judged as normal condition;
If root node can not be found, judge whether the network equipment is more than clock synchronization apart from the hop count of another network equipment Hop count threshold value, another network equipment current sync timing source also to take out ethernet clock, the network equipment and another network equipment away from From farthest;It is abnormality if so, being then judged as that the clock synchronization hop count of the network equipment is exceeded;If it is not, then it is judged as normal shape State.
It should be appreciated that mode one is to judge whether the time synchronized hop count of the network equipment is exceeded, mode two is judgement Whether the clock synchronization hop count of the network equipment is exceeded, in order to realize comprehensive inspection to network equipment clock/time configuration, to protect Demonstrate,prove the stability of Network, in practical operation, check the network equipment whether clock synchronization hop count exceeded and time synchronized Whether exceeded hop count is all very necessary, indispensable.
Using such scheme, it can automatically, efficiently and accurately detect that clock/time of the network equipment configures hidden danger:When Clock/time synchronized hop count is exceeded.So as to save manpower, the efficiency of lifting network equipment clock/time detecting, detection knot ensure that The accuracy of fruit and the stability of Network.
In one embodiment, when checking whether the network equipment lacks the configuration of primary or standby clock source, read module 201 Testing index read include lacking primary or standby clock source distribu-tion index, lack the configuration of primary or standby clock source and refer to Mark can include:The quantity of the light connects of the network equipment and the clock source amount threshold of corresponding light connects port configuration.
Wherein, the quantity of the light connects of the network equipment and the clock source amount threshold of corresponding light connects port configuration include Following two situations:1st, when the light connects quantity of the network equipment is less than or equal to 1, the clock source number of corresponding light connects port configuration It is 1 to measure threshold value, and clock source here includes taking out ethernet clock, circuit takes out clock or branch road takes out clock;If the in addition, network equipment Light connects port configuration clock source quantity be less than the threshold value, then can determine whether to lack primary or standby clock source for the network equipment Configuration;2nd, when the light connects quantity of the network equipment is more than 1, the clock source amount threshold of corresponding light connects port configuration is 2, this In clock source include taking out ethernet clock, circuit takes out clock, branch road takes out clock, external clock, gps clock or 1588 clocks, no Including internal clock;In addition, if the clock source quantity of the light connects port configuration of the network equipment is less than the threshold value, can determine whether as net Network equipment lacks the configuration of primary or standby clock source.
Processing module 202 is used for:What the light connects quantity of the acquisition network equipment and the light connects port of the network equipment configured Clock source quantity;When light connects quantity be less than or equal to 1, clock source quantity be less than 1 and clock source include take out ethernet clock, line Road takes out clock or when branch road takes out clock, or when light connects quantity be more than 1, clock source quantity be less than 2 and clock source do not include interior when Zhong Shi, then it is judged as that the network equipment lacks the configuration of primary or standby clock source.
Wherein, processing module 202 is used for:Judge whether the light connects quantity of the network equipment is more than 1, if the light of the network equipment Connect quantity and be less than or equal to 1, then judge whether the clock source quantity of the light connects port configuration of the network equipment is less than 1, clock source Including taking out ethernet clock, circuit takes out clock or branch road takes out clock;If so, when being then judged as that the network equipment lacks primary or standby Zhong Yuan is configured, and is abnormality;If it is not, being then judged as normal condition, the situation of such a normal condition is specially:If the network equipment Light connects quantity be equal to 1, then judge the network equipment light connects port configure clock source quantity whether be 1, clock source bag Include and take out ethernet clock, circuit takes out clock or branch road takes out clock;If so, then it is judged as normal condition.
Wherein, processing module 202 is used for:If the light connects quantity of the network equipment is more than 1, judge that the light of the network equipment connects Whether the clock source quantity for connecing port configuration is less than 2, and clock source here includes taking out ethernet clock, circuit takes out clock, branch road Clock, external clock, gps clock or 1588 clocks are taken out, not including internal clock;If so, be then judged as the network equipment lack it is primary or Standby clock source configures, and is abnormality;If it is not, then it is judged as normal condition.
Using such scheme, it can automatically, efficiently and accurately detect that clock/time of the network equipment configures hidden danger:Lack Few primary or standby clock source configuration.So as to save manpower, the efficiency of lifting network equipment clock/time detecting, inspection ensure that Survey the accuracy of result and the stability of Network.
In one embodiment, when checking whether the synchronization configuration of network equipment clock is cyclic, what read module 201 was read Testing index is synchronously configured to fourth finger mark including clock.
Processing module 202 is used for:The version, veneer, port of the network equipment are obtained, when the network equipment and another network equipment Between light connects quantity is more than that 1, the network equipment and another network equipment configure is to take out ethernet clock and according to network When the version of equipment, veneer, port determine that take out clock source along light connects link is upwardly formed closed loop in side, then it is judged as network Synchronously configuration is cyclic for equipment clock.
Wherein, processing module 202 is used for:Whether judge network equipments configuration is to take out ethernet clock, if it is not, not joining then With assessment, if than network equipments configuration being that circuit takes out clock or branch road takes out clock, then it is not involved in assessing.If the network equipment is matched somebody with somebody What is put is to take out ethernet clock, then judges whether the light connects quantity between two network equipments is more than 1, if so, then according to net The version of network equipment, veneer, port judge whether take out clock source on direction along light connects link forms closed loop, if so, then sentencing Breaking, synchronously configuration is cyclic for network equipment clock, is abnormality;If it is not, then it is judged as normal condition.If two network equipments Between light connects quantity be not greater than 1, then judge whether the light connects quantity between two network equipments is 1, if two nets Light connects quantity between network equipment is 1, then according to the version, veneer, port of the network equipment judge along light connects link take out when Whether Zhong Yuan forms closed loop on direction, if so, being then judged as normal condition.
The network equipment can be determined when in light connects state according to the version, veneer, port of the network equipment itself Which direction clock source is taken out toward.If it should be strongly noted that when only existing 1 light connects between two network equipments, if Clock source is configured to mutually take out, and such case is not judged as clock synchronously configuration cyclization, is normal condition.
It should be appreciated that the network equipment of ethernet clock is taken out to being configured with, formed with orientation tree, along present tree knot The corresponding clock configuration of structure has been withdrawn into source network device again, then can determine whether map network equipment clock configuration cyclization.
If light connects are directly carried out between network equipment A and network equipment B and the quantity of light connects is more than 1, this feelings The light connects quantity that condition belongs between network equipment A and network equipment B is more than 1;If should between network equipment A and network equipment B Check to be clock synchronously configuration cyclization with above-mentioned rule, be then judged as clock synchronously configuration cyclization.If network equipment A is set with network Light connects are directly carried out between standby B and light connects are also carried out by network equipment C between network equipment A and network equipment B, then The light connects quantity that such case is fallen between network equipment A and network equipment B is more than 1;If network equipment A and the network equipment Check to be clock synchronously configuration cyclization between B using above-mentioned rule, be then judged as that clock synchronously configures cyclization.It should be understood that It is that the light connects quantity between network equipment A and network equipment B is not limited in above two more than 1, than as exemplified below And one way in which:Light connects are carried out by network equipment C between network equipment A and network equipment B and form light connects chain Light connects are also carried out by network equipment D between road 1, network equipment A and network equipment B and form light connects link 2.
Using such scheme, it can automatically, efficiently and accurately detect that clock/time of the network equipment configures hidden danger:When Synchronously configuration is cyclic for clock.So as to save manpower, the efficiency of lifting network equipment clock/time detecting, testing result ensure that Accuracy and the stability of Network.
In one embodiment, when checking the function of the whether non-opening time synchronization of the network equipment, read module 201 is read The Testing index taken includes non-opening time coincident indicator, and processing module 202 is used for:Obtain the PTP time ports of the network equipment Configuration item, when PTP time port configuration items are not present in the network equipment, then it is judged as that the network equipment non-opening time is synchronous.
Wherein, processing module 202 is used for:Judge that the network equipment whether there is PTP time port configuration items, if being not present, Then it is judged as that the network equipment non-opening time is synchronous, is abnormality;If in the presence of being judged as normal condition.
Using such scheme, it can automatically, efficiently and accurately detect that clock/time of the network equipment configures hidden danger:Not Opening time is synchronous.So as to save manpower, the efficiency of lifting network equipment clock/time detecting, the standard that ensure that testing result True property and the stability of Network.
Output module 203 is used to read each group of testing result detected, generates and exports into assessment report and is stored in In database.
Network equipment clock/the time detection device provided according to embodiment, at least one set is read by read module 201 The Testing index detected to clock/time of the network equipment, Testing index include following five groups:Clock/time is not supported Coincident indicator, clock/exceeded index of time synchronized hop count, lack the synchronously configuration of primary or standby clock source distribu-tion index, clock Cyclic index, non-opening time coincident indicator;Processing module 202 obtains detection parameters corresponding to each Testing index, and to detection Parameter is detected with corresponding Testing index, generates testing result;Output module 203 exports testing result.Using above-mentioned side Case, it can automatically, efficiently and accurately detect at least one of clock/time configuration hidden danger of following five kinds of network equipments: 1st, clock/time synchronized is not supported;2nd, clock/time synchronized hop count is exceeded;3rd, the configuration of primary or standby clock source is lacked;When the 4th, Synchronously configuration is cyclic for clock;5th, the non-opening time is synchronous.So as to save manpower, the efficiency of network equipment clock/time detecting is lifted, It ensure that the accuracy of testing result and the stability of Network.
Obviously, those skilled in the art should be understood that each module of the embodiments of the present invention or each step can be used General computing device realizes that they can be concentrated on single computing device, or be distributed in multiple computing device institutes On the network of composition, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to by they It is stored in storage medium (ROM/RAM, magnetic disc, CD) and is performed by computing device, and in some cases, can be with not The order being same as herein performs shown or described step, or they are fabricated to each integrated circuit modules respectively, or Multiple modules or step in them are fabricated to single integrated circuit module to realize by person.So the present invention is not restricted to appoint What specific hardware and software combines.
Above content is to combine the further description that specific embodiment is made to the embodiment of the present invention, it is impossible to is recognized The specific implementation of the fixed present invention is confined to these explanations.For general technical staff of the technical field of the invention, Without departing from the inventive concept of the premise, some simple deduction or replace can also be made, should all be considered as belonging to the present invention Protection domain.

Claims (14)

1. a kind of network equipment clock/time detecting method, including:
The Testing index that at least one set is detected to clock/time of the network equipment is read, the Testing index includes following Five groups:Clock/time synchronized index, clock/exceeded index of time synchronized hop count are not supported, are lacked primary or standby clock source and are matched somebody with somebody Put index, clock and be synchronously configured to fourth finger mark, non-opening time coincident indicator;
Detection parameters corresponding to each Testing index are obtained, and the detection parameters are examined with the corresponding Testing index Survey, generate testing result;
Export the testing result.
2. network equipment clock/time detecting method as claimed in claim 1, it is characterised in that when two groups and two groups of reading It is described to obtain detection parameters corresponding to each Testing index during above Testing index, and to the detection parameters with it is corresponding described Testing index, which carries out detection, to be included:
All detection parameters are obtained, is grouped and the detection parameters is detected with the corresponding Testing index;
Or, detection parameters described in one group are obtained, and the detection parameters are detected with the corresponding Testing index;Then Detection parameters described in next group are obtained, and the detection parameters are detected with the corresponding Testing index, until detection Complete all Testing index and the corresponding detection parameters.
3. network equipment clock/time detecting method as claimed in claim 1 or 2, it is characterised in that when the Testing index It is described to obtain detection parameters corresponding to each Testing index during including not supporting clock/time synchronized index, and the detection is joined Number is detected with the corresponding Testing index, and generation testing result includes:
Obtain the version, veneer, port of the network equipment, when the network equipment version meet described in do not support clock/ Time synchronized index, or when the version of the network equipment is unsatisfactory for described not supporting clock/time synchronized index, the network When not supporting clock/time synchronized index described in the veneer of equipment or port satisfaction and light connects be present, then it is judged as the net Network equipment does not support clock/time synchronized.
4. network equipment clock/time detecting method as claimed in claim 1 or 2, it is characterised in that when the Testing index It is described to obtain detection parameters corresponding to each Testing index during index exceeded including clock/time synchronized hop count, and to the detection Parameter is detected with the corresponding Testing index, and generation testing result includes at least one of in the following manner:
Mode one:Obtain hop count of the local clock apart from grandfather's clock of the network equipment, when the hop count be more than it is described when During the exceeded index of clock/time synchronized hop count, then it is judged as that the time synchronized hop count of the network equipment is exceeded;
Mode two:When the current sync timing source of the network equipment is takes out ethernet clock, obtain it and set with another network The hop count of distance between standby;The current sync timing source of another network equipment is external clock, internal clock, global positioning system Clock or 1588 clocks, or the current sync timing source of another network equipment is takes out ethernet clock and the network is set It is standby farthest with another network equipment distance;When the hop count is more than the clock/time synchronized hop count exceeded index, then sentence Break exceeded for the clock synchronization hop count of the network equipment.
5. network equipment clock/time detecting method as claimed in claim 1 or 2, it is characterised in that when the Testing index It is described to obtain detection parameters corresponding to each Testing index during including lacking primary or standby clock source distribu-tion index, and to described Detection parameters are detected with the corresponding Testing index, and generation testing result includes:
Obtain the light connects quantity of the network equipment and the clock source quantity of the light connects port configuration of the network equipment;
When the light connects quantity is less than or equal to 1, the clock source quantity less than 1 and the clock source includes taking out Ethernet Clock, circuit take out clock or when branch road take out clock, or are less than 2 and institute when the light connects quantity is more than 1, the clock source quantity When stating clock source does not include internal clock, then it is judged as that the network equipment lacks the configuration of primary or standby clock source.
6. network equipment clock/time detecting method as claimed in claim 1 or 2, it is characterised in that when the Testing index Fourth finger timestamp is synchronously configured to including clock, it is described to obtain detection parameters corresponding to each Testing index, and to the detection parameters Detected with the corresponding Testing index, generation testing result includes:
Obtain the version, veneer, port of the network equipment, the light connects between the network equipment and another network equipment What quantity was more than that 1, the network equipment and another network equipment configure is to take out ethernet clock and according to the network The version of equipment, veneer, port are determined to take out clock source when being just upwardly formed closed loop along light connects link, are then judged as described Synchronously configuration is cyclic for network equipment clock.
7. network equipment clock/time detecting method as claimed in claim 1 or 2, it is characterised in that when the Testing index It is described to obtain detection parameters corresponding to each Testing index during including non-opening time coincident indicator, and to the detection parameters with The corresponding Testing index is detected, and generation testing result includes:
The precision time protocol time port configuration item of the network equipment is obtained, when the precision is not present in the network equipment During time protocol time port configuration item, then it is judged as that the network equipment non-opening time is synchronous.
8. a kind of network equipment clock/time detection device, including:
Read module, the Testing index detected for reading at least one set to clock/time of the network equipment, the detection Index includes following five groups:Do not support clock/time synchronized index, clock/exceeded index of time synchronized hop count, lack it is primary or Standby clock source distribu-tion index, clock are synchronously configured to fourth finger mark, non-opening time coincident indicator;
Processing module, for obtaining detection parameters corresponding to each Testing index, and to the detection parameters and the corresponding inspection Survey index to be detected, generate testing result;
Output module, for exporting the testing result.
9. network equipment clock/time detection device as claimed in claim 8, it is characterised in that when the read module is read When taking two groups and Testing index more than two, the processing module is used for:
All detection parameters are obtained, is grouped and the detection parameters is detected with the corresponding Testing index;
Or, detection parameters described in one group are obtained, and the detection parameters are detected with the corresponding Testing index;Then Detection parameters described in next group are obtained, and the detection parameters are detected with the corresponding Testing index, until detection Complete all Testing index and the corresponding detection parameters.
10. network equipment clock/time detection device as claimed in claim 8 or 9, it is characterised in that when the detection refers to When mark includes not supporting clock/time synchronized index, the processing module is used for:Obtain the version of the network equipment, veneer, Port, when the network equipment version meet described in do not support clock/time synchronized index, or the version when the network equipment When not supporting or not described in clock/time synchronized index, the veneer of the network equipment or port satisfaction described in being originally unsatisfactory for Clock/time synchronized index and when light connects be present, then be judged as that the network equipment does not support clock/time synchronized.
11. network equipment clock/time detection device as claimed in claim 8 or 9, it is characterised in that when the detection refers to When mark includes clock/time synchronized hop count exceeded index, the processing module is used for:
Hop count of the local clock apart from grandfather's clock of the network equipment is obtained, when the hop count is more than the clock/time During the exceeded index of synchronous hop count, then it is judged as that the time synchronized hop count of the network equipment is exceeded;
And/or when the current sync timing source of the network equipment is takes out ethernet clock, obtain itself and another network equipment Between distance hop count;When the current sync timing source of another network equipment is external clock, internal clock, global positioning system Clock or 1588 clocks, or the current sync timing source of another network equipment is to take out ethernet clock and the network equipment It is farthest with another network equipment distance;When the hop count is more than the clock/time synchronized hop count exceeded index, then judge It is exceeded for the clock synchronization hop count of the network equipment.
12. network equipment clock/time detection device as claimed in claim 8 or 9, it is characterised in that when the detection refers to When mark includes lacking primary or standby clock source distribu-tion index, the processing module is used for:
Obtain the light connects quantity of the network equipment and the clock source quantity of the light connects port configuration of the network equipment;
When the light connects quantity is less than or equal to 1, the clock source quantity less than 1 and the clock source includes taking out Ethernet Clock, circuit take out clock or when branch road take out clock, or are less than 2 and institute when the light connects quantity is more than 1, the clock source quantity When stating clock source does not include internal clock, then it is judged as that the network equipment lacks the configuration of primary or standby clock source.
13. network equipment clock/time detection device as claimed in claim 8 or 9, it is characterised in that when the detection refers to Mark includes clock and is synchronously configured to fourth finger timestamp, and the processing module is used for:Obtain the version, veneer, end of the network equipment Mouthful, when the light connects quantity between the network equipment and another network equipment is more than the 1, network equipment and another net What network equipment configured is to take out ethernet clock and determined according to the version, veneer, port of the network equipment along light connects Link takes out clock source when being just upwardly formed closed loop, then is judged as the network equipment clock synchronously configuration cyclization.
14. network equipment clock/time detection device as claimed in claim 8 or 9, it is characterised in that when the detection refers to When mark includes non-opening time coincident indicator, the processing module is used for:When obtaining the precision time protocol of the network equipment Between port configuration item, when the precision time protocol time port configuration item is not present in the network equipment, be then judged as institute It is synchronous to state the network equipment non-opening time.
CN201610395533.3A 2016-06-06 2016-06-06 A kind of network equipment clock/time detecting method and apparatus Pending CN107465475A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610395533.3A CN107465475A (en) 2016-06-06 2016-06-06 A kind of network equipment clock/time detecting method and apparatus
PCT/CN2017/082002 WO2017211140A1 (en) 2016-06-06 2017-04-26 Method and apparatus for detecting clock/time of network device, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610395533.3A CN107465475A (en) 2016-06-06 2016-06-06 A kind of network equipment clock/time detecting method and apparatus

Publications (1)

Publication Number Publication Date
CN107465475A true CN107465475A (en) 2017-12-12

Family

ID=60545720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610395533.3A Pending CN107465475A (en) 2016-06-06 2016-06-06 A kind of network equipment clock/time detecting method and apparatus

Country Status (2)

Country Link
CN (1) CN107465475A (en)
WO (1) WO2017211140A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111786741A (en) * 2020-07-20 2020-10-16 哈尔滨海能达科技有限公司 Clock synchronization method and related device for CPRI transmission data
CN113452465A (en) * 2021-05-17 2021-09-28 新华三信息安全技术有限公司 Clock synchronization method and device
CN114113977A (en) * 2021-11-11 2022-03-01 广州朗国电子科技股份有限公司 A kind of circuit board RTC circuit automatic detection method and system
US20230091501A1 (en) * 2020-05-20 2023-03-23 Huawei Technologies Co., Ltd. Port status configuration method, apparatus, and system, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026504A (en) * 2006-02-24 2007-08-29 华为技术有限公司 Network for formance measuring method
CN103428009A (en) * 2012-05-14 2013-12-04 中兴通讯股份有限公司 Method and device for achieving OAM of grouped synchronous networks
CN104080115A (en) * 2013-03-28 2014-10-01 中国移动通信集团公司 Time synchronization performance monitoring method, device and system
WO2015010250A1 (en) * 2013-07-23 2015-01-29 Telefonaktiebolaget L M Ericsson (Publ) Clock recovery in a packet based network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5260979A (en) * 1991-05-28 1993-11-09 Codex Corp. Circuit and method of switching between redundant clocks for a phase lock loop
CN102123057B (en) * 2010-12-09 2014-09-03 中国电力科学研究院 Synchronous network route detection, optimization and network routing method and synchronous network system
CN102957545B (en) * 2011-08-17 2017-12-05 中兴通讯股份有限公司 The maintaining method and device of synchronous network clock

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026504A (en) * 2006-02-24 2007-08-29 华为技术有限公司 Network for formance measuring method
CN103428009A (en) * 2012-05-14 2013-12-04 中兴通讯股份有限公司 Method and device for achieving OAM of grouped synchronous networks
CN104080115A (en) * 2013-03-28 2014-10-01 中国移动通信集团公司 Time synchronization performance monitoring method, device and system
WO2015010250A1 (en) * 2013-07-23 2015-01-29 Telefonaktiebolaget L M Ericsson (Publ) Clock recovery in a packet based network

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230091501A1 (en) * 2020-05-20 2023-03-23 Huawei Technologies Co., Ltd. Port status configuration method, apparatus, and system, and storage medium
CN111786741A (en) * 2020-07-20 2020-10-16 哈尔滨海能达科技有限公司 Clock synchronization method and related device for CPRI transmission data
CN113452465A (en) * 2021-05-17 2021-09-28 新华三信息安全技术有限公司 Clock synchronization method and device
CN113452465B (en) * 2021-05-17 2023-12-26 新华三信息安全技术有限公司 Clock synchronization method and device
CN114113977A (en) * 2021-11-11 2022-03-01 广州朗国电子科技股份有限公司 A kind of circuit board RTC circuit automatic detection method and system

Also Published As

Publication number Publication date
WO2017211140A1 (en) 2017-12-14

Similar Documents

Publication Publication Date Title
CN107465475A (en) A kind of network equipment clock/time detecting method and apparatus
CN106503308B (en) A kind of CAN controller IP verification platform based on UVM
CN103969526B (en) Electric energy quality collecting device and application thereof in electric energy quality comprehensive analysis system
CN103166750B (en) Synchronizing clock time source collocation method and device
CN105824746B (en) A kind of method and apparatus that test dispatching is automatically generated based on use-case dependence
CN103248445B (en) A kind of clock synchronizing method and device
CN103823361B (en) Multi-source dynamic self-adapting clock synchronizing method and device
CN106937303A (en) A kind of base station test method and system, terminal, Cloud Server
CN102593955B (en) Comprehensive intelligent time frequency testing system and testing method
CN102288848A (en) Automatic current test and analysis system and method for constant-temperature crystal oscillator
CN105242231B (en) Digitalized electric energy metering performance detects and source tracing method and closed-loop system
CN108897686A (en) It is complete to record separately automated testing method and device
CN109507627B (en) Simulation method of direct-current electronic transformer
CN107451058A (en) A kind of software development methodology and device
CN106771599B (en) Test setup for synchrophasor measurement devices in smart substations
CN109753742A (en) An aero-engine fault diagnosis method and system based on unbalanced samples
CN103391224A (en) Protocol layering test generation method based on parallel expansion finite-state machine
CN107612769A (en) A kind of method and system of test router wireless transmission rate
CN103376397B (en) A kind of detecting system of asynchronous circuit
CN102156258B (en) Test package scan chain balancing method based on mean value allowance in SoC (System On Chip) test
CN207317904U (en) A kind of flowmeter on-line detector
CN102902832B (en) A kind of detect method and the device that pcb board silk-screen sequence number is deleted by mistake
CN106375055A (en) Method and device for measuring clock error of network device
CN207281290U (en) A kind of time supervision device
CN104636253A (en) Cross-clock-domain logic ASIC verification system and method based on metastable state injection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20171212

RJ01 Rejection of invention patent application after publication