CN102263672A - Institute of electrical and electronic engineers (IEEE) 1588 link detection method, system and IEEE 1588 link device - Google Patents

Institute of electrical and electronic engineers (IEEE) 1588 link detection method, system and IEEE 1588 link device Download PDF

Info

Publication number
CN102263672A
CN102263672A CN2010101879840A CN201010187984A CN102263672A CN 102263672 A CN102263672 A CN 102263672A CN 2010101879840 A CN2010101879840 A CN 2010101879840A CN 201010187984 A CN201010187984 A CN 201010187984A CN 102263672 A CN102263672 A CN 102263672A
Authority
CN
China
Prior art keywords
detection
detected
party
link
response message
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
CN2010101879840A
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.)
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
Priority to CN2010101879840A priority Critical patent/CN102263672A/en
Publication of CN102263672A publication Critical patent/CN102263672A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention discloses an institute of electrical and electronic engineers (IEEE) 1588 link detection method, which comprises the following steps of: querying whether a detected party supports a link detection mechanism or not; if the detected party supports the link detection mechanism, transmitting a detection request message to the detected party to make the detected party perform state detection according to the detection request message; and receiving a detection response message returned by the detected party, and acquiring link state information with the detected party according to the detection response message. Correspondingly, the embodiment of the invention also discloses an IEEE 1588 link detection system and an IEEE 1588 link device. By the technical scheme provided by the embodiment of the invention, the link state information can be acquired by transmitting the detection request message and the detection response message between equipment in an IEEE 1588 link, thereby realizing the rapid and highly-efficient detection of a failure in the IEEE 1588 link.

Description

A kind of IEEE 1588 chain circuit detecting methods, system and IEEE 1588 chain circuit devices
Technical field
The present invention relates to communication technical field, more particularly, relate to a kind of IEEE 1588 chain circuit detecting methods, system and IEEE 1588 chain circuit devices.
Background technology
Since the nineties, it is more and more general that distributed system becomes, it is more and more higher that interoperability requirement in the network between the equipment also becomes, simultaneously because network becomes general, under cost pressure, people wish that replacing special bus by network connects distributed apparatus, transmits the timing information that is used to carry out equipment collaboration.After this, IEEE (Institute of Electrical and Electronics Engineers, IEEE-USA) 1588 agreements are formally ratified by IEEE, become standard.Wherein, IEEE 1588v2 agreement is (communication network for example in measurement and control system, local calculating, the system that technology synergies such as distributed objects are used) can realize exact time synchronization, abbreviate Precision Time Protocol (precision timeprotocol as, PTP), this agreement is applicable to supports various different accuracies in the local area network communication system that supports cast communication, resolution, the clock system of stability is synchronous mutually, and only need seldom Internet resources and computational resource, the full accuracy of pure software clock system can reach the submicrosecond level, can reach nanosecond under the auxiliary situation of hardware.In addition, be compared to GPS (Global PositioningSystem, global positioning system) time synchronized, the construction and the maintenance cost of IEEE 1588v2 time synchronized lower (do not need each base station deployment and safeguard the GPS receiving equipment).
In realizing process of the present invention, the inventor finds that there are the following problems at least in the prior art: because the common more complicated of IEEE 1588 clock networkings, the state that same port may occur down is more, device interior message processing links is more, need after going wrong relevant equipment is pursued the platform investigation, therefore positioning difficulty is bigger, and positioning time is longer.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of IEEE 1588 chain circuit detecting methods, system and device, to realize that fault detects fast and efficiently in IEEE 1588 links.
The embodiment of the invention is achieved in that
The embodiment of the invention provides a kind of IEEE 1588 chain circuit detecting methods, and this method comprises:
Whether the inquiry party to be detected supports the link testing mechanism;
If the party to be detected supports the link testing mechanism, then send the detection request message to the party to be detected, make described party to be detected carry out state-detection according to described detection request message;
Receive the detection response message that described party to be detected returns, and according to described detection response message obtain and described party to be detected between link-state information.
The embodiment of the invention provides a kind of IEEE 1588 chain circuit detecting methods, and this method comprises:
The party to be detected receives the inquiry whether detection side supports the link testing mechanism; And return the inquiry response message to described detection side, carry the information whether party to be detected supports described link detecting mechanism in the described inquiry response message;
If described party to be detected supports described link detecting mechanism, then described party to be detected carries out state-detection according to the detection request message that described detection side sent;
Described party to be detected returns the detection response message to described detection side, carries the object information of described state-detection in the described detection response message.
The embodiment of the invention provides a kind of IEEE 1588 link detecting systems, and this system comprises: detection side and party to be detected, wherein,
Described detection side, be used for: inquire about described party to be detected and whether support the link testing mechanism, if described party to be detected supports the link testing mechanism, then send the detection request message to described party to be detected, make described party to be detected carry out state-detection according to described detection request message; Receive the detection response message that described party to be detected returns, and according to described detection response message obtain and described party to be detected between link-state information;
Described party to be detected is used for: when receiving described detection side and whether supporting that the link testing mechanism is supported in the inquiry of link testing mechanism and self, receive the detection request message that described detection side sends, and carry out state-detection according to described detection request message; Return the detection response message to described detection side, carry the object information of described state-detection in the described detection response message.
The embodiment of the invention provides a kind of IEEE 1588 chain circuit devices, and this device comprises: testing mechanism query unit, request message transmitting element, response message receiving element and state information acquisition unit, wherein,
Described testing mechanism query unit is used to inquire about the party to be detected and whether supports the link inquiry mechanism;
The described request packet sending unit, be used for inquiring described party to be detected when supporting the link inquiry mechanism when described testing mechanism query unit, send the detection request message to described party to be detected, make described party to be detected carry out state-detection according to described detection request message;
Described response message receiving element is used to receive the detection response message that described party to be detected returns;
Described state information acquisition unit, be used for according to the received detection response message of described response message receiving element obtain and described party to be detected between link-state information.
The embodiment of the invention provides a kind of IEEE 1588 chain circuit devices, and this device comprises: testing mechanism inquiry receiving element, request message receiving element, state detection unit and response message transmitting element, wherein,
Described testing mechanism inquiry receiving element is used to receive the inquiry of whether supporting the link testing mechanism that the detection side sends, and returns the result who self whether supports the link testing mechanism to described detection side;
Described request message receiving element is used for: when described testing mechanism inquiry receiving element returns the result that self whether supports the link testing mechanism when supporting to described detection side, receive the detection request message that described detection side sends;
Described state detection unit is used for carrying out state-detection according to the received detection request message of described request message receiving element;
Described response message transmitting element is used for returning the detection response message to described detection side, carries the object information of described state-detection in the described detection response message.
Compared with prior art, the technical scheme that the embodiment of the invention provides has the following advantages and characteristics: the technical scheme that the embodiment of the invention provided, send the detection request message by detection side in IEEE 1588 links to the party to be detected, the party to be detected carries out state-detection according to this detection request message, and return the detection response message to the detection side, make the detection side obtain Link State between the two, thereby realize that fault detects fast and efficiently in IEEE 1588 links according to this detection response message.
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.
Fig. 1 is a kind of IEEE 1588 chain circuit detecting method flow charts that the embodiment of the invention provided;
Fig. 2 is another kind of IEEE 1588 chain circuit detecting method flow charts that the embodiment of the invention provided;
Fig. 3 is a kind of IEEE 1588 link detecting system configuration schematic diagrames that the embodiment of the invention provided;
Fig. 4 is a kind of IEEE 1588 chain circuit device structural representations that the embodiment of the invention provided;
Fig. 5 is another kind of IEEE 1588 chain circuit device structural representations that the embodiment of the invention provided;
Fig. 6 is a kind of IEEE 1588 chain circuit detecting method flow charts that the embodiment of the invention provided.
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 is obtained under the creative work prerequisite.
As shown in Figure 1, the embodiment of the invention provides a kind of IEEE 1588 chain circuit detecting methods, and this method comprises:
Step 101: send the detection request message to the party to be detected, make described party to be detected carry out state-detection according to described detection request message;
In step 101, the detection side sends the detection request message to the party to be detected, wherein, detection side herein and party to be detected all can be the concrete devices in IEEE 1588 links, by the technical scheme that present embodiment provided, can obtain the state information of IEEE 1588 links between these two devices, IEEE 1588 line faults between two devices, perhaps during any one fault in these two devices, all may cause IEEE 1588 link failures between these two devices.Send when detecting request message to the party to be detected the detection side, can utilize the announce message in the existing IEEE1588v2 agreement to realize, for example, the back, correction territory of existing announce message comprises the reserved field of 4 bytes, in the present embodiment, can carry solicitation message by this reserved field, further can be specially, a certain byte in the announce message reserved field is filled, this fills content representation solicitation message, and detectedly can carry out state-detection according to the content of being filled in this reserved field.
Step 102: receive the detection response message that described party to be detected returns, and according to described detection response message obtain and described party to be detected between link-state information.
In step 102, after the party to be detected finishes coherent detection according to received detection request message, testing result is carried in to detect in the response message issues the detection side, after the detection side receives the detection response message that the party to be detected returns, can according to relevant information entrained in this response message obtain and the party to be detected between link-state information, wherein, in the present embodiment, if the detection side adopts existing announce message to detect the transmission of request message, then the party to be detected is after finishing coherent detection, can carry out the transmission of testing result by the announce message equally, for example testing result is filled in the reserved field of announce response message, like this, after the detection side receives the announce response message that the party to be detected returns, the content of being filled in the reserved field according to this announce response message, obtain and the party to be detected between link-state information.
Need to prove, if all devices in IEEE 1588 links is all supported the link testing mechanism, then get final product according to above-mentioned steps, support the link testing mechanism if having only equipment component in IEEE 1588 links, then before the party to be detected is detected, also need to inquire about this party to be detected and whether support the link testing mechanism, in the present embodiment, can realize by the mode that sends the management message to the party to be detected, wherein, the mechanism of carrying in the management message that is sent detects solicited message, the party to be detected detects solicited message according to mechanism entrained in this management message and detects self whether to support the link testing mechanism, and testing result is back to the detection side, so that the detection side carries out subsequent operation, for example, when the party to be detected supports the link testing mechanism, can adopt the present embodiment above-mentioned steps to carry out link detecting, when the party to be detected did not support the link testing mechanism, link detecting stopped.
In addition, when the party to be detected sends the detection request message, can also start timer,, then determine the link failure between detection side and the party to be detected if do not receive the detection response message that the party to be detected returns in the given time the detection side.Certainly, also can behind timer expiry, restart timer, and the record expired times, when expired times are accumulated to pre-determined number, determine the link failure between detection side and the party to be detected.
The IEEE 1588 link check methods that the embodiment of the invention provided, by in IEEE 1588 links, sending the detection request message to the party to be detected by the detection side, the party to be detected carries out state-detection according to this detection request message, and return the detection response message to the detection side, make the detection side obtain Link State between the two, thereby realize fault in IEEE 1588 links is detected fast and efficiently according to this detection response message.
The embodiment of the invention provides another kind of IEEE 1588 chain circuit detecting methods, and this method comprises step as shown in Figure 2:
Step 201: receive the detection request message that the detection side sent, and carry out state-detection according to described detection request message;
In step 201, after the party to be detected receives the detection request message that the detection side sends, carry out state-detection according to relevant information entrained in this detection request message, for example, announce message in the detection request message employing IEEE 1588v2 agreement that the detection side sent carries, and the content of the reserved field by the announce message represents to detect request, then the party to be detected need be after receiving this announce message, this announce message is resolved, obtain the content in the reserved field of this announce message, and the optimal clock algorithm by the content trigger self of being filled in the reserved field, wherein, the result of calculation of this algorithm, the port status information that can represent the party to be detected, for making the recipient can obtain party to be detected's port status information, the party to be detected is filled to the result of calculation of this algorithm the reserved field of announce response message.
Step 202: return the detection response message to described detection side, carry the object information of described state-detection in the described detection response message.
In step 202, after the party to be detected carries out state-detection according to the detection request message that the detection side sent, need return the detection response message to the detection side, in the present embodiment, the detected transmission that can detect response message according to the message form that the detection side sent, for example, can send the announce response message to the detection side, and in this announce response message, carry the detection relevant information, for example, the result of calculation of optimal clock algorithm is filled in the reserved field of announce response message, make the detection side know we's port information, in addition, can also load in the announce response message receiving the time of detecting request message, like this, the detection side can obtain the delay situation of link according to the time difference of this time and transmission detection request message.Finally, the comprehensive multiple situation of detection side, draw and the party to be detected between link circuit condition.
Need to prove, if all devices in IEEE 1588 links is all supported the link testing mechanism, then get final product according to above-mentioned steps, support the link testing mechanism if having only equipment component in IEEE 1588 links, then before the party to be detected is detected, the detection side need inquire about the party to be detected and whether support this link detecting mechanism, then the party to be detected need receive detection side's inquiry, in the present embodiment, can realize in the following manner, receive the management message that the detection side sent, the mechanism of carrying in this management message detects solicited message, detects information according to this mechanism, detect self and whether support the link testing mechanism, and testing result is back to the detection side, the detection side can carry out subsequent operation according to this result, for example, when the party to be detected supports the link testing mechanism, can adopt the present embodiment above-mentioned steps to carry out link detecting, when the party to be detected did not support the link testing mechanism, link detecting stopped.
IEEE 1588 chain circuit detecting methods that the embodiment of the invention provided, by in IEEE 1588 links, sending the detection request message to the party to be detected by the detection side, the party to be detected carries out state-detection according to this detection request message, and return the detection response message to the detection side, make the detection side obtain Link State between the two, thereby realize that fault detects fast and efficiently in IEEE 1588 links according to this detection response message.
The embodiment of the invention provides a kind of IEEE 1588 link detecting systems, and as shown in Figure 3, this system comprises: detection side 301 and party to be detected 302, wherein:
Described detection side 301 is used for sending the detection request message to described party to be detected, makes described party to be detected carry out state-detection according to described detection request message; Receive the detection response message that described party to be detected returns, and according to described detection response message obtain and described party to be detected between link-state information;
Described party to be detected 302 is used to receive the detection request message that described detection side sends, and carries out state-detection according to described detection request message; Return the detection response message to described detection side, carry the object information of described state-detection in the described detection response message.
Need to prove, if all devices in IEEE 1588 links is all supported the link testing mechanism, then get final product according to above-mentioned steps, support the link testing mechanism if having only equipment component in IEEE 1588 links, then before party to be detected 302 is detected, also need to inquire about this party to be detected 302 and whether support the link testing mechanism, in the present embodiment, can realize by the mode that sends the management message to party to be detected 302, wherein, the mechanism of carrying in the management message that is sent detects solicited message, party to be detected 302 detects solicited message according to mechanism entrained in this management message and detects self whether to support the link testing mechanism, and testing result is back to detection side 301, so that detection side 301 carries out subsequent operation, for example, when party to be detected 302 supports the link testing mechanism, can carry out link detecting, when party to be detected 302 did not support the link testing mechanism, link detecting stopped.
In addition, send when detecting request messages to party to be detected 302 detection side 301, can also start timer,, then determine the link failure between detection side 301 and the party to be detected 302 if do not receive the detection response message that party to be detected 302 returns in the given time.Certainly, also can behind timer expiry, restart timer, and the record expired times, when expired times are accumulated to pre-determined number, determine the link failure between detection side 301 and the party to be detected 302.
The IEEE 1588 link detecting systems that the embodiment of the invention provided can be used to carry out 1588 chain circuit detecting methods that the embodiment of the invention provides.This link detecting system carries out the process of link detecting, the chain circuit detecting method that can provide referring to the embodiment of the invention.
The IEEE link detecting system that the embodiment of the invention provided, send the detection request message by detection side in IEEE 1588 links to the party to be detected, the party to be detected carries out state-detection according to this detection request message, and return the detection response message to the detection side, make the detection side obtain Link State between the two, thereby realize that fault detects fast and efficiently in IEEE 1588 links according to this detection response message.
The embodiment of the invention provides a kind of IEEE 1588 chain circuit devices, and this device is the detection side, comprises structure as shown in Figure 4: request message transmitting element 401, response message receiving element 402 and state information acquisition unit 403, wherein:
Request message transmitting element 401 is used for sending the detection request message to the party to be detected, makes described party to be detected carry out state-detection according to described detection request message;
Response message receiving element 402 is used to receive the detection response message that described party to be detected returns;
State information acquisition unit 403, be used for according to described response message receiving element 402 received detection response messages obtain and described party to be detected between link-state information.
Except said units, these IEEE 1588 chain circuit devices also can comprise testing mechanism query unit 404, be used to inquire about described party to be detected and whether support the link inquiry mechanism, when described testing mechanism query unit inquires described party to be detected when supporting the link inquiry mechanism, the described request packet sending unit sends the detection request message to described party to be detected.
If all devices in IEEE 1588 links is all supported the link testing mechanism, then get final product according to above-mentioned steps, support the link testing mechanism if having only equipment component in IEEE 1588 links, then before the party to be detected is detected, also need to inquire about this party to be detected and whether support the link testing mechanism, in the present embodiment, can realize to the mode that the party to be detected sends the management message by testing mechanism query unit 404, wherein, the mechanism of carrying in the management message that is sent detects solicited message, the party to be detected detects solicited message according to mechanism entrained in this management message and detects self whether to support the link testing mechanism, and testing result is back to testing mechanism query unit 404, so that the detection side carries out subsequent operation, for example, when the party to be detected supports the link testing mechanism, but testing mechanism query unit 404 notice request packet sending unit 401 send the detection request message to the party to be detected, thereby execution link detecting, when the party to be detected did not support the link testing mechanism, link detecting stopped.
In addition, can also comprise timer 405.When the party to be detected sends the detection request message, can also start timer 405 at request message transmitting element 401,, then determine the link failure between detection side and the party to be detected if do not receive the detection response message that the party to be detected returns in the given time.
Can also comprise memory cell 406, after timer 405 is overtime, restart timer 405, and the record expired times, when expired times are accumulated to pre-determined number, determine the link failure between detection side and the party to be detected.
A kind of IEEE 1588 chain circuit devices that the embodiment of the invention provided can be used to carry out IEEE 1588 chain circuit detecting methods that the embodiment of the invention provides.These IEEE 1588 chain circuit devices carry out the process of link detecting, the chain circuit detecting method that can provide referring to the embodiment of the invention.
IEEE 1588 chain circuit devices that the embodiment of the invention provided, by other devices to IEEE 1588 links, be that the party to be detected sends the detection request message, make this equipment carry out state-detection according to received detection request message, after receiving the detection response message that the party to be detected returns, according to testing result information entrained in this message can obtain and the party to be detected between the state information of link, thereby realize that fault detects fast and efficiently in IEEE 1588 links.
The embodiment of the invention also provides another kind of IEEE 1588 chain circuit devices, and this device is detected device, comprises structure as shown in Figure 5: request message receiving element 501, state detection unit 502 and response message transmitting element 503, wherein:
Request message receiving element 501 is used to receive the detection request message that the detection side sends;
State detection unit 502 is used for carrying out state-detection according to described request message receiving element 501 received detection request messages;
Response message transmitting element 503 is used for returning the detection response message to described detection side, carries the object information of described state-detection in the described detection response message.
Except said units, these IEEE 1588 chain circuit devices also comprise testing mechanism inquiry receiving element 504, this unit is used to receive the inquiry of whether supporting the link testing mechanism that described detection side sends, and return the result who self whether supports the link testing mechanism to described detection side, when described testing mechanism inquiry receiving element returns the result that self whether supports the link testing mechanism when supporting to described detection side, described request message receiving element can receive the detection request message that described detection side sends, thereby carries out state-detection.
If all devices in IEEE 1588 links is all supported the link testing mechanism, then get final product according to above-mentioned steps, support the link testing mechanism if having only equipment component in IEEE 1588 links, then before the party to be detected is detected, also need to inquire about this party to be detected and whether support the link testing mechanism, in the present embodiment, can inquire about receiving element 504 by testing mechanism receives the mode that detection sides send to the management message and realizes, wherein, the mechanism of carrying in the management message that the detection side sent detects solicited message, testing mechanism inquiry receiving element 504 detects detected device itself according to mechanism detection solicited message entrained in this management message and whether supports the link testing mechanism, and testing result is back to the detection side, so that the detection side carries out subsequent operation, for example, when detected device is supported the link testing mechanism, testing mechanism inquiry receiving element 504 can send the management response message to the detection side, thereby can start the execution link detecting, when detected device was not supported the link testing mechanism, link detecting stopped.IEEE 1588 chain circuit devices that the embodiment of the invention provided can be used to carry out IEEE 1588 chain circuit detecting methods that the embodiment of the invention provides.These IEEE 1588 chain circuit devices carry out the process of link detecting, the chain circuit detecting method that can provide referring to the embodiment of the invention.
A kind of IEEE 1588 chain circuit devices that the embodiment of the invention provided, by receiving other devices in IEEE 1588 links, it is the detection request message that the detection side sends, and carry out state-detection according to this message, after detection is finished, testing result returned to be carried on detect in the response message, be back to the detection side, make the detection side obtain link-state information, thereby realize that fault detects fast and efficiently in IEEE 1588 links according to this response message.
In conjunction with said method, system, device and concrete application scenarios, technical scheme provided by the present invention is described further, in the link of supporting the IEEE1588 agreement, can be by sending association message between the equipment mutually, carry out the inspection voluntarily of link circuit condition, in the present embodiment, with the information interaction between certain two equipment in IEEE 1588 links is that example comes technical scheme provided by the present invention is done comparatively detailed explanation, wherein, suppose that this two equipment is respectively two adjacent in IEEE 1588 links equipment, be convenient to describe, respectively with this two equipment called after A equipment and B equipment, and need to prove, in the present embodiment, A equipment is the detection side, and B equipment is the party to be detected, as shown in Figure 6, the concrete steps of carrying out link detecting comprise:
Whether step 601:A equipment query B equipment supports the link testing mechanism;
In step 601, the management message in the A equipment utilization IEEE1588v2 agreement carries out the inquiry to B device link testing mechanism, carries link mechanism in the described management message and detects solicited message, and detailed process can adopt following manner to carry out:
" GET " value in the action Field field in the A equipment management message is set to 0, and the management ID in the management TLV field in the management message extended this as hexadecimal number 0x6000 to the arbitrary value between the 0x7fff, for example retention 0x6000 etc. does not limit at this.The form of the management message that A equipment sends can be as shown in table 1.
After B equipment receives this management message, return a management response message to A equipment, described management response message carries the information whether B equipment supports described link detecting mechanism.For example in the management response message that is returned, extend this as " RESPONSE " value 2 in action Field field.The value of being filled in the data Field field wherein can be the arbitrary value of being appointed with A equipment in advance, if the value of being scheduled to A equipment is 0x7e in advance, then in data Field field, fill in 0x7e, expression B equipment is supported checking mechanism like this, if not the value of being arranged with A equipment in advance, represent that then B equipment do not support this checking mechanism.Need to prove, when A equipment is not received the management response message that B equipment sent, can think that also B equipment do not support this checking mechanism.According to Query Result, when B equipment is supported inquiry mechanism, execution in step 602, otherwise checking process finishes.The form of the management response message that B equipment sends can be as shown in table 2.
Table 1
Figure GSA00000127603200111
Table 2
Figure GSA00000127603200112
Step 602:A equipment sends the detection request message to B equipment and carries out fault detect;
In step 602, A equipment can utilize the reserved field of 4 bytes in back, correction territory in the announce message in the IEEE1588v2 agreement to carry the request of detection, and detailed process can adopt following manner to carry out:
A equipment is filled the reserved field of 4 bytes in back, correction territory in the announce message, in the present embodiment, the highest order of reserved field can be filled, for example, the highest byte of reserved field is extended this as 0x7e etc., need to prove, carry request message for making in the announce message, also can adopt other modes of filling in other characters of reserved field are carried out, in addition, for making the more A client informations of B device learns, priority 1 field in the announce message can be extended this as limit priority 0, and fill in to a certain position of reserved field, for example the 0th state information that the port is filled at the place in the reserved field, transmitting time is filled in the timestamp field, all extend this as 0 and proofread and correct the territory.
Step 603:B equipment carries out coherent detection according to this detection request message after receiving this detection request message;
In step 603, B equipment is after receiving this detection request message, at first record sends the port numbers of the A equipment of this message, and should detect entrained clock ID in the request message, like this, send when detecting request to this B equipment simultaneously as a plurality of transmitting terminals, B equipment can be distinguished different transmitting terminals according to the port numbers and the clock ID of sending ending equipment.
In addition, B equipment is after receiving this message, also to trigger optimal clock algorithm (Best MasterClock Algorithm, BMC), wherein, the BMC algorithm comprises two parts: the one, and data set comparison algorithm, the relatively quality of two groups of data, such as one group of data of representing the default characteristic of local clock, the entrained clock information of announce message that transmitting terminal sent that another group representative receives; The 2nd, calculate the recommendation state of each port according to the data set comparative result, for example can embody the multiple information such as init state, malfunction of this port.
B equipment returns response message to A equipment after finishing aforesaid operations, carry the state information of the clock of B device port in the response message, specifically can realize in the following manner:
B equipment generates the announce response message, in the process that generates this message, the highest order of announce message reserved field is extended this as 0x7e, and insert in the timestamp field of response message receiving the timestamp in the moment of above-mentioned announce message, in addition, B equipment also can be filled in the correction territory of announce response message receiving the time difference that announce message and detection side send the announce message, so that A equipment obtains the delay condition information of link.Simultaneously, because the announce message that is sent at A equipment has triggered the BMC algorithm of B equipment, operation result according to this BMC algorithm, can obtain the state information of B device port, for making the state information of A device learns the port, B equipment is filled to the state information of the port in the response message, specifically can be: a certain byte place that the state information of the port is filled in the response message reserved field, the first byte place of reserved field for example, this state information can be filled to other fields of response message reserved field, present embodiment is not done particular restriction yet.In addition, need to prove, the announce message in the B device trigger BMC algorithm, but this process does not influence the configuration of IEEE 1588 link reality.
Step 604:B equipment is back to A equipment with the detection response message that is generated, A equipment obtain according to entrained information in this detection response message and the B device port between the information of link or the state information of B device port;
In step 604, after A equipment receives the announce response message that B equipment sent, obtain the source port information entrained in this announce response message and the state information of this port, in the present embodiment, can carry out in the following ways: A equipment is resolved received announce response message, obtain the source Port Identity of this response message, and obtain the port numbers of B equipment by this field, since the content representation that the reserved field of announce response message is filled the relevant information of B end port, so A equipment can obtain the state information of B end port after obtaining the reserved field of this response message.
Need to prove,, in the time of appointment, fail to receive the announce response message that B equipment is returned if A equipment is after sending the announce message, then can think and B equipment between link break down or the B device port breaks down.
The equipment of other IEEE 1588 ports of step 605:B equipment in other IEEE 1588 links send to detect request message, carrying out the fault detect of other links, and testing result is fed back to A equipment.
In step 605, B equipment sends to other equipment and detects request message, and obtain testing result the time can take step 601 related method to the step 604 in the present embodiment, do not do at this and give unnecessary details.In addition, B equipment can be given A equipment with this feedback information, thereby make A equipment can progressively obtain the state information of whole link after obtaining the state information of other links.
Above described be with mutual announce message between A equipment and the B equipment in IEEE 1588 links, and, all can adopt this method to carry out the detection of Link State, so concrete steps are not done and are given unnecessary details at this for other equipment in this link.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM (Read-Only Memory, read-only storage memory body), RAM (RandomAccess Memory stores memory body at random), magnetic disc or CD.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be conspicuous concerning those skilled in the art, and defined herein General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet and principle disclosed herein and features of novelty the wideest corresponding to scope.

Claims (11)

1. IEEE 1588 chain circuit detecting methods is characterized in that, comprising:
Whether the inquiry party to be detected supports the link testing mechanism;
If the party to be detected supports the link testing mechanism, then send the detection request message to the party to be detected, make described party to be detected carry out state-detection according to described detection request message;
Receive the detection response message that described party to be detected returns, and according to described detection response message obtain and described party to be detected between link-state information.
2. method according to claim 1 is characterized in that, whether the described party to be detected of described inquiry supports the link testing mechanism, comprising:
Send the management message to described party to be detected, carry link mechanism in the described management message and detect solicited message;
Receive the management response message that described party to be detected returns, carry the information whether described party to be detected supports described link detecting mechanism in the described management response message.
3. according to each described method in the claim 1 to 2, it is characterized in that, describedly send the link detecting request message, comprising to the party to be detected:
Send the announce message to described party to be detected, described announce message carries the link detecting request.
4. method according to claim 3 is characterized in that, the detection response message that the described party to be detected of described reception returns, and according to described detection response message obtain and described party to be detected between link-state information, comprising:
Receive the announce response message that described party to be detected returns, the information of carrying according to described announce response message detect and described party to be detected between link-state information.
5. IEEE 1588 chain circuit detecting methods is characterized in that, comprising:
The party to be detected receives the inquiry whether detection side supports the link testing mechanism; And return the inquiry response message to described detection side, carry the information whether party to be detected supports described link detecting mechanism in the described inquiry response message;
If described party to be detected supports described link detecting mechanism, then described party to be detected carries out state-detection according to the detection request message that described detection side sent;
Described party to be detected returns the detection response message to described detection side, carries the object information of described state-detection in the described detection response message.
6. method according to claim 5 is characterized in that, whether the described detection side of described reception supports the inquiry of link testing mechanism, comprising:
Receive the management message that described detection side sends, carry link mechanism in the described management message and detect solicited message;
Return the management response message to described detection side, carry the information whether recipient supports described link detecting mechanism in the described management response message.
7. according to each described method in the claim 5 to 6, it is characterized in that, describedly receive the detection request message that the detection side sent, and carry out state-detection, comprising according to described detection request message:
Receive the announce message that described detection side sends, obtain the content of reserved field in the described announce message, and utilize the content trigger optimal clock algorithm of described reserved field, obtain port status information by the result of calculation of described optimal clock algorithm.
8. method according to claim 7 is characterized in that, describedly returns the detection response message to described detection side, comprising:
Return the announce response message to described detection side, described announce response message carrier state testing result information.
9. IEEE 1588 link detecting systems is characterized in that, comprise detection side and party to be detected, wherein,
Described detection side, be used for: inquire about described party to be detected and whether support the link testing mechanism, if described party to be detected supports the link testing mechanism, then send the detection request message to described party to be detected, make described party to be detected carry out state-detection according to described detection request message; Receive the detection response message that described party to be detected returns, and according to described detection response message obtain and described party to be detected between link-state information;
Described party to be detected is used for: when receiving described detection side and whether supporting that the link testing mechanism is supported in the inquiry of link testing mechanism and self, receive the detection request message that described detection side sends, and carry out state-detection according to described detection request message; Return the detection response message to described detection side, carry the object information of described state-detection in the described detection response message.
10. IEEE 1588 chain circuit devices is characterized in that, comprising: testing mechanism query unit, request message transmitting element, response message receiving element and state information acquisition unit, wherein,
Described testing mechanism query unit is used to inquire about the party to be detected and whether supports the link inquiry mechanism;
The described request packet sending unit, be used for inquiring described party to be detected when supporting the link inquiry mechanism when described testing mechanism query unit, send the detection request message to described party to be detected, make described party to be detected carry out state-detection according to described detection request message;
Described response message receiving element is used to receive the detection response message that described party to be detected returns;
Described state information acquisition unit, be used for according to the received detection response message of described response message receiving element obtain and described party to be detected between link-state information.
11. IEEE 1588 chain circuit devices is characterized in that, comprising: testing mechanism inquiry receiving element, request message receiving element, state detection unit and response message transmitting element, wherein,
Described testing mechanism inquiry receiving element is used to receive the inquiry of whether supporting the link testing mechanism that the detection side sends, and returns the result who self whether supports the link testing mechanism to described detection side;
Described request message receiving element is used for: when described testing mechanism inquiry receiving element returns the result that self whether supports the link testing mechanism when supporting to described detection side, receive the detection request message that described detection side sends;
Described state detection unit is used for carrying out state-detection according to the received detection request message of described request message receiving element;
Described response message transmitting element is used for returning the detection response message to described detection side, carries the object information of described state-detection in the described detection response message.
CN2010101879840A 2010-05-26 2010-05-26 Institute of electrical and electronic engineers (IEEE) 1588 link detection method, system and IEEE 1588 link device Pending CN102263672A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101879840A CN102263672A (en) 2010-05-26 2010-05-26 Institute of electrical and electronic engineers (IEEE) 1588 link detection method, system and IEEE 1588 link device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101879840A CN102263672A (en) 2010-05-26 2010-05-26 Institute of electrical and electronic engineers (IEEE) 1588 link detection method, system and IEEE 1588 link device

Publications (1)

Publication Number Publication Date
CN102263672A true CN102263672A (en) 2011-11-30

Family

ID=45010141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101879840A Pending CN102263672A (en) 2010-05-26 2010-05-26 Institute of electrical and electronic engineers (IEEE) 1588 link detection method, system and IEEE 1588 link device

Country Status (1)

Country Link
CN (1) CN102263672A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938676A (en) * 2011-08-16 2013-02-20 中兴通讯股份有限公司 Method, device and system for processing time synchronization
WO2015010469A1 (en) * 2013-07-23 2015-01-29 华为技术有限公司 Wireless communication method, wire transmission detection method and related device
CN108134655A (en) * 2017-12-19 2018-06-08 深圳先进技术研究院 A kind of method and controller of determining communication link state
WO2018121589A1 (en) * 2016-12-30 2018-07-05 中兴通讯股份有限公司 Data link detection method, apparatus and system
CN112486010A (en) * 2020-11-25 2021-03-12 天津凯发电气股份有限公司 Novel time service method for urban rail transit traction power supply secondary equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001257A (en) * 2006-12-25 2007-07-18 华为技术有限公司 Link quality method based on address analytic protocol and correlation device and system
CN101582733A (en) * 2009-06-18 2009-11-18 中兴通讯股份有限公司 Method and system for realizing high precision time synchronization among SDH equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001257A (en) * 2006-12-25 2007-07-18 华为技术有限公司 Link quality method based on address analytic protocol and correlation device and system
CN101582733A (en) * 2009-06-18 2009-11-18 中兴通讯股份有限公司 Method and system for realizing high precision time synchronization among SDH equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938676A (en) * 2011-08-16 2013-02-20 中兴通讯股份有限公司 Method, device and system for processing time synchronization
CN102938676B (en) * 2011-08-16 2017-11-10 中兴通讯股份有限公司 Time synchronizing method, apparatus and system
WO2015010469A1 (en) * 2013-07-23 2015-01-29 华为技术有限公司 Wireless communication method, wire transmission detection method and related device
CN104349400A (en) * 2013-07-23 2015-02-11 华为技术有限公司 Wireless communication method, wired transmission detection method, and correlation device
US10028289B2 (en) 2013-07-23 2018-07-17 Huawei Techonologies Co., Ltd. Wireless communications method, wired transmission detection method, and related device and system
CN104349400B (en) * 2013-07-23 2019-04-05 华为技术有限公司 Method, the method and relevant device of wire transmission detection of wireless communication
WO2018121589A1 (en) * 2016-12-30 2018-07-05 中兴通讯股份有限公司 Data link detection method, apparatus and system
CN108134655A (en) * 2017-12-19 2018-06-08 深圳先进技术研究院 A kind of method and controller of determining communication link state
CN108134655B (en) * 2017-12-19 2021-01-19 深圳先进技术研究院 Method and controller for determining communication link state
CN112486010A (en) * 2020-11-25 2021-03-12 天津凯发电气股份有限公司 Novel time service method for urban rail transit traction power supply secondary equipment

Similar Documents

Publication Publication Date Title
CN102769667B (en) Method, equipment and system for generating ID
CN105262555B (en) Time synchronization method, programmable logic device, single board and network element
CN104504062A (en) Data synchronization method and device of primary and standby databases
CN103188064A (en) Clock synchronization method and clock synchronization device
CN102263672A (en) Institute of electrical and electronic engineers (IEEE) 1588 link detection method, system and IEEE 1588 link device
CN103929293A (en) Asymmetrically-delayed time synchronization method and system
CN105933393A (en) Intra-local area network data synchronization method, device and user terminal
CN105446827A (en) Data storage method and device for database at failure
CN103138887A (en) Processing method of 1588 event messages and processing method of 1588 event messages
CN106301996B (en) A kind of method and device that PTP message is tested automatically
CN101808167B (en) Method for procedure tracking, device and system
CN109547510A (en) A kind of off-line system method of data synchronization
CN101262369A (en) Master/slave realization method for dispatching server and dispatching server
CN107888434B (en) Network equipment configuration synchronization method and device
CN105959078A (en) Cluster time synchronization method, cluster and time synchronization system
JP6509344B2 (en) Method and apparatus for detecting tag exchange path connectivity
CN104639399B (en) More primary time server detection methods and device
CN111314221A (en) Service processing method, device, equipment and computer readable storage medium
CN106713464B (en) service management method and device of enterprise service bus
CN109347593A (en) Equipment and its method for synchronizing time and computer readable storage medium
CN108123773B (en) Time synchronization method and device
KR101044065B1 (en) Method for Synchronizing Time in IPTV Service Network
KR101973264B1 (en) Clocks timing fault recovery method and apparatus in precision time protocol system
CN108712470B (en) Routing data synchronization method and device, computer device and storage medium
JP2007163330A (en) Time information communication system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20111130