CN111083776B - TTE time synchronization method based on 1588 and AS6802 protocol - Google Patents
TTE time synchronization method based on 1588 and AS6802 protocol Download PDFInfo
- Publication number
- CN111083776B CN111083776B CN201911235633.XA CN201911235633A CN111083776B CN 111083776 B CN111083776 B CN 111083776B CN 201911235633 A CN201911235633 A CN 201911235633A CN 111083776 B CN111083776 B CN 111083776B
- Authority
- CN
- China
- Prior art keywords
- time
- tte
- synchronization
- protocol
- clock
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 230000006835 compression Effects 0.000 claims abstract description 49
- 238000007906 compression Methods 0.000 claims abstract description 49
- 230000000737 periodic effect Effects 0.000 claims abstract description 12
- 230000001960 triggered effect Effects 0.000 claims abstract description 10
- 230000001360 synchronised effect Effects 0.000 claims description 23
- 230000004044 response Effects 0.000 claims description 21
- 238000007711 solidification Methods 0.000 claims description 14
- 230000008023 solidification Effects 0.000 claims description 14
- 238000004364 calculation method Methods 0.000 claims description 13
- 238000012937 correction Methods 0.000 claims description 11
- 230000005540 biological transmission Effects 0.000 claims description 8
- 230000003111 delayed effect Effects 0.000 claims description 6
- 239000004576 sand Substances 0.000 claims description 3
- 230000010354 integration Effects 0.000 claims description 2
- 230000014759 maintenance of location Effects 0.000 claims description 2
- 230000003993 interaction Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000004377 microelectronic Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
- H04W56/001—Synchronization between nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
- H04W56/003—Arrangements to increase tolerance to errors in transmission or reception timing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention provides a time synchronization method of TTE based on 1588 and AS6802 protocols, aiming at realizing time synchronization with high adaptability and high stability among network devices in the TTE. The method comprises the following implementation steps: the network equipment measures the link time delay between each adjacent port in the time-triggered Ethernet TTE; dividing network equipment in the TTE based on a 1588 protocol; master clock device to each slave device SjBroadcasting a synchronization frame; each slave device SjRealizing periodic global time synchronization with master clock equipment based on a 1588 protocol; dividing the network equipment in TTE' based on AS6802 protocol; each synchronization master SMgPre-synchronizing with the compression host based on an AS6802 protocol; each synchronization master SMgAnd obtaining the TTE time synchronization result with the compression host based on the AS6802 protocol.
Description
Technical Field
The invention belongs to the technical field of communication, and relates to a Time Triggered Ethernet (TTE) time synchronization method, in particular to a Time Triggered Ethernet (TTE) time synchronization method based on a 1588 protocol and an AS6802 protocol, which is used for improving the adaptability and stability of time synchronization among network devices in the TTE.
Background
A Time-Triggered Ethernet (TTE) is an Ethernet network based on the Time-Triggered protocol. The TTE comprises at least two network devices, each of which comprises at least two ports. Data interaction is completed among the network devices through mutual receiving and sending of Time-trigger (TT) services and Event-trigger (ET) services. Each network device needs to adjust its own local time through time synchronization operation, so as to realize time unification among each network device in the TTE, and complete the TT service periodic transceiving according to a time unified scheduling table. The idea of implementing time synchronization among network devices in the TTE is to perform interaction of specific synchronization frames among the network devices to obtain time nodes required for synchronization, and then correct local time of the network devices according to the time nodes, so that the local time of all the network devices is the same. Therefore, the time synchronization of each network device in the TTE needs to have both high adaptability and high stability. The adaptability of time synchronization is influenced by the time format of absolute synchronization, and all network equipment needs to keep the same Greenwich mean time; the stability of time synchronization is limited by the difference in start time between different network devices and the fault tolerance of the network devices.
In order to improve the adaptability of time synchronization between various network devices of the TTE, a typical time synchronization method in the prior art is a TTE time synchronization method based on 1588 protocol. The 1588 synchronization method is based on an IEEE1588v2 precision clock synchronization protocol, and realizes time synchronization of sub-microsecond level deviation through synchronization frame interaction of a master clock device and a slave device, but is greatly limited by the quality of a master clock, so that the stability of time synchronization is poor, for example: a patent document "a centralized method for achieving 1588 time synchronization on a distributed system" (application date: 2017, 10, 24, application number: 2017104426971, application publication number: CN 107294634A) applied by Beacon communication science and technology corporation discloses a centralized method for achieving 1588 time synchronization on a distributed system. The method comprises the following specific steps: the master clock node sends a synchronous message carrying t1 and t1' -t 1, the t1' is the time when the same-node line card sends the synchronous message, the slave clock node receives the synchronous message, the t2' and the t2 are marked, and the correction delay value of the synchronous message is calculated; the slave clock node sends a delay request message carrying t3 and t3' -t 3, t3' is the time when the same-node line card sends the delay request message, the master clock node receives the delay request message, prints t4' and t4, calculates a delay request message correction delay value, and inserts t4 into a delay response message to send the delay response message to the slave clock node, the slave clock node acquires all timestamps and two correction delay values, time synchronization with less development and debugging workload is completed through a time synchronization algorithm, but when the master clock device fails, the problem that all network devices cannot schedule TT services according to correct Greenwich mean time is caused, and the stability of time synchronization is low.
In order to improve the stability of time synchronization between TTE network devices, a typical time synchronization method in the prior art is a TTE time synchronization method based on an AS6802 protocol. The AS6802 synchronization method is based on SAE AS6802(Society of Automotive Engineers) standard of the American Society of Automotive engineering, realizes high-precision time synchronization by protocol control frame interaction between a compression host and a synchronization host, and the compression host can accommodate a certain number of fault synchronization hosts, so that the stability of time synchronization is high, but only relative time synchronization can be carried out, and all network devices cannot reach Greenwich mean time unification, so that the adaptability of time synchronization is low, for example: the patent document applied by the research of the Xian microelectronic technology discloses a dynamic clock compression method for a time-triggered network (application date: 2017, 11 and 17 months, application number: 2017104534637, application publication number: CN 107359952A). The method comprises the following specific steps: 1) the exchange controller carries out solidification operation on the synchronous frames sent by each terminal and restores the clock solidification points of each synchronous frame; storing the restored clock solidification points to a solidification point storage module, setting storage identification in a solidification information storage area of the solidification point storage module, providing clock solidification point information corresponding to the identification to a compression function when the storage identification is effective, and generating an effective pulse at the x-th solidification point moment when a local clock is equal to the stored x-th solidification point for collection of the solidification points of the compression function; 2) after the effective pulse appears at the moment of the first solidification point, the current compression function starts to open a collection window to collect the solidification points; 3) the compression function sorts the collected solidification points; 4) after the sequencing is finished, the compression function calculates the relative clock deviation of the network, and further calculates the network clock compression point, thereby realizing the high-precision clock synchronization. However, the AS6802 synchronization method can only achieve relative time synchronization of periodic cycles, and thus the method still has the problem of low time synchronization adaptability of TTE after time synchronization based on the AS6802 protocol is completed.
In summary, the prior art cannot achieve time synchronization with both high adaptability and high stability.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, provides a TTE time synchronization method based on 1588 and AS6802 protocols, and solves the problem that the time synchronization of network equipment in the conventional TTE cannot have both high adaptability and high stability.
In order to achieve the purpose, the invention adopts the following technical steps:
(1) the network device measures the link delay between each adjacent port in the time-triggered Ethernet TTE:
(1a) let TTE contain M network devices A1,A2,...,Ak,...,AMM is more than or equal to 2, and each network device comprises at least two ports;
(1b) network device AkThrough the port to andkeach network device a in the neighborhoodk1,Ak2,...,Aki,...,AknPort broadcast flag 88f70202 while preserving the broadcast time point tkWherein n is more than or equal to 1;
(1c) network device Ak1,Ak2,...,Aki,...,AknEach A of (1)kiSaving a time point t 'at which to receive a peer to peer delayed request frame'kiAnd a predetermined time point for transmitting the peer-to-peer delay response frame is setAnd t'kiDifference value Y ofkiAs AkiLocal logic delay of, then, YkiModification of write peer-to-peer delayed response framesIn the field, finallyTime passes through AkiWill be written with YkiSends the peer-to-peer delay response frame to network device akA port of (a);
(1d) network device AkSave receiving written YkiTime point of peer-to-peer delay response frameAnd according toYkiAnd tkCalculation of AkPort and network device akiLink delay D between portski;
(2) Network equipment in the TTE is divided based on a 1588 protocol:
according to the attribute of the first priority of the optimal master clock of the master clock device in the 1588 protocol, the network device with the minimum first priority of the optimal master clock in the TTE is used as the master clock device, and the rest M-1 network devices are used as slave devices S1,S2,...,Sj,...,SM-1;
(3) Master clock device to each slave device SjBroadcasting a synchronization frame:
the master clock device will preset the time point T of the broadcast synchronization frameSyncWriting the timestamp field of the synchronization frame with the mark 88f70002, and taking W milliseconds as the synchronization period of the 1588 protocol at TSyncTime of day through master clock device port to each slave device SjPort broadcast of (2) is written with TSyncW is more than or equal to 1;
(4) each slave device SjThe method comprises the following steps of realizing periodic global time synchronization with master clock equipment based on a 1588 protocol:
(4a) each slave device SjSave receiving written TSyncTime point of the synchronous frameAt the same time to write with TSyncThe synchronous frame data field is analyzed to obtain TSyncAnd residence time TRD;
(4b) Each slave device SjAccording to TSync、TRDAnd SjPort and SjLink delay D between ports of adjacent network devicesjCalculating SjTime offset from master clock device
(4c) Each slave device SjBy meeting the requirements of 1588 protocol for sub-microsecond synchronization accuracyThrough the correction of at least three continuous 1588 protocol synchronization periods, the Greenwich mean time of the self is adjusted to be the same as that of the main clock equipment, and S is realizedjSynchronizing with the periodic global time of the master clock equipment to obtain a time triggered Ethernet TTE' with the same Greenwich mean time;
(5) dividing the network equipment in TTE' based on AS6802 protocol:
according to the requirements of AS6802 protocol for different functions of network devices, one network device is selected from TTE' AS a compression host, and the other M-1 network devices are used AS synchronization hosts SM1,SM2,...,SMg,...,SMM-1;
(6) Each synchronization master SMgPre-synchronizing with the compressed host based on an AS6802 protocol:
(6a) at SjGreenwich mean time point for completing periodic global time synchronization with master clock device, each synchronization master SMgSending cold start frames in AS6802 protocol to ports of compressed hosts through the ports
(6b) The compression host receives the first oneAt greenwich time point of, through a port to each SMgPort broadcast ofRespective Cold Start frame F'CS;
(6c) Each synchronization master SMgF 'was obtained'CSThen, sending the cold start response frame in the AS6802 protocol to the port of the compressed host through the port
(6d) The compression host receives the first oneAt greenwich time point of, through a port to each SMgPort broadcast ofCorresponding Cold Start response frame F'CAMeanwhile, based on a clock format specified by an AS6802 protocol, taking the 0 th clock AS a starting point and the R th clock AS an end point, and continuously performing cycle counting of the local clock, wherein R is more than or equal to 124999;
(6e) each synchronization master SMgIs receiving F'CABased on a clock format specified by an AS6802 protocol, the Greenwich mean time point continuously performs cycle counting of a local clock by taking a 0 th clock AS a starting point and an R th clock AS an end point to realize presynchronization with a compression host, wherein R is more than or equal to 124999;
(7) each synchronization master SMgAnd obtaining a TTE time synchronization result based on an AS6802 protocol with the compression host:
(7a) each synchronization master SMgAt the beginning of each local clock count, the port is connected to the compression hostIntegrated frame in port-sent AS6802 protocol
(7b) The compressed host saves each integrated framePoint in time of arrivalAt the same time toThe data field is analyzed to obtain a transparent clock valueBased on the curing function of AS6802 protocol, the upper limit T of transmission delay preset by TTEmax、Andaccording to receiving M-1Calculating each from front to back orderCorresponding curing time points to obtain a set T consisting of M-1 curing time pointsc,Tc={Tc1,Tc2,...,Tcx,...,Tc(M-1)Where T iscxRepresents the x-th curing time point;
(7c) the compression host is based on the compression function of AS6802 protocol and passes through Tc1E th curing time point TceAnd M-e curing time points Tc(M-e)Calculating a compression time correction value TsAnd will Tc1And TsAs the point in time of compression is taken as the sum of (c),a dispatch time point T ' preset by TTE ' when the cycle count of the local clock reaches the compression time point 'scmAdjusting the local clock count value as a reference to obtain a global time base of the TTE ', wherein e is a synchronous host SM which is preset by the TTE' and allows errors to occurgNumber, and e ∈ [1, M-1);
(7d) when the cycle count of the local clock reaches the sending time preset by TTE', the compression host sends the SM to each synchronous host through the portgPort of (2) broadcasts aggregate frame F'IN;
(7e) Each synchronization master SMgKeep integrated frame F'INPoint in time of arrivalSimultaneously to F'INThe data field is analyzed to obtain a transparent clock value TtcsAnd based on the curing function of AS6802 protocol, by Tmax、TtcsAndcalculating the curing time pointThen the TTE 'preset pre-receiving time point and the TTE' preset pre-receiving time point are compared withThe difference of (a) is taken as a clock difference value;
(7f) each synchronization master SMgCounting arrivals at local clock cyclesTime, preset scheduling time point T 'by TTE'ssmBased on the reference, the local clock count value is adjusted according to the clock difference value to realize time synchronization with the compression host, namely M network devices A in TTE1,A2,...,Ak,...,AMTime synchronization of (2).
Compared with the prior art, the invention has the following advantages:
first, due toThe invention adopts the scheme that each network device of TTE starts to perform presynchronization based on the AS6802 protocol when realizing periodical global time synchronization based on the 1588 protocol, and finally obtains the time synchronization result of TTE, realizes the synchronization of absolute time while achieving the relative time synchronization, namely realizes the one-to-one correspondence between the ideal global time base under the condition of AS6802 relative synchronization and the Greenwich mean time under the state of 1588 absolute synchronization, solves the problem of low adaptability of TTE time synchronization when performing AS6802 synchronization in the prior art, and greatly reduces the SM (synchronization master) of each synchronization master SM (SM) in TTEgThe start time difference of AS6802 pre-synchronization is carried out, so that the stability of TTE time synchronization is remarkably improved;
secondly, after each network device in the TTE is adopted to realize the periodical global time synchronization based on the 1588 protocol, each synchronization host SMgAt the beginning of each local clock count, sending an integrated frame to the compressed hostAccording to the technical scheme, when the 1588 is out of synchronization from a synchronous state, the network equipment can schedule the TT service according to the normally synchronous AS6802 time, so that the transmission of the TT service among the network equipment cannot be interrupted by the time synchronization recovery process of the 1588, the problem that all the network equipment cannot schedule the TT service according to correct Greenwich mean time due to failure of the main clock equipment in the prior art is solved, the effect of improving the time synchronization fault tolerance rate of TTE is achieved, and the stability of time synchronization is further improved.
Drawings
FIG. 1 is a flow chart of an implementation of the present invention.
Detailed Description
The invention is described in further detail below with reference to the figures and the specific embodiments.
Referring to fig. 1, the present invention includes the steps of:
step 1) the network device measures the link time delay between each adjacent port in the time-triggered Ethernet TTE:
step 1a) setting TTE to contain M network devices A1,A2,...,Ak,...,AMM is more than or equal to 2, and each network device comprises at least two ports; in the embodiment of the present invention, let M be 5, and each network device includes four ports.
Step 1b) network device AkThrough the port to andkeach network device a in the neighborhoodk1,Ak2,...,Aki,...,AknPort broadcast flag 88f70202 while preserving the broadcast time point tkWherein n is more than or equal to 1; n < 1 means network device AkThere is no adjacent network device, and in the embodiment of the present invention, n is 4.
Step 1c) network device Ak1,Ak2,...,Aki,...,AknEach A of (1)kiSaving a time point t 'at which to receive a peer to peer delayed request frame'kiAnd a predetermined time point for transmitting the peer-to-peer delay response frame is setAnd t'kiDifference value Y ofkiAs AkiLocal logic delay of, then, YkiWriting into the modified field of the peer-to-peer delayed response frame, and finallyTime passes through AkiWill be written with YkiSends the peer-to-peer delay response frame to network device akThe port of (2).
Step 1d) network device AkSave receiving written YkiTime point of peer-to-peer delay response frameAnd according toYkiAnd tkCalculation of AkPort and network device akiLink delay D between portski(ii) a The calculation formula is
Step 2) network equipment in the TTE is divided based on a 1588 protocol:
according to the attribute of the first priority of the optimal master clock of the master clock device in the 1588 protocol, the network device with the minimum first priority of the optimal master clock in the TTE is used as the master clock device, and the rest M-1 network devices are used as slave devices S1,S2,...,Sj,...,SM-1。
Step 3) master clock device to each slave device SjBroadcasting a synchronization frame:
the master clock device will preset the time point T of the broadcast synchronization frameSyncWriting the timestamp field of the synchronization frame with the mark 88f70002, and taking W milliseconds as the synchronization period of the 1588 protocol at TSyncTime of day through master clock device port to each slave device SjPort broadcast of (2) is written with TSyncW is more than or equal to 1; since W < 1 is not practical and wastes too much bandwidth, in the embodiment of the present invention, W is 1000.
Step 4) Each Slave device SjThe method comprises the following steps of realizing periodic global time synchronization with master clock equipment based on a 1588 protocol:
step 4a) Each Slave device SjSave receiving written TSyncTime point of the synchronous frameAt the same time to write with TSyncThe synchronous frame data field is analyzed to obtain TSyncAnd residence time TRD(ii) a To write with TSyncThe analysis of the synchronous frame data field means that T is written inSyncExtracting T from the time stamp field of the synchronous frame data fieldSyncWhile extracting the retention time T from the correction fieldRD。
Step 4b) Each Slave device SjAccording to TSync、TRDAnd SjPort and SjLink delay D between ports of adjacent network devicesjCalculating SjTime offset from master clock deviceThe calculation formula is
Step 4c) Each Slave device SjBy meeting the requirements of 1588 protocol for sub-microsecond synchronization accuracyThrough the correction of at least three continuous 1588 protocol synchronization periods, the Greenwich mean time of the self is adjusted to be the same as that of the main clock equipment, and S is realizedjSynchronizing with the periodic global time of the master clock equipment to obtain a time triggered Ethernet TTE' with the same Greenwich mean time; the adjustment of own Greenwich mean that the Greenwich mean time is adjustedAnd SjAdding the Greenwich mean time of SjThe greenwich time of the master clock device is consistent with the greenwich time of the master clock device.
Step 5) dividing the network equipment in TTE' based on AS6802 protocol:
according to the requirements of AS6802 protocol for different functions of network devices, one network device is selected from TTE' AS a compression host, and the other M-1 network devices are used AS synchronization hosts SM1,SM2,...,SMg,...,SMM-1(ii) a In order to enable each synchronous host to perform protocol control frame interaction with the compression host, the embodiment of the invention selects one network device with the most adjacent network devices in the TTE' as the compression host.
Step 6) Each Sync Master SMgPre-synchronizing with the compressed host based on an AS6802 protocol:
step 6a) at SjGreenwich mean time point for completing periodic global time synchronization with master clock device, each synchronization master SMgSending cold start frames in AS6802 protocol to ports of compressed hosts through the ports
Step 6b) the compressed host receives the first oneAt greenwich time point of, through a port to each SMgPort broadcast ofRespective Cold Start frame F'CS。
Step 6c) Each Sync Master SMgF 'was obtained'CSThen, sending the cold start response frame in the AS6802 protocol to the port of the compressed host through the port
Step 6d) the compressed host receives the first oneAt greenwich time point of, through a port to each SMgPort broadcast ofCorresponding Cold Start response frame F'CAMeanwhile, based on a clock format specified by an AS6802 protocol, taking the 0 th clock AS a starting point and the R th clock AS an end point, and continuously performing cycle counting of the local clock, wherein R is more than or equal to 124999; in the present embodiment, R is 249999.
Step 6e) Each Sync Master SMgIs receiving F'CAThe greenwich mean time point of (1) is continuously performed with the 0 th clock AS a start point and the R th clock AS an end point based on a clock format specified by the AS6802 protocolThe cycle counting of the local clock realizes the pre-synchronization with the compression host, and R is more than or equal to 124999; in the present embodiment, R is 249999.
Step 7) Each Sync Master SMgAnd obtaining a TTE time synchronization result based on an AS6802 protocol with the compression host:
step 7a) Each Sync Master SMgAt the start point of each local clock count, sending an integration frame in the AS6802 protocol through the port to the port of the compressed host
Step 7b) the compressed host saves each integrated framePoint in time of arrivalAt the same time toThe data field is analyzed to obtain a transparent clock valueBased on the curing function of AS6802 protocol, the upper limit T of transmission delay preset by TTEmax、Andaccording to receiving M-1Calculating each from front to back orderCorresponding curing time points to obtain a set T consisting of M-1 curing time pointsc,Tc={Tc1,Tc2,...,Tcx,...,Tc(M-1)Where T iscxRepresents the x-th curing time point; the calculation formula is
Step 7c) compressing the compression function of the host based on AS6802 protocol, passing Tc1E th curing time point TceAnd M-e curing time points Tc(M-e)Calculating a compression time correction value TsAnd will Tc1And TsIs used as a compression time point, and a dispatch time point T ' preset by TTE ' is used as a compression time point when the cycle count of the local clock reaches the compression time point 'scmAdjusting the local clock count value as a reference to obtain a global time base of the TTE ', wherein e is a synchronous host SM which is preset by the TTE' and allows errors to occurgNumber, and e ∈ [1, M-1); adjusting the local clock count value means that if the local clock count value is equal to T'scmDifferent, the local clock count value is modified to T'scmSince e must be smaller than SMgThe maximum number of the time points can realize time synchronization, in the embodiment of the invention, e is equal to 2, and T is calculatedsThe calculation formula is Ts=[(Tce-Tc1)+(Tc(M-e)-Tc1)]/2。
Step 7d), when the cycle count of the local clock reaches the sending time preset by TTE', the compressed host sends the SM to each synchronous host through the portgPort of (2) broadcasts aggregate frame F'IN。
Step 7e) Each Sync Master SMgKeep integrated frame F'INPoint in time of arrivalSimultaneously to F'INThe data field is analyzed to obtain a transparent clock value TtcsAnd based on the curing function of AS6802 protocol, by Tmax、TtcsAndcalculating the curing time pointThen the TTE 'preset pre-receiving time point and the TTE' preset pre-receiving time point are compared withThe difference of (a) is taken as a clock difference value;the calculation formula is
Step 7f) Each Sync Master SMgCounting arrivals at local clock cyclesTime, preset scheduling time point T 'by TTE'ssmBased on the reference, the local clock count value is adjusted according to the clock difference value to realize time synchronization with the compression host, namely M network devices A in TTE1,A2,...,Ak,...,AMTime synchronization of (2); the adjustment of the local clock count value according to the clock difference value is that the clock difference value is added to the local clock count value so that the local clock count value is T'ssmThe same is true.
Claims (6)
1. A TTE time synchronization method based on 1588 and AS6802 protocol is characterized by comprising the following steps:
(1) the network device measures the link delay between each adjacent port in the time-triggered Ethernet TTE:
(1a) let TTE contain M network devices A1,A2,...,Ak,...,AMM is more than or equal to 2, and each network device comprises at least two ports;
(1b) network device AkThrough the port to andkeach network device a in the neighborhoodk1,Ak2,...,Aki,...,AknPort broadcast flag 88f70202 while preserving the time of broadcastPoint tkWherein n is more than or equal to 1;
(1c) network device Ak1,Ak2,...,Aki,...,AknEach A of (1)kiSaving a time point t 'at which to receive a peer to peer delayed request frame'kiAnd a predetermined time point for transmitting the peer-to-peer delay response frame is setAnd t'kiDifference value Y ofkiAs AkiLocal logic delay of, then, YkiWriting into the modified field of the peer-to-peer delayed response frame, and finallyTime passes through AkiWill be written with YkiSends the peer-to-peer delay response frame to network device akA port of (a);
(1d) network device AkSave receiving written YkiTime point of peer-to-peer delay response frameAnd according toYkiAnd tkCalculation of AkPort and network device akiLink delay D between portski;
(2) Network equipment in the TTE is divided based on a 1588 protocol:
according to the attribute of the first priority of the optimal master clock of the master clock device in the 1588 protocol, the network device with the minimum first priority of the optimal master clock in the TTE is used as the master clock device, and the rest M-1 network devices are used as slave devices S1,S2,...,Sj,...,SM-1;
(3) Master clock device to each slave device SjBroadcasting a synchronization frame:
the master clock device will preset the time point T of the broadcast synchronization frameSyncWriting inThe mark is 88f70002, and the W milliseconds is the synchronization period of 1588 protocol, and the mark is in the time stamp field of the synchronization frameSyncTime of day through master clock device port to each slave device SjPort broadcast of (2) is written with TSyncW is more than or equal to 1;
(4) each slave device SjThe method comprises the following steps of realizing periodic global time synchronization with master clock equipment based on a 1588 protocol:
(4a) each slave device SjSave receiving written TSyncTime point of the synchronous frameAt the same time to write with TSyncThe synchronous frame data field is analyzed to obtain TSyncAnd residence time TRD;
(4b) Each slave device SjAccording to TSync、TRDAnd SjPort and SjLink delay D between ports of adjacent network devicesjCalculating SjTime offset from master clock device
(4c) Each slave device SjBy meeting the requirements of 1588 protocol for sub-microsecond synchronization accuracyThrough the correction of at least three continuous 1588 protocol synchronization periods, the Greenwich mean time of the self is adjusted to be the same as that of the main clock equipment, and S is realizedjSynchronizing with the periodic global time of the master clock equipment to obtain a time triggered Ethernet TTE' with the same Greenwich mean time;
(5) dividing the network equipment in TTE' based on AS6802 protocol:
network pairing according to AS6802 protocolThe requirement of different functions of the network equipment is that one network equipment is selected from TTE' as a compression host, and the other M-1 network equipment is used as a synchronization host SM1,SM2,...,SMg,...,SMM-1;
(6) Each synchronization master SMgPre-synchronizing with the compressed host based on an AS6802 protocol:
(6a) at SjGreenwich mean time point for completing periodic global time synchronization with master clock device, each synchronization master SMgSending cold start frames in AS6802 protocol to ports of compressed hosts through the ports
(6b) The compression host receives the first oneAt greenwich time point of, through a port to each SMgPort broadcast ofRespective Cold Start frame F'CS;
(6c) Each synchronization master SMgF 'was obtained'CSThen, sending the cold start response frame in the AS6802 protocol to the port of the compressed host through the port
(6d) The compression host receives the first oneAt greenwich time point of, through a port to each SMgPort broadcast ofCorresponding Cold Start response frame F'CAAt the same time, based on the clock format specified by AS6802 protocol, with 0 thTaking the clock as a starting point and the Rth clock as an ending point, and continuously performing cycle counting of the local clock, wherein R is more than or equal to 124999;
(6e) each synchronization master SMgIs receiving F'CABased on a clock format specified by an AS6802 protocol, the Greenwich mean time point continuously performs cycle counting of a local clock by taking a 0 th clock AS a starting point and an R th clock AS an end point to realize presynchronization with a compression host, wherein R is more than or equal to 124999;
(7) each synchronization master SMgAnd obtaining a TTE time synchronization result based on an AS6802 protocol with the compression host:
(7a) each synchronization master SMgAt the start point of each local clock count, sending an integration frame in the AS6802 protocol through the port to the port of the compressed host
(7b) The compressed host saves each integrated framePoint in time of arrivalAt the same time toThe data field is analyzed to obtain a transparent clock valueBased on the curing function of AS6802 protocol, the upper limit T of transmission delay preset by TTEmax、Andaccording to receiving M-1Calculating each from front to back orderCorresponding curing time points to obtain a set T consisting of M-1 curing time pointsc,Tc={Tc1,Tc2,...,Tcx,...,Tc(M-1)Where T iscxRepresents the x-th curing time point;
(7c) the compression host is based on the compression function of AS6802 protocol and passes through Tc1E th curing time point TceAnd M-e curing time points Tc(M-e)Calculating a compression time correction value TsAnd will Tc1And TsIs used as a compression time point, and a dispatch time point T ' preset by TTE ' is used as a compression time point when the cycle count of the local clock reaches the compression time point 'scmAdjusting the local clock count value as a reference to obtain a global time base of the TTE ', wherein e is a synchronous host SM which is preset by the TTE' and allows errors to occurgNumber, and e ∈ [1, M-1);
(7d) when the cycle count of the local clock reaches the sending time preset by TTE', the compression host sends the SM to each synchronous host through the portgPort of (2) broadcasts aggregate frame F'IN;
(7e) Each synchronization master SMgKeep integrated frame F'INPoint in time of arrivalSimultaneously to F'INThe data field is analyzed to obtain a transparent clock value TtcsAnd based on the curing function of AS6802 protocol, by Tmax、TtcsAndcalculating the curing time pointThen the TTE 'preset pre-receiving time point and the TTE' preset pre-receiving time point are compared withThe difference of (a) is taken as a clock difference value;
(7f) each synchronization master SMgCounting arrivals at local clock cyclesTime, preset scheduling time point T 'by TTE'ssmBased on the reference, the local clock count value is adjusted according to the clock difference value to realize time synchronization with the compression host, namely M network devices A in TTE1,A2,...,Ak,...,AMTime synchronization of (2).
2. The method for synchronizing TTE time based on 1588 and AS6802 protocol AS claimed in claim 1, wherein A is said in step (1d)kPort and network device akiLink delay D between portskiThe calculation formula is as follows:
3. The method for synchronizing TTE time based on 1588 and AS6802 protocol AS claimed in claim 1, wherein S in step (4b)jTime offset from master clock deviceThe calculation formula is as follows:
4. The method for synchronizing TTE time based on 1588 and AS6802 protocol AS claimed in claim 1, wherein said xth solidification time point T of step (7b)cxThe calculation formula is as follows:
5. TTE time synchronization over 1588 and AS6802 protocols AS claimed in claim 1Method, characterized in that said compression time correction value T in step (7c)sThe calculation formula is as follows:
Ts=[(Tce-Tc1)+(Tc(M-e)-Tc1)]/2
wherein, Tc1Denotes the first curing time point, TceDenotes the e-th curing time point, Tc(M-e)The M-e curing time points are indicated.
6. The method for synchronizing TTE time based on 1588 and AS6802 protocol AS claimed in claim 1, wherein said solidifying point of time in step (7e)The calculation formula is as follows:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911235633.XA CN111083776B (en) | 2019-12-05 | 2019-12-05 | TTE time synchronization method based on 1588 and AS6802 protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911235633.XA CN111083776B (en) | 2019-12-05 | 2019-12-05 | TTE time synchronization method based on 1588 and AS6802 protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111083776A CN111083776A (en) | 2020-04-28 |
CN111083776B true CN111083776B (en) | 2021-09-03 |
Family
ID=70313061
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911235633.XA Active CN111083776B (en) | 2019-12-05 | 2019-12-05 | TTE time synchronization method based on 1588 and AS6802 protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111083776B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112600804B (en) * | 2020-12-04 | 2022-08-19 | 陕西电器研究所 | Method for realizing compression algorithm in time-triggered Ethernet |
CN113114590B (en) * | 2021-03-05 | 2022-07-26 | 西安电子科技大学 | AS6802 synchronous frame transparent transmission system and method in TTE switch |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103368721A (en) * | 2013-07-23 | 2013-10-23 | 电子科技大学 | Computing method for transparent clock in time-triggered Ethernet |
WO2015184483A1 (en) * | 2014-06-06 | 2015-12-10 | Fts Computertechnik Gmbh | Method for deterministic wireless transfer of time-controlled real-time messages in a distributed real-time system |
CN107508648A (en) * | 2017-06-26 | 2017-12-22 | 清华大学 | Time triggered Ethernet substep time synchronized strategy based on functions of the equipments classification |
CN109617705A (en) * | 2017-10-04 | 2019-04-12 | Tttech 电脑技术股份公司 | Method and apparatus for configuring real-time network |
CN110460597A (en) * | 2019-08-08 | 2019-11-15 | 成都光航信科技有限公司 | A kind of control frame precommpression method based on AS6802 agreement |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105553598B (en) * | 2016-01-10 | 2017-09-29 | 北京航空航天大学 | A kind of time triggered ethernet clock compensation method that robustness regression is estimated based on M |
CN106059701B (en) * | 2016-08-17 | 2018-06-08 | 北京航空航天大学 | A kind of clock that Ethernet is triggered by capturing the Protocol Control frame testing time synchronizes the device of correction value |
CN108429595B (en) * | 2018-01-21 | 2019-06-21 | 西安电子科技大学 | Switching equipment clock synchronization apparatus and method based on AS6802 standard |
-
2019
- 2019-12-05 CN CN201911235633.XA patent/CN111083776B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103368721A (en) * | 2013-07-23 | 2013-10-23 | 电子科技大学 | Computing method for transparent clock in time-triggered Ethernet |
WO2015184483A1 (en) * | 2014-06-06 | 2015-12-10 | Fts Computertechnik Gmbh | Method for deterministic wireless transfer of time-controlled real-time messages in a distributed real-time system |
CN107508648A (en) * | 2017-06-26 | 2017-12-22 | 清华大学 | Time triggered Ethernet substep time synchronized strategy based on functions of the equipments classification |
CN109617705A (en) * | 2017-10-04 | 2019-04-12 | Tttech 电脑技术股份公司 | Method and apparatus for configuring real-time network |
CN110460597A (en) * | 2019-08-08 | 2019-11-15 | 成都光航信科技有限公司 | A kind of control frame precommpression method based on AS6802 agreement |
Non-Patent Citations (4)
Title |
---|
IEEE1588V2透明时钟研究与实现;陈金凤等;《宇航计测技术》;20130630;第33卷(第3期);全文 * |
基于IEEE 1588协议的时间触发以太网同步算法;赵琪等;《计算机工程》;20190331;第45卷(第3期);全文 * |
基于TTE端系统的时钟同步设计与实现;罗泽雄等;《航空电子技术》;20160930;第47卷(第3期);第1.2节、第1.3节、第2.1节 * |
基于时间触发以太网的AS6802时间同步协议的设计与实现;周俊;《中国优秀硕士学位论文全文数据库(电子期刊)》;20190228;第2.3节 * |
Also Published As
Publication number | Publication date |
---|---|
CN111083776A (en) | 2020-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101547083B (en) | Time synchronizer, time synchronization system and time synchronization method | |
CN101594673B (en) | Method and system for processing 1588 time stamp in distribution mode | |
CN111083776B (en) | TTE time synchronization method based on 1588 and AS6802 protocol | |
CN101977104A (en) | IEEE1588 based accurate clock synchronization protocol system and synchronization method thereof | |
CN109074723B (en) | Time synchronization method, sensor embedded terminal and sensor network system | |
CN101729180A (en) | Method and system for synchronizing precision clocks, and precision clock frequency/time synchronizing device | |
CN101882990B (en) | Method for selecting master clock based on PTP (Picture Transfer Protocol) and link quality, slave clock and system | |
WO2015196685A1 (en) | Clock synchronization method and apparatus | |
CN101951312A (en) | E1 link-based bidirectional time-frequency synchronous transmission method and master-slave device | |
CN103051406A (en) | Clock synchronization method and system in 1588-2008 protocol | |
CN111385048A (en) | Time synchronization method and system | |
CN102394715A (en) | Method and device for synchronizing clocks | |
CN113422665B (en) | Method and system for realizing time synchronization of vehicle-mounted system based on IPC mechanism | |
CN102447553A (en) | Realizing device of accurate time synchronization protocol | |
CN107579793A (en) | The optimization method of time synchronized, device and equipment between a kind of communication network device | |
CN101615948A (en) | A kind of method and system that realize time synchronized | |
CN102769504A (en) | 1588 system and method thereof for achieving synchronization | |
CN103188064A (en) | Clock synchronization method and clock synchronization device | |
CN111478863B (en) | Switch system and network port time synchronization method thereof | |
CN102244603A (en) | Method, equipment and system for transmitting message bearing time | |
CN111740800B (en) | Multi-precision clock synchronization method based on SDN framework 5G intelligent node | |
CN101247169A (en) | Method, system and equipment for implementing time synchronization in communication network | |
CN102469377A (en) | Ethernet passive optical network (EPON) system and method for realizing end-to-end transparent clock in system | |
CN102263629A (en) | Method for time synchronization among boards, clock board and NE (network element) device | |
CN101753578A (en) | ETHERNET/EI protocol conversion method and protocol converter |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |