CN103634091A - Time synchronization system and method with multiple synchronization domains, and cross-domain device - Google Patents
Time synchronization system and method with multiple synchronization domains, and cross-domain device Download PDFInfo
- Publication number
- CN103634091A CN103634091A CN201210295766.8A CN201210295766A CN103634091A CN 103634091 A CN103634091 A CN 103634091A CN 201210295766 A CN201210295766 A CN 201210295766A CN 103634091 A CN103634091 A CN 103634091A
- Authority
- CN
- China
- Prior art keywords
- synchronization field
- synchronization
- cross
- territory
- domain
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0641—Change of the master or reference, e.g. take-over or failure of the master
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
- H04J3/0661—Clock or time synchronisation among packet nodes using timestamps
- H04J3/0667—Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
The invention discloses a time synchronization system and a method with multiple synchronization domains, and a cross-domain device. The method comprises that: a time synchronization network is divided into multiple synchronization domains, the cross-domain devices are deployed among the synchronization domains, synchronization relations are established among the synchronization domains via the cross-domain devices, and transmission of time source information and protection of time sources are performed among the synchronization domains so that time synchronization is realized among the synchronization domains. The invention brings forward a synchronization framework based on the multiple synchronization domains. The time synchronization network is divided into the multiple synchronization domains so that inter-domain intercommunication is realized, inter-domain synchronization relations are established, cross-domain transmission and inter-domain protection of the time source information are realized and inter-domain loops are avoided. Therefore, problems in the prior art that inter-domain intercommunication and inter-domain protection cannot be realized among the multiple synchronization domains in the time synchronization network are solved.
Description
Technical field
The present invention relates to packet network synchronization technical field, relate in particular to a kind of clock synchronization system, method and cross-domain equipment of many synchronization fields.
Background technology
Along with the high speed development of 3G network, PTP (Precision Time Protocol, Precision Time Protocol) time synchronization protocol obtains increasing attention and application widely in packet network.Domestic and overseas operators is constantly used PTP agreement to carry out time synchronized, progressively replaces and uses GPS (Global Position System, global positioning system) to carry out the mode of time synchronized.
For time synchronization network, synchronous topology is BMC (the Best Master Clock by PTP agreement, best master clock) algorithm is realized and is selected source and set up topology, its thought for first electing a GM that the highest grade (Grandmaster Clock in synchronization field, grandmother's clock), then according to the jumping figure apart from GM, completing topology sets up; Its advantage is that the whole network can be synchronized with a time source, and under stable state, whole net is in homology time synchronized state like this.This Time Synchronization Network is simple in structure, does not also need cross-domain processing; But along with the continuous expansion of Time synchronization technique application, this time synchronized framework is more and more not suitable with large-scale network-estabilishing.Its major defect comprises: (1) network hierarchical structure is unintelligible, causes the network operation in later stage very difficult; (2) the whole network can not be realized the load sharing of GM and backup each other; (3) network is too large, and while breaking down, BMC switching time is long; (4) GM is long to the synchronization link of terminal equipment (such as base station), introduces more link asymmetry error.
Prior art allows to have a plurality of synchronization fields in Synchronization Network; similar VPN (Virtual Private Network; Virtual Private Network); between synchronization field, be mutually to isolate; but in the networking situation of this many synchronization fields; between territory, can not realize intercommunication, can not realize between the territory of many synchronization fields and protecting.
Summary of the invention
Between the technology that the present invention solves, topic is to provide a kind of clock synchronization system, method and cross-domain equipment of many synchronization fields; time synchronization network is divided into a plurality of synchronization fields; realize inter-domain intercommunicate, set up synchronized relation between territory, realize between the cross-domain transmission, territory of time source information and protecting.
For solving between above-mentioned technology, inscribe, the invention provides a kind of method for synchronizing time of many synchronization fields,
Time Synchronization Network is divided into a plurality of synchronization fields; between synchronization field, dispose cross-domain equipment; by described cross-domain equipment, between synchronization field, set up synchronized relation, between synchronization field, carry out the transmission of time source information and the protection of time source, realize the time synchronized between synchronization field.
Further, described synchronization field comprises: Precision Time Protocol territory (PTP domain), time-domain (time domain), NTP (Network Time Protocol) (NTP) territory.
Further, described synchronization field is PTP territory, and described cross-domain equipment disposes one or more PTP ports, and described each PTP port belongs to identical or different synchronization field;
Synchronized relation between adjacent synchronization field is main-main (master-master) relation, or MS master-slave (master-slave) relation;
If between described synchronization field be MS master-slave relation, the synchronizer in slave synchronization field selects the time source of disposing in master synchronization field to carry out synchronously;
If be master-primary relation between described synchronization field, while having disposed time source in this synchronization field, synchronizer selects the time source in this synchronization field to carry out synchronously; In this synchronization field not deployment time source or this synchronization field in the time source disposed when breaking down or degrading, synchronizer selects the time source in other synchronization fields to carry out synchronously.
Further, while being master-primary relation between described synchronization field,
Described cross-domain equipment is received when the PTP of other synchronization fields transmissions notices (Announce) message, according to Parameter Mapping table between the territory configuring on this cross-domain equipment, the time source parameter in described PTP notification packet is remapped, after wherein remapping, the time source grade of other synchronization field is lower than the time source grade of this synchronization field, and the time source parameter based on after mapping, operation best master clock (BMC) algorithm, calculate the state of this cross-domain equipment PTP port, with set up and described synchronization field between synchronized relation.
Further, while being master-primary relation between described synchronization field, described method also comprises:
When described cross-domain equipment is received the PTP notification packet that other synchronization fields send, according to the control that conducts interviews of access control rule between the territory of configuration, if do not meet access control rule between described territory, abandon described PTP notification packet; If meet access control rule between described territory, the time source parameter in described PTP notification packet is remapped.
Further, while being master-primary relation between described synchronization field, at described synchronization field, set up after synchronized relation, described method also comprises:
When described cross-domain equipment Inspection is normal to the time source of this synchronization field, the PTP event message that described cross-domain equipment sends the adjacent synchronization field receiving abandons;
When described cross-domain equipment Inspection is broken down or degrades to the time source of this synchronization field, the PTP event message that described cross-domain equipment sends according to the adjacent synchronization field receiving, calculate time deviation, select the time source of described adjacent synchronization field to carry out cross-domain time synchronized;
When described cross-domain equipment Inspection is broken down or degrades and when clock source that described adjacent synchronization field detected also breaks down or degrades, the synchronizer of this synchronization field reselects clock source in this synchronization field to the clock source of this synchronization field.
Further, while being master-primary relation between described synchronization field,
Between described synchronization field, set up after synchronized relation, if cross-domain equipment is not received the PTP notification packet of adjacent synchronization field in the given time, to described adjacent synchronization field, send PTP event message; If received, stop sending PTP event message to described adjacent synchronization field.
Further, between described synchronization field, be MS master-slave while being related to,
For the PTP port of cross-domain equipment, adopt cross-domain BMC algorithm to calculate PTP port status; Or static appointment PTP port status is Master or Slave.
Further, described cross-domain equipment transmits described time source information in the following way between synchronization field:
By the territory method of synchronization: when the cross-domain transmission of PTP notification packet, every through a synchronization field, cross-domain equipment is revised as the territory number of this synchronization field by the territory number in the PTP notification packet receiving, and increases jumping figure, and other parameter remains unchanged;
Cross-domain transparent transmission mode: cross-domain equipment is as cross-domain logic TC passage, to the PTP notification packet receiving, at the entry record entry time stamp of logic TC passage, at the outlet record outlet timestamp of logic TC passage; Difference by described outlet timestamp and entry time stamp show that PTP message is through the residence time of this synchronization field, thereby completes cross-domain timing transparent transmission.
Further, described method also comprises:
For each synchronization field configures different territory class informations, described territory class information comprises territory number and/or territory priority 1 and/or territory GM clock grade, and/or territory priority 2;
Cross-domain equipment carries out the notice of territory class information, and the territory class information based on each synchronization field moves cross-domain BMC algorithm, selects best synchronization field, sets up the synchronized relation between territory;
Synchronizer in each synchronization field carries out the notice of territory inter-sync information, and in operation territory, BMC algorithm is set up the synchronized relation in territory.
Further, between described synchronization field, be MS master-slave while being related to, described method also comprises:
When the cross-domain equipment Inspection of main synchronization field is normal to the time source of this synchronization field, described cross-domain equipment sends PTP notification packet to other from synchronization field, notice the clock grade information of this synchronization field time source;
When the cross-domain equipment Inspection of main synchronization field is broken down or degrades to the time source of this synchronization field, to other from synchronization field, send PTP notification packet, notice the clock grade information of this cross-domain equipment.
Further, described method also comprises:
When other cross-domain equipment from synchronization field is received the PTP notification packet of the clock grade information that comprises described cross-domain equipment, judge whether territory in this PTP notification packet number, GMid and/or GM class parameter meet access control rule between the territory of this cross-domain equipment configuration, if met, judge that described main synchronization field is normal; Otherwise, judge described main synchronization field fault or degrade, the clock source of other main synchronization fields is selected and be synchronized to the synchronizer of this synchronization field.
Further, described method also comprises:
Between synchronization field, configure one or more of synchronization links, and configure different priority for every synchronization link;
When synchronization link is all normal, select the synchronization link of limit priority to carry out cross-domain synchronous; When high priority synchronization link fault, select the synchronization link of time priority to carry out cross-domain synchronous.
Further, described method also comprises, prevents in the following way loop between territory:
Parameter value between the described territory configuring on cross-domain equipment in Parameter Mapping table is lower than the relevant parameter value in this synchronization field;
Between the territory configuring on cross-domain equipment, in access control rule, specify GM id.
The present invention also provides a kind of cross-domain equipment, is applied to comprise the clock synchronization system of a plurality of synchronization fields,
On described cross-domain equipment, dispose one or more PTP ports, described in each, PTP port belongs to respectively identical or different synchronization field;
Described cross-domain equipment is used for, and sets up synchronized relation between synchronization field, and between synchronization field, carries out the transmission of time source information and the protection of time source, realizes the time synchronized between synchronization field.
Further, described synchronization field is PTP territory;
On described cross-domain equipment, dispose one or more PTP ports, described in each, PTP port belongs to respectively identical or different synchronization field.
Further, described cross-domain equipment further comprises that synchronized relation sets up module, and time synchronizing module,
Described synchronized relation set up module for, between this synchronization field and other synchronization fields, set up following a kind of synchronized relation: main-main (master-master) relation, or MS master-slave (master-slave) relation;
Described time synchronizing module is used for, if be MS master-slave relation between this synchronization field and other synchronization fields, and this synchronization field is slave, selects the time source of disposing in master synchronization field to carry out synchronously; If be MS master-slave relation between this synchronization field and other synchronization fields, while having disposed time source in this synchronization field, select the time source in this synchronization field to carry out synchronously; In this synchronization field not deployment time source or this synchronization field in the time source disposed when breaking down or degrading, select the time source in other synchronization fields to carry out synchronously.
Further, described synchronized relation set up module for, and while being master-primary relation between adjacent synchronization field, when receiving PTP notice (Announce) message that other synchronization fields send, according to the access control rule control that conducts interviews between the territory of configuration, if do not meet access control rule between described territory, abandon described PTP notification packet; If meet access control rule between described territory, according to Parameter Mapping table between the territory configuring on this cross-domain equipment, the time source parameter in described PTP notification packet is remapped, after wherein remapping, the time source grade of other synchronization field is lower than the time source grade of this synchronization field, and the time source parameter based on after mapping, operation best master clock (BMC) algorithm, calculate the state of this cross-domain equipment PTP port, with set up and described synchronization field between synchronized relation.
Further, described synchronized relation set up module for, and between adjacent synchronization field, be MS master-slave while being related to, adopt cross-domain BMC algorithm dynamic calculation PTP port status; Or static designated port state is Master or Slave.
Further, described time synchronizing module is used for:
And between adjacent synchronization field, be MS master-slave while being related to, the time source of this synchronization field detected when normal, to other from synchronization field, send PTP notification packet, notice the clock grade information of this synchronization field time source; When the time source of this synchronization field being detected and break down or degrade, to other from synchronization field, send PTP notification packet, notice the clock grade information of this cross-domain equipment;
And while being master-primary relation between adjacent synchronization field, the time source of this synchronization field detected when normal, the PTP event message that the adjacent synchronization field receiving is sent abandons; When the time source of this synchronization field being detected and break down or degrade, the PTP event message sending according to the adjacent synchronization field receiving, calculates time deviation, selects the time source of described adjacent synchronization field to carry out cross-domain time synchronized; When the clock source of this synchronization field being detected, break down or degrade and when clock source that described adjacent synchronization field detected also breaks down or degrades, in this synchronization field, reselect clock source.
Further, described synchronized relation is set up module also for, and the territory class information in synchronisation territory between other synchronization fields, and the territory class information based on each synchronization field moves cross-domain BMC algorithm, selects best synchronization field, sets up the synchronized relation between territory;
Wherein said territory class information comprises territory number and/or territory priority 1 and/or territory GM clock grade, and/or territory priority 2.
Further, described cross-domain equipment also comprises time source information transfer module,
Described time source information transfer module is used for, and transmits in the following way described time source information between synchronization field:
By the territory method of synchronization: when the cross-domain transmission of PTP notification packet, every through a synchronization field, the territory number of territory number being revised as to the synchronization field of current process, increases jumping figure, and other parameter remains unchanged;
Cross-domain transparent transmission mode: when the cross-domain transmission of PTP notification packet, as cross-domain logic TC passage, to the PTP message receiving, at the entry record entry time stamp of logic TC passage, at the outlet record outlet timestamp of logic TC passage; Difference by described outlet timestamp and entry time stamp show that PTP message is through the residence time of this synchronization field, thereby completes cross-domain timing transparent transmission.
Further, described cross-domain equipment also comprises that loop avoids module, described loop avoid module for, prevent in the following way loop between territory:
Parameter value between the described territory configuring on cross-domain equipment in Parameter Mapping table is lower than the relevant parameter value in this synchronization field;
Between the territory configuring on cross-domain equipment, in access control rule, specify GM id.
In addition, the present invention also provides a kind of clock synchronization system of many synchronization fields, described system comprises a plurality of synchronization fields, comprises that one or more synchronizers, described system also comprise the cross-domain equipment described in any one as mentioned above of disposing between synchronization field in each synchronization field.
The present invention proposes a kind of synchronous architecture based on many synchronization fields; time synchronization network is divided into a plurality of synchronization fields; realize inter-domain intercommunicate, set up synchronized relation between territory; realize between the cross-domain transmission, territory of time source information and protect and avoid loop between territory, solved and in time synchronization network, between a plurality of synchronization fields, can not realize the problem of protecting between inter-domain intercommunicate and territory in prior art.
Adopt clock synchronization system, method and the cross-domain equipment of many synchronization fields provided by the invention; compared with prior art; realized between the inter-domain intercommunicate of many synchronization fields, cross-domain transmission, territory and protected and switch; reach minute territory management effect of time synchronized, improved synchronizing quality and the maintainability of 1588 Synchronization Network.
Accompanying drawing explanation
Each accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of many synchronization fields clock synchronization system of the embodiment of the present invention;
Fig. 2 is the schematic diagram of GM backup (GM1, GM2 is normal) between the territory of the embodiment of the present invention;
Fig. 3 is the schematic diagram of GM backup (under GM1 failure conditions) between the territory of the embodiment of the present invention;
Fig. 4 is the schematic diagram of GM backup between the territory of the embodiment of the present invention (GM1, GM2 is under failure conditions);
Fig. 5 is the schematic diagram that the GM1 of the embodiment of the present invention degrades;
Fig. 6 is the domain-to-domain link backup of the embodiment of the present invention and the schematic diagram that loop is avoided;
Fig. 7 is the domain-to-domain link backup of the embodiment of the present invention and the schematic diagram that loop is avoided (link A and link B are normal);
Fig. 8 is the domain-to-domain link backup of the embodiment of the present invention and the schematic diagram that loop is avoided (link A fault, is switched to link B);
Fig. 9 is the schematic diagram of cross-domain transmission of the GM information of the embodiment of the present invention;
Figure 10 is the schematic diagram of the cross-domain transparent transmission (logic TC) of the embodiment of the present invention;
Figure 11 is the schematic diagram that many synchronization fields loop of the embodiment of the present invention is avoided;
Figure 12 is the schematic diagram of the BMC algorithm based on many synchronization fields of the embodiment of the present invention;
Figure 13 is the schematic diagram of the BMC algorithm based on many synchronization fields of the embodiment of the present invention;
Figure 14 is the schematic diagram of switching between the territory fault of the embodiment of the present invention and territory;
Figure 15 is the schematic diagram of the reciprocity framework (normal condition) of Master-Master between the territory of the embodiment of the present invention;
Figure 16 is the schematic diagram of the reciprocity framework (territory 1 fault) of Master-Master between the territory of the embodiment of the present invention;
Figure 17 is the schematic diagram of the how synchronous level framework of the embodiment of the present invention;
Figure 18 is the schematic diagram of the cross-domain synchronizer of the embodiment of the present invention;
Figure 19 is the schematic diagram of synchronizing network of the ring network structure of the embodiment of the present invention;
Figure 20 is the logic diagram of the client/server of the embodiment of the present invention.
Embodiment
Along with the continuous expansion of Time Synchronization Network scale, in prior art, maintenance and upgrading for convenience of network, be divided into a plurality of synchronization fields by large Time Synchronization Network and manage.But in the networking situation of existing this many synchronization fields, between a plurality of synchronization fields, can not realize intercommunication, can not realize between the territory of many synchronization fields and protecting.
For this reason; be necessary to dispose a plurality of synchronization fields and a plurality of time source in Time Synchronization Network; and between synchronization field, need intercommunication, set up cross-domain synchronous topological link, realize that loop between the cross-domain transmission, territory of time source information is avoided, fault detect and cross-domain protection are switched between territory.
For realizing between the inter-domain intercommunicate of many synchronization fields in time synchronization network and territory, protect, the present invention proposes a kind of clock synchronization system of many synchronization fields, by the following technical solutions:
Time Synchronization Network is divided into a plurality of synchronization fields; between synchronization field, dispose cross-domain equipment; by described cross-domain equipment, between synchronization field, set up synchronized relation, between synchronization field, carry out the transmission of time source information and the protection of time source, realize the time synchronized between synchronization field.
Wherein, described synchronization field includes but not limited to: Precision Time Protocol territory (PTP domain), time-domain (time domain), NTP (Network Time Protocol) (NTP) territory, etc.
Take PTP territory as example, and such scheme specifically comprises following main contents:
1, based on artificial planning or synchronized algorithm, large time synchronization network is divided into a plurality of synchronization fields, each synchronization field distributes a territory number; Synchronized relation between synchronization field can be master slave relation, i.e. Master-Slave relation; Also can peer-to-peer, i.e. Master-Master master-primary relation (wherein, the synchronized relation between synchronization field is master slave relation or peer-to-peer, just configures when the network planning);
If be peer-to-peer between 2 synchronization fields, and in synchronization field, disposed time source, synchronization field inter-sync equipment is preferentially selected the time source in this territory; Otherwise, if in this synchronization field not deployment time source, or this synchronization field time source fault/degrade, selects the time source in other territory;
If between 3 synchronization fields be master slave relation, Slave synchronization field is selected the time source of Master synchronization field and is carried out synchronous;
4, time source information allows to transmit across third party's synchronization field, and third party's synchronization field can adopt cross-domain transparent transmission mode to transmit timing signal, also can adopt heavy timing mode transmission;
5, between synchronization field, dispose cross-domain equipment, cross-domain equipment realize in the following manner and territory between defencive function: Parameter Mapping between (1) territory; (2) multiple domain PTP port; (3) cross-domain BMC algorithm; And cross-domain equipment needs support region fault/fall-back detection and notifying mechanism;
6, between synchronization field, can configure one or more synchronization link, every class parameter that link configuration is different, is used for realizing the synchronization link backup between territory;
7, during the cross-domain transmission of time source information, adopt artificial planning (Parameter Mapping, multiple domain PTP port) or cross-domain BMC algorithm, avoid loop between territory.
Present embodiment also provides a kind of method for synchronizing time of many synchronization fields, realizes between the inter-domain intercommunicate of many synchronization fields and territory and protecting, and mainly comprises following content:
One, PTP message preliminary treatment (reciprocity framework) between territory
When the time source of this synchronization field is normal, cross-domain equipment interconnection can directly abandon while receiving the PTP event message of other synchronization fields, can be not synchronous;
When the time source of this synchronization field breaks down or degrades, according to the PTP event message of other synchronization fields that receive, calculate time deviation, carry out time synchronized (according to the timestamp in PTP event message, obtain 4 time values, then according to computing formula, calculate, specifically with reference to IEEE-1588v2 standard criterion).
Two, cross-domain PTP port (client/server)
The PTP port of prior art can not be cross-domain, between the PTP port configuring on cross-domain equipment, can only carry out timing at affiliated synchronization field and transmit, isolation mutually between territory.
Cross-domain PTP port implementation method of the present invention, step comprises:
By the way, when other synchronization field is received the clock grade information of this cross-domain equipment of notice, if the parameters such as the territory in PTP notification packet number, GMid, GM grade do not meet access rule (hereinafter also referred to as GM access control rule) between the territory of this equipment configuration, think this synchronization field fault or degrade; Otherwise, think that this synchronization field is normal.
Three, cross-domain BMC algorithm
For the ease of setting forth the present invention, below with reference to drawings and the specific embodiments, the enforcement of technical solution of the present invention is described in further detail.It should be noted that, in the situation that not conflicting, the embodiment in the application and the feature in embodiment be combination in any mutually.
Embodiment mono-
The present embodiment relates generally to GM backup between territory in reciprocity framework (relation between Master-Master master-main territory).
In the present embodiment, time synchronization network is divided into a plurality of synchronization fields, each synchronization field is all disposed GM, between synchronization field, is peer-to-peer, during inter-domain intercommunicate, need to carry out preliminary treatment to PTP message between territory, comprises between territory Parameter Mapping between access control inspection and territory.
Particularly, arranging access control list on cross-domain equipment, and configure GM Parameter Mapping table (being equivalent to the local first level function based on synchronization field), that is: access control between (1) territory, (2) Parameter Mapping-territory local first level between territory, specifically comprises:
1., if this synchronization field GM is normal, inter-sync equipment in territory preferentially selects the GM of this synchronization field to carry out synchronously;
2., if this synchronization field GM lost efficacy or degraded, based on territory priority (such as priority 2), select the GM of other synchronization field to carry out synchronously;
3., if the GM of this synchronization field and other synchronization field lost efficacy, again at this synchronization field, select new GM;
Between territory in line with distrusting principle, inter-domain intercommunicate need to check legitimacy (access control inspection);
5. between two cross-domain equipment, there is Master-Master state (prior art does not exist this pattern), can mutually send Announce message and event message, but can not carry out under normal circumstances synchronous; When time source fault or while degrading, can obtain the timestamp in the PTP event message of adjacent synchronization field, calculate time deviation and revise the deviation of equipment of itself, reach synchronous object.
In addition, a kind of optimization method is: can forbid sending event message, this equipment PTP port is Master state, also needs to check the Announce message whether can receive opposite end, if a period of time do not receive, send event message; If received, stop sending event message.Wherein, if receive the Announce message that the other side sends, show it is master-primary relation, stop sending PTP event message, thereby reduced the requirement to the network bandwidth, improved bandwidth resources utilance.
6. between synchronization field fault detect and territory, switch
By GM access control rule, can detect GM place synchronization field fault or degrade, thereby produce between territory, switch.Specifically can comprise following content:
(1) can check other synchronization field fault.Such as, if other synchronization field GM (GMid=1) lost efficacy, failure domain can reselect out a new GM (GM id=2); At this moment, can, in GM access control rule, specify and only trust GM id=1; Like this, as long as GMid=1 fault thinks that the synchronization field at GMid=1 place breaks down;
(2) can check whether other synchronization field degrades.For example, if other synchronization field GM (GM id=1) degrades, clockClass becomes 20 from 10; At this moment cross-domain equipment can detect this variation, by configuration access rule, such as GM id=1 is normal, and the P1/CC/P2 of this GM (priority 1/clock grade/priority 2) meets certain requirements, just think that this GM can use, otherwise think GM fault or degrade.
In addition, can configure the different access control rule of controlling granularities, such as can configuration detection territory number whether mate, whether GMid mate; Can also be configured in when specifying GMid, detect GM grade and whether mate, etc.
Fig. 2, Fig. 3, Fig. 4 is the scene of two synchronization field intercommunications, a GM of each territory configuration, two synchronization fields are separate, invisible mutually; Cross-domain equipment T-BC2 and T-BC5 are used for realizing cross-domain inter communication.Synchronous Principle is: the GM in this synchronization field is main GM, and priority is high; The GM of other synchronization field is standby GM, and priority is low.For example, the equipment in synchronization field 1, GM1 is main GM, and GM2 is standby GM.Concrete steps synchronous between territory are:
Wherein the GM rule list on the T-BC2 in synchronization field 1 is for the GM2 in access synchronized territory 2, and GM rule list on T-BC5 in synchronization field 2 is for the GM1 in access synchronized territory 1.
For example, cross-domain equipment T-BC2 receives that from the cross-domain equipment T-BC5 of synchronization field 2 Announce message parameter is:
domainNumber=2,grandmasterPriority1=2,
grandmasterClockQuality.clockClass=4,
grandmasterPriority2=5,grandmasterIdentity=GM2;
Because grandmasterIdentity in Announce message is consistent with the parameter of GM access control rule configuration, be all GM2, so access control inspection is passed through;
Then, the parameter of Announce message will be mapped as parameter corresponding to GM Parameter Mapping table; Announce message parameter after processing is: domainNumber=1, grandmasterPriority1=3, grandmasterClockQuality.clockClass=5, grandmasterPriority2=7.
T-BC5 equipment is also similarly processed, and the Announce message parameter after processing is:
domainNumber=2,grandmasterPriority1=2,
grandmasterClockQuality.clockClass=4,grandmasterPriority2=7。
T-BC2 equipment in synchronization field 1, according to information such as priority 1, clockClass, priority 2s, adopt BMC algorithm, the state that calculates PTP port one is Slave, and port 2 and port 3 states are all Master; T-BC5 equipment in synchronization field 2, according to BMC algorithm, the state that calculates PTP port one is Slave, and port 2 and port 3 states are all Master.
When the GM1 in synchronization field 1 lost efficacy (GM2 is still effective), as shown in Figure 3, at this moment the synchronizer in synchronization field 1 will be synchronized to the GM2 of synchronization field 2, and concrete steps are:
In addition, at this moment the PTP port 3 of T-BC2 equipment will be accepted the PTP event message that T-BC5 sends, and calculates time deviation and carries out synchronous.
GM2 in synchronization field 2 lost efficacy, and the GM1 of synchronization field 1 is still effectively time, and handling process is similar with it.
In addition,, when GM1 and GM2 lost efficacy, now the principle of time synchronized is: only in this territory, reselect out certain PTP equipment as new GM, and can not select certain the PTP equipment in other territories.
As shown in Figure 4, concerning T-BC2 equipment, because the GM access control rule of grandmasterIdentity and configuration in the Announce message of receiving does not conform to (GM id is different), show that T-BC2 distrusts the GM newly selecting in synchronization field 2, therefore, this Announce message will abandon.The processing of T-BC5 equipment is similar.Thereby the PTP equipment of two synchronization fields is the GM reselecting out respectively in this territory, and can not select the PTP equipment in other territory as GM.
As shown in Figure 5, when degrading appears in GM1, changing appears in clock grade clockClass, and such as becoming 52 from 5, and other parameter constant now, even if occur degrading, also can not revised under existing BMC algorithm prerequisite, selects new GM.Such as, as shown in Figure 5, when degrading appears in GM1, will select GM2 as grandmother's clock.The synchronous topology finally calculating as shown in Figure 5.
Embodiment bis-
The present embodiment relates generally to the realization that domain-to-domain link backs up and loop is avoided.
In the present invention, by other synchronization field abstract be virtual GM, the synchronizer in this territory is abstract is virtual BC; Be GM and a plurality of virtual GM that virtual BC has connected this territory; As shown in Figure 6.Its specific implementation comprises:
1. many synchronization links between territory configure different priority, realize domain-to-domain link protection;
Wherein, domain-to-domain link priority is for certain territory, and such as territory 1 and territory 2 exist link A and link B, concerning territory 1, link A priority is higher than link B; But concerning territory 2, link B priority can be higher than link A;
For example, can distinguish by configuring different priority 2s the priority of link; By the priority attribute of link, can between many synchronization links, switch.
2. between territory, loop is avoided
Particularly, can pass through: access control rule between (1) territory; Or (2) GM parameter remaps, prevent loop between territory.
Due to the Announce message sending in this synchronization field, be looped back to after this synchronization field through other synchronization field, because priority is lowered, such as priority 2 is always lower than the P2 of this synchronization field, so can not form loop.
(1) if GM id changes, priority P 2, lower than this synchronization field P2, does not have loop;
(2) if GM id does not change, by GM ACL (Access Control List, Access Control List (ACL)), filtered (only trusting GM1), therefore do not have loop.
As shown in Figure 7, between synchronization field 1 and synchronization field 2, there are two synchronization links, are respectively link A and link B; Wherein, the priority of link A is higher than the priority of link B; When the GM in two synchronization fields is normal, in the territory of synchronization field 1 and synchronization field 2, equipment all selects the GM in this territory to carry out synchronously; When the GM of synchronization field 1 lost efficacy and the GM of synchronization field 2 is normal, at this moment the synchronizer in synchronization field 1 will be selected the GM of synchronization field 2.It specifically comprises following key step:
With reference to figure 6, concerning synchronization field 1, inter-sync equipment in territory can abstractly be a virtual BC equipment, and the time source that it connects has 3, and one is the true GM in this synchronization field, and corresponding GM parameter is respectively: priority 1=3, clock grade=5, priority 2=7; Two other is virtual GM (the abstract virtual GM of being in other territory); GM parameter is as shown in 6 figure, and at this moment, the priority of 3 GM is distinguished by priority 2.As can be seen from Figure 6, in territory, GM priority is the highest, and virtual GM1 priority is taken second place, and virtual GM2 priority is minimum.
Embodiment tri-
The present embodiment relates generally to the cross-domain transmission of time source information.
The cross-domain transmission of GM information, can adopt but be not limited only to following two kinds of modes:
Announce message has been carried GM parameter, comprises territory number, source port ID, timestamp, P1, CC, P2, GMid, jumping figure, time source type; When cross-domain transmission, every through a synchronization field, territory number all needs to be revised as the territory number of the synchronization field of current process; Other parameter constant; Note, jumping figure needs to increase.
It should be noted that, prior art is thought, the similar VPN character in PTP territory, isolation mutually between territory; Concerning Synchronization Network, PTP territory is more suitable as the concept of " area retaining zone " in fact.
At this moment, GM time source is not to identify according to GMid, and should be domain+GMid.
As shown in figure 10, intermediate field locks in advance GM2 and has completed time synchronized; In addition, on cross-domain equipment B C21 and BC23, configure a cross-domain logic TC passage; The cross-domain equipment B C21 in territory 2 regards the entrance of logic TC passage as, and BC23 regards the outlet of logic TC passage as; To PTP event message, at the entrance of logic TC passage, record entry timestamp; In the outlet of logic TC passage, record outlet timestamp; It is poor that outlet timestamp and entry time stab, and is PTP message through the residence time of synchronization field 2.Thereby completed cross-domain timing transparent transmission.
Below will be described in detail above-mentioned two kinds of cross-domain transfer modes.
As shown in Figure 9, a plurality of synchronization fields to serial, need to consider the cross-domain problem of transmission of GM information.
Such as, synchronization field 3 access synchronized territories 1 and synchronization field 2; When GM1 and GM2 all normal, when GM3 lost efficacy, synchronization field 3 will be synchronized to GM2; When GM1 is normal, when GM2 and GM3 lost efficacy, at this moment synchronization field 3 need to be synchronized to GM1, at this moment just need to realize the cross-domain transmission of GM1.
Specific implementation step mainly comprises:
The cross-domain transparent transmission mode-logic TC of mode 2.
Figure 10 shows that the cross-domain transparent transmission schematic diagram of timing information.At this moment synchronization field 2 is abstract is a logic TC equipment, and the BC21 of synchronization field 2 is as the inbound port of logic TC equipment, and BC23 is as the outbound port of logic TC equipment.Concrete steps mainly comprise:
Embodiment tetra-
The present embodiment relates generally to the realization that many synchronization fields loop is avoided.
Particularly, can avoid many synchronization fields loop by GM access control rule between configuration territory.
Figure 11 shows that a plurality of synchronization field synchronizing networks, such as to synchronization field 2, it can obtain GM source information from synchronization field 1 and synchronization field 3; BC21 is for the GM1 in access synchronized territory 1, and BC23 is for the GM3 in access synchronized territory 3.Concrete steps mainly comprise:
In addition, when a plurality of synchronization fields are interconnected, need to avoid loop.If GM2 and GM3 lost efficacy or degraded, the synchronous topology of multiple domain that now BMC calculates as shown in figure 11, because the filtration mapping table of the port one of BC32 is only trusted GM2, so can not form multiple domain loop.
Embodiment five
The present embodiment relates generally to the BMC algorithm-Master-Slave client/server based on many synchronization fields.
Master-Slave client/server:
Dynamical fashion, calculates according to current state decision making algorithm; The field parameter P1/cc/p2 of configuration can be identical, also can be different, and the pass between territory is Master-Slave relation;
Static mode, based on human configuration, it is Master or Slave that PTP port between territory is set.
The method of judgement territory fault is as follows:
(1) cross-domain equipment, such as BC21 and the BC23 in territory 2, be not synchronized under the prerequisite in other territory, if do not receive the GM2 information in this territory in a period of time, thinks this territory fault;
(2) under the failure condition of territory, cross-domain equipment B C21 and BC23 will outwards not send information between territory; Or send the domain information degrade.
1. the BMC algorithm (dynamical fashion) based on cross-domain
As shown in figure 12, synchronizing network is comprised of 4 synchronization fields, and each synchronization field can be disposed GM, also can not dispose GM; Concrete steps mainly comprise:
Illustrate: the identification of cross-domain PTP message: (1) increases cross-domain sign in PTP message; (2) be checked through territory difference, think the cross-domain information of having received.
Attention: concerning BC23, after being synchronized to the GM of synchronization field 1, transmission be the information of synchronization field 1, but not the information in this territory.
Step 8, between territory, topology foundation and loop are avoided:
(1) revise Annouce message format, between increase territory, jumping figure (reserve bytes) is as Figure 13, and territory 1 and territory 2 are set up after master slave relation, if Announce message between territory, jumping figure+1 between territory are received or sent to PTP interface between territory; To PTP port between the non-territory in territory, do not process;
(2) to BC31 and two cross-domain equipment of BC43, between comparison domain, after jumping figure, it is Master that BC31 will be set, and BC43 is Passive.
Embodiment six
The present embodiment relates generally to the BMC algorithm-Master-Master equity framework based on many synchronization fields.
Equity framework Master-Master:
Revise standing state decision making algorithm, if status, two territories is identical, such as field parameter P1/CC/P2 equates, two territories are all Master, and their relation is the relation of Master-Master (peer-to-peer);
Equipment in this time domain preferentially selects the GM in this territory to carry out synchronously.
As shown in figure 15, two synchronization fields, the parameter of synchronization field 1 and synchronization field 2 equates.The PTP port status that between this time domain, edge device calculates is all Master.
Embodiment seven
The present embodiment relates generally to the client/server of many synchronization fields.
As shown in figure 17, time synchronization network is divided into a plurality of synchronization fields, is master slave relation between synchronization field, the principle that other territory is trusted, the Synchronization Network of applicable single operator; That is:
1. manually plan the master slave relation of a lot of synchronization field;
2. the PTP port status human configuration of cross-domain equipment;
PTP equipment is multiple domain synchronizer, is characterized in:
(1) the PTP port in multiple domain synchronizer can belong to respectively different synchronization fields, and such as Figure 17, PTP port P11 and P12 belong to synchronization field 1, and PTP port P31 belongs to synchronization field 3, and PTP port P41 belongs to synchronization field 4;
(2) the PTP port status of multiple domain synchronizer can dynamic calculation (based on BMC algorithm or other algorithm, as BC equipment), and PTP port is two-way; Also can static configuration (as GM equipment), PTP port is unidirectional;
(3) the mixing apparatus model of BC+OC, such as, in synchronization field 1, as BC equipment; In synchronization field 3 and synchronization field 4 as GM equipment;
Embodiment eight
The present embodiment relates generally to many synchronization fields deployment scheme of loop network.
Current a kind of ring network framework, in order to improve maintainability, adopts layering to divide the framework in territory.As shown in figure 19.Synchronization field 1 is for converging ring, and the equipment converging on ring is common PTP equipment, but equipment clock need to adopt more senior clock, such as 1 grade of clock or 2 grades of clocks; The equipment on ring of converging, as common BC equipment (in synchronization field 1), also can be used as GM equipment (in other synchronization field).Access ring is divided a plurality of synchronization fields, isolation mutually between territory.
The Synchronous Principle of client/server is:
(1) time stream information is from high level to the unidirectional forwarding of low layer, and time stream information is from main synchronization field to transmitting from synchronization field;
(2) lowermost layer forms the different synchronization field of isolation mutually; From synchronization field, mutually isolate;
(3) by minute territory, realize load sharing and the backup of many GM, a GM equipment belongs to different territories;
As shown in Figure 19, GM2 and GM3 belong to synchronization field 3 and synchronization field 4; In synchronization field 3, GM2 is main GM, and GM3 is standby GM; But in synchronization field 4, GM2 is standby GM, and GM3 is main GM.
In addition, also provide a kind of cross-domain equipment in the embodiment of the present invention, be applied to comprise the clock synchronization system of a plurality of synchronization fields, disposed one or more PTP ports on described cross-domain equipment, described in each, PTP port belongs to respectively identical or different synchronization field;
Described cross-domain equipment is used for, and sets up synchronized relation between synchronization field, and between synchronization field, carries out the transmission of time source information and the protection of time source, realizes the time synchronized between synchronization field.
Further, described synchronization field is PTP territory;
On described cross-domain equipment, dispose one or more PTP ports, described in each, PTP port belongs to respectively identical or different synchronization field.
Further, described cross-domain equipment further comprises that synchronized relation sets up module, and time synchronizing module,
Described synchronized relation set up module for, between this synchronization field and other synchronization fields, set up following a kind of synchronized relation: main-main (master-master) relation, or MS master-slave (master-slave) relation;
Described time synchronizing module is used for, if be MS master-slave relation between this synchronization field and other synchronization fields, and this synchronization field is slave, selects the time source of disposing in master synchronization field to carry out synchronously; If be MS master-slave relation between this synchronization field and other synchronization fields, while having disposed time source in this synchronization field, select the time source in this synchronization field to carry out synchronously; In this synchronization field not deployment time source or this synchronization field in the time source disposed when breaking down or degrading, select the time source in other synchronization fields to carry out synchronously.
Further, described synchronized relation set up module for, and while being master-primary relation between adjacent synchronization field, when receiving PTP notice (Announce) message that other synchronization fields send, according to the access control rule control that conducts interviews between the territory of configuration, if do not meet access control rule between described territory, abandon described PTP notification packet; If meet access control rule between described territory, according to Parameter Mapping table between the territory configuring on this cross-domain equipment, the time source parameter in described PTP notification packet is remapped, after wherein remapping, the time source grade of other synchronization field is lower than the time source grade of this synchronization field, and the time source parameter based on after mapping, operation best master clock (BMC) algorithm, calculate the state of this cross-domain equipment PTP port, with set up and described synchronization field between synchronized relation.
Further, described synchronized relation set up module for, and between adjacent synchronization field, be MS master-slave while being related to, adopt cross-domain BMC algorithm dynamic calculation PTP port status; Or static designated port state is Master or Slave.
Further, described time synchronizing module is used for:
And between adjacent synchronization field, be MS master-slave while being related to, the time source of this synchronization field detected when normal, to other from synchronization field, send PTP notification packet, notice the clock grade information of this synchronization field time source; When the time source of this synchronization field being detected and break down or degrade, to other from synchronization field, send PTP notification packet, notice the clock grade information of this cross-domain equipment;
And while being master-primary relation between adjacent synchronization field, the time source of this synchronization field detected when normal, the PTP event message that the adjacent synchronization field receiving is sent abandons; When the time source of this synchronization field being detected and break down or degrade, the PTP event message sending according to the adjacent synchronization field receiving, calculates time deviation, selects the time source of described adjacent synchronization field to carry out cross-domain time synchronized; When the clock source of this synchronization field being detected, break down or degrade and when clock source that described adjacent synchronization field detected also breaks down or degrades, in this synchronization field, reselect clock source.
Further, described synchronized relation is set up module also for, and the territory class information in synchronisation territory between other synchronization fields, and the territory class information based on each synchronization field moves cross-domain BMC algorithm, selects best synchronization field, sets up the synchronized relation between territory;
Wherein said territory class information comprises territory number and/or territory priority 1 and/or territory GM clock grade, and/or territory priority 2.
Further, described cross-domain equipment also comprises time source information transfer module,
Described time source information transfer module is used for, and transmits in the following way described time source information between synchronization field:
By the territory method of synchronization: when the cross-domain transmission of PTP notification packet, every through a synchronization field, the territory number of territory number being revised as to the synchronization field of current process, increases jumping figure, and other parameter remains unchanged;
Cross-domain transparent transmission mode: when the cross-domain transmission of PTP notification packet, as cross-domain logic TC passage, to the PTP message receiving, at the entry record entry time stamp of logic TC passage, at the outlet record outlet timestamp of logic TC passage; Difference by described outlet timestamp and entry time stamp show that PTP message is through the residence time of this synchronization field, thereby completes cross-domain timing transparent transmission.
Further, described cross-domain equipment also comprises that loop avoids module, described loop avoid module for, prevent in the following way loop between territory:
Parameter value between the described territory configuring on cross-domain equipment in Parameter Mapping table is lower than the relevant parameter value in this synchronization field;
Between the territory configuring on cross-domain equipment, in access control rule, specify GM id.
In addition, the present invention also provides a kind of clock synchronization system of many synchronization fields, described system comprises a plurality of synchronization fields, comprises that one or more synchronizers, described system also comprise the cross-domain equipment described in any one as mentioned above of disposing between synchronization field in each synchronization field.
These are only preferred case study on implementation of the present invention; be not limited to the present invention; the present invention also can have other various embodiments; in the situation that not deviating from spirit of the present invention and essence thereof; those of ordinary skill in the art can make according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, and in some cases, can carry out shown or described step with the order being different from herein, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
Claims (24)
1. a method for synchronizing time for synchronization field more than, is characterized in that,
Time Synchronization Network is divided into a plurality of synchronization fields; between synchronization field, dispose cross-domain equipment; by described cross-domain equipment, between synchronization field, set up synchronized relation, between synchronization field, carry out the transmission of time source information and the protection of time source, realize the time synchronized between synchronization field.
2. the method for claim 1, is characterized in that,
Described synchronization field comprises: Precision Time Protocol territory (PTP domain), time-domain (time domain), NTP (Network Time Protocol) (NTP) territory.
3. the method for claim 1, is characterized in that,
Described synchronization field is PTP territory, and described cross-domain equipment disposes one or more PTP ports, and described each PTP port belongs to identical or different synchronization field;
Synchronized relation between adjacent synchronization field is main-main (master-master) relation, or MS master-slave (master-slave) relation;
If between described synchronization field be MS master-slave relation, the synchronizer in slave synchronization field selects the time source of disposing in master synchronization field to carry out synchronously;
If be master-primary relation between described synchronization field, while having disposed time source in this synchronization field, synchronizer selects the time source in this synchronization field to carry out synchronously; In this synchronization field not deployment time source or this synchronization field in the time source disposed when breaking down or degrading, synchronizer selects the time source in other synchronization fields to carry out synchronously.
4. method as claimed in claim 3, is characterized in that, while being master-primary relation between described synchronization field,
Described cross-domain equipment is received when the PTP of other synchronization fields transmissions notices (Announce) message, according to Parameter Mapping table between the territory configuring on this cross-domain equipment, the time source parameter in described PTP notification packet is remapped, after wherein remapping, the time source grade of other synchronization field is lower than the time source grade of this synchronization field, and the time source parameter based on after mapping, operation best master clock (BMC) algorithm, calculate the state of this cross-domain equipment PTP port, with set up and described synchronization field between synchronized relation.
5. the method as described in claim 3 or 4, is characterized in that, while being master-primary relation between described synchronization field, described method also comprises:
When described cross-domain equipment is received the PTP notification packet that other synchronization fields send, according to the control that conducts interviews of access control rule between the territory of configuration, if do not meet access control rule between described territory, abandon described PTP notification packet; If meet access control rule between described territory, the time source parameter in described PTP notification packet is remapped.
6. the method as described in claim 3 or 4, is characterized in that, while being master-primary relation between described synchronization field, at described synchronization field, sets up after synchronized relation, and described method also comprises:
When described cross-domain equipment Inspection is normal to the time source of this synchronization field, the PTP event message that described cross-domain equipment sends the adjacent synchronization field receiving abandons;
When described cross-domain equipment Inspection is broken down or degrades to the time source of this synchronization field, the PTP event message that described cross-domain equipment sends according to the adjacent synchronization field receiving, calculate time deviation, select the time source of described adjacent synchronization field to carry out cross-domain time synchronized;
When described cross-domain equipment Inspection is broken down or degrades and when clock source that described adjacent synchronization field detected also breaks down or degrades, the synchronizer of this synchronization field reselects clock source in this synchronization field to the clock source of this synchronization field.
7. the method as described in claim 3 or 4, is characterized in that, while being master-primary relation between described synchronization field,
Between described synchronization field, set up after synchronized relation, if cross-domain equipment is not received the PTP notification packet of adjacent synchronization field in the given time, to described adjacent synchronization field, send PTP event message; If received, stop sending PTP event message to described adjacent synchronization field.
8. method as claimed in claim 3, is characterized in that, is MS master-slave while being related between described synchronization field,
For the PTP port of cross-domain equipment, adopt cross-domain BMC algorithm to calculate PTP port status; Or static appointment PTP port status is Master or Slave.
9. the method as described in claim 1,2,3,4 or 8, is characterized in that, described cross-domain equipment transmits described time source information in the following way between synchronization field:
By the territory method of synchronization: when the cross-domain transmission of PTP notification packet, every through a synchronization field, cross-domain equipment is revised as the territory number of this synchronization field by the territory number in the PTP notification packet receiving, and increases jumping figure, and other parameter remains unchanged;
Cross-domain transparent transmission mode: cross-domain equipment is as cross-domain logic TC passage, to the PTP notification packet receiving, at the entry record entry time stamp of logic TC passage, at the outlet record outlet timestamp of logic TC passage; Difference by described outlet timestamp and entry time stamp show that PTP message is through the residence time of this synchronization field, thereby completes cross-domain timing transparent transmission.
10. the method as described in claim 1,2,3 or 4, is characterized in that, described method also comprises:
For each synchronization field configures different territory class informations, described territory class information comprises territory number and/or territory priority 1 and/or territory GM clock grade, and/or territory priority 2;
Cross-domain equipment carries out the notice of territory class information, and the territory class information based on each synchronization field moves cross-domain BMC algorithm, selects best synchronization field, sets up the synchronized relation between territory;
Synchronizer in each synchronization field carries out the notice of territory inter-sync information, and in operation territory, BMC algorithm is set up the synchronized relation in territory.
11. methods as described in claim 3 or 8, is characterized in that, are MS master-slave while being related between described synchronization field, and described method also comprises:
When the cross-domain equipment Inspection of main synchronization field is normal to the time source of this synchronization field, described cross-domain equipment sends PTP notification packet to other from synchronization field, notice the clock grade information of this synchronization field time source;
When the cross-domain equipment Inspection of main synchronization field is broken down or degrades to the time source of this synchronization field, to other from synchronization field, send PTP notification packet, notice the clock grade information of this cross-domain equipment.
12. methods as claimed in claim 11, is characterized in that, described method also comprises:
When other cross-domain equipment from synchronization field is received the PTP notification packet of the clock grade information that comprises described cross-domain equipment, judge whether territory in this PTP notification packet number, GMid and/or GM class parameter meet access control rule between the territory of this cross-domain equipment configuration, if met, judge that described main synchronization field is normal; Otherwise, judge described main synchronization field fault or degrade, the clock source of other main synchronization fields is selected and be synchronized to the synchronizer of this synchronization field.
13. the method for claim 1, is characterized in that, described method also comprises:
Between synchronization field, configure one or more of synchronization links, and configure different priority for every synchronization link;
When synchronization link is all normal, select the synchronization link of limit priority to carry out cross-domain synchronous; When high priority synchronization link fault, select the synchronization link of time priority to carry out cross-domain synchronous.
14. methods as claimed in claim 4, is characterized in that, described method also comprises, prevents in the following way loop between territory:
Parameter value between the described territory configuring on cross-domain equipment in Parameter Mapping table is lower than the relevant parameter value in this synchronization field;
Between the territory configuring on cross-domain equipment, in access control rule, specify GM id.
15. 1 kinds of cross-domain equipment, is characterized in that, are applied to comprise the clock synchronization system of a plurality of synchronization fields,
On described cross-domain equipment, dispose one or more PTP ports, described in each, PTP port belongs to respectively identical or different synchronization field;
Described cross-domain equipment is used for, and sets up synchronized relation between synchronization field, and between synchronization field, carries out the transmission of time source information and the protection of time source, realizes the time synchronized between synchronization field.
16. cross-domain equipment as claimed in claim 15, is characterized in that,
Described synchronization field is PTP territory;
On described cross-domain equipment, dispose one or more PTP ports, described in each, PTP port belongs to respectively identical or different synchronization field.
17. cross-domain equipment as claimed in claim 16, is characterized in that, described cross-domain equipment further comprises that synchronized relation sets up module, and time synchronizing module,
Described synchronized relation set up module for, between this synchronization field and other synchronization fields, set up following a kind of synchronized relation: main-main (master-master) relation, or MS master-slave (master-slave) relation;
Described time synchronizing module is used for, if be MS master-slave relation between this synchronization field and other synchronization fields, and this synchronization field is slave, selects the time source of disposing in master synchronization field to carry out synchronously; If be MS master-slave relation between this synchronization field and other synchronization fields, while having disposed time source in this synchronization field, select the time source in this synchronization field to carry out synchronously; In this synchronization field not deployment time source or this synchronization field in the time source disposed when breaking down or degrading, select the time source in other synchronization fields to carry out synchronously.
18. cross-domain equipment as claimed in claim 17, is characterized in that,
Described synchronized relation set up module for, and while being master-primary relation between adjacent synchronization field, when receiving PTP notice (Announce) message that other synchronization fields send, according to the access control rule control that conducts interviews between the territory of configuration, if do not meet access control rule between described territory, abandon described PTP notification packet; If meet access control rule between described territory, according to Parameter Mapping table between the territory configuring on this cross-domain equipment, the time source parameter in described PTP notification packet is remapped, after wherein remapping, the time source grade of other synchronization field is lower than the time source grade of this synchronization field, and the time source parameter based on after mapping, operation best master clock (BMC) algorithm, calculate the state of this cross-domain equipment PTP port, with set up and described synchronization field between synchronized relation.
19. cross-domain equipment as claimed in claim 17, is characterized in that,
Described synchronized relation set up module for, and between adjacent synchronization field, be MS master-slave while being related to, adopt cross-domain BMC algorithm dynamic calculation PTP port status; Or static designated port state is Master or Slave.
20. cross-domain equipment as described in claim 17,18 or 19, is characterized in that,
Described time synchronizing module is used for:
And between adjacent synchronization field, be MS master-slave while being related to, the time source of this synchronization field detected when normal, to other from synchronization field, send PTP notification packet, notice the clock grade information of this synchronization field time source; When the time source of this synchronization field being detected and break down or degrade, to other from synchronization field, send PTP notification packet, notice the clock grade information of this cross-domain equipment;
And while being master-primary relation between adjacent synchronization field, the time source of this synchronization field detected when normal, the PTP event message that the adjacent synchronization field receiving is sent abandons; When the time source of this synchronization field being detected and break down or degrade, the PTP event message sending according to the adjacent synchronization field receiving, calculates time deviation, selects the time source of described adjacent synchronization field to carry out cross-domain time synchronized; When the clock source of this synchronization field being detected, break down or degrade and when clock source that described adjacent synchronization field detected also breaks down or degrades, in this synchronization field, reselect clock source.
21. systems as described in claim 17,18 or 19, is characterized in that,
Described synchronized relation is set up module also for, and the territory class information in synchronisation territory between other synchronization fields, and the territory class information based on each synchronization field moves cross-domain BMC algorithm, selects best synchronization field, sets up the synchronized relation between territory;
Wherein said territory class information comprises territory number and/or territory priority 1 and/or territory GM clock grade, and/or territory priority 2.
22. cross-domain equipment as described in claim 17,18 or 19, is characterized in that, described cross-domain equipment also comprises time source information transfer module,
Described time source information transfer module is used for, and transmits in the following way described time source information between synchronization field:
By the territory method of synchronization: when the cross-domain transmission of PTP notification packet, every through a synchronization field, the territory number of territory number being revised as to the synchronization field of current process, increases jumping figure, and other parameter remains unchanged;
Cross-domain transparent transmission mode: when the cross-domain transmission of PTP notification packet, as cross-domain logic TC passage, to the PTP message receiving, at the entry record entry time stamp of logic TC passage, at the outlet record outlet timestamp of logic TC passage; Difference by described outlet timestamp and entry time stamp show that PTP message is through the residence time of this synchronization field, thereby completes cross-domain timing transparent transmission.
23. cross-domain equipment as described in claim 17,18 or 19, is characterized in that, described cross-domain equipment also comprises that loop avoids module, described loop avoid module for, prevent in the following way loop between territory:
Parameter value between the described territory configuring on cross-domain equipment in Parameter Mapping table is lower than the relevant parameter value in this synchronization field;
Between the territory configuring on cross-domain equipment, in access control rule, specify GM id.
The clock synchronization system of synchronization field more than 24. 1 kinds, it is characterized in that, described system comprises a plurality of synchronization fields, comprises that one or more synchronizers, described system also comprise the cross-domain equipment as described in any one of claim 15 to 23 of disposing between synchronization field in each synchronization field.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210295766.8A CN103634091B (en) | 2012-08-20 | 2012-08-20 | A kind of clock synchronization system of more synchronization fields, method and cross-domain equipment |
PCT/CN2013/000967 WO2013189176A2 (en) | 2012-08-20 | 2013-08-20 | Multi-synchronization-domain time synchronization system, method and cross-domain device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210295766.8A CN103634091B (en) | 2012-08-20 | 2012-08-20 | A kind of clock synchronization system of more synchronization fields, method and cross-domain equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103634091A true CN103634091A (en) | 2014-03-12 |
CN103634091B CN103634091B (en) | 2019-05-24 |
Family
ID=49769488
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210295766.8A Expired - Fee Related CN103634091B (en) | 2012-08-20 | 2012-08-20 | A kind of clock synchronization system of more synchronization fields, method and cross-domain equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103634091B (en) |
WO (1) | WO2013189176A2 (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015172476A1 (en) * | 2014-05-16 | 2015-11-19 | 中兴通讯股份有限公司 | Synchronization method, controller, synchronization node, synchronous network, and storage medium |
CN105099646A (en) * | 2014-05-14 | 2015-11-25 | 中兴通讯股份有限公司 | Synchronization link determination method and apparatus |
CN107430414A (en) * | 2015-03-25 | 2017-12-01 | 西门子公司 | Equipment, method and system for the temporal information that detects and differentiate different management domains |
CN107667491A (en) * | 2015-06-10 | 2018-02-06 | 诺基亚通信公司 | Strengthen the synchronization in computer network |
CN107769879A (en) * | 2016-08-23 | 2018-03-06 | 罗伯特·博世有限公司 | The system and method for clock synchronization in computer network |
CN108667547A (en) * | 2018-08-10 | 2018-10-16 | 电信科学技术第五研究所有限公司 | A kind of Network Time Protocol conversion method and system |
WO2019174574A1 (en) * | 2018-03-14 | 2019-09-19 | Huawei Technologies Co., Ltd. | Distributed network time protocol |
CN111106889A (en) * | 2018-10-25 | 2020-05-05 | 华为技术有限公司 | Clock synchronization method and device |
US10673551B2 (en) | 2014-12-16 | 2020-06-02 | Huawei Technologies Co., Ltd. | Time synchronization method and apparatus |
CN111245549A (en) * | 2020-01-15 | 2020-06-05 | Ut斯达康通讯有限公司 | Network equipment and method for supporting synchronization of multiple PTP domains |
CN111698052A (en) * | 2020-06-12 | 2020-09-22 | 四川革什扎水电开发有限责任公司 | Homologous time synchronization system crossing power safety zone |
CN113993009A (en) * | 2020-07-27 | 2022-01-28 | 上海诺基亚贝尔股份有限公司 | Method and device for multi-domain transmission by time synchronization, OLT and ONU |
CN114039690A (en) * | 2021-10-18 | 2022-02-11 | 中国联合网络通信集团有限公司 | Time synchronization method, device and computer readable storage medium |
WO2022206614A1 (en) * | 2021-04-02 | 2022-10-06 | 烽火通信科技股份有限公司 | Packet synchronization channel failure handling method and device |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3104556B1 (en) * | 2014-03-05 | 2023-07-05 | Huawei Technologies Co., Ltd. | Clock synchronization method and device, and communication system |
CN104579535B (en) * | 2015-01-06 | 2017-08-01 | 盛科网络(苏州)有限公司 | The method of PTP engines broadcast time stamp, chip handle the method and device of time stamp |
CN105141406A (en) * | 2015-09-29 | 2015-12-09 | 北京润科通用技术有限公司 | Time synchronization method, time synchronization apparatus and simulation system |
CN105959078B (en) * | 2016-06-16 | 2018-02-23 | 浪潮电子信息产业股份有限公司 | A kind of cluster method for synchronizing time, cluster and clock synchronization system |
US10396922B2 (en) | 2017-02-07 | 2019-08-27 | Texas Instruments Incorporated | Apparatus and mechanism to support multiple time domains in a single soc for time sensitive network |
US20230421280A1 (en) * | 2022-06-22 | 2023-12-28 | Moxa Inc. | Method and Device for Time Synchronization of Time Synchronization Domains |
JP2024087752A (en) * | 2022-12-19 | 2024-07-01 | 四零四科技股▲ふん▼有限公司 | Method and device for time synchronization of time synchronization domain |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101142773A (en) * | 2005-03-18 | 2008-03-12 | 皇家飞利浦电子股份有限公司 | Method for synchronization of network nodes |
CN101359238A (en) * | 2008-09-02 | 2009-02-04 | 中兴通讯股份有限公司 | Time synchronization method and system for multi-core system |
CN102332974A (en) * | 2011-11-01 | 2012-01-25 | 盛科网络(苏州)有限公司 | Method and system for supporting synchronization of a plurality of Institute of Electrical and Electronics Engineers (IEEE) 1588 clock domains |
EP2333993B1 (en) * | 2009-12-09 | 2013-02-13 | Alcatel Lucent | Automatic management of timestamp-based synchronisation protocols |
-
2012
- 2012-08-20 CN CN201210295766.8A patent/CN103634091B/en not_active Expired - Fee Related
-
2013
- 2013-08-20 WO PCT/CN2013/000967 patent/WO2013189176A2/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101142773A (en) * | 2005-03-18 | 2008-03-12 | 皇家飞利浦电子股份有限公司 | Method for synchronization of network nodes |
CN101359238A (en) * | 2008-09-02 | 2009-02-04 | 中兴通讯股份有限公司 | Time synchronization method and system for multi-core system |
EP2333993B1 (en) * | 2009-12-09 | 2013-02-13 | Alcatel Lucent | Automatic management of timestamp-based synchronisation protocols |
CN102332974A (en) * | 2011-11-01 | 2012-01-25 | 盛科网络(苏州)有限公司 | Method and system for supporting synchronization of a plurality of Institute of Electrical and Electronics Engineers (IEEE) 1588 clock domains |
Cited By (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105099646A (en) * | 2014-05-14 | 2015-11-25 | 中兴通讯股份有限公司 | Synchronization link determination method and apparatus |
US10181919B2 (en) | 2014-05-16 | 2019-01-15 | Xi'an Zhongxing New Software Co., Ltd. | Synchronization method, controller, synchronization node, synchronous network, and storage medium |
WO2015172476A1 (en) * | 2014-05-16 | 2015-11-19 | 中兴通讯股份有限公司 | Synchronization method, controller, synchronization node, synchronous network, and storage medium |
US10673551B2 (en) | 2014-12-16 | 2020-06-02 | Huawei Technologies Co., Ltd. | Time synchronization method and apparatus |
CN107430414A (en) * | 2015-03-25 | 2017-12-01 | 西门子公司 | Equipment, method and system for the temporal information that detects and differentiate different management domains |
US10795403B2 (en) | 2015-03-25 | 2020-10-06 | Siemens Aktiengesellschaft | Device, method and system for detecting and resolving time information of different administrative domains |
CN107430414B (en) * | 2015-03-25 | 2020-09-08 | 西门子公司 | Device, method and system for detecting and distinguishing time information of different administrative domains |
CN107667491A (en) * | 2015-06-10 | 2018-02-06 | 诺基亚通信公司 | Strengthen the synchronization in computer network |
CN107667491B (en) * | 2015-06-10 | 2019-07-19 | 诺基亚通信公司 | Enhance the method, apparatus and computer-readable medium of the synchronization in computer network |
CN107769879A (en) * | 2016-08-23 | 2018-03-06 | 罗伯特·博世有限公司 | The system and method for clock synchronization in computer network |
CN107769879B (en) * | 2016-08-23 | 2021-10-01 | 罗伯特·博世有限公司 | System and method for clock synchronization in computer networks |
WO2019174574A1 (en) * | 2018-03-14 | 2019-09-19 | Huawei Technologies Co., Ltd. | Distributed network time protocol |
US11528084B2 (en) | 2018-03-14 | 2022-12-13 | Huawei Technologies Co., Ltd. | Distributed network time protocol |
CN108667547B (en) * | 2018-08-10 | 2019-10-11 | 电信科学技术第五研究所有限公司 | A kind of Network Time Protocol conversion method and system |
CN108667547A (en) * | 2018-08-10 | 2018-10-16 | 电信科学技术第五研究所有限公司 | A kind of Network Time Protocol conversion method and system |
CN111106889A (en) * | 2018-10-25 | 2020-05-05 | 华为技术有限公司 | Clock synchronization method and device |
US11451316B2 (en) | 2018-10-25 | 2022-09-20 | Huawei Technologies Co., Ltd. | Clock synchronization method and apparatus |
CN111106889B (en) * | 2018-10-25 | 2021-04-20 | 华为技术有限公司 | Clock synchronization method and device |
CN111245549A (en) * | 2020-01-15 | 2020-06-05 | Ut斯达康通讯有限公司 | Network equipment and method for supporting synchronization of multiple PTP domains |
CN111698052A (en) * | 2020-06-12 | 2020-09-22 | 四川革什扎水电开发有限责任公司 | Homologous time synchronization system crossing power safety zone |
CN113993009A (en) * | 2020-07-27 | 2022-01-28 | 上海诺基亚贝尔股份有限公司 | Method and device for multi-domain transmission by time synchronization, OLT and ONU |
WO2022206614A1 (en) * | 2021-04-02 | 2022-10-06 | 烽火通信科技股份有限公司 | Packet synchronization channel failure handling method and device |
CN114039690A (en) * | 2021-10-18 | 2022-02-11 | 中国联合网络通信集团有限公司 | Time synchronization method, device and computer readable storage medium |
CN114039690B (en) * | 2021-10-18 | 2023-04-28 | 中国联合网络通信集团有限公司 | Time synchronization method, device and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2013189176A2 (en) | 2013-12-27 |
WO2013189176A3 (en) | 2014-02-13 |
CN103634091B (en) | 2019-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103634091A (en) | Time synchronization system and method with multiple synchronization domains, and cross-domain device | |
CN103107876B (en) | A kind of method and system and device of multi-clock simultaneous techniques mixed networking | |
CN103916950B (en) | Method for synchronizing time and system | |
CN102263630B (en) | A kind of system of selection of clock source | |
CN102843286B (en) | Implementation method, and system of virtual routers | |
CN104145435A (en) | Frequency distribution using precision time protocol | |
CN104025552A (en) | Synchronization of traffic multiplexing in link aggregation | |
CN106375384A (en) | Management system of mirror network flow in virtual network environment and control method | |
CN103873224B (en) | Construction method for high-precision time synchronization system based on IP (internet protocol) network | |
CN103490840B (en) | A kind of apparatus and method for carrying out Precision Time Protocol Message processing | |
US20150365320A1 (en) | Method and device for dynamically switching gateway of distributed resilient network interconnect | |
CN103095569B (en) | A kind of thermal capacitance calamity wide area network architecture of highly redundant low cost and its implementation | |
CN102208958A (en) | Clock synchronization method for synchronous Ethernets, as well as synchronous information sending/receiving method, device and apparatus | |
CN103166750A (en) | Clock time synchronous resource distribution method and device | |
CN103023595A (en) | Method and device for realizing best master clock algorithm | |
CN101674217B (en) | Method for realizing permanent ring network protection in MESH network | |
CN103684648A (en) | Ring network node clock effectiveness judgment method and device | |
CN102821099A (en) | Message forwarding method, message forwarding equipment and message forwarding system | |
CN101340339A (en) | Wideband access server cluster system and apparatus | |
WO2014075594A1 (en) | Service transmission protection method and device based on intersecting ring of multi-ring structure network | |
CN102611546B (en) | A kind of clock synchronization compliant with precision time protocol clean culture multicast hybrid clock system and clock synchronizing method | |
CN102014006B (en) | Ethernet ring protection switching method for hybrid network | |
CN103684855A (en) | Intelligent control method for cluster routers | |
CN101227317B (en) | Method for managing data communication channel of synchronizing digital hierarchy equipment | |
CN102684915B (en) | A kind ofly carry out the synchronous method of active and standby two-shipper ARP table and device by network management system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
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: 20190524 Termination date: 20200820 |