CN106972904A - A kind of synchronous method and system of clock - Google Patents

A kind of synchronous method and system of clock Download PDF

Info

Publication number
CN106972904A
CN106972904A CN201611043304.1A CN201611043304A CN106972904A CN 106972904 A CN106972904 A CN 106972904A CN 201611043304 A CN201611043304 A CN 201611043304A CN 106972904 A CN106972904 A CN 106972904A
Authority
CN
China
Prior art keywords
message
clock
event
udp
protocol stack
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
Application number
CN201611043304.1A
Other languages
Chinese (zh)
Other versions
CN106972904B (en
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.)
Shenzhen Institute of Information Technology
Original Assignee
Shenzhen Institute of Information Technology
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 Shenzhen Institute of Information Technology filed Critical Shenzhen Institute of Information Technology
Priority to CN201611043304.1A priority Critical patent/CN106972904B/en
Publication of CN106972904A publication Critical patent/CN106972904A/en
Application granted granted Critical
Publication of CN106972904B publication Critical patent/CN106972904B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

There is provided a kind of synchronous method and system of clock suitable for communication technical field by the present invention, it is intended to the problem of solving to dispose clock synchronizing function not in cloud computing environment in the prior art.Methods described includes:If equipment end receives the first event clock message, very first time stamp is extracted, and the first event clock message is sent to protocol stack service end by first network message, wherein, protocol stack service end is deployed on Cloud Server;Protocol stack service end obtains the first event clock message from first network message, and carries out clock protocols processing according to the first event clock message.Technical scheme completes clock protocols by the protocol stack service end being deployed on Cloud Server and handled, clock data is safeguarded in equipment end, realize while clock technology index request is met, clock synchronizing function is deployed in cloud computing environment, the resource of cloud computing is made full use of to carry out clock protocols processing, so as to improve the efficiency and performance of clock synchronization process.

Description

A kind of synchronous method and system of clock
Technical field
The present invention relates to communication technical field, more particularly to a kind of synchronous method and system of clock.
Background technology
, it is necessary to keep local clock synchronous with system clock in the application of distributed apparatus, the clock commonly used at present Synchronous protocol is the clock protocols of IEEE 1588, and the agreement is a kind of accurate clock synchronization protocol, can reach submicrosecond level Timing tracking accuracy, and the clock protocols of IEEE 1588 are generally run in ethernet networks.
Traditional clock processing systems of IEEE 1588 are directly deployed on equipment veneer, and logical by least one physics Believe port connection network, the major function of the clock processing systems of IEEE 1588 includes:Protocol message is received and dispatched, clock and end is safeguarded Mouth data, wherein, protocol message includes event message and universal information, and event message needs to configure accurate timestamp. Receive and dispatch protocol message generally to be handled by the protocol stack module of equipment veneer, safeguard clock and port data generally by equipment veneer Drive module processing, protocol stack module and veneer drive module are compiled in same board software, and are adjusted by function Mode directly transmits and received event message.
Cloud computing is widely used as a kind of emerging technology, when the device systems quilt using the clock protocols of IEEE 1588 When being deployed in cloud computing environment, on the one hand, because the protocol stack micro services for handling the clock protocols of IEEE 1588 need to run to cloud In computing environment, rather than it is bundled in clock processing equipment, causes to handle event message by way of function call Method can not continue, on the other hand, because protocol stack micro services do not possess extraction time stamp and beat the function of timestamp, it is impossible to tie up Clock and port data are protected, therefore event message message can not be directly forwarded to protocol stack micro services, even if protocol stack is in incognito The time delay that business can be stabbed and beat during timestamp, forwarded extraction time is also random, causes the clocks of IEEE 1588 Precision is affected.
Therefore, the characteristics of traditional clock protocols processing modes of IEEE 1588 can not meet cloud computing environment and demand, are needed A kind of method that clock synchronizing function can be disposed in cloud computing environment is provided.
The content of the invention
It is an object of the invention to provide a kind of synchronous method and system of clock, it is intended to solves prior art not in cloud The problem of clock synchronizing function being disposed in computing environment.
The first aspect of the present invention there is provided a kind of synchronous method of clock, including:
If equipment end receives the first event clock message, the very first time is extracted from the first event clock message Stamp, wherein, the very first time is stabbed for safeguarding clock data and physical port data;
The first event clock message is sent to protocol stack service end by the equipment end by first network message, its In, the protocol stack service end is deployed on Cloud Server;
The protocol stack service end obtains the first event clock message from the first network message, and according to institute State the first event clock message and carry out clock protocols processing.
The second aspect of the present invention is there is provided a kind of synchronous system of clock, and the system includes equipment end and protocol stack takes Business end, the equipment end and the protocol stack service end pass through network connection;
The equipment end includes:
Extraction module, if for receiving the first event clock message, being extracted from the first event clock message The very first time stabs, wherein, the very first time is stabbed for safeguarding clock data and physical port data;
First sending module, for the first event clock message to be sent into the agreement by first network message Stack service end, wherein, the protocol stack service end is deployed on Cloud Server;
The protocol stack service end includes:
First processing module, for obtaining the first event clock message from the first network message, and according to The first event clock message carries out clock protocols processing.
The beneficial effect that exists compared with prior art of the present invention is:If equipment end receives the first event clock message, Very first time stamp is then extracted, and the first event clock message is sent to protocol stack service end by first network message, wherein, Protocol stack service end is deployed on Cloud Server, and protocol stack service end obtains the first event clock report from first network message Text, and clock protocols processing is carried out according to the first event clock message, technical scheme is by being deployed in Cloud Server On protocol stack service end complete clock protocols processing, and safeguard clock data and physical port data in equipment end, realize While clock technology index request is met, clock synchronizing function is deployed in cloud computing environment, cloud computing is made full use of Resource carry out clock protocols processing, so as to improve the efficiency and performance of clock synchronization process.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the method for clock synchronization that the embodiment of the present invention one is provided;
Fig. 2 is a kind of flow chart of the method for clock synchronization that the embodiment of the present invention two is provided;
Fig. 3 is a kind of structural representation of the device for clock synchronization that the embodiment of the present invention three is provided;
Fig. 4 is a kind of structural representation of the device for clock synchronization that the embodiment of the present invention four is provided.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
The realization of the present invention is described in detail below in conjunction with specific accompanying drawing.
Embodiment one:
Fig. 1 is a kind of flow chart of the method for clock synchronization that the embodiment of the present invention one is provided, and specifically includes step S101 To S103, details are as follows:
If S101, equipment end receive the first event clock message, first is extracted from the first event clock message Timestamp, wherein, the very first time is stabbed for safeguarding clock data and physical port data.
Equipment end can be the equipment veneer of distributed apparatus, it is necessary to keep local clock synchronous with system time.The One clock event message is the network message of event message, and event message is used to produce and interaction time information, and temporal information is used In time synchronized, including time deviation measurement and network delay measurement etc..
Specifically, if the veneer drive module of equipment end receives the network message of the event message of main equipment transmission, Very first time stamp is then extracted from the network message, and clock data and physical port data are tieed up by very first time stamp Shield.
First event clock message is sent to protocol stack service end by S102, equipment end by first network message, wherein, Protocol stack service end is deployed on Cloud Server.
It is attached between equipment end and protocol stack service end by wired or wireless network.Protocol stack service end is disposed On the Cloud Server of cloud computing environment, the processing for carrying out clock protocols, can according to actual protocol processes quantity come Corresponding cloud computing resources are obtained, accomplish elastic telescopic, efficiency and performance to clock protocols processing is improved, meanwhile, also can The reliability of itself is improved using characteristics such as the Hot Spare of cloud computing environment and thermophoresis.
Specifically, equipment end sends the first event clock message received in step S101 by first network message Give protocol stack service end.
S103, protocol stack service end obtain the first event clock message from the first network message received, and according to The first event clock message carries out clock protocols processing.
Specifically, protocol stack service end receives the first network message of equipment end transmission, from the first network message The first event clock message is obtained, and using the first event clock message as event message, carries out clock protocols processing.
Further, the first event clock message can be the clock protocols messages of IEEE 1588.IEEE1588 is that network is surveyed The precision interval clock synchronous protocol standard of amount and control system, the synchronization for realizing local clock and system time.
In the present embodiment, if equipment end receives the first event clock message, very first time stamp is extracted, and during by first Clock event message is sent to protocol stack service end by first network message, wherein, protocol stack service end is deployed in Cloud Server On, protocol stack service end obtains the first event clock message from first network message, and is entered according to the first event clock message Row clock protocol processes, technical scheme completes clock protocols by the protocol stack service end being deployed on Cloud Server Processing, and clock data and physical port data are safeguarded in equipment end, realize while clock technology index request is met, Clock synchronizing function is deployed in cloud computing environment, makes full use of the resource of cloud computing to carry out clock protocols processing, so as to carry The efficiency and performance of high clock synchronization process.
Embodiment two:
Fig. 2 is a kind of flow chart of the method for clock synchronization that the embodiment of the present invention two is provided, and specifically includes step S201 To S207, details are as follows:
If S201, equipment end receive the first event clock message, first is extracted from the first event clock message Timestamp, wherein, the very first time is stabbed for safeguarding clock data and physical port data.
Equipment end can be the equipment veneer of distributed apparatus, it is necessary to keep local clock synchronous with system time.The One clock event message is the network message of event message, and event message is used to produce and interaction time information, and temporal information is used In time synchronized, including time deviation measurement and network delay measurement etc..
Specifically, if the veneer drive module of equipment end receives the network report of the event message of main device module transmission Text, then extract very first time stamp, and clock data and physical port data are entered by very first time stamp from the network message Row is safeguarded.
First event clock message is assembled into the first UDP UDP message by S202, equipment end, wherein, the The payload of one UDP message is the first event clock message, and the source IP of the first UDP message is the IP address of equipment end, first The purpose IP of UDP message is the IP address of protocol stack service end, and the port numbers of the first UDP message are default first end slogan, Wherein, protocol stack service end is deployed on Cloud Server.
UDP (User Datagram Protocol, UDP) is open system interconnection (Open System Interconnection, OSI) a kind of connectionless transport layer protocol in reference model, it is mainly used in not requiring There is provided the simple unreliable information transmission service towards affairs in the transmission that order of packets is reached.
Specifically, the first event clock message is assembled into the first UDP message by equipment end, wherein the first UDP message is net Lotus is the first event clock message, and the source IP of the first UDP message is the IP address of equipment end, and the purpose IP of the first UDP message is The IP address of protocol stack service end, the port numbers of the first UDP message are default first end slogan.
Default first end slogan could be arranged to 15880, but be not limited to time, specifically can be according to the ring of practical application Border is configured, and is not limited herein.
It is attached between equipment end and protocol stack service end by wired or wireless network.Protocol stack service end is disposed On the Cloud Server of cloud computing environment, the processing for carrying out clock protocols, can according to actual protocol processes quantity come Corresponding cloud computing resources are obtained, accomplish elastic telescopic, efficiency and performance to clock protocols processing is improved, meanwhile, also can The reliability of itself is improved using characteristics such as the Hot Spare of cloud computing environment and thermophoresis.
First UDP message is sent to protocol stack service end by S203, equipment end.
Specifically, step S202 the first UDP message assembled is sent to protocol stack service end by equipment end.
S204, protocol stack service end obtain the first event clock message from the first UDP message received, and according to this First event clock message carries out clock protocols processing.
Specifically, protocol stack service end receives the first UDP message of equipment end transmission, is carried from the first UDP message The payload of the first UDP message is taken, the first event clock message is obtained, and using the first event clock message as event message, Carry out clock protocols processing.
Second clock event message is sent to equipment end by S205, protocol stack service end by the second internet message.
When protocol stack service end needs to send event message to equipment end, whole time message is regard as second clock thing Part message, and equipment end is sent to by the second internet message.
Specifically, protocol stack service end second clock event message is sent to equipment end by the second internet message can be with Completed by step S2051 to S2052, details are as follows:
Second clock event message is assembled into the 2nd UDP message by S2051, protocol stack service end, wherein, the 2nd UDP disappears The payload of breath is second clock event message, and the source IP of the 2nd UDP message is the IP address of protocol stack service end, and the 2nd UDP disappears The purpose IP of breath is the IP address of equipment end, and the port numbers of the 2nd UDP message are default second port number.
Specifically, default second port number could be arranged to 15881, but be not limited to time, specifically can be according to reality The environment of application is configured, and is not limited herein.
2nd UDP message is sent to equipment end by S2052, protocol stack service end.
Specifically, step S2051 the 2nd UDP message assembled is sent to equipment end by protocol stack service end.
S206, equipment end obtain second clock event message from the second internet message.
Specifically, equipment end receives the 2nd UDP message of protocol stack service end transmission, is carried from the 2nd UDP message The payload of the 2nd UDP message is taken, second clock event message is obtained.
Second clock event message is stamped the second timestamp by S207, equipment end.
Specifically, the step S206 second clock event messages got are stamped the second timestamp, and conduct by equipment end Event message is sent to main device module.
Further, the first event clock message and second clock event message can be the clock protocols reports of IEEE 1588 Text.IEEE1588 is the precision interval clock synchronous protocol standard of network measure and control system, for realizing local clock and system The synchronization of time.
In order to be better understood from the present embodiment, now by being disposed in cloud computing environment exemplified by the time clock features of IEEE 1588, It is illustrated below:
Slave unit needs to carry out by the clocks of IEEE 1588 synchronous with the system clock of main equipment.The list of slave unit Plate drive module is deployed on equipment veneer, and its external IP is 184.9.52.10, and protocol stack service end is deployed in cloud computing environment Virtual machine on, its external IP is 172.8.10.2.
When veneer drive module receives the network message of the event messages of IEEE 1588, when veneer drive module is extracted Between stab, for safeguarding clock data and physical port data, the network message is then packaged into a UDP message and sent, Its source IP is 184.9.52.10, and purpose IP is 172.8.10.2, and UDP port number is set to 15880.
When operate in the protocol stack service end in virtual machine receive single-ended drive module transmission UDP messages when, agreement Stack service end extracts the payload of the UDP messages, the processing for the clock protocols of IEEE 1588.
When protocol stack service end needs to send event message message, event message message is encapsulated as by protocol stack service end One UDP message is simultaneously sent, and its source IP is 172.8.10.2, and purpose IP is 184.9.52.10, and UDP port number is set to 15881。
When veneer drive module receives the UDP messages of protocol stack service end transmission, veneer drive module is reported from the UDP Payload is extracted in text, and stamps timestamp, being sent to the corresponding module of main equipment as event message is handled.
In the present embodiment, if equipment end receives the first event clock message, very first time stamp is extracted, and during by first Clock event message is assembled into UDP messages, and protocol stack service end is sent to by the first UDP message, wherein, protocol stack service end Administration is on Cloud Server, and protocol stack service end obtains the first event clock message from the first UDP message, and according to the first clock Event message carries out clock protocols processing, meanwhile, protocol stack service end will need to be sent to the second clock event report of equipment end Text is assembled into UDP messages, and equipment end is sent to by the 2nd UDP message, and equipment end obtains second clock from the 2nd UDP messages Event, and stamp the second timestamp.Technical scheme is completed by the protocol stack service end being deployed on Cloud Server Clock protocols processing, and safeguards clock data and physical port data in equipment end, realize meet clock technology index will While asking, clock synchronizing function is deployed in cloud computing environment, makes full use of the resource of cloud computing to carry out at clock protocols Reason, so as to improve the efficiency and performance of clock synchronization process;Meanwhile, equipment end and protocol stack service end are realized by udp protocol Between information receiving and transmitting, effectively improve the speed of information receiving and transmitting, improve execution efficiency.
Embodiment three:
Fig. 3 is a kind of structural representation of the system for clock synchronization that the embodiment of the present invention three is provided, for convenience of description, It illustrate only the part related to the embodiment of the present invention.A kind of synchronous system of clock of Fig. 3 examples can be previous embodiment The executive agent of the synchronous method of one clock provided.A kind of synchronous system of clock of Fig. 3 examples includes equipment end 31 and association Stack service end 32 is discussed, equipment end 31 and protocol stack service end 32 pass through network connection.Equipment end 31 includes extraction module 311 and the One sending module 312, protocol stack service end 32 includes first processing module 321, and each functional module describes in detail as follows:
Extraction module 311, if for receiving the first event clock message, being extracted from the first event clock message The very first time stabs, wherein, the very first time is stabbed for safeguarding clock data and physical port data;
First sending module 312, the first event clock message for extraction module 311 to be received passes through first network Message is sent to protocol stack service end 32, wherein, protocol stack service end 32 is deployed on Cloud Server;
First processing module 321, for obtaining the first clock in the first network message that is sent from the first sending module 312 Event message, and clock protocols processing is carried out according to the first event clock message.
Each module realizes the process of respective function in a kind of system for clock synchronization that the present embodiment is provided, and specifically refers to The description of foregoing embodiment illustrated in fig. 1, here is omitted.
It was found from a kind of synchronous system of clock of above-mentioned Fig. 3 examples, in the present embodiment, if equipment end receives first Clock event message, then extract very first time stamp, and the first event clock message is sent into protocol stack by first network message Service end, wherein, protocol stack service end is deployed on Cloud Server, and protocol stack service end obtains first from first network message Event clock message, and clock protocols processing is carried out according to the first event clock message, technical scheme passes through deployment Protocol stack service end on Cloud Server completes clock protocols processing, and safeguards clock data and physical port number in equipment end According to, realize while clock technology index request is met, clock synchronizing function is deployed in cloud computing environment, it is fully sharp Clock protocols processing is carried out with the resource of cloud computing, so as to improve the efficiency and performance of clock synchronization process.
Example IV:
Fig. 4 is a kind of structural representation of the system for clock synchronization that the embodiment of the present invention four is provided, for convenience of description, It illustrate only the part related to the embodiment of the present invention.A kind of synchronous system of clock of Fig. 4 examples can be previous embodiment The executive agent of the synchronous method of two clocks provided.A kind of synchronous system of clock of Fig. 4 examples includes equipment end 41 and association Stack service end 42 is discussed, equipment end 41 and protocol stack service end 42 pass through network connection.Equipment end 41 includes extraction module 411 and the One sending module 412, protocol stack service end 42 includes first processing module 421, and each functional module describes in detail as follows:
Extraction module 411, if for receiving the first event clock message, being extracted from the first event clock message The very first time stabs, wherein, the very first time is stabbed for safeguarding clock data and physical port data;
First sending module 412, the first event clock message for extraction module 411 to be received passes through first network Message is sent to protocol stack service end 42, wherein, protocol stack service end 42 is deployed on Cloud Server;
First processing module 421, for obtaining the first clock in the first network message that is sent from the first sending module 412 Event message, and clock protocols processing is carried out according to the first event clock message.
Further, the first sending module 412 includes:
First UDP constructs submodule 4121, and the first event clock message for extraction module 411 to be received is assembled into First UDP UDP message, wherein, the payload of the first UDP message is the first event clock message, the first UDP The source IP of message is the IP address of equipment end 41, and the purpose IP of the first UDP message is the IP address of protocol stack service end 42, first The port numbers of UDP message are default first end slogan;
First UDP sending submodules 4122, for the first UDP to be constructed into the first UDP message hair that submodule 4121 is assembled Give protocol stack service end 42;
First processing module 421, is additionally operable to from the first UDP message obtain the first event clock message.
Further, protocol stack service end 42 also includes:
Second sending module 422, for second clock event message to be sent into equipment end 41 by the second internet message;
Equipment end 41 also includes:
Acquisition module 413, for obtaining second clock event in the second internet message for being sent from the second sending module 422 Message;
Second processing module 414, the second clock event message for acquisition module 413 to be obtained stamped for the second time Stamp.
Further, the second sending module 422 includes:
2nd UDP constructs submodule 4221, for second clock event message to be assembled into the 2nd UDP message, wherein, the The payload of two UDP message is the second clock event message, the source IP of the 2nd UDP message for protocol stack service end 42 IP Location, the purpose IP of the 2nd UDP message is the IP address of equipment end 41, and the port numbers of the 2nd UDP message are default second port Number;
2nd UDP sending submodules 4222, for the 2nd UDP to be constructed into the 2nd UDP message hair that submodule 4221 is assembled Give equipment end 41;
Acquisition module 413, is additionally operable to obtain second from the 2nd UDP message of the 2nd UDP sending submodules 4222 transmission Event clock message.
Further, the first event clock message and the second clock event message are the clock protocols reports of IEEE 1588 Text.
Each module realizes the process of respective function in a kind of system for clock synchronization that the present embodiment is provided, and specifically refers to The description of foregoing embodiment illustrated in fig. 2, here is omitted.
It was found from a kind of synchronous system of clock of above-mentioned Fig. 4 examples, in the present embodiment, if equipment end receives first Clock event message, then extract very first time stamp, and the first event clock message is assembled into UDP messages, passes through the first UDP message Protocol stack service end is sent to, wherein, protocol stack service end is deployed on Cloud Server, and protocol stack service end disappears from the first UDP The first event clock message is obtained in breath, and clock protocols processing is carried out according to the first event clock message, meanwhile, protocol stack clothes Business end will need the second clock event message for being sent to equipment end to be assembled into UDP messages, is sent to and set by the 2nd UDP message Standby end, equipment end obtains second clock event from the 2nd UDP messages, and stamps the second timestamp.Technical scheme Clock protocols are completed by the protocol stack service end being deployed on Cloud Server to handle, and safeguard clock data and thing in equipment end Port data is managed, realizes while clock technology index request is met, clock synchronizing function is deployed in cloud computing environment In, make full use of the resource of cloud computing to carry out clock protocols processing, so as to improve the efficiency and performance of clock synchronization process;Together When, the information receiving and transmitting between equipment end and protocol stack service end is realized by udp protocol, the speed of information receiving and transmitting is effectively improved, Improve execution efficiency.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment What is stressed is all the difference with other embodiment, between each embodiment same or similar part mutually referring to .For system class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
It is worth noting that, in said system embodiment, included modules are simply drawn according to function logic Point, but above-mentioned division is not limited to, as long as corresponding function can be realized;In addition, each functional module is specific Title is also only to facilitate mutually distinguish, the protection domain being not intended to limit the invention.
Can it will appreciated by the skilled person that realizing that all or part of step in the various embodiments described above method is To instruct the hardware of correlation to complete by program, corresponding program can be stored in a computer read/write memory medium In, described storage medium, such as ROM/RAM, disk or CD.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention Any modifications, equivalent substitutions and improvements made within refreshing and principle etc., should be included in the scope of the protection.

Claims (10)

1. a kind of synchronous method of clock, it is characterised in that methods described includes:
If equipment end receives the first event clock message, very first time stamp is extracted from the first event clock message, Wherein, the very first time is stabbed for safeguarding clock data and physical port data;
The first event clock message is sent to protocol stack service end by the equipment end by first network message, wherein, The protocol stack service end is deployed on Cloud Server;
The protocol stack service end obtains the first event clock message from the first network message, and according to described One clock event message carries out clock protocols processing.
2. according to the method described in claim 1, it is characterised in that the equipment end passes through the first event clock message First network message, which is sent to protocol stack service end, to be included:
The first event clock message is assembled into the first UDP UDP message by the equipment end, wherein, first The payload of UDP message is the first event clock message, the source IP of the first UDP message for the equipment end IP Location, the purpose IP of the first UDP message is the IP address of the protocol stack service end, the port numbers of the first UDP message For default first end slogan;
The first UDP message is sent to the protocol stack service end by the equipment end;
The protocol stack service end obtains the first event clock message from the first network message to be included:
The protocol stack service end obtains the first event clock message from the first UDP message.
3. method according to claim 1 or 2, it is characterised in that methods described also includes:
Second clock event message is sent to the equipment end by the protocol stack service end by the second internet message;
The equipment end obtains the second clock event message from second internet message;
The second clock event message is stamped the second timestamp by the equipment end.
4. method according to claim 3, it is characterised in that the protocol stack service end leads to second clock event message Crossing the second internet message and being sent to the equipment end includes:
The second clock event message is assembled into the 2nd UDP message by the protocol stack service end, wherein, the 2nd UDP The payload of message is the second clock event message, and the source IP of the 2nd UDP message is the IP of the protocol stack service end Address, the purpose IP of the 2nd UDP message is the IP address of the equipment end, and the port numbers of the 2nd UDP message are pre- If second port number;
The 2nd UDP message is sent to the equipment end by the protocol stack service end;
The equipment end obtains the second clock event message from second internet message to be included:
The equipment end obtains the second clock event message from the 2nd UDP message.
5. method according to claim 3, it is characterised in that the first event clock message and the second clock thing Part message is the clock protocols messages of IEEE 1588.
6. the synchronous system of a kind of clock, it is characterised in that the system includes equipment end and protocol stack service end, the equipment End and the protocol stack service end pass through network connection;
The equipment end includes:
Extraction module, if for receiving the first event clock message, first is extracted from the first event clock message Timestamp, wherein, the very first time is stabbed for safeguarding clock data and physical port data;
First sending module, takes for the first event clock message to be sent into the protocol stack by first network message Business end, wherein, the protocol stack service end is deployed on Cloud Server;
The protocol stack service end includes:
First processing module, for obtaining the first event clock message from the first network message, and according to described First event clock message carries out clock protocols processing.
7. system according to claim 6, it is characterised in that first sending module includes:
First UDP constructs submodule, disappears for the first event clock message to be assembled into the first UDP UDP Breath, wherein, the payload of the first UDP message is the first event clock message, and the source IP of the first UDP message sets to be described The IP address at standby end, the purpose IP of the first UDP message is the IP address of the protocol stack service end, and the first UDP disappears The port numbers of breath are default first end slogan;
First UDP sending submodules, for the first UDP message to be sent into the protocol stack service end;
The first processing module, is additionally operable to obtain the first event clock message from the first UDP message.
8. the system according to claim 6 or 7, it is characterised in that the protocol stack service end also includes:
Second sending module, for second clock event message to be sent into the equipment end by the second internet message;
The equipment end also includes:
Acquisition module, for obtaining the second clock event message from second internet message;
Second processing module, for the second clock event message to be stamped into the second timestamp.
9. system according to claim 8, it is characterised in that second sending module includes:
2nd UDP constructs submodule, for the second clock event message to be assembled into the 2nd UDP message, wherein, described the The payload of two UDP message is the second clock event message, and the source IP of the 2nd UDP message is the protocol stack service end IP address, the purpose IP of the 2nd UDP message is the IP address of the equipment end, the port numbers of the 2nd UDP message For default second port number;
2nd UDP sending submodules, for the 2nd UDP message to be sent into the equipment end;
The acquisition module, is additionally operable to obtain the second clock event message from the 2nd UDP message.
10. device according to claim 8, it is characterised in that the first event clock message and the second clock Event message is the clock protocols messages of IEEE 1588.
CN201611043304.1A 2016-11-21 2016-11-21 A kind of method and system that clock is synchronous Expired - Fee Related CN106972904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611043304.1A CN106972904B (en) 2016-11-21 2016-11-21 A kind of method and system that clock is synchronous

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611043304.1A CN106972904B (en) 2016-11-21 2016-11-21 A kind of method and system that clock is synchronous

Publications (2)

Publication Number Publication Date
CN106972904A true CN106972904A (en) 2017-07-21
CN106972904B CN106972904B (en) 2019-04-30

Family

ID=59334809

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611043304.1A Expired - Fee Related CN106972904B (en) 2016-11-21 2016-11-21 A kind of method and system that clock is synchronous

Country Status (1)

Country Link
CN (1) CN106972904B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109194432A (en) * 2018-08-13 2019-01-11 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Multi-virtual machine time synchronization system under KVM
WO2024012156A1 (en) * 2022-07-14 2024-01-18 中国移动通信有限公司研究院 Clock signal state information reporting method and apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114896A (en) * 2007-05-15 2008-01-30 北京东土科技股份有限公司 Method for implementing precise synchronization clock
CN101150763A (en) * 2007-10-18 2008-03-26 中兴通讯股份有限公司 A terminal and method for testing real time service transmission performance of WiMAX network
US20130170507A1 (en) * 2011-12-13 2013-07-04 Canning Hsueh Time synchronization for network testing equipment
CN103856517A (en) * 2012-11-30 2014-06-11 英业达科技有限公司 Synchronous equalization system and method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114896A (en) * 2007-05-15 2008-01-30 北京东土科技股份有限公司 Method for implementing precise synchronization clock
CN101150763A (en) * 2007-10-18 2008-03-26 中兴通讯股份有限公司 A terminal and method for testing real time service transmission performance of WiMAX network
US20130170507A1 (en) * 2011-12-13 2013-07-04 Canning Hsueh Time synchronization for network testing equipment
CN103856517A (en) * 2012-11-30 2014-06-11 英业达科技有限公司 Synchronous equalization system and method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109194432A (en) * 2018-08-13 2019-01-11 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Multi-virtual machine time synchronization system under KVM
CN109194432B (en) * 2018-08-13 2020-04-07 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Multi-virtual machine time synchronization system under KVM
WO2024012156A1 (en) * 2022-07-14 2024-01-18 中国移动通信有限公司研究院 Clock signal state information reporting method and apparatus

Also Published As

Publication number Publication date
CN106972904B (en) 2019-04-30

Similar Documents

Publication Publication Date Title
TWI719312B (en) Information interaction method, device and equipment for internet of things equipment
KR101488268B1 (en) Push message service system and method thereof
US11177955B2 (en) Device-to-device messaging protocol
JP2018517337A5 (en)
CN108965484A (en) A kind of transmission method of internet of things data, system and terminal
Kang et al. ISO/IEEE 11073-based healthcare services over IoT platform using 6LoWPAN and BLE: Architecture and experimentation
TW201540088A (en) Transmission of beacon message
TW201340665A (en) Bluetooth low energy privacy
CN109766195A (en) The method and Related product of loss of data in supervisory messages queue
EP3477561A1 (en) System for goods delivery
CN106506107B (en) A kind of ntp server time service implementation method based on hardware timestamping
CN104660617B (en) A kind of data transmission system and method
CN109564665A (en) Monitoring of the advertisement method, apparatus and system
CN105141390B (en) A kind of method for synchronizing time in quantum network
EP2590382A2 (en) Method and apparatus for tracking device management data changes
CN103618646A (en) Method for detecting network performance, packet loss probability and time delay and network fringe node equipment
CN109831746A (en) A kind of method, apparatus carried out data transmission based on Bluetooth broadcast and bluetooth equipment
RO131668A2 (en) Methods, systems and computer-readable carrier for application session sharing
CN106972904A (en) A kind of synchronous method and system of clock
CN107925894A (en) System and method for channel safety
CN102647432B (en) A kind of authentication information transmission method, device and certification middleware
JP2005204001A5 (en)
CN101110780A (en) Method, device and system for transmitting control data flow
Santos et al. Integrating IEEE 11073 and constrained application protocol for personal health devices
CN112134639B (en) OAM message sending method, device, computer medium and electronic equipment

Legal Events

Date Code Title Description
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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190430

Termination date: 20191121

CF01 Termination of patent right due to non-payment of annual fee