CN110336636A - Method for synchronizing time, device and baseboard management controller - Google Patents
Method for synchronizing time, device and baseboard management controller Download PDFInfo
- Publication number
- CN110336636A CN110336636A CN201910682714.8A CN201910682714A CN110336636A CN 110336636 A CN110336636 A CN 110336636A CN 201910682714 A CN201910682714 A CN 201910682714A CN 110336636 A CN110336636 A CN 110336636A
- Authority
- CN
- China
- Prior art keywords
- time
- ntp server
- message
- response message
- management controller
- 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
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 embodiment of the present disclosure proposes a kind of method for synchronizing time, device and baseboard management controller, is related to server technology field.This method and device are used for when preconfigured first ntp server address failure, it obtains ntp server and receives the response message fed back after the clock sync message that baseboard management controller is sent, and according to response message and first time of response message is received, by the system time synchronization of the system time of baseboard management controller and ntp server.Namely method for synchronizing time, device and baseboard management controller that the disclosure provides still will continue to carry out time synchronization with ntp server after the first ntp server address failure, rather than according to the clock timing of itself, it ensure that the accuracy of time.
Description
Technical field
This disclosure relates to server technology field, in particular to a kind of method for synchronizing time, device and substrate management
Controller.
Background technique
Baseboard management controller (Baseboard Management Controller, BMC) is that a kind of embedded management is micro-
Controller can be entered with the physical features of monitoring server, such as temperature, voltage, electric fan working condition, power supply supply and cabinet
It invades.
In the prior art, user can realize that Configuration network time protocol (Network Time Protocol, NTP) is serviced
Device address, then time synchronization is carried out according to ntp server address and ntp server by BMC.If the ntp server address being arranged
It in vain, can only be according to the timing of BMC itself then BMC just can not carry out time synchronization with ntp server.However, BMC by
The influence of high temperature and itself device loss, there are biggish errors for the timing of itself, can not the appearance of accurate recording server
The time of failure influences positioning of the developer to server problem.
Summary of the invention
In view of this, the disclosure is designed to provide a kind of method for synchronizing time, device and baseboard management controller, with
It solves the above problems.
To achieve the goals above, the embodiment of the present disclosure the technical solution adopted is as follows:
In a first aspect, the embodiment of the present disclosure provides a kind of method for synchronizing time, it is applied to baseboard management controller, it is described
Method for synchronizing time includes:
If preconfigured first ntp server address failure, the response message of ntp server feedback is obtained, wherein
The response message is to feed back after the ntp server receives the clock sync message that the baseboard management controller is sent
's;
According to the response message and first time of the response message is received, by the baseboard management controller
System time and the ntp server system time synchronization.
Second aspect, the embodiment of the present disclosure additionally provide a kind of time synchronism apparatus, are applied to baseboard management controller, institute
Stating time synchronism apparatus includes:
It is anti-to obtain ntp server if being used for preconfigured first ntp server address failure for Receive message module
The response message of feedback, wherein the response message be the ntp server receive that the baseboard management controller sends when
It is fed back after clock sync message;
Time synchronization module will for according to the response message and receiving first time of the response message
The system time synchronization of the system time of the baseboard management controller and the ntp server.
The third aspect, the embodiment of the present disclosure additionally provide a kind of baseboard management controller, including processor and memory, institute
It states memory and is stored with the machine-executable instruction that can be executed by the processor, the machine can be performed in the processor can
It executes instruction to realize method for synchronizing time described in first aspect.
Fourth aspect, the embodiment of the present disclosure additionally provide a kind of computer readable storage medium, are stored thereon with computer
Program realizes method for synchronizing time described in first aspect when the computer program is executed by processor.
Method for synchronizing time, device and the baseboard management controller that the embodiment of the present disclosure provides, when preconfigured first
When ntp server address failure, obtains after ntp server receives the clock sync message that baseboard management controller is sent and feed back
Response message, and according to response message and first time of response message is received, by the system of baseboard management controller
The system time synchronization of time and ntp server.Namely method for synchronizing time, device and substrate management control that the disclosure provides
Device, after the first ntp server address failure, still will continue to ntp server carry out time synchronization, rather than according to itself
Clock timing ensure that the accuracy of time.
To enable the above objects, features, and advantages of the disclosure to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to needed in the embodiment attached in order to illustrate more clearly of the technical solution of the embodiment of the present disclosure
Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the disclosure, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows the application scenarios schematic diagram of embodiment of the present disclosure offer.
Fig. 2 shows the flow charts for the method for synchronizing time that the embodiment of the present disclosure provides.
Fig. 3 shows the form schematic diagram of the NTP message of embodiment of the present disclosure offer.
Fig. 4 shows a kind of specific flow chart of S202 in Fig. 2.
Fig. 5 shows another specific flow chart of S202 in Fig. 2.
Fig. 6 shows a kind of specific flow chart of S203 in Fig. 2.
Fig. 7 shows a kind of exemplary diagram of response message.
Fig. 8 shows the functional block diagram of the time synchronism apparatus of embodiment of the present disclosure offer.
Icon: 100- destination server;110- baseboard management controller;200-NTP server;300- time synchronization dress
It sets;310- judgment module;320- Receive message module;330- time synchronization module;340- message sending module.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present disclosure, the technical solution in the embodiment of the present disclosure is carried out clear, complete
Ground description, it is clear that described embodiment is only disclosure a part of the embodiment, instead of all the embodiments.Usually exist
The component of the embodiment of the present disclosure described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.
Therefore, the detailed description of the embodiment of the disclosure provided in the accompanying drawings is not intended to limit below claimed
The scope of the present disclosure, but be merely representative of the selected embodiment of the disclosure.Based on embodiment of the disclosure, those skilled in the art
Member's every other embodiment obtained without making creative work, belongs to the range of disclosure protection.
It should be noted that the relational terms of term " first " and " second " or the like be used merely to an entity or
Operation is distinguished with another entity or operation, and without necessarily requiring or implying between these entities or operation, there are any
This actual relationship or sequence.Moreover, the terms "include", "comprise" or its any other variant be intended to it is non-exclusive
Property include so that include a series of elements process, method, article or equipment not only include those elements, but also
Further include other elements that are not explicitly listed, or further include for this process, method, article or equipment it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described
There is also other identical elements in the process, method, article or equipment of element.
Referring to Fig. 1, being the application scenarios schematic diagram of the disclosure.Destination server 100 passes through in network and local area network
Servers-all communication connection.Wherein, destination server 100 includes 110 (Baseboard of baseboard management controller
Management Controller, BMC), the physical features for monitoring objective server 100.And all clothes in local area network
Device be engaged in including at least ntp server 200.Ntp server 200 is for providing time reference.
Wherein, baseboard management controller 110 includes processor and memory, and memory, which is stored with, to be executed by processor
Machine-executable instruction, processor can be performed machine-executable instruction with realize the disclosure provide method for synchronizing time.
The disclosure additionally provides a kind of method for synchronizing time, applied to the BMC in Fig. 1.Referring to Fig. 2, being mentioned for the disclosure
The flow chart of the method for synchronizing time of confession.The method for synchronizing time includes:
S201, judges whether preconfigured first ntp server address fails, if it is, executing S202.
Wherein, it is preconfigured to can be developer for the first ntp server address;It is also possible to be carried out according to the last time
The address of the ntp server 200 of time synchronization.After configuring the first ntp server address, BMC can be according to preset
Time cycle, and response report is obtained to 200 tranmitting data register sync message of ntp server according to the first ntp server address
Text.
It should be noted that clock sync message and response message are NTP message.Referring to Fig. 3, being NTP message
Form schematic diagram.Wherein, NTP message includes LI (Leap Indicator) field, Mode field, Originate
Timestamp field, Receive Timestamp field and Transmit Timestamp.
Wherein, LI field can characterize the alarm status of ntp server 200.Specifically, when LI field value is " 00 ", table
Show normal condition;When LI field value is " 01 ", as leap second is prompted, and indicates that the last minute in one day has 61 seconds;Work as LI
When field value is " 10 ", it is similarly leap second prompt, indicates that the last minute in one day has 59 seconds;When LI field value is " 11 "
When, it indicates that clock is not synchronized, shows preconfigured ntp server address failure.
The operating mode of Mode field list sign server.Specifically, Mode field is that 0 expression is undefined, and Mode field is 1
Indicate that symmetric active peer mode, Mode field are 2 expression symmetric passive peer modes, Mode field is 3 expression user models, Mode
Field is 4 expression server modes, and Mode field is 5 expression broadcast modes or multicast pattern, and Mode field indicates this message for 6
Message is controlled for NTP, Mode field is that internal use is kept in 7 expressions.
Normally, BMC according to ntp server address into 200 tranmitting data register sync message of ntp server, Mode word
Section is 3, that is, works in client mode;Ntp server 200 respond the clock sync message and to BMC feed back response message
In, Mode field is 4, that is, works in server mode.
Originate Timestamp indicates the local zone time of transmitting terminal when NTP request message leaves transmitting terminal.
Receive Timestamp indicates the local zone time of receiving end when NTP request message reaches receiving end.Transmit
Timestamp indicates the local zone time of respondent when response message leaves respondent.
It is therefore to be understood that ground, whether the LI field value in response message that BMC is received by judgement is " 11 ", just
It can determine that whether ntp server address fails.Specifically, when LI field value is " 11 ", ntp server address failure is determined,
Show that the ntp server address of configuration is wrong or the corresponding ntp server 200 in the first ntp server address has stopped
Work.
Conversely, determining that the first ntp server address is effective when LI field value is not " 11 ".At this point, BMC can basis
Originate Timestamp field value, Receive Timestamp field value and Transmit Timestamp field value
And BMC receives time of response message and determines time difference of BMC Yu ntp server 200, and according to the time difference by BMC's
The system time synchronization of system time and ntp server 200.
S202 obtains the response message that ntp server 200 is fed back.
Wherein, response message is the clock sync message that ntp server 200 receives the transmission of baseboard management controller 110
It feeds back afterwards.
In a kind of optional embodiment, referring to Fig. 4, being a kind of specific flow chart of S202.
S202 includes:
S2021, the Servers-all radio clock sync message into local area network.
It should be noted that the Servers-all in local area network includes ntp server 200.
Since preconfigured first ntp server address is invalid, when can not be according to the first ntp server address synchronization
Between.Therefore, BMC is to broadcast address 255.255.255.255 tranmitting data register sync message, thus by clock sync message broadcast to
Servers-all in local area network.
S2022 receives the response message that ntp server 200 is fed back.
Wherein, response message is that ntp server 200 listens to the response message fed back after clock sync message.Specifically,
When the ntp server 200 in local area network listens to the clock sync message, just responded to according to the clock sync message,
Response message is fed back to BMC.It is to be appreciated that just can determine that simultaneously after BMC receives the response message that ntp server 200 is fed back
Store the 200 corresponding second ntp server address of ntp server.
That is, in the case where preconfigured first ntp server address failure, when BMC can pass through active broadcast
The mode of clock sync message reacquires the address of ntp server 200, and realizes that clock is synchronous with this.
In another optional embodiment, referring to Fig. 5, being another specific flow chart of S202.S202 includes:
S2023 responds the ntp server 200 listened to and synchronizes report according to the first clock of presetting periodic broadcasting
Text, to 200 tranmitting data register sync message of ntp server.
Ntp server 200 according to presetting periodic broadcasting the first clock sync message, when BMC listen to this first when
After clock sync message, just actively to the 200 tranmitting data register sync message of ntp server.
S2024 receives the response message that ntp server 200 is fed back.
Wherein, response message is that ntp server 200 receives the response message fed back after clock sync message.It can manage
After Xie Di, BMC receive the response message of the feedback of ntp server 200, it just can determine that and to store the ntp server 200 corresponding
Second ntp server address.
That is, BMC can be taken in the case where preconfigured first ntp server address failure with passive listening NTP
It is engaged in the first clock sync message of 200 active broadcast of device, to reacquire the address of ntp server 200, and when being realized with this
Clock is synchronous.
S203, according to response message and receives first time of response message, and what it is by baseboard management controller 110 is
The system time synchronization of system time and ntp server 200.
Referring to Fig. 6, being the specific flow chart of S203.
S2031 obtains the second time, third time and the 4th time according to response message.
Wherein, the second time was the time of 110 tranmitting data register sync message of baseboard management controller, and the second time can pass through
Originate Timestamp field value determines;The third time is the time that ntp server 200 receives clock sync message,
The third time can be determined by Receive Timestamp field value;4th time was ntp server 200 to substrate management control
Device 110 processed is fed back the time of response message, and the 4th time can be determined by Transmit Timestamp field value.
S2032 determines baseboard management controller 110 according to first time, the second time, third time and the 4th time
With the time difference of ntp server 200.
Specifically, the time difference meets formula:
Wherein, offest is time difference, T1For first time, T2For the second time, T3For third time, T4When being the 4th
Between.
S2033, based on the time difference by the system time of the system time of baseboard management controller 110 and ntp server 200
It is synchronous.
For example, BMC is in first time T1When for 10:00:03am, when getting response message as shown in Figure 7.It is answered from this
Answering message can learn: the second time T2For 10:00:00am, third time T3For 11:00:01am, the 4th time T4It is 11:
00:02am.To,That is, the time difference of BMC and ntp server 200 is 1 small
When.To increase by 1 hour on the basis of BMC system time, just realize the time synchronization of BMC Yu ntp server 200.
S204 sends new clock sync message to ntp server 200 according to presetting time interval.
Clock in order to guarantee BMC is accurate, just needs to carry out a time synchronization every presetting time interval, therefore
New clock sync message is sent to the ntp server 200 of last time according to presetting time interval.
S205 is fed back if 200 corresponding second ntp server address of ntp server is effective according to ntp server 200
New response message and receive time of new response message again by the system time of baseboard management controller 110 with
The system time synchronization of ntp server 200.
Wherein, new response message is to feed back after the ntp server 200 receives new clock sync message.
It should be noted that carrying out time synchronization when 200 corresponding second ntp server address of ntp server is effective
Detailed process please refer to step S203, repeat no more in this step.In addition, working as corresponding 2nd NTP of ntp server 200
When server address is invalid, S202 is just re-executed, redefines ntp server 200, to carry out time synchronization.
In order to execute the corresponding steps in above-described embodiment and each possible mode, a kind of time synchronization dress is given below
300 implementation is set, optionally, which can be using above-mentioned destination server 100 shown in FIG. 1
Device architecture.Further, referring to Fig. 8, Fig. 8 is the functional module for the time synchronism apparatus 300 that the embodiment of the present disclosure provides
Figure.It should be noted that the technical effect of time synchronism apparatus 300 provided by the present embodiment, basic principle and generation and
Above-described embodiment is identical, and to briefly describe, the present embodiment part does not refer to place, can refer in corresponding in the above embodiments
Hold.The time synchronism apparatus 300 includes: judgment module 310, Receive message module 320, time synchronization module 330 and message
Sending module 340.
Wherein, judgment module 310 is for judging whether preconfigured first ntp server address fails.
It is to be appreciated that the judgment module 310 can be used for executing S201 in a kind of optional embodiment.
If Receive message module 320 is used for preconfigured first ntp server address failure, ntp server is obtained
200 feedback response messages, wherein response message be ntp server 200 receive baseboard management controller 110 transmission when
It is fed back after clock sync message.
In a kind of optional embodiment, Receive message module 320 is for the Servers-all broadcast into local area network
Clock sync message, and receive ntp server 200 and listen to the response message fed back after clock sync message.
In another optional embodiment, Receive message module 320 is for responding the ntp server listened to
200 according to presetting periodic broadcasting the first clock sync message, to 200 tranmitting data register sync message of ntp server, and connect
It receives ntp server 200 and receives the response message fed back after clock sync message.
It is to be appreciated that in a kind of optional embodiment, the Receive message module 320 can be used for executing S202,
S2021, S2022, S2023 and S2024.
Time synchronization module 330 is used for according to response message and receives the first time of response message, by substrate pipe
Manage the system time of controller 110 and the system time synchronization of ntp server 200.
Specifically, when time synchronization module 330 is used for according to response message the second time of acquisition, third time and the 4th
Between, and determine that baseboard management controller 110 and NTP service according to first time, the second time, third time and the 4th time
The time difference of device 200 is then based on the time difference for the system of the system time of baseboard management controller 110 and ntp server 200
Time synchronization.
It is to be appreciated that in a kind of optional embodiment, the time synchronization module 330 can be used for executing S203,
S2031、S2032、S2033。
Message sending module 340 is used to send new clock to ntp server 200 according to presetting time interval synchronous
Message.
It is to be appreciated that the message sending module 340 can be used for executing S204 in a kind of optional embodiment.
If time synchronization module 330 is also used to ntp server, 200 corresponding second ntp server address is effective, basis
The new response message and receive the time of new response message again by baseboard management controller that ntp server 200 is fed back
110 system time and the system time synchronization of ntp server 200, wherein new response message is the reception of ntp server 200
It is fed back after to new clock sync message.
It is to be appreciated that the time synchronization module 330 can be used for executing S205 in a kind of optional embodiment.
In addition, the embodiment of the present disclosure additionally provides a kind of computer readable storage medium, it is stored thereon with computer program,
The computer program realizes above-mentioned method for synchronizing time when being executed by processor.
In conclusion method for synchronizing time, device and baseboard management controller that the disclosure provides, when preconfigured the
When one ntp server address failure, obtain ntp server receive it is anti-after the clock sync message of baseboard management controller transmission
The response message of feedback, and according to response message and receive first time of response message, what it is by baseboard management controller is
The system time synchronization of system time and ntp server.Namely method for synchronizing time, device and substrate management control that the disclosure provides
Device processed still will continue to carry out time synchronization with ntp server after the first ntp server address failure, rather than according to itself
Clock timing, ensure that the accuracy of time.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through
Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing
Show the device of multiple embodiments according to the disclosure, the architectural framework in the cards of method and computer program product,
Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code
Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held
Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement
The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes
It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart
The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement
It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the disclosure can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the disclosure is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) execute each embodiment the method for the disclosure all or part of the steps.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The foregoing is merely preferred embodiment of the present disclosure, are not limited to the disclosure, for the skill of this field
For art personnel, the disclosure can have various modifications and variations.It is all within the spirit and principle of the disclosure, it is made any to repair
Change, equivalent replacement, improvement etc., should be included within the protection scope of the disclosure.
Claims (10)
1. a kind of method for synchronizing time, which is characterized in that be applied to baseboard management controller, the method for synchronizing time includes:
If preconfigured first ntp server address failure, the response message of ntp server feedback is obtained, wherein described
Response message is to feed back after the ntp server receives the clock sync message that the baseboard management controller is sent;
According to the response message and receive first time of the response message, what it is by the baseboard management controller is
The system time synchronization of system time and the ntp server.
2. method for synchronizing time according to claim 1, which is characterized in that the response for obtaining ntp server feedback
The step of message includes:
Servers-all into local area network broadcasts the clock sync message, and the Servers-all in the local area network includes institute
State ntp server;
Receive the response message of the ntp server feedback, wherein the response message listens to institute for the ntp server
It states and feeds back after clock sync message.
3. method for synchronizing time according to claim 1, which is characterized in that the response for obtaining ntp server feedback
The step of message includes:
Respond first clock sync message of the ntp server listened to according to presetting periodic broadcasting, Xiang Suoshu
Ntp server sends the clock sync message;
Receive the response message of the ntp server feedback, wherein the response message receives institute for the ntp server
It states and feeds back after clock sync message.
4. method for synchronizing time described in any one of -3 according to claim 1, which is characterized in that answered according to described
It answers message and receives first time of the response message for the system time of the baseboard management controller and the NTP
After the step of system time synchronization of server, the method also includes:
New clock sync message is sent to the ntp server according to presetting time interval;
If ntp server corresponding second ntp server address is effective, according to the new of ntp server feedback
Response message and the time of the new response message is received again by the system time of the baseboard management controller and institute
State the system time synchronization of ntp server, wherein it is described new that the new response message is that the ntp server receives
It is fed back after clock sync message.
5. method for synchronizing time described in any one of -3 according to claim 1, which is characterized in that described according to the response
Message and the first time for receiving the response message take the system time of the baseboard management controller and the NTP
Be engaged in device system time synchronization the step of include:
The second time, third time and the 4th time are obtained according to the response message, wherein second time is described
Baseboard management controller sends the time of the clock sync message, and the third time receives institute for the ntp server
The time of clock sync message is stated, the 4th time is the ntp server to described in baseboard management controller feedback
The time of response message;
The substrate pipe is determined according to the first time, second time, the third time and the 4th time
Manage the time difference of controller and the ntp server;
It is based on the time difference that the system time of the baseboard management controller and the system time of the ntp server is same
Step.
6. a kind of time synchronism apparatus, which is characterized in that be applied to baseboard management controller, the time synchronism apparatus includes:
Receive message module obtains ntp server feedback if being used for preconfigured first ntp server address failure
Response message, wherein the response message is same for the clock that the ntp server receives the baseboard management controller transmission
It is fed back after step message;
Time synchronization module will be described for according to the response message and receiving first time of the response message
The system time synchronization of the system time of baseboard management controller and the ntp server.
7. time synchronism apparatus according to claim 6, which is characterized in that the Receive message module is used for local area network
Interior Servers-all broadcasts the clock sync message, and the Servers-all in the local area network includes the ntp server;
The Receive message module is also used to receive the response message of ntp server feedback, wherein the response message is
The ntp server, which listens to after the clock sync message, to be fed back.
8. time synchronism apparatus according to claim 6, which is characterized in that the Receive message module is listened to for responding
First clock sync message of the obtained ntp server according to presetting periodic broadcasting, the transmission of Xiang Suoshu ntp server
The clock sync message;
The Receive message module is also used to receive the response message of ntp server feedback, wherein the response message is
The ntp server, which receives, to be fed back after the clock sync message.
9. a kind of baseboard management controller, which is characterized in that including processor and memory, the memory is stored with can be by
The machine-executable instruction can be performed to realize that right is wanted in the machine-executable instruction that the processor executes, the processor
Seek method for synchronizing time described in any one of 1-5.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
Method for synchronizing time according to any one of claims 1 to 5 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910682714.8A CN110336636B (en) | 2019-07-26 | 2019-07-26 | Time synchronization method and device and substrate management controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910682714.8A CN110336636B (en) | 2019-07-26 | 2019-07-26 | Time synchronization method and device and substrate management controller |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110336636A true CN110336636A (en) | 2019-10-15 |
CN110336636B CN110336636B (en) | 2021-05-07 |
Family
ID=68147689
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910682714.8A Active CN110336636B (en) | 2019-07-26 | 2019-07-26 | Time synchronization method and device and substrate management controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110336636B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110995496A (en) * | 2019-12-15 | 2020-04-10 | 苏州浪潮智能科技有限公司 | Method and device for synchronizing time of white box switch in batches |
CN111769896A (en) * | 2020-06-12 | 2020-10-13 | 苏州浪潮智能科技有限公司 | BMC (baseboard management controller) clustered management time synchronization method and system |
CN113268400A (en) * | 2021-04-27 | 2021-08-17 | 新华三信息技术有限公司 | Synchronous flashing method and device for indicator lamp and server |
CN115225193A (en) * | 2022-07-27 | 2022-10-21 | 苏州浪潮智能科技有限公司 | BMC time synchronization method, system, device and readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1487752A (en) * | 2002-08-16 | 2004-04-07 | Lg������ʽ���� | System and method for synchronous service GPRs supporting node and gateway GPRs supporting mode |
KR20040050151A (en) * | 2002-12-09 | 2004-06-16 | 엘지전자 주식회사 | Method for Synchronizing Time in Exchange System |
JP2006322788A (en) * | 2005-05-18 | 2006-11-30 | Fujitsu General Ltd | Time synchronizing system |
CN105610958A (en) * | 2016-01-13 | 2016-05-25 | 广东欧珀移动通信有限公司 | Method and device for selecting time synchronization server and intelligent terminal |
CN106993028A (en) * | 2017-03-20 | 2017-07-28 | 山东浪潮商用系统有限公司 | Network time acquisition methods, apparatus and system, computer-readable recording medium and storage control |
CN107017958A (en) * | 2016-01-28 | 2017-08-04 | 浙江宇视科技有限公司 | A kind of method for synchronizing time and corresponding system based on NTP |
-
2019
- 2019-07-26 CN CN201910682714.8A patent/CN110336636B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1487752A (en) * | 2002-08-16 | 2004-04-07 | Lg������ʽ���� | System and method for synchronous service GPRs supporting node and gateway GPRs supporting mode |
KR20040050151A (en) * | 2002-12-09 | 2004-06-16 | 엘지전자 주식회사 | Method for Synchronizing Time in Exchange System |
JP2006322788A (en) * | 2005-05-18 | 2006-11-30 | Fujitsu General Ltd | Time synchronizing system |
CN105610958A (en) * | 2016-01-13 | 2016-05-25 | 广东欧珀移动通信有限公司 | Method and device for selecting time synchronization server and intelligent terminal |
CN107017958A (en) * | 2016-01-28 | 2017-08-04 | 浙江宇视科技有限公司 | A kind of method for synchronizing time and corresponding system based on NTP |
CN106993028A (en) * | 2017-03-20 | 2017-07-28 | 山东浪潮商用系统有限公司 | Network time acquisition methods, apparatus and system, computer-readable recording medium and storage control |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110995496A (en) * | 2019-12-15 | 2020-04-10 | 苏州浪潮智能科技有限公司 | Method and device for synchronizing time of white box switch in batches |
CN110995496B (en) * | 2019-12-15 | 2022-05-13 | 苏州浪潮智能科技有限公司 | Method and device for synchronizing time of white box switch in batches |
CN111769896A (en) * | 2020-06-12 | 2020-10-13 | 苏州浪潮智能科技有限公司 | BMC (baseboard management controller) clustered management time synchronization method and system |
CN111769896B (en) * | 2020-06-12 | 2022-12-20 | 苏州浪潮智能科技有限公司 | BMC (baseboard management controller) clustered management time synchronization method and system |
CN113268400A (en) * | 2021-04-27 | 2021-08-17 | 新华三信息技术有限公司 | Synchronous flashing method and device for indicator lamp and server |
CN113268400B (en) * | 2021-04-27 | 2022-07-12 | 新华三信息技术有限公司 | Synchronous flashing method and device for indicator lamp and server |
CN115225193A (en) * | 2022-07-27 | 2022-10-21 | 苏州浪潮智能科技有限公司 | BMC time synchronization method, system, device and readable storage medium |
CN115225193B (en) * | 2022-07-27 | 2024-05-10 | 苏州浪潮智能科技有限公司 | BMC time synchronization method, system, device and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110336636B (en) | 2021-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110336636A (en) | Method for synchronizing time, device and baseboard management controller | |
US9690674B2 (en) | Method and system for robust precision time protocol synchronization | |
US10855643B2 (en) | Bluetooth low energy address resolving | |
US9363836B2 (en) | Secure management of radio transmissions in an endpoint device of a network | |
Noh et al. | Novel clock phase offset and skew estimation using two-way timing message exchanges for wireless sensor networks | |
EP3149896B1 (en) | Group scheduled sensor data acquisition in a wireless sensor system | |
EP3201805B1 (en) | Methods and systems for regulating communications at a mobile communications device | |
CN106302700B (en) | Distributed system consistent update method and system based on paxos algorithm | |
Dengchang et al. | Time synchronization in wireless sensor networks using max and average consensus protocol | |
CN103765377B (en) | Terminal and its application management method | |
CN102752065B (en) | A kind of method for synchronizing time and system | |
Sarvghadi et al. | Message passing based time synchronization in wireless sensor networks: A survey | |
CN109587778A (en) | Communication means for electronics price tag | |
CN109600186A (en) | Clock synchronizing method and device | |
Kaur et al. | A survey of time synchronization protocols for wireless sensor networks | |
KR100726476B1 (en) | Time synchronization method for minimizing power consumption of hetero-species sensor nodes and network adopting same | |
Zong et al. | Simulation and evaluation of pulse-coupled oscillators in wireless sensor networks | |
Dalwadi et al. | An insight into time synchronization algorithms in IoT | |
CN107181555B (en) | The method for replacing DDNS to realize that internet is interacted with equipment in local area network using the Network Time Protocol of extension | |
CN103117845A (en) | Modification method, device and system of transparent clock residence time | |
CN108307416A (en) | A kind of internet-of-things terminal management method | |
CN107437971A (en) | The processing method and processing device of Synchronization Status Message | |
CN103813382A (en) | Clock synchronization method, device and system | |
CN204791012U (en) | Server, mobile terminal and system that supplementary user used medicine | |
CN107608723A (en) | One kind application alignment awakening method, terminal and computer-readable recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |