CN107241365A - A kind of cloud platform method for synchronizing time - Google Patents

A kind of cloud platform method for synchronizing time Download PDF

Info

Publication number
CN107241365A
CN107241365A CN201710689808.9A CN201710689808A CN107241365A CN 107241365 A CN107241365 A CN 107241365A CN 201710689808 A CN201710689808 A CN 201710689808A CN 107241365 A CN107241365 A CN 107241365A
Authority
CN
China
Prior art keywords
time
physical node
time synchronized
cloud platform
synchronized
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.)
Pending
Application number
CN201710689808.9A
Other languages
Chinese (zh)
Inventor
朱莉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CETC 28 Research Institute
Original Assignee
CETC 28 Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CETC 28 Research Institute filed Critical CETC 28 Research Institute
Priority to CN201710689808.9A priority Critical patent/CN107241365A/en
Publication of CN107241365A publication Critical patent/CN107241365A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/28Timers or timing mechanisms used in protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)
  • Electric Clocks (AREA)

Abstract

The invention discloses a kind of cloud platform method for synchronizing time, comprise the following steps:The 1st, time server is set, and the time server is used to receive the outside reference time;2nd, all physical nodes of physical layer are set into time synchronized priority, time synchronized priority level highest physical node carries out time synchronized with time server, and remaining physical node carries out time synchronized with time synchronized priority level highest physical node;3rd, virtual level application software obtains the machine time of the resident physical node of dummy node.This method can realize that the time of synchronous cloud platform physical layer time, physical layer and virtual level shares and virtual level time synchronized, effectively the punctual precision of lifting virtual level and timing tracking accuracy.

Description

A kind of cloud platform method for synchronizing time
Technical field
The invention belongs to field of cloud computer technology, and in particular to the time of physical layer and virtual level in a kind of cloud computing platform Synchronous method.
Background technology
Cloud platform realizes the integration or division of physical resource using virtualization technology, is built by creating virtual machine virtual Layer;The virtual machine unit also referred to as dummy node run in virtual level, split assign to of user's request is held in different dummy nodes Row distributed treatment;Physical resource, including the resource such as calculating, storage, network, are the infrastructure of cloud platform, constitute cloud and put down The physical layer of platform, wherein each resource is physical node.
In cloud platform widely used today, cloud platform time synchronization problem turns into asking of must go to face and solve Topic.The time synchronized of cloud platform includes cloud platform virtual level time synchronized and the synchronous two parts content of cloud platform physical layer time, Now widely used cloud platform Time synchronization technique is broadly divided into two kinds:The first technology is to realize physics by cloud platform itself Layer time synchronized, virtual level user realizes virtual level time synchronized as needed;The time synchronized of Huawei's cloud platform uses the skill Art scheme;Second of technology is that on physical layer time synchronous foundation, time broadcast is carried out to virtual level by physical layer timing, Virtual level time synchronized is realized, the time synchronized of kylin cloud platform uses the technical scheme.Test data shows:In LAN ring Under border, using any of the above cloud platform Time Synchronizing, the timing tracking accuracy of physical layer reaches 1ms, virtual level Timing tracking accuracy reaches 10ms, and the timing tracking accuracy of virtual level reduces an order of magnitude compared with physical layer.
In summary, existing cloud platform network time synchronization technology has the following disadvantages:
(1) need to realize physical layer, virtual level time synchronized respectively, the extra calculating of increase and maintenance cost;
No matter use and realize time synchronized in physical layer, virtual level respectively, or use synchronization of the physical layer to virtual level Time broadcast technology, is required for considering virtual level time synchronized while physical layer time is synchronous, adds extra calculating And maintenance cost.
(2) the punctual precision of virtual level is low;
Physical layer clocks are kept using crystal oscillator realization, and punctual precision can reach 1E-5;The clock of virtual level is kept using soft Part timer is realized, there is the problem of punctual stability is low, reliability is poor, causing the punctual ability of virtual level can not ensure.I.e. Make to realize virtual level time synchronized, calibration can only be timed to the virtual level time, it is impossible to change the punctual precision of virtual level low Intrinsic drawback.
(3) virtual level timing tracking accuracy is low;
No matter use and realize time synchronized in physical layer, virtual level respectively, or use synchronization of the physical layer to virtual level Time broadcast technology, the timing tracking accuracy of virtual level is than physical layer order of magnitude lower.Its reason is the sheet of virtual level Matter is one group of application process for operating in physical layer, is dispatched by CPU is simulated in physical layer hardware CPU scheduling mechanisms, virtual level Mechanism double influence, virtual level is unable to reach the timing tracking accuracy consistent with physical layer.
The content of the invention
Goal of the invention:For problems of the prior art, the invention discloses a kind of cloud platform method for synchronizing time, It can realize that the time of synchronous cloud platform physical layer time, physical layer and virtual level shares and virtual level time synchronized, effectively Lift the punctual precision of virtual level and timing tracking accuracy.
Technical scheme:The present invention is adopted the following technical scheme that:A kind of cloud platform method for synchronizing time, comprises the following steps:
(1) time server is set, and the time server is used to receive the outside reference time;
(2) all physical nodes of physical layer are set into time synchronized priority, time synchronized priority level highest thing Manage node and carry out time synchronized with time server, remaining physical node enters with time synchronized priority level highest physical node Row time synchronized;
(3) virtual level application software obtains the machine time of the resident physical node of dummy node.
The time server, which is provided with satellite reception module, to be used to receive standard UTC time;To realize that high accuracy is punctual Function, the time server is additionally provided with atomic clock module.
All physical nodes of physical layer can set in time synchronized priority, the present invention according to multiple rule and preferably press Reliability according to physical node sets time synchronized priority, and the time synchronized priority of reliability highest physical node is most It is high.
Time synchronized priority level highest physical node carries out time synchronized with time server using Network Time Protocol;Its Remaining physical node also carries out time synchronized with time synchronized priority level highest physical node using Network Time Protocol.
When time synchronized priority level highest physical node is dissolved or during failure, access time synchronization priority level time is high Physical node and time server carry out time synchronized, remaining physical node physics section high with time synchronized priority level time Point carries out time synchronized;When time synchronized priority level highest physical node redeploys or recovers normal, time synchronized Priority level highest physical node carries out time synchronized, remaining physical node and time synchronized priority level with time server Highest physical node carries out time synchronized.
The step (3) comprises the following steps:
(3.1) virtual level application software allocating time obtains function;
(3.2) cloud platform software reads the resident physical node machine time of dummy node, and returns to virtual level application Software.
Beneficial effect:Compared with prior art, cloud platform method for synchronizing time disclosed by the invention has advantages below:1、 The time for realizing synchronous cloud platform physical layer time, physical layer and virtual level shares and virtual level time synchronized;2nd, it is virtual Layer directly accesses physical layer clocks resources technology, and virtual level shares the time synchronized result of physical layer and the time keeps result, empty Intend the timing tracking accuracy of layer, punctual precision improvement to identical with physical layer, punctual precision reaches 1E-5;3rd, virtual level need not Extra time synchronous calculating and maintenance cost with maintenance.
Brief description of the drawings
Fig. 1 is the system assumption diagram of cloud platform method for synchronizing time disclosed by the invention;
Fig. 2 is the astronomical time function call timing diagram of application software in virtual machine in embodiment.
Embodiment
With reference to the accompanying drawings and detailed description, the present invention is furture elucidated.
As shown in figure 1, being the system assumption diagram of cloud platform method for synchronizing time disclosed by the invention, 1 is time server, For receiving the outside reference time;2 be physical layer, wherein containing a number of physical node 3;Using virtualization technology, It is created that some virtual machines 5 build virtual level 4.
Cloud platform method for synchronizing time disclosed by the invention is described in detail below:
Step 1:Time server is set, and the time server is used to receive the outside reference time;
In the present embodiment, satellite reception module and atomic clock module are provided with time server 1, satellite reception module is used In receiving standard UTC time, in order to more reliably receive UTC time, believed using multi-mode satellite receiving module, including GPS time services Number reception and Big Dipper time signal reception.Atomic clock module is used to realize that high accuracy is punctual.
Step 2:Time synchronized priority, time synchronized priority level highest are set to all physical nodes of physical layer Physical node carries out time synchronized, remaining physical node and time synchronized priority level highest physical node with time server Carry out time synchronized;
Time synchronized priority, reliability highest physical node are set according to the reliability of physical node in the present embodiment Time synchronized highest priority, in Fig. 16 be highest Time priority physical node.
Installation time broadcast module on time server in the present embodiment, using Network Time Protocol to time synchronized priority level Highest physical node broadcast standard UTC time, realizes time synchronized;Remaining physical node and time synchronized priority level highest Physical node time synchronized is also carried out using Network Time Protocol, thus achieve the time synchronized of physical layer with it is high-precision punctual.
When time synchronized priority level highest physical node 6 is dissolved or during failure, access time synchronization priority level time High physical node carries out time synchronized, remaining physical node physics high with time synchronized priority level time with time server Node carries out time synchronized;When time synchronized priority level highest physical node redeploys or recovers normal, the time is same Walk priority level highest physical node and carry out time synchronized, remaining physical node and time synchronized priority with time server Other highest physical node carries out time synchronized.
Step 3:Virtual level application software obtains the machine time of the resident physical node of dummy node;Specifically include:
(3.1) virtual level application software allocating time obtains function;
(3.2) cloud platform software reads the resident physical node machine time of dummy node, and returns to virtual level application Software.
By taking the virtual level application software acquisition time as an example, as shown in Fig. 2 virtual level application software allocating time obtains letter Number, this function obtains the machine time of the resident physical node of virtual level application software by cloud platform software, and returns to void Intend layer application software.

Claims (8)

1. a kind of cloud platform method for synchronizing time, it is characterised in that comprise the following steps:
(1) time server is set, and the time server is used to receive the outside reference time;
(2) all physical nodes of physical layer are set into time synchronized priority, time synchronized priority level highest physics section Point carries out time synchronized with time server, when remaining physical node is carried out with time synchronized priority level highest physical node Between it is synchronous;
(3) virtual level application software obtains the machine time of the resident physical node of dummy node.
2. cloud platform method for synchronizing time according to claim 1, it is characterised in that the time server, which is provided with, to be defended Star receiving module is used to receive standard UTC time.
3. cloud platform method for synchronizing time according to claim 2, it is characterised in that the time server also sets up original Secondary clock module realizes the punctual function of high accuracy.
4. cloud platform method for synchronizing time according to claim 1, it is characterised in that time synchronized priority level highest Physical node carries out time synchronized with time server using Network Time Protocol;Remaining physical node and time synchronized priority level are most High physical node carries out time synchronized using Network Time Protocol.
5. cloud platform method for synchronizing time according to claim 1, it is characterised in that when time synchronized priority level highest Physical node dissolve or during failure, the high physical node of access time synchronization priority level time carries out the time with time server Synchronous, remaining physical node physical node high with time synchronized priority level time carries out time synchronized.
6. cloud platform method for synchronizing time according to claim 5, it is characterised in that when time synchronized priority level highest Physical node when redeploying or recovering normal, time synchronized priority level highest physical node is carried out with time server Time synchronized, remaining physical node carries out time synchronized with time synchronized priority level highest physical node.
7. cloud platform method for synchronizing time according to claim 1, it is characterised in that the step (3) includes following step Suddenly:
(3.1) virtual level application software allocating time obtains function;
(3.2) cloud platform software reads the resident physical node machine time of dummy node, and returns to virtual level application software.
8. cloud platform method for synchronizing time according to claim 1, it is characterised in that all physical nodes of physical layer are pressed Reliability according to physical node sets time synchronized priority, and the time synchronized priority of reliability highest physical node is most It is high.
CN201710689808.9A 2017-08-14 2017-08-14 A kind of cloud platform method for synchronizing time Pending CN107241365A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710689808.9A CN107241365A (en) 2017-08-14 2017-08-14 A kind of cloud platform method for synchronizing time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710689808.9A CN107241365A (en) 2017-08-14 2017-08-14 A kind of cloud platform method for synchronizing time

Publications (1)

Publication Number Publication Date
CN107241365A true CN107241365A (en) 2017-10-10

Family

ID=59988758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710689808.9A Pending CN107241365A (en) 2017-08-14 2017-08-14 A kind of cloud platform method for synchronizing time

Country Status (1)

Country Link
CN (1) CN107241365A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729123A (en) * 2017-10-24 2018-02-23 郑州云海信息技术有限公司 The virtual machine method, apparatus synchronous with host time time zone, equipment and medium
CN111404628A (en) * 2019-06-05 2020-07-10 杭州海康威视系统技术有限公司 Time synchronization method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077067A (en) * 2012-12-26 2013-05-01 华为技术有限公司 Method, device and equipment for detecting system time of virtual machine
CN103957233B (en) * 2014-03-26 2017-03-15 哈尔滨工业大学 Based on processor pyrene and the real-time communication platform of virtual machine
CN106909197A (en) * 2017-02-28 2017-06-30 郑州云海信息技术有限公司 A kind of virtualized host time management method and virtualized host system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077067A (en) * 2012-12-26 2013-05-01 华为技术有限公司 Method, device and equipment for detecting system time of virtual machine
CN103957233B (en) * 2014-03-26 2017-03-15 哈尔滨工业大学 Based on processor pyrene and the real-time communication platform of virtual machine
CN106909197A (en) * 2017-02-28 2017-06-30 郑州云海信息技术有限公司 A kind of virtualized host time management method and virtualized host system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729123A (en) * 2017-10-24 2018-02-23 郑州云海信息技术有限公司 The virtual machine method, apparatus synchronous with host time time zone, equipment and medium
CN111404628A (en) * 2019-06-05 2020-07-10 杭州海康威视系统技术有限公司 Time synchronization method and device
CN111404628B (en) * 2019-06-05 2022-03-29 杭州海康威视系统技术有限公司 Time synchronization method and device

Similar Documents

Publication Publication Date Title
CN105429725B (en) A kind of submicrosecond grade clock synchronizing method and system based on SOPC networkings
CN100520759C (en) Method, and apparatus, for an efficient virtualized time base in a scaleable multi-processor computer
CN101595669B (en) Method and device for exchanging information for facilitating synchronization of time network
CN101601214B (en) Facilitating recovery in a coordinated timing network
CN107295627B (en) Time synchronization method and time synchronization device of baseband pool server
US20230106118A1 (en) Distributed processing of transactions in a network using timestamps
US9900120B2 (en) Clock synchronization method and apparatus
WO2020043181A1 (en) Clock synchronization method and apparatus, system, storage medium, and electronic device
CN103957233B (en) Based on processor pyrene and the real-time communication platform of virtual machine
CN1845546A (en) Accurate time synchronization method and system facing measurement and control
CN110502310B (en) Time synchronization method and device of virtual machine
US20170272190A1 (en) Time synchronization method and apparatus for network devices and time synchronization server
CN100527661C (en) Method and system for realizing multi-clock synchronization
KR20100099319A (en) Node system, server switching method, server device, and data transfer method
CN107241365A (en) A kind of cloud platform method for synchronizing time
CN103957258A (en) Trans-regional data communication method and system
CN102217207B (en) Synchronization method and device for real-time distributed system
CN108075853A (en) A kind of method for synchronizing network time between Helicopter Simulator development system
CN110071778B (en) Time synchronization method, device, equipment and medium
CN112511255B (en) Time synchronization method and device
CN105515709A (en) Time synchronization device based on domestic FPGA and uclinux operating system
CN102638885B (en) Timing processing device and method
CN101887286A (en) Method and device for converting time format
CN101610274B (en) Data synchronization method based on enterprise converged communication platform
CN109274451B (en) Time acquisition method, device and equipment

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
CB02 Change of applicant information

Address after: No.1 Lingshan South Road, Qixia District, Nanjing City, Jiangsu Province 210046

Applicant after: THE 28TH RESEARCH INSTITUTE OF CHINA ELECTRONICS TECHNOLOGY Group Corp.

Address before: 210003 No. 1 East Garden Street, Qinhuai District, Jiangsu, Nanjing

Applicant before: THE 28TH RESEARCH INSTITUTE OF CHINA ELECTRONICS TECHNOLOGY Group Corp.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20171010

RJ01 Rejection of invention patent application after publication