CN107547163A - The method for synchronizing time and device of a kind of distributed apparatus - Google Patents
The method for synchronizing time and device of a kind of distributed apparatus Download PDFInfo
- Publication number
- CN107547163A CN107547163A CN201710909137.2A CN201710909137A CN107547163A CN 107547163 A CN107547163 A CN 107547163A CN 201710909137 A CN201710909137 A CN 201710909137A CN 107547163 A CN107547163 A CN 107547163A
- Authority
- CN
- China
- Prior art keywords
- time
- service board
- port
- clock
- configuration
- 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
Links
Landscapes
- Computer And Data Communications (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
The invention discloses a kind of method for synchronizing time of distributed apparatus and device.This method is applied to the first service board of distributed apparatus, including:Receive the Precision Time Protocol PTP messages that upstream equipment is sent;Time difference with upstream equipment is determined according to PTP messages;The time of clock module is adjusted according to the time difference;The time after adjustment is sent to the global clock module of main control veneer through clock synchronous bus by clock module, so that main control veneer synchronizes according to the time after adjustment to the time of other service boards.The service board of the embodiment of the present disclosure first is after the time difference is obtained, and without obtaining the setting return information of main control veneer, can adjust the time of the clock module of itself in real time, then carry out time synchronized next time;Meanwhile the global clock module of main control veneer directly receives the time after the adjustment of the first service board transmission by clock synchronous bus, the time of other service boards can be synchronized in real time, improve the efficiency of time synchronized.
Description
Technical field
This disclosure relates to network technique field, the method for synchronizing time and device of more particularly to a kind of distributed apparatus.
Background technology
Distributed apparatus in network generally comprises one piece of main control veneer and polylith service board.Main control veneer conduct
Overall situation control uses, and is provided with global clock module;Clock module, each service board are respectively arranged with each service board
The time of upper clock module needs the time with the global clock module on main control veneer to be consistent.
Precision Time Protocol (Precision Time Protocol, PTP) is a kind of time synchronized skill based on message
Art, message interaction is carried out by Ethernet between equipment, reaches time synchronized function.As shown in figure 1, three equipment pass through ether
Net port A, B, C, D are connected, and equipment 1 is the original clock Grand Master equipment in this networking, passes through port A and equipment
2 port B interaction PTP messages, port A are main Master ports, and port B is from Slave ports.Reported by PTP protocol
Text interaction, where the port B in equipment 2 on the CPU of veneer, calculates the time difference DeltaT between equipment 1 and equipment 2, if
After standby 2 times for adjusting this equipment clock according to time difference DeltaT, it is consistent with the time of equipment 1.In the case, if
Standby 1 is the upstream equipment of equipment 2, and equipment 2 is the upstream device of equipment 1.
In equipment 2 and the synchronizing process of equipment 3, similar with equipment 1 and 2 synchronous flow of equipment, port C is as main Master
Port, port D are from Slave ports, and message interaction is carried out by PTP protocol, equipment 3 be calculated equipment 2 and equipment 3 when
Between after poor DeltaT, adjust this equipment clock, be consistent with the time of equipment 2.Due on network delay and device hardware on
Difference, it is that can not ensure that the time is always maintained at unanimously that two equipment rooms, which adjust a time differences, is moved so PTP protocol is one
The process of state regulation, configurable upstream device is per second calculates a DeltaT, when upstream device is by this equipment of constantly regulate
Clock, to reach the time synchronized with upstream equipment.
The content of the invention
Present disclose provides a kind of method for synchronizing time of distributed apparatus and device, is set with the existing distribution of solution
The problem of standby time synchronized efficiency is low.
In a first aspect, the embodiment of the present disclosure provides a kind of method for synchronizing time of distributed apparatus, applied to the distribution
First service board of formula equipment, the distributed apparatus also include main control veneer and at least one piece of other service board, institute
The method of stating includes:
Receive the Precision Time Protocol PTP messages that upstream equipment is sent;
Time difference with the upstream equipment is determined according to the PTP messages;
The time of clock module is adjusted according to the time difference;
When by the clock module, the time after adjustment is sent to the overall situation of main control veneer through clock synchronous bus
Clock module, so that the main control veneer synchronizes according to the time after the adjustment to the time of other service boards.
Second aspect, the embodiment of the present disclosure provides a kind of method for synchronizing time of distributed apparatus, applied to the distribution
The main control veneer of formula equipment, the distributed apparatus also include multiple service boards, and methods described includes:
One of service board in the multiple service board is configured to the first service board;
The tune sent by the clock module of global clock module reception first service board through clock synchronous bus
Time after whole, the time after the adjustment are that first service board determines according to the PTP messages received from upstream equipment
's;
The time after the adjustment is sent to other business sheets through the clock synchronous bus by global clock module
The clock module of plate.
The third aspect, the embodiment of the present disclosure provide a kind of time synchronism apparatus of distributed apparatus, including:
PTP message receiving units, for receiving the Precision Time Protocol PTP messages of upstream equipment transmission;
Time difference determining unit, for determining the time difference with the upstream equipment according to the PTP messages;
Time adjustment unit, for adjusting the time of clock module according to the time difference;
Time difference transmitting element, for by the clock module by the time after adjustment through clock synchronous bus send to
The global clock module of main control veneer so that the main control veneer according to the time after the adjustment to other service boards
Time synchronize.
Fourth aspect, the embodiment of the present disclosure provide a kind of time synchronism apparatus of distributed apparatus, the distributed apparatus
Including multiple service boards, including:
First service board dispensing unit, for one of service board in the multiple service board to be configured to
First service board;
Time receiving unit, for receiving the clock module of first service board by global clock module through clock
Time after the adjustment that synchronous bus is sent, the time after the adjustment is that first service board connects according to from upstream equipment
What the PTP messages of receipts determined;
Time synchronized unit, for by global clock module through the clock synchronous bus by the time after the adjustment
Send to the clock module of other service boards.
5th aspect, the embodiment of the present disclosure provide a kind of electronic equipment, and the electronic equipment includes memory and processor,
Communicated and connected by internal bus between the memory and the processor, the memory storage has can be by the processing
The programmed instruction that device performs, described program instruction can be realized above-mentioned method during the computing device.
6th aspect, the embodiment of the present disclosure provide a kind of computer-readable recording medium, the computer-readable storage medium
Matter stores computer instruction, and the computer instruction makes the computer perform above-mentioned method.
The beneficial effect of the embodiment of the present disclosure is:The embodiment of the present disclosure is connect by the first service board according to from upstream equipment
The PTP messages of receipts determine the time difference, after the time that the clock module of itself is adjusted according to the time difference, will be adjusted by clock module
Time afterwards is sent to main control veneer through clock synchronous bus;Main control veneer through clock synchronous bus by after adjustment when
Between send to other service boards clock module, thus complete distributed apparatus time synchronized.The embodiment of the present disclosure first
Service board is after the time difference is obtained, and without obtaining the setting return information of main control veneer, can adjust the clock of itself in real time
The time of module, then carry out time synchronized next time;Meanwhile the global clock module of main control veneer directly passes through clock
Synchronous bus receives the time after the adjustment that the first service board is sent, and the time of other service boards can be carried out together in real time
Step, improve the efficiency of time synchronized.
Brief description of the drawings
Fig. 1 is the schematic diagram of the existing method for synchronizing time based on PTP protocol;
Fig. 2 is a kind of existing schematic diagram of distributed apparatus method for synchronizing time;
Fig. 3 is the schematic flow sheet of the method for synchronizing time of the distributed apparatus of disclosure one embodiment;
Fig. 4 is the schematic diagram of the method for synchronizing time of the distributed apparatus of disclosure one embodiment;
Fig. 5 is the schematic flow sheet of the method for synchronizing time of the distributed apparatus of the disclosure another embodiment;
Fig. 6 is the structural representation of the time synchronism apparatus of the distributed apparatus of disclosure one embodiment;
Fig. 7 is the structural representation of the time synchronism apparatus of the distributed apparatus of the disclosure another embodiment;
Fig. 8 is the structural representation of the electronic equipment of disclosure one embodiment.
Embodiment
In order to solve the technical problem proposed in background technology, the inventor of the disclosure to existing distributed apparatus when
Between synchronous method analyzed.In the method for synchronizing time of existing distributed apparatus, service board passes through CPU message between plate
Communication mode, the time difference DeltaT being calculated on service board based on PTP protocol, send to main control veneer
CPU.Main control veneer CPU adjusts global clock module according to time difference DeltaT, then passes through bus B US by global clock module
Interface synchronization gives the clock module of each service board.In this method, service board calculates acquisition time difference DeltaT can not
Enter row clock regulation at once, and service board needs to obtain when can just carry out next time after the setting return information of main control veneer
Between it is synchronous, cause time synchronized efficiency low.
As shown in Fig. 2 the time synchronized of distributed apparatus is completed by following step in the prior art:
It is configured with from the CPU of the service board of port and the time difference is determined according to the PTP messages received from upstream equipment, passes through
CPU message communicatings mode between plate, be sent to the CPU of main control veneer the time difference.Main control veneer CPU adjusts according to the time difference
Global clock module Clock Card on this plate, then other business are synchronized to by clock synchronous bus by Clock Card modules
Veneer.
Between the plate of the above method in CPU message communicatings mode, being configured with from the service board of port needs to obtain main control
Time synchronized next time can be just carried out after the setting return information of veneer.And main control veneer sets Clock Card clocks, by
In the realization mechanism of clock chip, after adjusted value will not come into force, it is necessary to wait next second to come into force, other industry can be just synchronized to
The clock module of business veneer.Even if so be configured with from the service board of port when the setting return information of main control veneer,
But this plate clock might not adjusted completion, for the sake of assurance, generally requiring wait could be carried out next time for more than two seconds
Time synchronized, time synchronized is less efficient, can not accomplish the multiple time synchronized of progress per second.
Adjust the time of the clock module of itself in real time after the time difference is obtained if configured with the service board from port,
And the time after adjustment is sent to main control veneer through clock synchronous bus by clock module;Main control veneer is through clock
Synchronous bus sends the time after adjustment to the clock module of other service boards.Substituted by clock synchronous bus existing
Plate between CPU message communicating modes, the efficiency of distributed apparatus time synchronized can be improved.
To make the purpose, technical scheme and advantage of the disclosure clearer, below in conjunction with accompanying drawing to disclosure embodiment party
Formula is described in further detail.
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
It is only merely for the purpose of description specific embodiment in the term that the disclosure uses, and is not intended to be limiting the disclosure.
" one kind " of singulative used in disclosure and the accompanying claims book, " described " and "the" are also intended to including majority
Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wrapped
Containing the associated list items purpose of one or more, any or all may be combined.
Although may describe various information using term first, second, third, etc. in the disclosure, these information should not
It is limited to these terms.These terms are only used for same type of information being distinguished from each other out.For example, disclosure scope is not being departed from
In the case of, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.Take
Certainly in linguistic context, word as used in this " if " can be construed to " ... when " or " when ... " or " response
In it is determined that ".
Referring to Fig. 3, the stream of the method for synchronizing time of the distributed apparatus of the one embodiment provided for the embodiment of the present disclosure
Journey schematic diagram.The executive agent of the embodiment of the present disclosure is the first service board, and the distributed apparatus also includes main control veneer
At least one piece of other service board, this method include:
S31:Receive the Precision Time Protocol PTP messages that upstream equipment is sent;
The embodiment of the present disclosure needs first to initialize distributed apparatus, and initialization includes the initialization of clock synchronous bus
Configuration and time synchronized initialization.The clock synchronous bus interface of main control veneer and service board is configurable to export mould
Formula, input pattern can also be configured to.In the initial configuration of clock synchronous bus, the clock synchronous bus of main control veneer
Interface be configured to output mode, the interface of the clock synchronous bus of each service board is configured to input pattern.In time synchronized
In initialization, all service board clock modules are from the global clock module synchronization time of main control veneer, when accomplishing whole frame
Between it is synchronous.
S32:Time difference with the upstream equipment is determined according to the PTP messages;
The CPU of first service board is handled PTP messages, determines the time difference of itself and upstream equipment.
S33:The time of clock module is adjusted according to the time difference;
The CPU of first service board, write to the clock module Clock Module of itself time difference, adjust clock module
Clock Module time, the adjustment come into force, and can improve time synchronized effect with the time of Fast synchronization upstream equipment
Rate.
S34:The time after adjustment sent through clock synchronous bus by the clock module complete to main control veneer
Office clock module, so that the main control veneer is carried out together according to the time after the adjustment to the time of other service boards
Step.
The clock module Clock Module of first service board, it is synchronously total by the clock being connected with main control veneer
Line, is sent to main control veneer by the time after adjustment in real time, and main control veneer receives the first business by clock synchronous bus
Time after the adjustment that veneer is sent.Clock synchronous bus does not need software intervention, is moved completely by the synchronization of hardware deadline
Make, 100 times of synchronization per second can be designed, i.e., synchronization times per second can carry again according to hardware capabilities per 10ms synchronously once
Height, substantially increase the time synchronized efficiency of distributed apparatus.
The method for synchronizing time for the distributed apparatus that the embodiment of the present disclosure provides, the first service board are obtaining the time difference
Afterwards, without obtaining the setting return information of main control veneer, the time of the clock module of itself can be adjusted in real time, is then carried out down
Time synchronized once;Meanwhile the global clock module of main control veneer directly receives the first business by clock synchronous bus
Time after the adjustment that veneer is sent, the time of other service boards can be synchronized in real time, improve the effect of time synchronized
Rate.
It is similar with the method in Fig. 3 in a kind of embodiment of the embodiment of the present disclosure, receiving what upstream equipment was sent
Before Precision Time Protocol PTP messages, methods described also includes:
The port configuration-direct that main control veneer is sent is received, the ethernet port of itself is configured to from port;
Correspondingly, the Precision Time Protocol PTP messages for receiving upstream equipment and sending, including:
Pass through the Precision Time Protocol PTP messages that upstream equipment transmission is received from port being pre-configured with.User can pass through
Port configuration-direct is sent to main control veneer, main control veneer port configuration-direct forwarding each service board by software,
Port configuration-direct includes configuration and numbered from the service board of port.First service board of the embodiment of the present disclosure is according to port
The ethernet port of itself is configured to from port by configuration-direct.
By taking Fig. 4 as an example, service board 2 is the first service board, has been pre-configured with service board 2 from Slave ports,
Receive the PTP messages that upstream equipment is sent.
It can only be set in the distributed apparatus of the embodiment of the present disclosure on one of service board in multiple service boards
Put from Slave ports.
Further, it is configured to by the ethernet port of itself after port, methods described also includes:
The clock synchronous bus configuration-direct that main control veneer is sent is received, the interface of the clock synchronous bus of itself is matched somebody with somebody
It is set to output mode.
It is configured to by the ethernet port of the first service board behind port, it is also necessary to correspondingly by the first service board
The interface of clock synchronous bus be configured as output to pattern, so when the first service board adjusts the time of itself clock module
Afterwards, the time after adjustment can be exported to main control veneer by clock synchronous bus.
Fig. 5 is the schematic flow sheet of the method for synchronizing time of the distributed apparatus of the disclosure another embodiment.Such as Fig. 5 institutes
Show, the main control veneer applied to the distributed apparatus of the embodiment of the present disclosure, the distributed apparatus also includes multiple industry
Business veneer, methods described include:
S51:One of service board in the multiple service board is configured to the first service board;
S52:The clock module that first service board is received by global clock module is sent through clock synchronous bus
Adjustment after time, the time after the adjustment is first service board according to the PTP messages received from upstream equipment
Determine;
The clock module that the main control veneer of the embodiment of the present disclosure receives the first service board by global clock module passes through
Time after the adjustment that clock synchronous bus is sent.In this case, main control veneer is synchronous with the clock of the first service board
The interface of bus has switched to input pattern.
S53:The time after the adjustment is sent to other industry through the clock synchronous bus by global clock module
The clock module of business veneer.
The global clock module of main control veneer, the interface with the clock synchronous bus of other service boards are output mould
Formula, the time after adjustment is sent to other service boards by clock synchronous bus in real time.Other service boards receive master control
Time after the adjustment that veneer processed is sent, the time of the clock module of real-time update itself.The process is joined again without software
With completing whole time synchronizeds by hardware clock synchronous bus and operating, improve the effect of the time synchronized of distributed apparatus
Rate.
The method for synchronizing time for the distributed apparatus that the embodiment of the present disclosure provides, the first service board are obtaining the time difference
Afterwards, without obtaining the setting return information of main control veneer, the time of the clock module of itself can be adjusted in real time, is then carried out down
Time synchronized once;Meanwhile the global clock module of main control veneer directly receives the first business by clock synchronous bus
Time after the adjustment that veneer is sent, the time of other service boards can be synchronized in real time, improve the effect of time synchronized
Rate.
It is similar with the method in Fig. 5 in a kind of embodiment of the embodiment of the present disclosure, it is described by the multiple business sheet
One of service board in plate is configured to the first service board, including:
The port configuration-direct of user's input is received, the port configuration-direct includes service board of the configuration from port
Numbering, the port configuration-direct is sent to each service board, and the configuration is numbered from the service board of port and corresponded to
Service board be configured to the first service board;
Methods described also includes:Clock bus configuration-direct is generated according to the port configuration-direct, according to the clock
The interface of the clock synchronous bus of itself and first service board is configured to input pattern by bus configuration instruction, and by institute
Clock synchronous bus configuration-direct is stated to send to the service board being configured with from port.
Port configuration-direct can be sent the port that will be received to main control veneer, main control veneer by user by software
Configuration-direct forwards each service board, and port configuration-direct includes configuration and numbered from the service board of port.By first
The ethernet port of service board is configured to behind port, it is also necessary to correspondingly by main control veneer and first service board
The interface of clock synchronous bus is configured to input pattern, and the interface of the clock synchronous bus of the first service board is configured as output to
Pattern, can be same by clock by the time after adjustment so after the first service board adjusts the time of itself clock module
Step bus is exported to main control veneer.
Fig. 6 is the structural representation of the time synchronism apparatus of the distributed apparatus of disclosure one embodiment.Such as Fig. 6 institutes
Show, the device includes:PTP messages receiving unit 61, time difference determining unit 62, time adjustment unit 63 and time transmitting element
64, specifically:
PTP messages receiving unit 61, for receiving the Precision Time Protocol PTP messages of upstream equipment transmission;
Time difference determining unit 62, for determining the time difference with the upstream equipment according to the PTP messages;
Time adjustment unit 63, for adjusting the time of clock module according to the time difference;
Time transmitting element 64, for being sent out the time after the adjustment through clock synchronous bus by the clock module
Deliver to the global clock module of main control veneer so that the main control veneer according to the time after the adjustment to other business
The time of veneer synchronizes.
In a kind of embodiment of the embodiment of the present disclosure, in addition to:
Port dispensing unit, for receiving the port configuration-direct of main control veneer transmission, by the ethernet port of itself
It is configured to from port;
Correspondingly, the PTP messages receiving unit, for receiving what upstream equipment was sent by being pre-configured with from port
Precision Time Protocol PTP messages.
Further, in addition to:
Clock synchronous bus dispensing unit, will for receiving the clock synchronous bus configuration-direct of main control veneer transmission
The interface of the clock synchronous bus of itself is configured as output to pattern.
Fig. 7 is the structural representation of the time synchronism apparatus of the distributed apparatus of the disclosure another embodiment.Such as Fig. 7 institutes
Show, the distributed apparatus includes multiple service boards, and the device includes the first service board dispensing unit 71, the time receives list
Member 72 and time synchronized unit 73, specifically:
First service board dispensing unit 71, for one of service board in the multiple service board to be configured
For the first service board;
Time receiving unit 72, the clock module for receiving the first service board by global clock module are same through clock
The time after the adjustment that bus is sent is walked, is configured with first service board from port, the time after the adjustment is institute
State what the first service board determined according to the PTP messages received from upstream equipment;
Time synchronized unit 73, for by global clock module through the clock synchronous bus by after the adjustment when
Between send to other service boards clock module.
In a kind of embodiment of the embodiment of the present disclosure, the first service board dispensing unit 71 is further used for:
The port configuration-direct of user's input is received, the port configuration-direct includes service board of the configuration from port
Numbering, the port configuration-direct is sent to each service board, and the configuration is numbered from the service board of port and corresponded to
Service board be configured to the first service board;
Described device also includes:Clock synchronous bus dispensing unit, for generating clock according to the port configuration-direct
Bus configuration instructs, according to the clock bus configuration-direct by the clock synchronous bus of itself and first service board
Interface is configured to input pattern, and the clock synchronous bus configuration-direct is sent to the service board being configured with from port.
The time synchronism apparatus of the distributed apparatus of the embodiment of the present disclosure can be used for performing above method embodiment, and it is former
Reason is similar with technique effect, and here is omitted.
Fig. 8 is the structural representation of the electronic equipment of disclosure one embodiment.
Reference picture 8, electronic equipment includes:Memory 81 and processor 82, by interior between memory 81 and processor 82
The communication connection of portion's bus 83, memory 82 are stored with the programmed instruction that can be performed by processor 81, and described program instruction is located
Reason device 81 can realize above-mentioned method when performing.
In addition, the logical order in above-mentioned memory 82 can be realized by the form of SFU software functional unit and is used as solely
Vertical production marketing in use, can be stored in a computer read/write memory medium.Based on such understanding, this public affairs
The part or the part of the technical scheme that the technical scheme opened substantially contributes to prior art in other words can be with soft
The form of part product is embodied, and the computer software product is stored in a storage medium, including some instructions are making
Obtain a computer equipment (can be personal computer, server, or network equipment etc.) and perform each embodiment of the disclosure
The all or part of step of methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. it is various
Can be with the medium of store program codes.
The embodiment of the present disclosure provides a kind of computer-readable recording medium, and the computer-readable recording medium storage calculates
Machine instructs, and the computer instruction makes the computer perform the method that above-mentioned each method embodiment is provided.
In summary, according to the technical scheme of the disclosure, by the first service board according to the PTP received from upstream equipment
Message determines the time difference, after the time that the clock module of itself is adjusted according to the time difference, by clock module by after adjustment when
Between sent through clock synchronous bus to main control veneer;Main control veneer sends the time after adjustment through clock synchronous bus
To the time synchronized of the clock module of other service boards, thus completion distributed apparatus.The business sheet of the embodiment of the present disclosure first
Plate is after the time difference is obtained, and without obtaining the setting return information of main control veneer, can adjust the clock module of itself in real time
Time, then carry out time synchronized next time;Meanwhile the global clock module of main control veneer is directly synchronously total by clock
Line receives the time after the adjustment that the first service board is sent, and the time of other service boards can be synchronized in real time, improves
The efficiency of time synchronized.
Embodiment of the disclosure can be provided as method, system or computer program product.Therefore, the disclosure can use
The form of embodiment in terms of full hardware embodiment, complete software embodiment or combination software and hardware.Moreover, the disclosure can
(included but is not limited to using the computer-usable storage medium for wherein including computer usable program code in one or more
Magnetic disk storage, CD-ROM, optical memory etc.) on the form of computer program product implemented.
The disclosure is with reference to the flow according to the method for the embodiment of the present disclosure, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
Term " comprising ", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that bag
To include process, method, article or the equipment of a series of elements not only include those key elements, but also including being not expressly set out
Other element, or also include for this process, method, article or the intrinsic key element of equipment.Do not limiting more
In the case of, the key element that is limited by sentence "including a ...", it is not excluded that in the process including the key element, method, thing
Other identical element in product or equipment also be present.
In the specification of the disclosure, numerous specific details are set forth.Although it is understood that embodiment of the disclosure can
To be put into practice in the case of these no details.In some instances, known method, structure and skill is not been shown in detail
Art, so as not to obscure the understanding of this description.Similarly, it will be appreciated that disclose to simplify the disclosure and help to understand each
One or more of individual inventive aspect, in the description to the exemplary embodiment of the disclosure above, each spy of the disclosure
Sign is grouped together into single embodiment, figure or descriptions thereof sometimes.However, should not be by the method solution of the disclosure
Release and be intended in reflection is following:I.e. the disclosure claimed requirement is than the feature that is expressly recited in each claim more
More features.More precisely, as the following claims reflect, inventive aspect is to be less than single reality disclosed above
Apply all features of example.Therefore, it then follows thus claims of embodiment are expressly incorporated in the embodiment,
Wherein each claim separate embodiments as the disclosure in itself.
The preferred embodiment of the disclosure is the foregoing is only, is not intended to limit the protection domain of the disclosure.It is all
Any modification, equivalent substitution and improvements made within the spirit and principle of the disclosure etc., it is all contained in the protection domain of the disclosure
It is interior.
Claims (12)
- A kind of 1. method for synchronizing time of distributed apparatus, it is characterised in that the first business applied to the distributed apparatus Veneer, the distributed apparatus also includes main control veneer and at least one piece of other service board, methods described include:Receive the Precision Time Protocol PTP messages that upstream equipment is sent;Time difference with the upstream equipment is determined according to the PTP messages;The time of clock module is adjusted according to the time difference;The time after adjustment is sent to the global clock mould of main control veneer through clock synchronous bus by the clock module Block, so that the main control veneer synchronizes according to the time after the adjustment to the time of other service boards.
- 2. according to the method for claim 1, it is characterised in that receiving the Precision Time Protocol PTP of upstream equipment transmission Before message, methods described also includes:The port configuration-direct that main control veneer is sent is received, the ethernet port of itself is configured to from port;Correspondingly, the Precision Time Protocol PTP messages for receiving upstream equipment and sending, including:Pass through the Precision Time Protocol PTP messages that upstream equipment transmission is received from port being pre-configured with.
- 3. according to the method for claim 2, it is characterised in that by the ethernet port of itself be configured to from port it Afterwards, methods described also includes:The clock synchronous bus configuration-direct that main control veneer is sent is received, the interface of the clock synchronous bus of itself is configured to Output mode.
- A kind of 4. method for synchronizing time of distributed apparatus, it is characterised in that the main control list applied to the distributed apparatus Plate, the distributed apparatus also include multiple service boards;Methods described includes:One of service board in the multiple service board is configured to the first service board;After the adjustment sent by the clock module of global clock module reception first service board through clock synchronous bus Time, the time after the adjustment is that first service board determines according to the PTP messages received from upstream equipment;The time after the adjustment is sent to other service boards through the clock synchronous bus by global clock module Clock module.
- 5. according to the method for claim 4, it is characterised in that one of industry by the multiple service board Business veneer is configured to the first service board, including:The port configuration-direct of user's input is received, the port configuration-direct includes configuration and compiled from the service board of port Number, the port configuration-direct is sent to each service board, by corresponding to service board numbering of the configuration from port Service board is configured to the first service board;Methods described also includes:Clock bus configuration-direct is generated according to the port configuration-direct, according to the clock bus The interface of the clock synchronous bus of itself and first service board is configured to input pattern by configuration-direct, and will be described when Clock synchronous bus configuration-direct is sent to the service board being configured with from port.
- A kind of 6. time synchronism apparatus of distributed apparatus, it is characterised in that including:PTP message receiving units, for receiving the Precision Time Protocol PTP messages of upstream equipment transmission;Time difference determining unit, for determining the time difference with the upstream equipment according to the PTP messages;Time adjustment unit, for adjusting the time of clock module according to the time difference;Time transmitting element, for being sent the time after adjustment to main control through clock synchronous bus by the clock module The global clock module of veneer, so that time of the main control veneer according to the time after the adjustment to other service boards Synchronize.
- 7. device according to claim 6, it is characterised in that also include:Port dispensing unit, for receiving the port configuration-direct of main control veneer transmission, the ethernet port of itself is configured For from port;Correspondingly, the PTP messages receiving unit, for receiving the accurate of upstream equipment transmission from port by what is be pre-configured with Time protocol PTP messages.
- 8. device according to claim 7, it is characterised in that also include:Clock synchronous bus dispensing unit, for receiving the clock synchronous bus configuration-direct of main control veneer transmission, by itself The interface of clock synchronous bus be configured as output to pattern.
- A kind of 9. time synchronism apparatus of distributed apparatus, it is characterised in that the distributed apparatus includes multiple service boards, Described device includes:First service board dispensing unit, for one of service board in the multiple service board to be configured into first Service board;Time receiving unit, the clock module for receiving first service board by global clock module are synchronous through clock Time after the adjustment that bus is sent, the time after the adjustment are that first service board receives according to from upstream equipment What PTP messages determined;Time synchronized unit, for being sent the time after the adjustment through the clock synchronous bus by global clock module To the clock module of other service boards.
- 10. device according to claim 9, it is characterised in that the first service board dispensing unit is further used for:The port configuration-direct of user's input is received, the port configuration-direct includes configuration and compiled from the service board of port Number, the port configuration-direct is sent to each service board, by corresponding to service board numbering of the configuration from port Service board is configured to the first service board;Described device also includes:Clock synchronous bus dispensing unit, for generating clock bus according to the port configuration-direct Configuration-direct, according to the clock bus configuration-direct by the interface of the clock synchronous bus of itself and first service board Input pattern is configured to, and the clock synchronous bus configuration-direct is sent to the service board being configured with from port.
- 11. a kind of electronic equipment, it is characterised in that the electronic equipment includes memory and processor, the memory and institute State to communicate by internal bus between processor and connect, the memory storage has and can referred to by the program of the computing device Order, described program instruction can be realized method described in claim 1-5 any one during the computing device.
- 12. a kind of computer-readable recording medium, the computer-readable recording medium storage computer instruction, the computer Instruction makes the computer perform claim require the method described in any one of 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710909137.2A CN107547163A (en) | 2017-09-29 | 2017-09-29 | The method for synchronizing time and device of a kind of distributed apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710909137.2A CN107547163A (en) | 2017-09-29 | 2017-09-29 | The method for synchronizing time and device of a kind of distributed apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107547163A true CN107547163A (en) | 2018-01-05 |
Family
ID=60965107
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710909137.2A Pending CN107547163A (en) | 2017-09-29 | 2017-09-29 | The method for synchronizing time and device of a kind of distributed apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107547163A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116436555A (en) * | 2023-06-09 | 2023-07-14 | 新华三技术有限公司 | Time synchronization method and device and distributed network equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101257376A (en) * | 2008-04-16 | 2008-09-03 | 中兴通讯股份有限公司 | Method for realizing single board space time synchronization |
CN101741853A (en) * | 2009-12-11 | 2010-06-16 | 中兴通讯股份有限公司 | Method for synchronizing clock time, line card veneer and network equipment |
CN102263629A (en) * | 2010-05-24 | 2011-11-30 | 华为技术有限公司 | Method for time synchronization among boards, clock board and NE (network element) device |
-
2017
- 2017-09-29 CN CN201710909137.2A patent/CN107547163A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101257376A (en) * | 2008-04-16 | 2008-09-03 | 中兴通讯股份有限公司 | Method for realizing single board space time synchronization |
CN101741853A (en) * | 2009-12-11 | 2010-06-16 | 中兴通讯股份有限公司 | Method for synchronizing clock time, line card veneer and network equipment |
CN102263629A (en) * | 2010-05-24 | 2011-11-30 | 华为技术有限公司 | Method for time synchronization among boards, clock board and NE (network element) device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116436555A (en) * | 2023-06-09 | 2023-07-14 | 新华三技术有限公司 | Time synchronization method and device and distributed network equipment |
CN116436555B (en) * | 2023-06-09 | 2023-08-18 | 新华三技术有限公司 | Time synchronization method and device and distributed network equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105656592B (en) | EtherCAT communication systems main website and communication means | |
CN102104476B (en) | Clock synchronization device and method | |
CN104375789B (en) | The synchronous display method and system of mosaic screen | |
CN101047428B (en) | Device and method for support transmitting multi-mode base station clock synchronous signal | |
CN101877633B (en) | Signal synchronizing method and system, signal receiving device and signal sending device | |
CN103873179A (en) | Device and method for making passive optical network possess ability of supporting time synchronization | |
KR101771265B1 (en) | Pseudo-synchronous time division multiplexing | |
EP1417785A4 (en) | System and method for synchronizing telecom-related clocks in ethernet-based passive optical access network | |
US8743292B2 (en) | Video/audio production processing control synchronization | |
WO2009071029A1 (en) | Synchronization system and method of time information and related equipment | |
CS520190A3 (en) | Distributed synchronization process for wireless fast packet communication system | |
US20210112551A1 (en) | Integration of a wi-fi access point with a cellular radio unit | |
CN105680973A (en) | A method of time synchronization of free running nodes in an avionics network | |
CN101330342B (en) | Method for implementing time synchronization protocol using port mirror and apparatus thereof | |
CN102299788A (en) | Method and device for controlling automatic transmission of IEEE1558 (Institute of Electrical and Electronic Engineers 1558) protocol message | |
EP2448168A1 (en) | Method and system for bearing time synchronization protocol in optical transport network | |
CN101790230B (en) | Precision time protocol node, time stamp operation method and time synchronization system | |
CN108259109A (en) | The network equipment and TOD synchronous method in PTP domains | |
JP2003150272A (en) | System architecture and method for synchronization of real-time clock in document processing system | |
CN102916758A (en) | Ethernet time synchronization device and network equipment | |
CN109194432A (en) | Multi-virtual machine time synchronization system under KVM | |
CN107547163A (en) | The method for synchronizing time and device of a kind of distributed apparatus | |
CN110073632A (en) | The method and the network equipment synchronized to the network equipment | |
CN113489563B (en) | Clock synchronization method of virtual machine and cloud platform | |
CN104601269B (en) | Master-salve clock synchronous method and system |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180105 |
|
RJ01 | Rejection of invention patent application after publication |