Nothing Special   »   [go: up one dir, main page]

CN101547083A - Time synchronizer, time synchronization system and time synchronization method - Google Patents

Time synchronizer, time synchronization system and time synchronization method Download PDF

Info

Publication number
CN101547083A
CN101547083A CN200810085173A CN200810085173A CN101547083A CN 101547083 A CN101547083 A CN 101547083A CN 200810085173 A CN200810085173 A CN 200810085173A CN 200810085173 A CN200810085173 A CN 200810085173A CN 101547083 A CN101547083 A CN 101547083A
Authority
CN
China
Prior art keywords
ethernet
time
port
ieee1588
cpu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN200810085173A
Other languages
Chinese (zh)
Other versions
CN101547083B (en
Inventor
魏初舜
于洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2008100851732A priority Critical patent/CN101547083B/en
Publication of CN101547083A publication Critical patent/CN101547083A/en
Application granted granted Critical
Publication of CN101547083B publication Critical patent/CN101547083B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention discloses a time synchronizer, a time synchronization system and a time synchronization method. The time synchronizer is provided with an ordinary Ethernet port and an IEEE1588 Ethernet port in one-to-one correspondence. Ethernet frames including PTP type Ethernet frames and non-PTP type Ethernet frames are interacted between the time synchronizer and the Ethernet in support of an IEEE1588 standard through the IEEE1588 Ethernet port; the non-PTP type Ethernet frames are interacted between the time synchronizer and an ordinary Ethernet switch device through the ordinary Ethernet port; and the times of the IEEE1588 Ethernet port and the Ethernet are synchronized through the PTP type Ethernet frames. Further, the time synchronizer can also realize the time synchronization of a local time synchronizer and the Ethernet through a local synchronization port. Based on the prior ordinary Ethernet switch device, the time synchronizer can realize the smooth upgrade from a non-time-synchronization network to a time synchronization network, realize the full utilization of the prior network resources and support further time synchronization of the whole network.

Description

Time synchronism apparatus, clock synchronization system and method for synchronizing time
Technical field
The present invention relates to communication technical field, relate in particular to a kind of time synchronism apparatus, a kind of clock synchronization system and a kind of method for synchronizing time.
Background technology
In the middle of NGN (next generation network) process of transition, each aspect of each network (comprising mobile network, fixed network etc.) and network (comprise core net, transmit net, Access Network etc.) has all proposed new requirement to time synchronized.For example, in the 3G network that adopts CDMA2000 and two kinds of standards of TD-SCDMA,, need high precision time synchronization (being better than 10 μ s) between the base station system in order to guarantee the establishment of connection of conversing; Again for example, the WCDMA network such as the high precision position positioning service based on the base station, needs to carry out the time synchronized of high accuracy (μ s magnitude) for some value-added service is provided between its each base station equipment.For convenience of description, the above-mentioned equipment that these need carry out time synchronized can abbreviate time synchronism equipment as.
In order to satisfy the time synchronized needs of each time synchronism equipment in the network, prior art mainly provides the following two types method of synchronization: a kind of is network time synchronization, and another kind is that wireless time is synchronous.
For network time synchronization, the split-second precision agreement that proposed in 2002 (PrecisionTime Protocol is called for short PTP) can provide network time synchronization for time synchronism equipment, particularly remote time synchronism equipment.Because this agreement need not to set up special network, but on the existing network basis, realize, therefore be able to be able to quick popularization in the time synchronized field by adding the time synchronized message that only takies a small amount of Internet resources.The concrete operation principle of this PTP agreement please refer to the IEEE1588 standard, mainly comprise: the precise time that the ethernet port hardware mensuration PTP packet of the node that each participation is synchronous leaves and the precise time of arrival, this node calculates chain circuit transmission time delay and packet in this node time of staying, and exchanges the information of these practical measurement and calculating by PTP packet and adjacent node.
For wireless time was synchronous, its reference signal of generally broadcasting by GPS made and keeps clock synchronization between time synchronism equipment that advantage is to realize simple; As shown in Figure 1, its concrete operation principle comprises: the GPS receiver receives the GPS time service as Master, and provide PPS (Pulse Per Second to time synchronism equipment as Slave by local synchronous port, pulse per second (PPS)) synchronization pulse transmits signal with the timestamp that carries each pulse per second (PPS) correspondent time (Timestamp), such as, can send the PPS synchronization pulse by the PPS interface of local synchronous port, stab by RS-232/RS-485 serial ports transmitting time and transmit signal; As the local zone time of the time synchronism equipment of Slave sampling PPS synchronization pulse when obtaining this PPS synchronization pulse saltus step, time of reception stabs and transmits the Master time that signal obtains corresponding PPS synchronization pulse, similarly, can receive the PPS synchronization pulse by the PPS interface of local synchronous port, stab by RS-232/RS-485 serial ports time of reception and transmit signal; Compared by local zone time and Master time, just can be adjusted local zone time, made itself and Master time precise synchronization this PPS synchronization pulse.
But for time synchronism equipment, above-mentioned dual mode exists not enough again separately:
If time synchronism equipment is realized time synchronized according to the IEEE1588 standard, then inevitable requirement is also supported the IEEE1588 standard for it provides the switching equipment of common ethernet frame relaying, be that each port of its switching equipment all needs a cover hardware timestamping generation unit, and the CPU of this switching equipment must support and handle common ethernet frame processing than the PTP agreement of big difference is arranged.And in fact, because switching equipment itself does not need to carry out time synchronized, therefore all be common ethernet switching device for a large amount of switching equipment that in network, used at present, its port and CPU are difficult to be implemented to the upgrading of supporting the IEEE1588 standard, therefore can't provide the network time synchronization support for time synchronism equipment.
If it is synchronous to carry out wireless time according to the GPS benchmark, owing to generally be difficult to need the equipment place of time synchronized that the GPS receiver all is installed at all, and the GPS receiver externally provides time synchronized, and cable that adopted, that be used to transmit PPS and timestamp has certain length restriction, therefore realize being limited in scope of time synchronized, especially be difficult to providing support for the time synchronism equipment in strange land; Particularly, wireless time needs special circuit to transmit lock-out pulse synchronously, and this circuit can not transmit other business datum, so line efficiency is low, is difficult to be applied in the larger context.
For these reasons, prior art often adopts the mode of network time synchronization and the combination of wireless time locking phase, if promptly switching equipment is supported IEEE1588 standard (can be described as the IEEE1588 ethernet switching device), then the time synchronism equipment that it connected can adopt network time synchronization; If switching equipment is not supported the IEEE1588 standard, then the time synchronism equipment that it connected need be provided with the GPS receiver specially to carry out wireless time synchronous.
As can be seen, above-mentioned time synchronized scheme only is to have carried out network time synchronization and the synchronous simple combination of wireless time, does not overcome above-mentioned two kinds of defectives that the method for synchronization exists separately.For instance, if switching equipment can't be supported the IEEE1588 standard, just have to set up in addition the wireless synchronization circuit and receive gps signal, Internet resources have promptly been wasted, also be unfavorable for realizing and safeguard that can't make the non-Time Synchronization Network upward compatible that comprises existing common ethernet switching device is Time Synchronization Network.
Summary of the invention
Embodiments of the invention aim to provide a kind of time synchronized scheme, to realize the smooth upgrade from non-Time Synchronization Network to the time synchronizing network based on existing common ethernet switching device.
For achieving the above object, embodiments of the invention provide a kind of time synchronism apparatus, are provided with common one to one ethernet port and IEEE1588 ethernet port; This time synchronism apparatus is by its IEEE1588 ethernet port and the mutual ethernet frame of Ethernet of supporting the IEEE1588 standard, and this ethernet frame comprises PTP type ethernet frame and non-PTP type ethernet frame; By its common ethernet port and the mutual non-PTP type ethernet frame of common ethernet switching device, wherein, this non-PTP type ethernet frame is handled by this common ethernet switching device; And, carry out the time synchronized of IEEE1588 ethernet port and Ethernet according to this PTP type ethernet frame.
Embodiments of the invention also provide a kind of clock synchronization system, comprise Ethernet and common ethernet switching device, and this common ethernet switching device is used to handle the ethernet frame of non-PTP type; This clock synchronization system also comprises aforesaid time synchronism apparatus, and this time synchronism apparatus is arranged between this common ethernet switching device and this Ethernet.
Embodiments of the invention also provide a kind of method for synchronizing time, are applicable to aforesaid time synchronism apparatus, and this time synchronism apparatus is provided with common one to one ethernet port and IEEE1588 ethernet port, carry out following steps:
By this IEEE1588 ethernet port and the mutual ethernet frame of Ethernet of supporting the IEEE1588 standard, comprise PTP type ethernet frame and non-PTP type ethernet frame;
By this common ethernet port and mutual this non-PTP type ethernet frame of common ethernet switching device, it is carried out by common ethernet switching device handle;
Carry out the time synchronized of IEEE1588 port and Ethernet according to PTP type ethernet frame.
As shown from the above technical solution, embodiments of the invention separate the processing of PTP type ethernet frame and the processing of non-PTP type ethernet frame by being provided as right IEEE1588 ethernet port and common ethernet port, have following beneficial effect:
1, the non-PTP type of transparent transmission ethernet frame keeps the non-PTP type ethernet frame function of exchange of common ethernet switching device;
2, support processing, thereby realize smooth upgrade from non-Time Synchronization Network to the time synchronizing network based on existing common ethernet switching device for PTP type ethernet frame;
3, PTP type ethernet frame and non-PTP type ethernet frame merge transmission, realize making full use of conventional network resources;
4, further, can provide the time synchronized of the whole network in conjunction with IEEE1588 Network Synchronization and the synchronous advantage of PPS time service.
With reference to the accompanying drawing description of a preferred embodiment, above-mentioned and other purpose of the present invention, feature and advantage will be more obvious by following.
Description of drawings
Fig. 1 is the synchronous operation principle schematic diagram of wireless time in the prior art;
Fig. 2 is the block diagram of an embodiment of time synchronism apparatus provided by the present invention;
Fig. 3 A is the structured flowchart of IEEE1588 port one embodiment in the time synchronism apparatus shown in Figure 2;
Fig. 3 B is the structured flowchart of multiplex/demultiplex unit one embodiment in the time synchronism apparatus shown in Figure 2;
Fig. 4 is the block diagram of another embodiment of time synchronism apparatus provided by the present invention;
Fig. 5 A is the structured flowchart of IEEE1588 port one embodiment in the time synchronism apparatus shown in Figure 4;
Fig. 5 B is the structured flowchart of time synchronized unit one embodiment in the time synchronism apparatus shown in Figure 4;
Fig. 6 is the block diagram of an embodiment of clock synchronization system provided by the present invention;
Fig. 7 A is the process chart by IEEE1588 ethernet port input ethernet frame;
Fig. 7 B is the process chart by IEEE1588 ethernet port output ethernet frame;
Fig. 8 is in the method for synchronizing time provided by the present invention, carries out the flow chart of the embodiment of local zone time device synchronization;
Fig. 9 A is in the method shown in Figure 8, synchronously the flow chart of the embodiment of the second local internal clocking;
Fig. 9 B is in the method shown in Figure 8, carries out the flow chart of synchronous embodiment according to second internal clocking.
Embodiment
To describe specific embodiments of the invention in detail below.Should be noted that the embodiments described herein only is used to illustrate, be not limited to the present invention.
Basic fundamental design of the present invention is, need not the change of existing network annexation, and the network that is based between existing common ethernet switching device and the Ethernet connects, by adding necessary assembly the processing of the IEEE1588 agreement in the Ethernet is separated with the processing of common ethernet frame, thereby both kept of the processing of common ethernet switching device for non-PTP type ethernet frame, can support the processing of PTP type ethernet frame again, realize compatibility thus for the Ethernet of supporting the IEEE1588 standard.
Concrete, the assembly of above-mentioned necessity is a time synchronism apparatus 100 provided by the present invention, this time synchronism apparatus 100 is used for being provided with common ethernet switching device combination.Wherein, this common ethernet switching device original function remains unchanged, and promptly is used to exchange local non-PTP type ethernet frame, does not participate in network time synchronization, need not to carry out the improvement of 26S Proteasome Structure and Function; Simultaneously, this time synchronism apparatus 100 port of IEEE1588 standard that provides support.
That is, this time synchronism apparatus 100 is provided with common one to one ethernet port and IEEE1588 ethernet port; By its IEEE1588 ethernet port and the mutual ethernet frame of Ethernet of supporting the IEEE1588 standard, this ethernet frame comprises PTP type ethernet frame and non-PTP type ethernet frame; By its common ethernet port and the mutual non-PTP type ethernet frame of common ethernet switching device, wherein, this non-PTP type ethernet frame is handled by common ethernet switching device; And, carry out the time synchronized of IEEE1588 ethernet port and Ethernet according to this PTP type ethernet frame.
As shown in Figure 2, shown the block diagram of an embodiment of time synchronism apparatus 100 provided by the present invention, comprise ethernet port to 110, multiplex/demultiplex unit 120 and CPU 130.
For 110, its number is at least one for ethernet port.Preferred embodiment is a plurality of, according to the actual operating position of this common ethernet switching device port, uses the respective counts destination interface right.For instance, if a common ethernet switching device is by three common port A1, A2 and A3 and local device, comprise the equipment that need carry out the equipment of time synchronized and not need to carry out time synchronized, carry out the ethernet frame exchange of non-PTP type, time synchronism apparatus 100 so provided by the present invention needs 3 groups of ethernet ports of corresponding employing right;
Wherein, each ethernet port is to 110 an IEEE1588 ethernet port 111 and common ethernet ports 112 that comprise mutual correspondence; This IEEE1588 ethernet port 111 is used for access network based on ethernet, for the PTP type ethernet frame rise time stabs; This common ethernet port 112 is used for being connected with this common ethernet switching device; With example above-mentioned, the port A1, the A2 that are exactly common ethernet port 112 that three groups of ethernet ports is right are connected with this common ethernet switching device respectively with A3, with corresponding IEEE1588 ethernet port 111 respectively access network based on ethernet be connected with long-range IEEE1588 equipment.
Ethernet port comprises to the structure of the IEEE1588 ethernet port 111 in 110 as shown in Figure 3A:
Ethernet frame transceiver module 1111 by circuit or optical fiber access network based on ethernet, by MAC interface connection multiplexing/demultiplexing unit 120, is used for the I/O ethernet frame; In general, this ethernet frame transceiver module 1111 can adopt MII (Media Independent Interface, Media Independent Interface) or GMII (Gigabit Media Independent Interface, gigabit Media Independent Interface);
First internal clocking 1112 is used to write down the local zone time of place IEEE1588 ethernet port 111;
The very first time is stabbed generation module 1113, is connected with ethernet frame transceiver module 1111 with first internal clocking 1112, is used for the local zone time according to 1112 expressions of first internal clocking, for the PTP type ethernet frame rise time of I/O stabs;
Common, it is the hardware timestamping generation unit that this very first time is stabbed generation module 1113, is arranged in each IEEE1588 ethernet port 111, to be less than the synchronous error of microsecond level; It can pass through at MAC or coil extension FPGA (Field Programmable Gate Array, field programmable gate array) in physical layer (PHY) or on the MII/GMII interface between MAC and the PHY to be realized.
First cpu i/f 1114, stab generation module 1113 with the very first time and be connected (not shown) with first internal clocking 1112, being used for stabbing the very first time timestamp that generation module 1113 generates sends to CPU 130 and handles, and transmit the control command of CPU 130 to first internal clocking 1112, to regulate this first internal clocking 1112.
As can be seen, IEEE1588 ethernet port 111 itself can either be synchronous to realize with higher level Master node by ethernet line transmitting-receiving PTP type ethernet frame as Slave, in the time of again can be as Master temporal information be passed to the Slave of subordinate node.
For multiplex/demultiplex unit 120, it is arranged on this ethernet port between 110 the IEEE1588 ethernet port 111 and common ethernet port 112, be used to discern and separate the ethernet frame that IEEE1588 ethernet port 111 receives, the non-PTP type ethernet frame of input is transferred to common ethernet port 112, the PTP type ethernet frame of input is transferred to CPU 130, and will sends to Ethernet by IEEE1588 ethernet port 111 from the output ethernet frame of common ethernet port 112 and CPU 130;
As can be seen, for the ethernet frame that common ethernet switching device in the prior art can't be handled the PTP type, time synchronism apparatus 100 separates this ethernet frame of two types by multiplex/demultiplex unit 120, and handled respectively, thereby provide support for PTP type ethernet frame.
Concrete, an embodiment of multiplex/demultiplex unit 120 structures comprises shown in Fig. 3 B:
The 3rd cpu i/f 1201 is connected with CPU 130, is used to provide the interface of the PTP type ethernet frame transmitting-receiving between multiplex/demultiplex unit 120 and the CPU 130;
Demultiplexing discrimination module 1202, with ethernet port 110 IEEE1588 ethernet port 111 is connected, be used for the ethernet frame that this IEEE1588 ethernet port 111 receives is discerned, and send to ethernet port respectively and 110 pairing PTP are received formations 1203 and non-PTP receive in addition buffer memory of formation 1204;
Respectively corresponding each ethernet port receives formation 1203 to 110 PTP, is connected (not shown) with the 3rd cpu i/f 1201, is used for the PTP type ethernet frame of this formation buffer memory is sent to CPU 130 by the 3rd cpu i/f 1201;
Respectively corresponding each ethernet port receives formation 1204 to 110 non-PTP, with corresponding ethernet port 110 common ethernet port 112 is connected, be used for the non-PTP type ethernet frame of this formation buffer memory is sent to the common ethernet switching device that is connected by corresponding common ethernet port 112, carry out the exchanges data of normal non-PTP type ethernet frame by it;
Respectively corresponding each ethernet port is connected (not shown) to 110 PTP transmit queue 1205 with the 3rd cpu i/f 1201, is used for the PTP type ethernet data frame of buffer memory CPU 130 by 1201 transmissions of the 3rd cpu i/f;
Respectively corresponding each ethernet port is to 110 non-PTP transmit queue 1206, with corresponding ethernet port 110 common ethernet port 112 is connected, is used for the ethernet frame of the non-PTP type that this common ethernet switching device of buffer memory sends by this common ethernet port 112;
Multiplexing scheduler module 1207, with this PTP transmit queue 1205, non-PTP transmit queue 1206 and this ethernet port 110 IEEE1588 ethernet port 111 is connected, be used for transmission strategy according to CPU 130 settings, the ethernet frame of corresponding scheduling PTP transmit queue 1205 or non-PTP transmit queue 1206 also passes through corresponding IEEE1588 ethernet port 111 outputs, promptly sends to Ethernet.
In the above-mentioned multiplex/demultiplex unit 120 that provides, general, demultiplexing discrimination module 1202 is that the media access controller (MAC) by data link layer receives the input ethernet frame from IEEE1588 ethernet port 111, multiplexing scheduler module 1207 is to send the output ethernet frame by MAC to IEEE1588 ethernet port 111, non-PTP receives formation 1204 and non-PTP transmit queue 1206 also carries out the mutual of non-PTP type ethernet frame by MAC and common ethernet port 1120, shown in Fig. 3 B.
Further it may be noted that, be among the embodiment of multiplex/demultiplex unit 120 shown in Fig. 3 B, only shown multiplex/demultiplex unit 120 corresponding to an ethernet port to 110 structure, but those of ordinary skills can understand, the support of handling can be transmitted for many ethernet ports provide 110 in this multiplex/demultiplex unit 120, as long as being set, the PTP of respective number receives formation 1203, non-PTP receives formation 1204, PTP transmit queue 1205 and non-PTP transmit queue 1206 get final product, simultaneously, demultiplexing discrimination module 1202 respectively with a plurality of IEEE1588 ethernet ports 111, PTP receives formation 1203 and receives formation 1204 with non-PTP and be connected, multiplexing scheduler module 1207 respectively with a plurality of PTP transmit queues 1205, non-PTP transmit queue 1206 and IEEE Ethernet 1588 port ones 11 connect.
For CPU 130, it can be provided with time for reading synchronizer 100 in the state of each part, particularly it is connected 110 IEEE1588 port one 11 with multiplex/demultiplex unit 120 and ethernet port, be used for agreement, regulate the internal clocking of this ethernet port 110 IEEE1588 ethernet port 111 according to the timestamp of PTP type ethernet frame based on PTP; In case of necessity, also generate and export corresponding PTP type ethernet frame;
Wherein, CPU 130 did not illustrate in the drawings with being connected of IEEE1588 ethernet port 111, but those of ordinary skills can understand, there is annexation between CPU 130 and the IEEE1588 ethernet port 111, to carry out the adjusting of IEEE1588 ethernet port 111 internal clockings.Concrete, the operation that CPU 130 is regulated first internal clocking 1112 of IEEE1588 ethernet port 111 according to timestamp can be realized according to the clock synchronization of IEEE1588 ethernet port in the prior art.
In sum as can be seen, by the time synchronism apparatus 100 that the embodiment of the invention provided, can be based on existing common ethernet switching device, the non-PTP type of transparent transmission ethernet frame keeps the function of exchange of the non-PTP type ethernet frame of common ethernet switching device; And, the processing for PTP type ethernet frame is provided, realize smooth upgrade from non-Time Synchronization Network to the time synchronizing network; Thereby, the fusion transmission of PTP type ethernet frame and non-PTP type ethernet frame in the support Ethernet, avoid in the prior art that the PTP type data frame can't obtain handling the network resources waste that is caused in the Ethernet, and need not the existing network annexation is made amendment, can realize making full use of conventional network resources.
Preferable, time synchronism apparatus provided by the present invention can further be realized the whole network time synchronized, please in conjunction with Fig. 4, has shown the block diagram of time synchronism apparatus 100 another embodiment provided by the present invention.
In the embodiment shown in fig. 4, time synchronism apparatus 100 at ethernet port to 110, on the basis of multiplex/demultiplex unit 120 and CPU 130, also comprise the time synchronized unit and be used for being connected with the local zone time synchronizer, receive/send out the local synchronous port 150 that PPS synchronization pulse and timestamp transmit signal, this time synchronized unit 140 and ethernet port are connected 110 IEEE1588 ethernet port 111, local synchronous port 150 and CPU 130.
This CPU 130 be used for according to selected, obtain first internal clocking 1112 of IEEE1588 ethernet port 111 of time synchronized or the internal clocking of the local zone time synchronizer that selected local synchronous port 150 is connected, second internal clocking in the lock in time lock unit 140; And according to second internal clocking of obtaining time synchronized, first internal clocking 1112 of other IEEE1588 ethernet ports 111 and the internal clocking of local zone time synchronizer that local synchronous port 150 connects synchronously.
Wherein, the local zone time synchronizer that local synchronous port 150 is connected also can be used as time reference, this local zone time synchronizer can comprise Ethernet switch, router, the 3G machine station that need carry out time synchronized, can comprise that also GPS receiver etc. provides the equipment of time reference.
Synchronous in order to realize above-mentioned local zone time, this IEEE1588 ethernet port 111 also comprises shown in Fig. 5 A:
The first pulse-triggered module 1115 that is connected with first internal clocking 1112, be connected (not shown) with first cpu i/f 114, be used for according to the setting of CPU 130 by first cpu i/f 1114, produce the PPS synchronization pulse and export to time synchronized unit 140, read this PPS synchronization pulse time corresponding and stab and send to CPU 130;
The first pulse capture module 1116 that is connected with first internal clocking 1112, be connected (not shown) with first cpu i/f 114, the PPS synchronization pulse that is used for 140 inputs of time of reception lock unit, effective triggering edge of setting by first cpu i/f 1114 according to CPU 130 reads this PPS synchronization pulse time corresponding stamp and sends to CPU 130.
It is to be noted, the above-mentioned first pulse-triggered module 1115 and the first pulse capture module 1116 itself have the function that timestamp generates, it is connected with first internal clocking 1112, stabs and sends to CPU 130 by first cpu i/f 1114 based on the local zone time rise time and handle.
Corresponding, shown in Fig. 5 B, shown the block diagram of time synchronized unit 140 1 specific embodiments that the embodiment of the invention provided, comprising:
Second cpu i/f 1401 is connected with CPU 130;
Second internal clocking 1402 is used for lock unit 140 local zone time writing time; This second internal clocking 1402 is connected (not shown) by second cpu i/f 1401 with CPU 130, is used for adjusting the local zone time of time synchronized unit 140 according to the setting of CPU 130 by second cpu i/f 1401; General, this second internal clocking 1402 can be a set of counters, counter can be controlled by CPU 130, realizes the adjusting of clock speed, the time synchronized of final realization and superior node;
The second pulse-triggered module 1403 that is connected with second internal clocking 1402, be connected (not shown) with second cpu i/f 1401, be used for according to the setting of CPU 130 by second cpu i/f 1401, produce the PPS synchronization pulse, and send to IEEE1588 ethernet port 111 and local synchronous port 150 respectively, and, generate this PPS synchronization pulse time corresponding stamp and send to CPU 130 by second cpu i/f 1401;
The second pulse capture module 1404 that is connected with second internal clocking 1402, be connected (not shown) with second cpu i/f 1401, be used to receive the PPS synchronization pulse of IEEE1588 ethernet port 111 and 150 inputs of local synchronous port, effective triggering edge of setting by second cpu i/f 1401 according to CPU 130 generates this PPS synchronization pulse time corresponding stamp and sends to CPU 130;
Timestamp transceiver module 1405 is connected with this this locality synchronous port 150, is used for receiving/send out timestamp to transmit signal, and this timestamp transmits signal and carries timestamp;
Then in order to realize the time synchronized of the whole network, CPU 130 is carried out following operation:
If with an IEEE1588 ethernet port 111 is under the situation of reference time source, the different time that CPU 130 is used for more respectively the same PPS synchronization pulse that reads from the second pulse capture module 1404 of first pulse-triggered module 1115 of chosen IEEE1588 ethernet port 111 and time synchronized unit 140 stabs, and adjusts second internal clocking 1402 of time synchronized unit 140 by second cpu i/f 1401;
If with a local synchronous port 150 is under the situation of reference time source, CPU 130 is used for the PPS synchronization pulse of more chosen local synchronous port 150 at the second pulse capture module 1404 timestamp that generates and the corresponding timestamp that this timestamp transceiver module 1405 obtains, and adjusts second internal clocking 1402 of time synchronized unit 140 by second cpu i/f 1401.
No matter select which port, after second internal clocking has been obtained time synchronized, the different time that CPU 130 also is used for more respectively the same PPS synchronization pulse that reads from the second pulse-triggered module 1403 of first pulse capture module 1116 of IEEE1588 ethernet port 111 and time synchronized unit 140 stabs, and adjusts first internal clocking 1112 of IEEE1588 ethernet ports 111 respectively by first cpu i/f 1114; And, instruct the second pulse-triggered module 1403 to pass through local synchronous port 150 and send the PPS synchronization pulse, and the instruction time is stabbed the timestamp transmission signal transmission correspondent time of transceiver module 1405 by this this locality synchronous port 150 to other local zone time synchronizer.
As can be seen, after having introduced time synchronized unit 140 and local synchronous port 150, the time synchronism apparatus 100 that the embodiment of the invention provided can further provide PPS time service for the local zone time synchronizer.Be connected owing to belong to closely between common ethernet switching device and the local zone time synchronizer, therefore, adopting local synchronous port 150 in actual applications is to make things convenient for feasiblely, and has the advantage of being convenient to realize.And the time synchronized of time synchronism equipment between the strange land then realizes both can by the IEEE1588 ethernet port 111 that time synchronism apparatus 100 provides.Like this, adopt IEEE1588 Network Synchronization mode between the remote node, adopt the PPS time service method of synchronization in the local node between in-plant multiple devices, can make full use of IEEE1588 standard synchronous working distance and PPS and realize simple advantage synchronously.
It is to be noted, in Fig. 5 B, only the annexation with time synchronized unit 140 and an IEEE1588 ethernet port 111 and a local synchronous port 150 is that example is illustrated, but one of ordinary skill in the art will appreciate that, this time synchronized unit 140 often is connected with a plurality of IEEE1588 ethernet ports 111, promptly the second pulse capture module 1404 can be caught multichannel PPS synchronization pulse from different IEEE1588 ethernet ports 111 and a plurality of local synchronous port 150, the second pulse-triggered module sends multichannel PPS synchronization pulse to different IEEE1588 ethernet ports 111 and a plurality of local synchronous port 150, and timestamp transceiver module 1405 carries out the transmitting-receiving that timestamp transmits signal with a plurality of local synchronous ports 150 simultaneously.
Further, because above-mentioned Fig. 2 or time synchronism apparatus 100 shown in Figure 4 pass through a plurality of IEEE1588 ethernet port access network based on ethernet, also may be connected with the local zone time synchronizer by a plurality of local synchronous ports, and often there is difference in the above-mentioned internal clocking frequency that relates to, therefore, may cause the shake of time synchronization process if each side's transmission of all carrying out lock-out pulse according to local internal clocking frequency fully is synchronous.
In order to overcome this problem, the time synchronized unit 140 that the embodiment of the invention provided further can comprise clock conversion module 1406, with IEEE1588 ethernet port 111, local synchronous port 150 and second internal clocking 1402 is imported and/or output frequency synchronizing clock signals mutual, the Frequency Synchronization clock signal that is used for being selected as the IEEE1588 ethernet port 111 of reference time source or local synchronous port 150 is as the reference frequency clock signal, offer other IEEE1588 ethernet port 111, other the local synchronous port 150 and second internal clocking 1402 are as clock work frequency separately.Like this, can reduce the shake in the time synchronization process, improve synchronization accuracy.
Accordingly, embodiments of the invention also provide a kind of clock synchronization system 10, as shown in Figure 6, comprising:
Ethernet 200, this Ethernet 200 is supported the IEEE1588 standard, can provide network time synchronization for the strange land node; Wherein, the ethernet frame that transmits on the Ethernet comprises PTP type ethernet frame and non-PTP type ethernet frame;
Common ethernet switching device 300 carries out the processing of non-PTP type ethernet frame in the Time Synchronization Network;
The time synchronism apparatus of describing in the foregoing description 100, be arranged between common ethernet switching device 300 and the Time Synchronization Network 200, by the non-PTP type of transparent transmission ethernet frame and processing PTP type ethernet frame, realized network upgrade based on common ethernet switching device 300.
Preferable, also comprise the local zone time synchronizer 400 that is connected with time synchronism apparatus 100, carry out time synchronized between local zone time synchronizer 400 and the Ethernet 200 by time synchronism apparatus 100;
Wherein, time synchronism apparatus 100 promptly can obtain time synchronized as downstream site, also can be used as the synchronizer At All Other Times in the superior node synchronous ethernet 200.
Concrete, this time synchronism apparatus 100 can be connected with local zone time synchronizer 400 by local synchronous port.
Below to the advantage of this clock synchronization system 10 comparative illustration in addition:
In the prior art, local zone time synchronizer 400 is by common ethernet switching device 300 access network based on ethernet, but because common ethernet switching device 300 can't be handled PTP type ethernet frame, therefore the ethernet frame of only non-PTP type can transmit.In this case, not only waste Internet resources, and needs have been carried out the local zone time synchronizer 400 of time synchronized, be necessary for its corresponding within limits GPS of setting up receiver.
But in the present embodiment, keep original network architecture constant, handle for common ethernet switching device 300 by the non-PTP type of time synchronism apparatus 100 transparent transmissions ethernet frame, and time synchronism apparatus 100 itself is supported the processing of PTP type ethernet frame, be connected with local zone time synchronizer 400 by the PPS time service, realize the time synchronized of local zone time synchronizer 300, thereby the transmission and the processing of PTP type ethernet frame in the support Ethernet, realize making full use of of ethernet line resource, need not additionally to set up receiving system.
Accordingly, the present invention also provides a kind of method for synchronizing time, be applicable to above-mentioned time synchronism apparatus, this time synchronism apparatus is provided with common one to one ethernet port and IEEE1588 ethernet port, promptly support and the combination of common ethernet switching device, can insert the Ethernet of supporting the IEEE1588 standard again.
As an embodiment of this method for synchronizing time, time synchronism apparatus is carried out following steps:
By IEEE1588 ethernet port and the mutual ethernet frame of Ethernet of supporting the IEEE1588 standard, comprise PTP type ethernet frame and non-PTP type ethernet frame;
By the common ethernet port and the mutual non-PTP type ethernet frame of common ethernet switching device of correspondence, it is carried out by common ethernet switching device handle;
And, carry out the time synchronized of described IEEE1588 port and described Ethernet according to described PTP type ethernet frame.
Above-mentioned steps has supported the multiplex/demultiplex of PTP type ethernet frame and non-PTP type ethernet frame to handle, thereby has realized the transparent transmission of non-PTP type ethernet frame, and to the processing of PTP type ethernet frame.
Wherein, to common ethernet port direction, its concrete demultiplexing processing mode can comprise with reference to figure 7A from the IEEE1588 ethernet port:
S11, receive ethernet frame from the Ethernet of supporting the IEEE1588 standard by the IEEE1588 ethernet port, general, be MAC receives the ethernet line transmission from the MII interface Frame;
S12, carry out type identification, comprise PTP type ethernet frame and non-PTP type ethernet frame according to the frame head of ethernet frame; Concrete recognition rule can be by setting in advance, and is the ethernet frame of PTP type such as the ethernet frame with specific multicast mac address or specific multicast ip address;
The PTP type ethernet frame of S13, buffer memory input; In when, the CPU inquiry taking place or carrying out interruption when, execution in step S15; This just means that also the buffer status of PTP ethernet frame can be for the CPU inquiry or with interrupt mode notice CPU, so that CPU carries out reading of PTP type ethernet frame;
The non-PTP type ethernet frame of S14, buffer memory input, and when reaching default number (such as 10 bytes), send to common ethernet switching device by the common ethernet port of correspondence, carry out by this ethernet switching device and handle;
S15, carry out inter-process, in the time of necessary, can generate the PTP type ethernet frame of output according to the PTP agreement.
As can be seen, by above-mentioned steps S11~S15, method for synchronizing time provided by the present invention can be realized the demultiplexing of PTP type ethernet frame and non-PTP type ethernet frame is received.
Accordingly, the same support of method for synchronizing time provided by the present invention outwards exported ethernet frame from the IEEE1588 ethernet port, it is PTP type ethernet frame and non-PTP type ethernet frame multiplexing process from the output of IEEE1588 ethernet port, its concrete multiplexing process mode can comprise with reference to figure 7B:
S11 ', receive the non-PTP type ethernet frame and the buffer memory of the output of common ethernet switching device by common ethernet port; General, be that MAC receives non-PTP type ethernet frame from the MII interface;
The PTP type ethernet frame of S12 ', caching process output; It may be noted that this PTP type ethernet frame is by the inner execution processing of time synchronism apparatus;
Whether the non-PTP type ethernet frame of S13 ', monitoring buffer memory reaches default number, is execution in step S14 ' then, otherwise execution in step S15 ';
It is pointed out that the monitoring among this step S13 ' is general according to the transmission priority rule that sets in advance, and the buffer status of non-PTP ethernet frame and PTP ethernet frame is determined the transmission object.General, unaffected substantially in order to guarantee common ethernet side port communications, the preferential non-PTP ethernet frame that sends institute's buffer memory all is set, promptly when being sent completely, previous frame judges the non-PTP ethernet frame of institute's buffer memory earlier, as long as be cached with the data of certain byte number (as being set at 10 bytes), just send one or the non-PTP type ethernet frame that specifies number, shown in step S14 '; Have a PTP type ethernet frame at least otherwise judge whether to be cached with, if, i.e. one or the PTP type ethernet frame that specifies number, otherwise do not send, continue to wait for also to continue to repeat to judge, shown in step S15 '.
S14 ', export at least one of non-PTP type ethernet frame to the Ethernet of supporting the IEEE1588 standard;
Whether S15 ', monitoring are cached with PTP type ethernet frame, are execution in step S16 ' then, otherwise re-execute step S13 ';
S16 ', at least one of the Ethernet output PTP type ethernet frame of supporting the IEEE1588 standard, and execution in step S13 ' again.
As can be seen, above-mentioned steps S11 '~S16 ' has supported from the multiplexing output of the ethernet frame of IEEE1588 port.
The state that it may be noted that the PTP type ethernet frame of institute's buffer memory can be for CPU inquiry or whether enough with its space of interrupt mode notice CPU, so that CPU takes corresponding regulation measure.
Further, the ethernet frame that the IEEE1588 ethernet port sends comprises the PTP type ethernet frame from the non-PTP type ethernet frame of common ethernet port and inter-process generation, in order to guarantee when the full line speed of common ethernet port is worked, the IEEE1588 ethernet port still also has small amount of bandwidth to be used for sending PTP type ethernet frame, preferable, can be provided with and support the mutual ethernet frame of the Ethernet of IEEE1588 standard at interval (as 8 bytes) less than with the mutual ethernet frame of common ethernet switching device (as 12 bytes) at interval.
It may be noted that, the step of carrying out the time synchronized of IEEE1588 port and Ethernet according to PTP type ethernet frame comprises in the above-described embodiments: the IEEE1588 ethernet port stabbed for the PTP type ethernet frame rise time of receiving/sending out, and regulate first internal clocking of IEEE1588 ethernet port, thereby realize the time synchronized with Ethernet according to timestamp.
Preferable, when the time synchronizer was provided with local second internal clocking and is connected with the local zone time synchronizer by local synchronous port, time synchronism apparatus was also carried out step as shown in Figure 8, with the time synchronized of realization local zone time synchronizer and Ethernet:
One of one of S21, selected its IEEE1588 ethernet port or its local synchronous port are reference time source;
S22, connect the second local synchronously internal clocking of internal clocking of local zone time synchronizer according to IEEE1588 ethernet port first internal clocking or local synchronous port;
S23, after second internal clocking is obtained time synchronized, according to described second internal clocking synchronously first internal clocking of other IEEE1588 ethernet ports and the internal clocking that other local synchronous ports connect the local zone time synchronizer.
Like this, can by with time synchronism apparatus as Master node or Slave node, realize the time synchronized of the whole network.
Concrete, shown in Fig. 9 A, the step of the second local internal clocking comprises synchronously:
When one of selected IEEE1588 ethernet port is reference time source, carry out:
S221, this selected IEEE1588 ethernet port are exported the PPS synchronization pulse, and generate the time stamp T 11 of this PPS synchronization pulse based on first internal clocking;
S222, time synchronism apparatus generate the time stamp T 12 of this PPS synchronization pulse based on second internal clocking;
S223, comparison T 11And T 12, adjust clock according to deviation, with second internal clocking of synchronous this locality.
When one of selected local synchronous port is reference time source, carry out:
PPS synchronization pulse and timestamp that S221 ', the local zone time synchronizer that is connected by local synchronous port reception send transmit signal;
S222 ', generate the timestamp of this PPS synchronization pulse;
S223 ', comparison timestamp transmit timestamp and the timestamp of this generation, second internal clocking of this locality synchronously that signal provides.
Shown in Fig. 9 B, the step of the second local internal clocking comprises synchronously:
First internal clocking of synchronous other IEEE1588 ethernet ports, as follows:
S231, time synchronism apparatus are exported the PPS synchronization pulse, and generate the time stamp T of this PPS synchronization pulse based on local second internal clocking 22
S232, receive other IEEE1588 ethernet ports of this PPS synchronization pulse, generate the time stamp T of this PPS synchronization pulse respectively based on first internal clocking 21
S233, comparison T 21And T 22, adjust clock according to deviation, with first internal clocking of synchronous other IEEE1588 ethernet ports.
And other local synchronous ports connect the internal clocking of local zone time synchronizer synchronously, and are as follows:
S231 ', generate the timestamp of PPS synchronization pulse and this PPS synchronization pulse according to second internal clocking;
S232 ', by other local synchronous ports this PPS synchronization pulse and the timestamp that carries this timestamp are transmitted signal and send to corresponding local zone time synchronizer.
Preferable, in said process,, improving synchronization accuracy in order to reduce the shake of time synchronization process, time synchronism apparatus can also be carried out following steps:
To be selected as the Frequency Synchronization clock signal of the described IEEE1588 ethernet port of reference time source or described local synchronous port as the reference frequency clock signal, send to other described IEEE1588 ethernet port, other described local synchronous port and second internal clocking, as its clock operating frequency.
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, described program can be stored in the computer read/write memory medium, this program comprises the steps: when carrying out
By described IEEE1588 ethernet port and the mutual ethernet frame of Ethernet of supporting the IEEE1588 standard, comprise PTP type ethernet frame and non-PTP type ethernet frame;
By described common ethernet port and the mutual described non-PTP type ethernet frame of common ethernet switching device, it is carried out by described common ethernet switching device handle;
Carry out the time synchronized of described IEEE1588 port and described Ethernet according to described PTP type ethernet frame.
Described storage medium comprises: ROM/RAM (Read Only Memory/Random-AccessMemory, read-only memory/random-access memory), magnetic disc or CD etc.
Though described the present invention with reference to several exemplary embodiments, should be appreciated that used term is explanation and exemplary and nonrestrictive term.The spirit or the essence that do not break away from invention because the present invention can specifically implement in a variety of forms, so be to be understood that, the foregoing description is not limited to any aforesaid details, and should be in the spirit and scope that claim limited of enclosing explain widely, therefore fall into whole variations in claim or its equivalent scope and remodeling and all should be the claim of enclosing and contain.

Claims (17)

1. a time synchronism apparatus is characterized in that, is provided with common one to one ethernet port and IEEE1588 ethernet port; Described time synchronism apparatus is by its IEEE1588 ethernet port and the mutual ethernet frame of Ethernet of supporting the IEEE1588 standard, and described ethernet frame comprises PTP type ethernet frame and non-PTP type ethernet frame; By its common ethernet port and the mutual non-PTP type ethernet frame of common ethernet switching device, wherein, described non-PTP type ethernet frame is handled by described common ethernet switching device; And, carry out the time synchronized of described IEEE1588 ethernet port and described Ethernet according to described PTP type ethernet frame.
2. time synchronism apparatus according to claim 1 is characterized in that, described time synchronism apparatus comprises:
Ethernet port is right; Wherein, a described IEEE1588 ethernet port and the described common ethernet port of each ethernet port to comprising mutual correspondence; Wherein, described IEEE1588 ethernet port is to stab the PTP type ethernet frame rise time;
The multiplex/demultiplex unit, be arranged between described ethernet port right the IEEE1588 ethernet port and common ethernet port, be used to discern and separate the ethernet frame that described IEEE1588 ethernet port receives, the non-PTP type ethernet frame of input is transferred to described common ethernet port, the PTP type ethernet frame of input is transferred to CPU, and will send to described IEEE1588 ethernet port from the output ethernet frame of described common ethernet port and described CPU, to export to described Ethernet;
CPU is connected with described IEEE1588 ethernet port with described multiplex/demultiplex unit, is used for the agreement based on PTP, regulates the internal clocking of described IEEE1588 ethernet port according to the timestamp of PTP type ethernet frame.
3. time synchronism apparatus according to claim 2 is characterized in that, the IEEE1588 ethernet port of described ethernet port centering comprises:
The ethernet frame transceiver module inserts described Ethernet by cable or optical fiber, connects described multiplex/demultiplex unit by the MAC interface, is used for the I/O ethernet frame;
First internal clocking is used to write down the local zone time of place IEEE1588 ethernet port;
The very first time is stabbed generation module, is connected with described ethernet frame transceiver module with described first internal clocking, is used for the local zone time represented according to described first internal clocking, is the PTP type ethernet frame rise time stamp of I/O;
First cpu i/f, stabbing generation module with the described very first time is connected with first internal clocking, the timestamp that is used for generating sends to described CPU, and transmits the control command of described CPU to described first internal clocking, to regulate described first internal clocking.
4. time synchronism apparatus according to claim 2 is characterized in that, described multiplex/demultiplex unit comprises:
The 3rd cpu i/f is connected with described CPU, is used to provide the interface of the PTP type ethernet frame transmitting-receiving between described multiplex/demultiplex unit and the described CPU;
The demultiplexing discrimination module, be connected with described IEEE1588 ethernet port, be used for the input ethernet frame that described IEEE1588 ethernet port receives is discerned, and send to described ethernet port respectively and pairing PTP is received formation and non-PTP receive in addition buffer memory of formation;
The right PTP of respectively corresponding each ethernet port receives formation, is connected with described the 3rd cpu i/f, is used for the PTP type ethernet frame of this formation buffer memory is sent to described CPU by described the 3rd cpu i/f;
The right non-PTP of respectively corresponding each ethernet port receives formation, be connected with corresponding common ethernet port, be used for the non-PTP type ethernet frame of this formation buffer memory is sent to the common ethernet switching device that is connected by corresponding common ethernet port;
The right PTP transmit queue of respectively corresponding each ethernet port is connected with described the 3rd cpu i/f, is used for the ethernet frame of buffer memory CPU by the PTP type of described the 3rd cpu i/f transmission;
The right non-PTP transmit queue of respectively corresponding each ethernet port is connected with corresponding common ethernet port, is used for the ethernet frame of the described common ethernet switching device of buffer memory by the non-PTP type of described common ethernet port transmission;
Multiplexing scheduler module, be connected with described PTP transmit queue, non-PTP transmit queue and described IEEE1588 ethernet port, be used for the transmission strategy according to described CPU setting, the ethernet frame of described PTP transmit queue of corresponding scheduling or non-PTP transmit queue also passes through corresponding IEEE1588 ethernet port output.
5. according to the arbitrary described time synchronism apparatus of claim 1-4, it is characterized in that, described time synchronism apparatus also comprise the time synchronized unit and be used for being connected with the local zone time synchronizer, receive/send out the local synchronous port that PPS synchronization pulse and timestamp transmit signal, right IEEE1588 ethernet port, described local synchronous port and the described CPU of described time synchronized unit and described ethernet port is connected; Described CPU be used for according to selected, obtain first internal clocking of IEEE1588 ethernet port of time synchronized or the internal clocking of the selected local zone time synchronizer that local synchronous port connected, second internal clocking in the synchronous described time synchronized unit; And according to second internal clocking of obtaining time synchronized, first internal clocking of other IEEE1588 ethernet ports and the local synchronous port internal clocking that connects the local zone time synchronizer synchronously.
6. time synchronism apparatus according to claim 5 is characterized in that, described IEEE1588 ethernet port also comprises:
The first pulse-triggered module that is connected with described first internal clocking, be used for according to of the setting of described CPU by described first cpu i/f, produce the PPS synchronization pulse and export to described time synchronized unit, read described PPS synchronization pulse time corresponding and stab and send to described CPU;
The first pulse capture module that is connected with described first internal clocking, be used to receive the PPS synchronization pulse of described time synchronized unit input, effective triggering edge of setting by described first cpu i/f according to described CPU generates the PPS synchronization pulse time corresponding stamp of described input and sends to described CPU.
7. time synchronism apparatus according to claim 6 is characterized in that, described time synchronized unit comprises:
Second cpu i/f is connected with described CPU;
Second internal clocking is used to write down the local zone time of described time synchronized unit, and local zone time can be adjusted by described second cpu i/f by described CPU;
The second pulse-triggered module that is connected with described second internal clocking, be used for according to of the setting of described CPU by described second cpu i/f, produce the PPS synchronization pulse and send to IEEE1588 ethernet port and local synchronous port respectively, and, generate described PPS synchronization pulse time corresponding stamp and send to described CPU by described second cpu i/f;
The second pulse capture module that is connected with described second internal clocking, be used to receive the PPS synchronization pulse of IEEE1588 ethernet port and the input of local synchronous port, effective triggering edge of setting by described second cpu i/f according to described CPU generates described PPS synchronization pulse time corresponding stamp and sends to described CPU;
The timestamp transceiver module is connected with described local synchronous port, is used for receiving/send out described timestamp to transmit signal, and described timestamp transmission signal carries timestamp;
Then, at a selected IEEE1588 ethernet port is under the situation of reference time source, the different time that described CPU is used for more respectively the same PPS synchronization pulse that reads from the second pulse capture module of first pulse-triggered module of chosen IEEE1588 ethernet port and time synchronized unit stabs, and adjusts second internal clocking of described time synchronized unit by described second cpu i/f;
At a selected local synchronous port is under the situation of reference time source, the corresponding timestamp that timestamp that the PPS synchronization pulse that described CPU is used for more chosen local synchronous port generates in the second pulse capture module and described timestamp transceiver module obtain is adjusted second internal clocking of described time synchronized unit by described second cpu i/f;
And, described CPU is used for second internal clocking of having obtained time synchronized according to described, relatively the different time of the same PPS synchronization pulse that reads from the second pulse-triggered module of the first pulse capture module of IEEE1588 ethernet port and time synchronized unit stabs, and adjusts first internal clocking of described IEEE1588 ethernet port respectively by first cpu i/f; And, instruct the described second pulse-triggered module to send the PPS synchronization pulse to other local zone time synchronizer, and instruct described timestamp transceiver module to transmit signal transmission correspondent time by the timestamp of described local synchronous port by described local synchronous port.
8. time synchronism apparatus according to claim 7, it is characterized in that, described time synchronized unit also comprises the clock conversion module, with described IEEE1588 ethernet port, described local synchronous port and described second internal clocking are imported and/or output frequency synchronizing clock signals mutual, the Frequency Synchronization clock signal that is used for being selected as the described IEEE1588 ethernet port of reference time source or described local synchronous port is as the reference frequency clock signal, offer other described IEEE1588 ethernet port, other described local synchronous port and second internal clocking are as its clock operating frequency.
9. a clock synchronization system comprises Ethernet and common ethernet switching device, and described common ethernet switching device is used to handle the ethernet frame of non-PTP type; It is characterized in that, described clock synchronization system also comprise as claim 1-8 arbitrary as described in time synchronism apparatus, this time synchronism apparatus is arranged between described common ethernet switching device and the described Ethernet.
10. clock synchronization system according to claim 9 is characterized in that, also comprises the local zone time synchronizer that is connected with described time synchronism apparatus, carries out time synchronized between described local zone time synchronizer and the Ethernet by described time synchronism apparatus.
11. a method for synchronizing time is applicable to arbitrary described time synchronism apparatus as claim 1-8, described time synchronism apparatus is provided with common one to one ethernet port and IEEE1588 ethernet port; It is characterized in that described time synchronism apparatus is carried out following steps:
By described IEEE1588 ethernet port and the mutual ethernet frame of Ethernet of supporting the IEEE1588 standard, comprise PTP type ethernet frame and non-PTP type ethernet frame;
By described common ethernet port and the mutual described non-PTP type ethernet frame of common ethernet switching device, it is carried out by described common ethernet switching device handle;
Carry out the time synchronized of described IEEE1588 port and described Ethernet according to described PTP type ethernet frame.
12. method for synchronizing time according to claim 11 is characterized in that, describedly comprises by the step of IEEE1588 ethernet port with the mutual ethernet frame of Ethernet of supporting the IEEE1588 standard:
S11, receive ethernet frame from the Ethernet of described support IEEE1588 standard by described IEEE1588 ethernet port;
S12, carry out type identification, comprise the ethernet frame of PTP type and the ethernet frame of non-PTP type according to the frame head of described ethernet frame;
The PTP type ethernet frame of S13, the described input of buffer memory, in when, the CPU inquiry taking place or carrying out interruption when, execution in step S15;
The non-PTP type ethernet frame of S14, the described input of buffer memory, and when reaching default number, the common ethernet port by correspondence sends to described common ethernet switching device;
S15, carry out inter-process according to the PTP agreement;
And,
S11 ', receive the non-PTP type ethernet frame and the buffer memory of described common ethernet switching device output by described common ethernet port;
The PTP type ethernet frame of S12 ', caching process output;
Whether the non-PTP type ethernet frame of S13 ', the described buffer memory of monitoring reaches default number, is execution in step S14 ' then, otherwise execution in step S15 ';
S14 ', export at least one of described non-PTP type ethernet frame to the Ethernet of described support IEEE1588 standard;
Whether S15 ', monitoring are cached with PTP type ethernet frame, are execution in step S16 ' then, otherwise re-execute step S13 ';
S16 ', export at least one of described PTP type ethernet frame to the Ethernet of described support IEEE1588 standard, and execution in step S13 ' again.
13. according to claim 11 or 12 described method for synchronizing time, it is characterized in that, in the above-mentioned steps, with the mutual ethernet frame of the Ethernet of described support IEEE1588 standard at interval less than with the mutual ethernet frame of described common ethernet switching device at interval.
14. according to claim 11 or 12 described method for synchronizing time, it is characterized in that, when described time synchronism apparatus is provided with local second internal clocking and by local synchronous port when being connected with the local zone time synchronizer, described time synchronism apparatus is also carried out following steps, to realize the time synchronized between local zone time synchronizer and the Ethernet, comprising:
One of one of S21, selected its IEEE1588 ethernet port or its local synchronous port are reference time source;
S22, connect the second local synchronously internal clocking of internal clocking of local zone time synchronizer according to described IEEE1588 ethernet port first internal clocking or described local synchronous port;
S23, after described second internal clocking is obtained time synchronized, according to described second internal clocking synchronously first internal clocking of other IEEE1588 ethernet ports and the internal clocking that other local synchronous ports connect the local zone time synchronizer.
15. method for synchronizing time according to claim 14 is characterized in that, if one of selected IEEE1588 ethernet port is a reference time source, then described step S22 comprises:
S221, described IEEE1588 ethernet port are exported the PPS synchronization pulse, and generate the time stamp T of this PPS synchronization pulse based on first internal clocking 11
S222, time synchronism apparatus generate the time stamp T of described PPS synchronization pulse based on second internal clocking 12
S223, comparison T 11And T 12, the second local synchronously internal clocking;
If one of selected local synchronous port is a reference time source, then described step S22 comprises:
PPS synchronization pulse and timestamp that S221 ', the local zone time synchronizer that is connected by described local synchronous port reception send transmit signal;
The timestamp of S222 ', the described PPS synchronization pulse of generation;
S223 ', more described timestamp transmit timestamp and the timestamp of described generation, second internal clocking of this locality synchronously that signal provides.
16. method for synchronizing time according to claim 14 is characterized in that, among the described step S23 according to described second internal clocking synchronously the step of first internal clocking of other IEEE1588 ethernet ports comprise:
S231, time synchronism apparatus are exported the PPS synchronization pulse, and generate the time stamp T of this PPS synchronization pulse based on local second internal clocking 22
S232, receive described other IEEE1588 ethernet ports of described PPS synchronization pulse, generate the time stamp T of described PPS synchronization pulse respectively based on first internal clocking 21
S233, comparison T 11And T 12, first internal clocking of other IEEE1588 ethernet ports synchronously;
The step that connects the internal clocking of local zone time synchronizer according to synchronous other the local synchronous ports of described second internal clocking among the step S23 comprises:
S231 ', generate the timestamp of PPS synchronization pulse and described PPS synchronization pulse according to described second internal clocking;
S232 ', by other local synchronous ports described PPS synchronization pulse and the timestamp that carries described timestamp are transmitted signal and send to corresponding local zone time synchronizer.
17. method for synchronizing time according to claim 14 is characterized in that, described time synchronism apparatus is also carried out following steps:
To be selected as the Frequency Synchronization clock signal of the described IEEE1588 ethernet port of reference time source or described local synchronous port as the reference frequency clock signal, send to other described IEEE1588 ethernet port, other described local synchronous port and second internal clocking, as its clock operating frequency.
CN2008100851732A 2008-03-24 2008-03-24 Time synchronizer, time synchronization system and time synchronization method Expired - Fee Related CN101547083B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100851732A CN101547083B (en) 2008-03-24 2008-03-24 Time synchronizer, time synchronization system and time synchronization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100851732A CN101547083B (en) 2008-03-24 2008-03-24 Time synchronizer, time synchronization system and time synchronization method

Publications (2)

Publication Number Publication Date
CN101547083A true CN101547083A (en) 2009-09-30
CN101547083B CN101547083B (en) 2011-12-21

Family

ID=41193999

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100851732A Expired - Fee Related CN101547083B (en) 2008-03-24 2008-03-24 Time synchronizer, time synchronization system and time synchronization method

Country Status (1)

Country Link
CN (1) CN101547083B (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101834685A (en) * 2010-04-16 2010-09-15 华为技术有限公司 1588 message extracting and processing method and equipment
CN102098155A (en) * 2011-03-18 2011-06-15 北京国智恒电力管理科技有限公司 Method for realizing sub-microsecond synchronization accuracy based on PTP (Precision Time Protocol)
CN102340396A (en) * 2010-07-29 2012-02-01 高通创锐讯通讯科技(上海)有限公司 Time synchronization method for Ethernet passive optical network (EPON)
WO2012016507A1 (en) * 2010-08-02 2012-02-09 Huawei Technologies Co., Ltd. Transparent clocks in access networks
CN102404105A (en) * 2011-12-14 2012-04-04 盛科网络(苏州)有限公司 Device and method for realizing time synchronization on Ethernet switch
CN102447553A (en) * 2010-10-12 2012-05-09 研祥智能科技股份有限公司 Realizing device of accurate time synchronization protocol
WO2012062198A1 (en) * 2010-11-08 2012-05-18 中国移动通信集团公司 Time synchronization method and time synchronization device for mobile communications system
CN102780554A (en) * 2012-07-17 2012-11-14 中兴通讯股份有限公司 Method and system for realizing synchronization through 1588 protocol
WO2012174963A1 (en) * 2011-06-23 2012-12-27 中兴通讯股份有限公司 Method and device for selecting ptp lsp
CN101741853B (en) * 2009-12-11 2013-01-16 中兴通讯股份有限公司 Method for synchronizing clock time, line card veneer and network equipment
CN103828309A (en) * 2011-07-25 2014-05-28 奥林奇公司 Method of routing synchronisation messages
CN103986568A (en) * 2014-04-29 2014-08-13 宁波三星电气股份有限公司 Data transmission unit clock synchronization method
WO2015003359A1 (en) * 2013-07-11 2015-01-15 Ericsson (China) Communications Co., Ltd. Apparatus and method for two-way timestamp exchange
CN104601307A (en) * 2015-01-15 2015-05-06 北京奥普维尔科技有限公司 FPGA 10-gigabit Ethernet timestamp based adding system and method
WO2015131626A1 (en) * 2014-07-25 2015-09-11 中兴通讯股份有限公司 Time synchronization method and apparatus for network devices and time synchronization server
CN105515709A (en) * 2015-12-07 2016-04-20 中国电子科技集团公司第三十二研究所 Time synchronization device based on domestic FPGA and uclinux operating system
CN105681228A (en) * 2016-01-30 2016-06-15 安徽欧迈特数字技术有限责任公司 Multi-port Ethernet switch aggregation synchronizing method
CN105846941A (en) * 2016-05-23 2016-08-10 西安电子科技大学 IEEE-1588-standard-based clock transparent transmission apparatus and method
CN106385597A (en) * 2016-10-08 2017-02-08 广东欧珀移动通信有限公司 Clock adjusting method and device, terminal and multimedia synchronous playing system
CN109429553A (en) * 2017-06-30 2019-03-05 华为技术有限公司 Method for synchronizing time and equipment
US11675318B2 (en) 2019-12-31 2023-06-13 Continental Automotive Systems, Inc. Multi-interface GPS time synchronization

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168104B (en) * 2014-08-22 2017-12-15 华为技术有限公司 A kind of apparatus and method for being used for time and Frequency Synchronization

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866803B (en) * 2005-09-13 2012-05-30 华为技术有限公司 Method for solving clock synchronization in total Ethernet
CN201017029Y (en) * 2007-03-08 2008-02-06 上海聚星仪器有限公司 Dynamic signal synchronous collecting device based on GPS

Cited By (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741853B (en) * 2009-12-11 2013-01-16 中兴通讯股份有限公司 Method for synchronizing clock time, line card veneer and network equipment
CN101834685A (en) * 2010-04-16 2010-09-15 华为技术有限公司 1588 message extracting and processing method and equipment
CN101834685B (en) * 2010-04-16 2013-03-27 华为技术有限公司 1588 message extracting and processing method and equipment
CN102340396A (en) * 2010-07-29 2012-02-01 高通创锐讯通讯科技(上海)有限公司 Time synchronization method for Ethernet passive optical network (EPON)
US8625640B2 (en) 2010-08-02 2014-01-07 Futurewei Technologies, Inc. Transparent clocks in access networks
WO2012016507A1 (en) * 2010-08-02 2012-02-09 Huawei Technologies Co., Ltd. Transparent clocks in access networks
CN102447553A (en) * 2010-10-12 2012-05-09 研祥智能科技股份有限公司 Realizing device of accurate time synchronization protocol
WO2012062198A1 (en) * 2010-11-08 2012-05-18 中国移动通信集团公司 Time synchronization method and time synchronization device for mobile communications system
US9344979B2 (en) 2010-11-08 2016-05-17 China Mobile Communications Corporation Time synchronization method and time synchronization device for mobile communications system
CN102098155A (en) * 2011-03-18 2011-06-15 北京国智恒电力管理科技有限公司 Method for realizing sub-microsecond synchronization accuracy based on PTP (Precision Time Protocol)
CN102098155B (en) * 2011-03-18 2013-11-13 北京国智恒电力管理科技有限公司 Method for realizing sub-microsecond synchronization accuracy based on PTP (Precision Time Protocol)
WO2012174963A1 (en) * 2011-06-23 2012-12-27 中兴通讯股份有限公司 Method and device for selecting ptp lsp
CN103828309B (en) * 2011-07-25 2017-05-31 奥林奇公司 For the method for route synchronization message
CN103828309A (en) * 2011-07-25 2014-05-28 奥林奇公司 Method of routing synchronisation messages
CN102404105A (en) * 2011-12-14 2012-04-04 盛科网络(苏州)有限公司 Device and method for realizing time synchronization on Ethernet switch
CN102780554A (en) * 2012-07-17 2012-11-14 中兴通讯股份有限公司 Method and system for realizing synchronization through 1588 protocol
WO2015003359A1 (en) * 2013-07-11 2015-01-15 Ericsson (China) Communications Co., Ltd. Apparatus and method for two-way timestamp exchange
US10097297B2 (en) 2013-07-11 2018-10-09 Telefonaktiebolaget Lm Ericsson (Publ) Apparatus and method for two-way timestamp exchange
CN103986568A (en) * 2014-04-29 2014-08-13 宁波三星电气股份有限公司 Data transmission unit clock synchronization method
CN103986568B (en) * 2014-04-29 2018-01-23 宁波三星医疗电气股份有限公司 Data transmission unit clock synchronizing method
CN105281885A (en) * 2014-07-25 2016-01-27 中兴通讯股份有限公司 Time synchronization method and device used for network equipment and time synchronization server
WO2015131626A1 (en) * 2014-07-25 2015-09-11 中兴通讯股份有限公司 Time synchronization method and apparatus for network devices and time synchronization server
CN105281885B (en) * 2014-07-25 2021-04-16 中兴通讯股份有限公司 Time synchronization method and device for network equipment and time synchronization server
CN104601307A (en) * 2015-01-15 2015-05-06 北京奥普维尔科技有限公司 FPGA 10-gigabit Ethernet timestamp based adding system and method
CN104601307B (en) * 2015-01-15 2018-07-24 北京奥普维尔科技有限公司 Add-on system and method based on ten thousand mbit ethernet timestamps of FPGA
CN105515709A (en) * 2015-12-07 2016-04-20 中国电子科技集团公司第三十二研究所 Time synchronization device based on domestic FPGA and uclinux operating system
CN105681228A (en) * 2016-01-30 2016-06-15 安徽欧迈特数字技术有限责任公司 Multi-port Ethernet switch aggregation synchronizing method
CN105846941B (en) * 2016-05-23 2018-09-11 西安电子科技大学 Clock transparent transmission device and method based on 1588 standards of IEEE
CN105846941A (en) * 2016-05-23 2016-08-10 西安电子科技大学 IEEE-1588-standard-based clock transparent transmission apparatus and method
CN106385597A (en) * 2016-10-08 2017-02-08 广东欧珀移动通信有限公司 Clock adjusting method and device, terminal and multimedia synchronous playing system
CN109429553A (en) * 2017-06-30 2019-03-05 华为技术有限公司 Method for synchronizing time and equipment
CN109429553B (en) * 2017-06-30 2021-06-29 华为技术有限公司 Time synchronization method and device
US11343007B2 (en) 2017-06-30 2022-05-24 Huawei Technologies Co., Ltd. Time synchronization method and device
US11675318B2 (en) 2019-12-31 2023-06-13 Continental Automotive Systems, Inc. Multi-interface GPS time synchronization

Also Published As

Publication number Publication date
CN101547083B (en) 2011-12-21

Similar Documents

Publication Publication Date Title
CN101547083B (en) Time synchronizer, time synchronization system and time synchronization method
CN106992830B (en) A kind of clock synchronizing method in FC-AE-1553 networks
CN101741853B (en) Method for synchronizing clock time, line card veneer and network equipment
Moreira et al. White rabbit: Sub-nanosecond timing distribution over ethernet
CN102013931B (en) Time synchronization method and system, salve timing device and main timing device
US9882704B2 (en) Method and apparatus to add new system functions to deployed network element using smart transceivers
CN103916950A (en) Time synchronization method and system
CN102111258A (en) Clock synchronization method, equipment and system
CN101594673A (en) A kind of method and system of processing 1588 time stamp in distribution mode
CN104754722B (en) A kind of method for synchronizing time towards stratification heterogeneous network
WO2015117501A1 (en) Time synchronization method, programmable logic device, single board and network element
CN101977104A (en) IEEE1588 based accurate clock synchronization protocol system and synchronization method thereof
CN110401505A (en) A kind of wireless network accurate time synchronization method
CN102598556A (en) Method and apparatus for optimizing packet timing transport
WO2015196685A1 (en) Clock synchronization method and apparatus
CN108880722A (en) Clock synchronous method, system and optical transmission device
CN101212290B (en) Synchronous time division Ethernet transmission method and transmitter
CN103404226A (en) Method and device for data transmission
WO2012003746A1 (en) Method and device for realizing boundary clock
CN102299788A (en) Method and device for controlling automatic transmission of IEEE1558 (Institute of Electrical and Electronic Engineers 1558) protocol message
CN102035638A (en) Clock source selection processing method, device and system
CN111740800B (en) Multi-precision clock synchronization method based on SDN framework 5G intelligent node
CN103546268A (en) Method and device for compensating system time
CN101009546A (en) Time synchronization method for network segment utilizing different time synchronization protocol
CN102342051B (en) For coming the method for synchronised clock and relevant system and module by separating transmission first and second data via at least one time distribution protocol

Legal Events

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

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20111221