CN102231656B - Ntp server clock synchronization keeping method, system and device - Google Patents
Ntp server clock synchronization keeping method, system and device Download PDFInfo
- Publication number
- CN102231656B CN102231656B CN201110166074.9A CN201110166074A CN102231656B CN 102231656 B CN102231656 B CN 102231656B CN 201110166074 A CN201110166074 A CN 201110166074A CN 102231656 B CN102231656 B CN 102231656B
- Authority
- CN
- China
- Prior art keywords
- ntp
- server
- clock
- self
- value
- 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.)
- Expired - Fee Related
Links
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/0679—Clock or time synchronisation in a network by determining clock distribution path in a network
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/61—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
- H04L65/612—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/242—Synchronization processes, e.g. processing of PCR [Program Clock References]
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
- Electric Clocks (AREA)
Abstract
The invention discloses a kind of ntp server clock synchronization keeping method, system and device, the method includes: the first IPTV NTP NTP I server and the 2nd NTP I server are from communication network time protocol NTP T server sync clock;Oneth NTP I server inquires about the first clock jitter value of self and the 2nd NTP I server at set time intervals, when the first clock jitter value exceedes the time difference threshold value of setting, oneth NTP I server lookup self and the second clock deviation value of NTP T server, if second clock deviation value exceedes the time difference threshold value of setting, then revise local clock.The clock that can be good at keeping ntp server synchronizes, it is to avoid system clock entanglement.
Description
Technical field
The present invention relates to Web TV technical field, espespecially a kind of NTP ntp server clock
Synchronization keeping method, system and device.
Background technology
Numerous operation flows of IPTV (Interactive Personality TV, IPTV) all depend on
Rely in clock, such as time-shift service, review the main business such as business, order business, swift and violent along with IPTV
Development, the pressure of NTP (Network Time Protocol, NTP) server is the most increasingly
Greatly, responsibility is the most increasing.Ntp server needs the NTP clock providing each server of IPTV to synchronize,
The NTP clock also providing for Set Top Box (Set Top Box, STB) synchronizes.Due to STB start shooting after time
Between be defaulted as 1970, so, when being configured to of ntp server is not intended to the time difference and still provides NTP
Clock synchronous service.
Ntp server (the hereinafter referred to as NTP-I server) configuration of IPTV services from telecommunications NTP
Device (hereinafter referred to as NTP-T server) carries out clock synchronization, and NTP-T server configures is if the time difference
NTP synchronous service is not the most provided more than 4S.Concrete group-network construction sees Fig. 1, NTP-T server and provides
Synchronised clock, NTP-I server is from NTP-T server sync clock signal, it is achieved clock synchronizes, and leads to
Cross NTP and synchronize (SYNC) signal each service server of synchronization and the clock of Set Top Box.
If NTP-I server clock transition occurs more than 4S, then due to NTP-T server configures,
NTP-I server carries out the operation of clock synchronization from NTP-T server will be failed, NTP-I server
Erroneous clock signal can be led by the NTP service synchronization of its offer to all of IPTV service server and STB
Cause service server and entanglement occurs in STB clock, produce business service abnormal.
Summary of the invention
The embodiment of the present invention provides a kind of ntp server clock synchronization keeping method, system and device, uses
System clock entanglement and the business service that may cause during to solve existing ntp server clock synchronization failure are different
Normal problem.
A kind of NTP ntp server clock synchronization keeping method, including:
First IPTV NTP NTP-I server and the 2nd NTP-I server from
Communication network time protocol NTP-T server sync clock;
Oneth NTP-I server inquires about self and the 2nd NTP-I server at set time intervals
First clock jitter value, when the first clock jitter value exceedes the time difference threshold value of setting, a NTP-I service
Device inquiry self and the second clock deviation value of NTP-T server, if second clock deviation value exceedes setting
Time difference threshold value, then revise local clock;
2nd NTP-I server inquires about self and a NTP-I server at set time intervals
3rd clock jitter value, when the 3rd clock jitter value exceedes the time difference threshold value of setting, the 2nd NTP-I service
Device inquiry self and the 4th clock jitter value of NTP-T server, if the 4th clock jitter value exceedes setting
Time difference threshold value, then revise local clock.
A kind of NTP ntp server clock synchronizes holding system, including:
First IPTV NTP NTP-I server, for from the communication network time
Agreement NTP-T server sync clock;Inquire about self and the 2nd NTP-I service at set time intervals
First clock jitter value of device, when the first clock jitter value exceedes the time difference threshold value of setting, a NTP-I
Server lookup self and the second clock deviation value of NTP-T server, if second clock deviation value exceedes set
Fixed time difference threshold value, then revise local clock;
2nd NTP-I server, for from communication network time protocol NTP-T server sync clock;
Inquire about the 3rd clock jitter value of self and a NTP-I server at set time intervals, when the 3rd
When clock jitter value exceedes the time difference threshold value of setting, the 2nd NTP-I server lookup self services with NTP-T
4th clock jitter value of device, if the 4th clock jitter value exceedes the time difference threshold value of setting, then when revising local
Clock.
A kind of NTP ntp server, including:
Clock synchronization module, for from communication network time protocol NTP-T server sync clock;
First enquiry module, for inquiring about self and the 2nd NTP-I server at set time intervals
The first clock jitter value;
Second enquiry module, for when the first clock jitter value exceedes the time difference threshold value of setting, inquiry is certainly
Body and the second clock deviation value of NTP-T server, if second clock deviation value exceedes the time difference limen of setting
Value, then revise local clock.
The present invention has the beneficial effect that:
Ntp server clock synchronization keeping method, system and the device that the embodiment of the present invention provides, passes through
Oneth NTP-I server and the 2nd NTP-I server inquire about mutually the clock jitter value of self and the other side, when
Oneth NTP-I server or the 2nd NTP-I server find that self exceedes setting with the clock jitter of the other side
During time difference threshold value, inquire about the clock jitter value of self and NTP-T server, if self services with NTP-T
The clock jitter value of device also above the time difference threshold value set, then revises local clock.Thus avoid NTP-I
The clock synchronization failure of server and the caused service server of synchronization failure and STB clock occur that entanglement etc. is asked
Topic, it is ensured that the synchronization all the time of NTP-I server is normal, thus ensure that the clock of system is correct, make be
System can be properly functioning.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes of the present invention
Point, the schematic description and description of the present invention is used for explaining the present invention, is not intended that to the present invention not
Work as restriction.In the accompanying drawings:
Fig. 1 is IPTV system group-network construction figure in prior art;
Fig. 2 is the structural representation that in the embodiment of the present invention, ntp server clock synchronizes holding system;
Fig. 3 is the flow chart of ntp server clock synchronization keeping method in the embodiment of the present invention;
Fig. 4 is the structural representation of ntp server in the embodiment of the present invention.
Detailed description of the invention
In order to make the technical problem to be solved, technical scheme and beneficial effect clearer, bright
In vain, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that herein
Described specific embodiment, only in order to explain the present invention, is not intended to limit the present invention.
The embodiment of the present invention provides a kind of NTP ntp server clock synchronization keeping method, logical
Crossing ntp server clock as shown in Figure 2 and synchronize the realization of holding system, this system includes: first is interactive
Web TV NTP NTP-I server, the 2nd NTP-I server and communication network time protocol
NTP-T server.
Oneth NTP-I server, for from communication network time protocol NTP-T server sync clock;
Inquire about the first clock jitter value of self and the 2nd NTP-I server at set time intervals, when first
When clock jitter value exceedes the time difference threshold value of setting, a NTP-I server lookup self services with NTP-T
The second clock deviation value of device, if second clock deviation value exceedes the time difference threshold value of setting, then when revising local
Clock.
2nd NTP-I server, for from communication network time protocol NTP-T server sync clock;
Inquire about the 3rd clock jitter value of self and a NTP-I server at set time intervals, when the 3rd
When clock jitter value exceedes the time difference threshold value of setting, the 2nd NTP-I server lookup self services with NTP-T
4th clock jitter value of device, if the 4th clock jitter value exceedes the time difference threshold value of setting, then when revising local
Clock.
Said system also includes some business service and Set Top Box.Wherein, the first ntp server, also use
In providing clock synchronous service for service server and Set Top Box;Second ntp server, is additionally operable to as business
Server provides clock synchronous service and Set Top Box to provide clock synchronous service.
Concrete when being provided for service server by the first ntp server and/or the second ntp server
Clock synchronous service, and provide clock by the first ntp server or the second ntp server for Set Top Box
Synchronous service.
The NTP ntp server clock synchronization keeping method that the embodiment of the present invention provides, its stream
Journey is as it is shown on figure 3, comprise the steps:
Step S11: a NTP-I server and the 2nd NTP-I server are from communication network time protocol
NTP-T server sync clock.
See the step 0.1 shown in Fig. 2 and step 0.2, a NTP-I server and the 2nd NTP-I
Server, from NTP-T server sync clock, sends NTP as shown in Figure 2 and synchronizes (NTP
SYNC) signal.
The NTP configuring a NTP-I server and the 2nd NTP-I server synchronizes system service, and carries
The NTP-T server that ntp server is telecommunications for standard time clock.Configure a NTP-I server and
The configuration file of the 2nd NTP-I server is identical.And start NTP process, when NTP-T is carried out
Clock synchronizes.
In addition a NTP-I server and the 2nd NTP-I server provide for service server and Set Top Box
Clock synchronizes, NTP SYNC as illustrated in the drawing.
Step S12: a NTP-I server inquires about self and the 2nd NTP-I at set time intervals
First clock jitter value of server.
Oneth NTP-I server sends the according to the query time interval set to the 2nd NTP-I server
One clock jitter inquiry request, after reception the 2nd NTP-I server receives the first clock jitter inquiry request
Self the first clock jitter value with a NTP-I server returned.
Seeing Fig. 2, wherein, a NTP-I server and the 2nd NTP-I server are installed from grinding clock guarantor
Protect program (hereinafter referred to as NTP-PRO), and configure the IP address of own IP address and the other side, when arranging
Difference limen value (is called for short LIMIT), such as, can be defaulted as 4S.Starting NTP-PRO process, this process is
Resident Process, performs once, the time interval being setting in 10 seconds for every 10 seconds.
The step 1.1 and the step 1.2 that see Fig. 2 are respectively a NTP-I server and take to the 2nd NTP-I
Business device tranmitting data register deviation inquiry request and the 2nd NTP-I server return self and a NTP-I server
Clock jitter value.Step S1.1 uses " ntpdate-d{NTP-I-2} " order to carry out clock jitter and looks into
Asking, what step S1.2 returned is the first clock jitter value (OFFSET-REMOTE).
Step S13: judge whether the first clock jitter value exceedes the time difference threshold value of setting.If so, step is performed
Rapid S14;Otherwise perform step S22.
First clock jitter value (OFFSET-REMOTE) is compared with time difference threshold value (LIMIT)
Relatively.After the first clock jitter value (OFFSET-REMOTE) exceedes time difference threshold value (LIMIT) execution
Continuous inquiry operation, otherwise it is assumed that clock is normal, does not perform operation.
Step S14: a NTP-I server lookup self and the second clock deviation of NTP-T server
Value.
When the first clock jitter value exceedes the time difference threshold value of setting, a NTP-I server lookup self
Second clock deviation value with NTP-T server.
Oneth NTP-I server sends second clock deviation inquiry request to NTP-T server;Receive
What NTP-T server returned after receiving the second beginning clock jitter inquiry request self services with a NTP-I
The second clock deviation value of device and the standard time clock of self;Oneth NTP-I server determines second clock deviation
When value exceedes the time difference threshold value of setting, according to the standard time clock correction local clock received.
The step 1.3 and the step 1.4 that see Fig. 2 are respectively a NTP-I server to NTP-T server
It is inclined with the clock of a NTP-I server that tranmitting data register deviation inquiry request and NTP-T server return self
Difference.Step S1.3 uses " ntpdate-d{NTP-T} " order to carry out clock jitter inquiry, step
What S1.4 returned is second clock deviation value (OFFSET-SERVER) and NTP-T server self norms
Clock (referred to as SERVER-TIME), i.e. NTP-T server current time.
Step S15: judge whether second clock deviation value exceedes the time difference threshold value of setting.
Whether relatively second clock deviation value (OFFSET-SERVER) exceedes time difference threshold value
(LIMIT)。
If so, step S16 is performed;Otherwise perform step S22.
Step S16: revise local clock.
If second clock deviation value exceedes the time difference threshold value of setting, then revise local clock.
If second clock deviation value (OFFSET-SERVER) exceedes time difference threshold value (LIMIT), recognize
Abnormal for local clock, revise local clock immediately identical with SERVER-TIME;Otherwise it is assumed that second
NTP-I server clock is abnormal, and a NTP-I server does not do any operation.
Step S17: the 2nd NTP-I server inquires about self and a NTP-I at set time intervals
3rd clock jitter value of server.
2nd NTP-I server sends the according to the query time interval set to a NTP-I server
Three clock jitter inquiry request, after reception the oneth NTP-I server receives the 3rd clock jitter inquiry request
Self the 3rd clock jitter value with the 2nd NTP-I server returned.
Seeing Fig. 2, wherein, a NTP-I server and the 2nd NTP-I server are installed from grinding clock guarantor
Protect program (hereinafter referred to as NTP-PRO), and configure the IP address of own IP address and the other side, when arranging
Difference limen value (is called for short LIMIT), such as, can be defaulted as 4S.Starting NTP-PRO process, this process is
Resident Process, performs once, the time interval being setting in 10 seconds for every 10 seconds.
The step 2.1 and the step 2.2 that see Fig. 2 are respectively the 2nd NTP-I server and take to a NTP-I
Business device tranmitting data register deviation inquiry request and a NTP-I server return self and the 2nd NTP-I server
Clock jitter value.Step S2.1 uses " ntpdate-d{NTP-I-1} " order to carry out clock jitter and looks into
Asking, what step S2.2 returned is the first clock jitter value (OFFSET-REMOTE).
Step S18: judge whether the 3rd clock jitter value exceedes the time difference threshold value of setting.If so, step is performed
Rapid S19;Otherwise perform step S22.
3rd clock jitter value (OFFSET-REMOTE) is compared with time difference threshold value (LIMIT)
Relatively.After the 3rd clock jitter value (OFFSET-REMOTE) exceedes time difference threshold value (LIMIT) execution
Continuous inquiry operation, otherwise it is assumed that clock is normal, does not perform operation.
Step S19: the 2nd NTP-I server lookup self and the 4th clock jitter of NTP-T server
Value.
When the 3rd clock jitter value exceedes the time difference threshold value of setting, the 2nd NTP-I server lookup self
The 4th clock jitter value with NTP-T server.
Oneth NTP-I server sends second clock deviation inquiry request to NTP-T server;Receive
What NTP-T server returned after receiving the second beginning clock jitter inquiry request self services with a NTP-I
The second clock deviation value of device and the standard time clock of self;Oneth NTP-I server determines second clock deviation
When value exceedes the time difference threshold value of setting, according to the standard time clock correction local clock received.
The step 2.3 and the step 2.4 that see Fig. 2 are respectively the 2nd NTP-I server to NTP-T server
It is inclined with the clock of the 2nd NTP-I server that tranmitting data register deviation inquiry request and NTP-T server return self
Difference.Step S2.3 uses " ntpdate-d{NTP-T} " order to carry out clock jitter inquiry, step
What S2.4 returned is the 4th clock jitter value (OFFSET-SERVER) and NTP-T server self norms
Clock (referred to as SERVER-TIME), i.e. NTP-T server current time.
Step S20: judge whether the 4th clock jitter value exceedes the time difference threshold value of setting.
Whether relatively the 4th clock jitter value (OFFSET-SERVER) exceedes time difference threshold value
(LIMIT)。
If so, step S21 is performed;Otherwise perform step S22.
Step S21: revise local clock.
If the 4th clock jitter value exceedes the time difference threshold value of setting, then revise local clock.
If the 4th clock jitter value (OFFSET-SERVER) exceedes time difference threshold value (LIMIT), recognize
Abnormal for local clock, revise local clock immediately identical with SERVER-TIME;Otherwise it is assumed that first
NTP-I server clock is abnormal, and the 2nd NTP-I server does not do any operation.
Step S22: terminate.
Said method sets up a NTP-I server in IPTV system, it is achieved two NTP-I servers
Complementary.Clock defence program is all started, it is achieved the giving mutual protection and repairing of clock in two NTP-I servers
Just.For service server, two NTP-I servers can be one main one standby, then selects for Set Top Box
A wherein server provided as clock.
The above-mentioned NTP ntp server clock provided based on the embodiment of the present invention synchronizes holding side
Method and system, the embodiment of the present invention also provides for a kind of NTP ntp server, its structure such as Fig. 4
Shown in, including: clock synchronization module the 101, first enquiry module 102 and the second enquiry module 103.
Clock synchronization module 101, for from communication network time protocol NTP-T server sync clock.
First enquiry module 102, for inquiring about self and the 2nd NTP-I service at set time intervals
First clock jitter value of device.
Second enquiry module 103, for when the first clock jitter value exceedes the time difference threshold value of setting, inquires about
Self second clock deviation value with NTP-T server, if second clock deviation value exceedes the time difference limen of setting
Value, then revise local clock.
Preferably, above-mentioned first enquiry module 102, specifically for: according to set query time interval to
2nd NTP-I server sends the first clock jitter inquiry request;And reception the 2nd NTP-I server connects
Receive self the first clock with a NTP-I server returned after described first clock jitter inquiry request
Deviation value;
Preferably, above-mentioned second enquiry module 103, specifically for: when the first clock jitter value exceedes setting
The time difference threshold value time, to NTP-T server send second clock deviation inquiry request;Receive NTP-T clothes
Business device receives self and the second of the NTP-I server returned after the second beginning clock jitter inquiry request
Clock jitter value and the standard time clock of self;When determining the time difference threshold value that second clock deviation value exceedes setting,
According to the standard time clock correction local clock received.
The embodiment of the present invention provide above-mentioned NTP ntp server clock synchronization keeping method and
System is applicable to protection during ntp server exception, it is ensured that be not result in industry when ntp server exception
Business service is abnormal, effectively avoids ntp server as abnormal hidden of the clock existing for singlepoint devices
Suffer from, it is to avoid owing to NTP clock transition causes business service abnormal and system clock entanglement.
Described above illustrate and describes a preferred embodiment of the present invention, but as previously mentioned, it should reason
Solve the present invention and be not limited to form disclosed herein, be not to be taken as the eliminating to other embodiments, and
Can be used for other combinations various, amendment and environment, and can pass through in invention contemplated scope described herein
Above-mentioned teaching or the technology of association area or knowledge are modified.And the change that those skilled in the art are carried out and change
Change without departing from the spirit and scope of the present invention, the most all should be in the protection domain of claims of the present invention.
Claims (11)
1. a NTP ntp server clock synchronization keeping method, it is characterised in that bag
Include:
First IPTV NTP NTP-I server and the 2nd NTP-I server from
Communication network time protocol NTP-T server sync clock;
Oneth NTP-I server inquires about self and the 2nd NTP-I server at set time intervals
First clock jitter value, when the first clock jitter value exceedes the time difference threshold value of setting, a NTP-I service
Device inquiry self and the second clock deviation value of NTP-T server, if second clock deviation value exceedes setting
Time difference threshold value, then revise local clock;
2nd NTP-I server inquires about self and a NTP-I server at set time intervals
3rd clock jitter value, when the 3rd clock jitter value exceedes the time difference threshold value of setting, the 2nd NTP-I service
Device inquiry self and the 4th clock jitter value of NTP-T server, if the 4th clock jitter value exceedes setting
Time difference threshold value, then revise local clock.
2. the method for claim 1, it is characterised in that a NTP-I server is according to setting
Self the first clock jitter value with the 2nd NTP-I server of time interval inquiry, specifically include:
Oneth NTP-I server sends the according to the query time interval set to the 2nd NTP-I server
One clock jitter inquiry request, reception the 2nd NTP-I server receives described first clock jitter inquiry please
Self the first clock jitter value with a NTP-I server returned after asking.
3. the method for claim 1, it is characterised in that the 2nd NTP-I server is according to setting
Self the 3rd clock jitter value with a NTP-I server of time interval inquiry, specifically include:
2nd NTP-I server sends the according to the query time interval set to a NTP-I server
Three clock jitter inquiry request, reception the oneth NTP-I server receives described 3rd clock jitter inquiry please
Self the 3rd clock jitter value with the 2nd NTP-I server returned after asking.
4. the method for claim 1, it is characterised in that a NTP-I server lookup self
With the second clock deviation value of NTP-T server, if second clock deviation value exceedes the time difference threshold value of setting,
Then revise local clock, specifically include:
Oneth NTP-I server sends second clock deviation inquiry request to NTP-T server;
Receive NTP-T server receive return after the second beginning clock jitter inquiry request self with first
The second clock deviation value of NTP-I server and the standard time clock of self;
When oneth NTP-I server determines the time difference threshold value that second clock deviation value exceedes setting, according to connecing
The standard time clock correction local clock received.
5. the method for claim 1, it is characterised in that the 2nd NTP-I server lookup self
With the 4th clock jitter value of NTP-T server, if the 4th clock jitter value exceedes the time difference threshold value of setting,
Then revise local clock, specifically include:
Oneth NTP-I server sends second clock deviation inquiry request to NTP-T server;
Receive NTP-T server receive return after the second beginning clock jitter inquiry request self with first
The second clock deviation value of NTP-I server and the standard time clock of self;
When oneth NTP-I server determines the time difference threshold value that second clock deviation value exceedes setting, according to connecing
The standard time clock correction local clock received.
6. the method as described in claim 1-5 is arbitrary, it is characterised in that serviced by a NTP-I
Device and/or the 2nd NTP-I server provide clock synchronous service for service server, and by first
NTP-I server or the 2nd NTP-I server provide clock synchronous service for Set Top Box.
7. a NTP ntp server clock synchronizes holding system, it is characterised in that bag
Include:
First IPTV NTP NTP-I server, for from the communication network time
Agreement NTP-T server sync clock;Inquire about self and the 2nd NTP-I service at set time intervals
First clock jitter value of device, when the first clock jitter value exceedes the time difference threshold value of setting, a NTP-I
Server lookup self and the second clock deviation value of NTP-T server, if second clock deviation value exceedes set
Fixed time difference threshold value, then revise local clock;
2nd NTP-I server, for from communication network time protocol NTP-T server sync clock;
Inquire about the 3rd clock jitter value of self and a NTP-I server at set time intervals, when the 3rd
When clock jitter value exceedes the time difference threshold value of setting, the 2nd NTP-I server lookup self services with NTP-T
4th clock jitter value of device, if the 4th clock jitter value exceedes the time difference threshold value of setting, then when revising local
Clock.
8. system as claimed in claim 7, it is characterised in that a described NTP-I server, also
For providing clock synchronous service for service server and Set Top Box;
Described 2nd NTP-I server, is additionally operable to provide clock synchronous service and machine top into service server
Box provides clock synchronous service.
9. a NTP ntp server, it is characterised in that including:
Clock synchronization module, for from communication network time protocol NTP-T server sync clock;
First enquiry module, for inquiring about self and the 2nd NTP-I server at set time intervals
The first clock jitter value;
Second enquiry module, for when the first clock jitter value exceedes the time difference threshold value of setting, inquiry is certainly
Body and the second clock deviation value of NTP-T server, if second clock deviation value exceedes the time difference limen of setting
Value, then revise local clock.
10. ntp server as claimed in claim 9, it is characterised in that described first inquiry mould
Block, specifically for:
Sending the first clock jitter inquiry according to the query time interval set to the 2nd NTP-I server please
Ask;And
Receive the 2nd NTP-I server and receive self that return after described first clock jitter inquiry request
The first clock jitter value with a NTP-I server.
11. ntp servers as described in claim 9 or 10, it is characterised in that described second inquiry
Module, specifically for:
When the first clock jitter value exceedes the time difference threshold value of setting, when NTP-T server sends second
Clock deviation inquiry request;
Receive NTP-T server receive return after the second beginning clock jitter inquiry request self with first
The second clock deviation value of NTP-I server and the standard time clock of self;
When determining the time difference threshold value that second clock deviation value exceedes setting, the standard time clock according to receiving is repaiied
Positive local clock.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110166074.9A CN102231656B (en) | 2011-06-20 | 2011-06-20 | Ntp server clock synchronization keeping method, system and device |
PCT/CN2012/072259 WO2012174892A1 (en) | 2011-06-20 | 2012-03-13 | Method, system and device for keeping clock synchronization of ntp servers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110166074.9A CN102231656B (en) | 2011-06-20 | 2011-06-20 | Ntp server clock synchronization keeping method, system and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102231656A CN102231656A (en) | 2011-11-02 |
CN102231656B true CN102231656B (en) | 2016-09-14 |
Family
ID=44844198
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110166074.9A Expired - Fee Related CN102231656B (en) | 2011-06-20 | 2011-06-20 | Ntp server clock synchronization keeping method, system and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102231656B (en) |
WO (1) | WO2012174892A1 (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102231656B (en) * | 2011-06-20 | 2016-09-14 | 南京中兴新软件有限责任公司 | Ntp server clock synchronization keeping method, system and device |
CN102664697A (en) * | 2012-04-05 | 2012-09-12 | 中兴通讯股份有限公司 | Network clock synchronization system and method thereof |
CN102916799A (en) * | 2012-11-09 | 2013-02-06 | 四川长虹电子系统有限公司 | Method for time synchronization of network time protocol (NTP) server |
CN103763056A (en) * | 2013-12-31 | 2014-04-30 | 电信科学技术第五研究所 | Method for time synchronization high-precision remote monitoring |
CN105812854B (en) * | 2014-12-30 | 2019-07-19 | Tcl集团股份有限公司 | A method and device for controlling advertisement playback |
CN106231371B (en) * | 2016-07-27 | 2019-07-02 | 青岛海信电器股份有限公司 | Method for synchronizing time, TV and EPG server |
CN108234057A (en) * | 2018-01-24 | 2018-06-29 | 郑州云海信息技术有限公司 | Method for synchronizing time, device and the storage medium of server based on BMC |
CN109634353A (en) * | 2018-12-03 | 2019-04-16 | 郑州云海信息技术有限公司 | Server host cascades BOX topological structure clock synchronizing method, device, terminal and storage medium |
CN109687929B (en) * | 2018-12-11 | 2020-08-18 | 苏州浪潮智能科技有限公司 | Method for realizing HOST-BOX multi-stage cascade server time synchronization |
CN111381486B (en) * | 2018-12-28 | 2022-02-08 | 北京金风科创风电设备有限公司 | Controller timing method and device, controller and wind generating set |
WO2020154840A1 (en) * | 2019-01-28 | 2020-08-06 | Telefonaktiebolaget Lm Ericsson (Publ) | Clock distribution method and apparatus in network |
CN112104433A (en) * | 2019-06-18 | 2020-12-18 | 国网江苏省电力有限公司常州供电分公司 | Concentrator accurate time synchronization method based on quadratic iteration algorithm |
CN114167944A (en) * | 2021-11-23 | 2022-03-11 | 北京华能新锐控制技术有限公司 | Power station daily generated energy calculation method and device and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1642068A (en) * | 2004-01-02 | 2005-07-20 | 上海欣泰通信技术有限公司 | Time supply and synchronizing system for telecommunication network |
CN101695188A (en) * | 2009-10-15 | 2010-04-14 | 上海华为技术有限公司 | Method for correcting local time and clock server |
CN101783725A (en) * | 2009-01-20 | 2010-07-21 | 华为技术有限公司 | Method for outputting synchronous time, device and system thereof |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6826123B1 (en) * | 2003-10-14 | 2004-11-30 | International Business Machines Corporation | Global recovery for time of day synchronization |
JP3863522B2 (en) * | 2003-12-25 | 2006-12-27 | Necエレクトロニクス株式会社 | Digital VCO, VCO circuit, PLL circuit, information recording apparatus, and synchronous clock signal generation method |
US8838776B2 (en) * | 2007-09-26 | 2014-09-16 | Vega Grieshaber Kg | Method for the automatic time synchronisation of devices in network-based systems |
CN102231656B (en) * | 2011-06-20 | 2016-09-14 | 南京中兴新软件有限责任公司 | Ntp server clock synchronization keeping method, system and device |
-
2011
- 2011-06-20 CN CN201110166074.9A patent/CN102231656B/en not_active Expired - Fee Related
-
2012
- 2012-03-13 WO PCT/CN2012/072259 patent/WO2012174892A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1642068A (en) * | 2004-01-02 | 2005-07-20 | 上海欣泰通信技术有限公司 | Time supply and synchronizing system for telecommunication network |
CN101783725A (en) * | 2009-01-20 | 2010-07-21 | 华为技术有限公司 | Method for outputting synchronous time, device and system thereof |
CN101695188A (en) * | 2009-10-15 | 2010-04-14 | 上海华为技术有限公司 | Method for correcting local time and clock server |
Also Published As
Publication number | Publication date |
---|---|
CN102231656A (en) | 2011-11-02 |
WO2012174892A1 (en) | 2012-12-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102231656B (en) | Ntp server clock synchronization keeping method, system and device | |
EP2911403A1 (en) | Fusion device, system and method for implementing internet protocol television service | |
US20150293759A1 (en) | Method and System for Upgrading Patching Software | |
EP3352392B1 (en) | Time synchronization packet processing method and device | |
CN105916100A (en) | Heartbeat packet agency method, device and communication system | |
US20150333952A1 (en) | Method and system for link switching | |
CN114297296B (en) | Main and standby switching system of server for broadcasting | |
WO2011063725A1 (en) | Method and system for active-standby synchronization | |
US20140301183A1 (en) | Method, Network Device, and System for Synchronization Between Network Devices | |
CN107888434B (en) | Network equipment configuration synchronization method and device | |
WO2016119362A1 (en) | Clock synchronization method, router and cluster routing system | |
CN101827035B (en) | Method for ensuring graceful restarting and dual master control network device | |
CN105516118A (en) | Time synchronization method and time synchronization system based on non-RTC smart television | |
US7339886B2 (en) | System and method for synchronizing SGSNs and a GGSN | |
CN103532970B (en) | The transmission method of a kind of time synchronized message and equipment | |
WO2016180081A1 (en) | Configuration information synchronization method, primary device and standby device | |
CN107547160B (en) | A kind of method for synchronizing time and device | |
US9325442B2 (en) | Externally connected time port changeover method and device | |
CN103259639B (en) | A kind of clock synchronizing method of stack equipment and equipment | |
WO2012103730A1 (en) | Data configuration method and telecommunication system device | |
CN102404104B (en) | Adaptive synchronicity method and system based on different delayed time mechanism | |
CN110071778B (en) | Time synchronization method, device, equipment and medium | |
WO2020052298A1 (en) | Method and device for clock and time synchronization, and multi-router system | |
CN107995022B (en) | Session synchronization method and device, storage medium and electronic equipment | |
WO2017166969A1 (en) | Method and apparatus for sending 1588 message, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C41 | Transfer of patent application or patent right or utility model | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20160728 Address after: Yuhuatai District of Nanjing City, Jiangsu province 210012 Bauhinia Road No. 68 Applicant after: Nanjing Zhongxing New Software Co., Ltd. Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice Applicant before: ZTE Corporation |
|
C14 | Grant of patent or utility model | ||
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: 20160914 Termination date: 20170620 |