CN110581828B - Time synchronization method and device for private network cluster terminal - Google Patents

Time synchronization method and device for private network cluster terminal Download PDF

Info

Publication number
CN110581828B
CN110581828B CN201810583964.1A CN201810583964A CN110581828B CN 110581828 B CN110581828 B CN 110581828B CN 201810583964 A CN201810583964 A CN 201810583964A CN 110581828 B CN110581828 B CN 110581828B
Authority
CN
China
Prior art keywords
terminal
multicast
message
temporary
time
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.)
Active
Application number
CN201810583964.1A
Other languages
Chinese (zh)
Other versions
CN110581828A (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.)
Chengdu TD Tech Ltd
Original Assignee
Chengdu TD Tech Ltd
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 Chengdu TD Tech Ltd filed Critical Chengdu TD Tech Ltd
Priority to CN201810583964.1A priority Critical patent/CN110581828B/en
Publication of CN110581828A publication Critical patent/CN110581828A/en
Application granted granted Critical
Publication of CN110581828B publication Critical patent/CN110581828B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/28Timers or timing mechanisms used in protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a time synchronization method and a time synchronization device for private network cluster terminals, wherein the method comprises the steps of sending temporary multicast group information to at least one terminal, wherein the temporary multicast group information comprises a multicast address of a temporary multicast group; if receiving the information that the at least one terminal joins the temporary multicast group, acquiring a multicast timing message; and sending the multicast time tick message to the multicast address so that the at least one terminal receives the multicast time tick message from the multicast address and completes time tick according to the multicast time tick message, thereby improving the transmission efficiency of the multicast time tick message, reducing the possibility of congestion of a backbone network, realizing the receiving synchronization of the multicast time tick message and improving the accuracy and reliability of time tick. And the method and the device do not depend on remote clock sources such as a GPS and the like, so that the time synchronization reliability is improved.

Description

Time synchronization method and device for private network cluster terminal
Technical Field
The present invention relates to communications technologies, and in particular, to a time synchronization method and apparatus for a private network cluster terminal.
Background
The private network cluster communication refers to a communication network established in some industries, departments or units for meeting the needs of organization and management, safe production, dispatching and commanding, and the service object of the communication network is often an industry or an enterprise.
At present, the terminal in the application of the private Network cluster Network automatically synchronizes Time, which adopts the same scheme as the public Network, namely, utilizes a Network Time Protocol (NTP) server to synchronize Time. Specifically, the terminal system which needs to time carries out periodic time synchronization to the NTP server. NTP can synchronize a terminal with a server or a clock source (e.g., Global Positioning System (GPS), etc.), thereby realizing high-precision time correction.
However, once the NTP server is unavailable, the time between terminals will not be aligned. For example, the NTP server is down or abnormally powered off after being used for a long time, and cannot be normally recovered, and a service link between the NTP server and the terminal is broken, so that the terminal cannot normally time-tick, and further, a time-related task cannot be normally scheduled. The existing time synchronization mode completely depends on the NTP server for time synchronization, and the time synchronization reliability is not high.
Disclosure of Invention
The invention provides a time synchronization method and a time synchronization device for a private network cluster terminal, which improve the time synchronization reliability.
According to a first aspect of the present invention, a time synchronization method for a private network cluster terminal is provided, including:
sending temporary multicast group information to at least one terminal, wherein the temporary multicast group information comprises a multicast address of a temporary multicast group;
if receiving the information that the at least one terminal joins the temporary multicast group, acquiring a multicast timing message;
and sending the multicast time tick message to the multicast address so that the at least one terminal receives the multicast time tick message from the multicast address and completes time tick according to the multicast time tick message.
Optionally, before the sending the temporary multicast group information to the at least one terminal, the method further includes:
and receiving a time setting request sent by the at least one terminal.
Optionally, before acquiring the multicast synchronization message if the information that the at least one terminal joins the temporary multicast group is received, the method further includes:
receiving a reference terminal configuration request, wherein the reference terminal configuration request comprises a terminal identifier; determining a terminal corresponding to the terminal identifier as a reference terminal, and sending reference determination information to the reference terminal;
correspondingly, if the information that the at least one terminal joins the temporary multicast group is received, acquiring a multicast timing message, including:
if the information that the at least one terminal joins the temporary multicast group is received, acquiring a reference clock signal from the reference terminal; and generating a multicast time tick message according to the reference clock signal.
Optionally, the acquiring a multicast time setting message includes: and generating the multicast time setting message according to the local clock signal.
Optionally, the terminal identifier included in the reference terminal configuration request indicates a terminal that sends the reference terminal configuration request.
Optionally, the terminal identifier included in the reference terminal configuration request indicates other terminals except the terminal that sent the reference terminal configuration request.
Optionally, receiving a reference terminal configuration request includes:
a reference terminal configuration request is received from the multicast router.
According to the second aspect of the present invention, there is also provided a time synchronization device for a private network trunking terminal, including:
a temporary multicast group information sending module, configured to send temporary multicast group information to at least one terminal, where the temporary multicast group information includes a multicast address of a temporary multicast group;
a multicast timing message obtaining module, configured to obtain a multicast timing message if receiving information that the at least one terminal joins the temporary multicast group;
a multicast time tick message sending module, configured to send the multicast time tick message to the multicast address, so that the at least one terminal receives the multicast time tick message from the multicast address, and completes time tick according to the multicast time tick message.
Optionally, the temporary multicast group information sending module is further configured to: receiving a time tick request from the at least one terminal before the sending of the temporary multicast group information to the at least one terminal.
Optionally, the method further includes a reference terminal determining module, configured to:
receiving a reference terminal configuration request before acquiring a multicast synchronization message if the information that the at least one terminal joins the temporary multicast group is received, wherein the reference terminal configuration request comprises a terminal identifier; determining a terminal corresponding to the terminal identifier as a reference terminal, and sending reference determination information to the reference terminal;
correspondingly, the multicast time synchronization message acquiring module is specifically configured to: if the information that the at least one terminal joins the temporary multicast group is received, acquiring a reference clock signal from the reference terminal; and generating a multicast time tick message according to the reference clock signal.
Optionally, the multicast time synchronization message obtaining module is specifically configured to: and if the information that the at least one terminal joins the temporary multicast group is received, generating a multicast time tick message according to a local clock signal.
Optionally, the reference terminal determining module is specifically configured to: receiving a reference terminal configuration request from a multicast router before acquiring a multicast synchronization message if the information that the at least one terminal joins the temporary multicast group is received, wherein the reference terminal configuration request comprises a terminal identifier; and determining the terminal corresponding to the terminal identification as a reference terminal, and sending reference determination information to the reference terminal.
According to a third aspect of the present invention, there is provided a time tick device comprising: memory, a processor and a computer program, wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of the first aspect of the invention and its various possible designs.
According to a fourth aspect of the present invention, there is provided a readable storage medium having stored therein a computer program for implementing the method of the first aspect of the present invention and its various possible designs when executed.
The invention provides a time synchronization method and a time synchronization device for private network cluster terminals, which are characterized in that temporary multicast group information is sent to at least one terminal, wherein the temporary multicast group information comprises a multicast address of a temporary multicast group; if receiving the information that the at least one terminal joins the temporary multicast group, acquiring a multicast timing message; and sending the multicast time tick message to the multicast address so that the at least one terminal receives the multicast time tick message from the multicast address and completes time tick according to the multicast time tick message, thereby improving the transmission efficiency of the multicast time tick message, reducing the possibility of congestion of a backbone network, realizing the receiving synchronization of the multicast time tick message and improving the accuracy and reliability of time tick. And the method and the device do not depend on remote clock sources such as a GPS and the like, so that the time synchronization reliability is improved.
Drawings
Fig. 1 is a schematic diagram of an application scenario as a backup scheme according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a time synchronization method for a private network cluster terminal according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a time synchronization method for a private network cluster terminal according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a time synchronization device of a private network cluster terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a time synchronization device of another private network cluster terminal according to an embodiment of the present invention;
fig. 6 is a schematic hardware structure diagram of a time synchronization device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be understood that, in the various embodiments of the present application, the size of the serial number of each process does not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
It should be understood that, in this application, "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present application, "B corresponding to a", "a corresponds to B", or "B corresponds to a" means that B is associated with a, from which B can be determined. Determining B from a does not mean determining B from a alone, but may also be determined from a and/or other information. And the matching of A and B means that the similarity of A and B is greater than or equal to a preset threshold value.
As used herein, "if" may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context.
It should be understood that in the present application, the temporary Multicast group may be understood as a Multicast group (Multicast group) in which Multicast addresses are assigned using unofficial allocation of Multicast addresses. The multicast address of the temporary multicast group is variable and the membership of the group may be increased or decreased. In the multicast scheme, a sender of information is referred to as a "multicast source" (which may be a peer-to-peer device in the present application), a receiver of information is referred to as a "multicast group" (which may be at least one terminal in the present application) of the information, and all routers supporting multicast information transmission are referred to as "multicast routers".
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 1 is a schematic view of an application scenario as a standby scheme according to an embodiment of the present invention. In the application shown in fig. 1, the time synchronization method shown in this embodiment can be used as a backup scheme of the communication system. Referring to fig. 1, a plurality of base stations are connected to an NTP time synchronization server and a time synchronization device through a transmission network, and each base station is connected to and communicates with a plurality of user terminals (UEs). In one implementation, the time synchronization apparatus in this embodiment may be understood as a module in a dispatch station in a police station, and the user terminal may be understood as an interphone in the hand of a police officer. In a normal state, the time synchronization device is in normal communication with the NTP time synchronization server, and a base station connected with the time synchronization device and User Equipment (UE) connected with the base station perform periodic time synchronization through the NTP time synchronization server. When the connection with the NTP fails or the time setting fails, for example, the terminal detects the time setting failure, or the time setting device detects that the NTP is down, the standby time setting scheme is started. In the time synchronization method in this embodiment, the terminals that need to be synchronized are pulled into the same temporary group, and then the local clock of the time synchronization device is used as the reference clock, or the clock of any one of the terminals is used as the reference clock, so that the unified time synchronization is performed. Wherein the temporary group is referred to as a temporary multicast group in this embodiment. The present invention is not limited to the application scenario of the backup time synchronization scheme shown in fig. 1, and may also be applied to an independent time synchronization system that is not connected to the NTP time synchronization server, or to a time synchronization system that is combined with other time synchronization systems.
The executing agent in the method embodiments shown in fig. 2 to 4 below may be a time-tick device. The time synchronization means may be a dedicated computer program, for example an embedded software module in a communication software system, or a dedicated software module; the time synchronization means can also be a hardware device, such as an embedded hardware module in a communication hardware system, or a dedicated hardware module.
Referring to fig. 2, a schematic flowchart of a time synchronization method for a private network cluster terminal according to an embodiment of the present invention is shown, including steps S101 to S103, which are specifically as follows:
s101, sending temporary multicast group information to at least one terminal, wherein the temporary multicast group information comprises a multicast address of a temporary multicast group.
Specifically, the time synchronization device may autonomously send the temporary multicast group information to at least one preset terminal, or may respectively feed back the temporary multicast group information to at least one preset terminal in response to a request of the terminal. In an implementation manner of autonomous operation, the time synchronization device may obtain a pre-stored identifier list of at least one terminal when detecting that a preferred time synchronization mode is failed, for example, when the time synchronization device obtains information of NTP time synchronization failure, or obtain an identifier list of at least one terminal according to external input information, and send temporary multicast group information to at least one terminal according to the identifier list. In an implementation manner of the response operation, the time synchronization device may receive a time synchronization request sent by the at least one terminal, where the time synchronization request triggers a time synchronization function of the time synchronization device, and the time synchronization device sends the temporary multicast group information to the at least one terminal. It can be understood that the time synchronization request sent by each terminal includes the identification of each terminal itself. And the time synchronization device feeds back the temporary multicast group information to each terminal according to the identifier of each terminal so that each terminal joins the same temporary multicast group. Before each terminal joins the same temporary multicast group, the time synchronization device can send information such as temporary multicast group information to each terminal in a unicast or broadcast mode. In the implementation manner of the response operation, at least one terminal may perform information interaction with the time synchronization apparatus through Packet Switch (PS) or Non-access stratum (NAS) signaling.
S102, if receiving the information that the at least one terminal joins the temporary multicast group, acquiring a multicast time synchronization message.
Specifically, it may be that at least one terminal needs to time, for example, a plurality of interphones in the police service system time before giving an alarm. And when detecting that all the terminals are added into the temporary multicast group, the time synchronization device generates a multicast time synchronization message. The information mobile phone process of whether the terminal joins the temporary multicast Group can be specifically understood as that a Group member relation Protocol (Internet Group Management Protocol, abbreviated as IGMP) is operated between the terminal and the multicast router directly connected with the terminal, the terminal tells the multicast router connected with the terminal to want to join and receive the information of the temporary multicast Group through the Protocol, and meanwhile, the multicast router periodically inquires whether members of a certain known Group in the local area network are in an active state (namely whether the network segment still belongs to members of a certain multicast Group) through the Protocol, so that the collection and maintenance of the Group member relation of the networking network are realized.
S103, sending the multicast time tick message to the multicast address, so that the at least one terminal receives the multicast time tick message from the multicast address and completes time tick according to the multicast time tick message.
Specifically, in the multicast mode, it can be understood that a table is established in each multicast router, where the table includes each port of the router and which multicast group members exist on the subnet corresponding to the port. When the multicast router receives the data packet (e.g. the multicast synchronization message in this embodiment) of a certain multicast group G, it forwards the data packet only to the ports of the members of that multicast group G, and implements the point-to-multipoint network connection between the sender and each receiver. In this embodiment, one time synchronization device transmits the same multicast time synchronization message to multiple terminals at the same time, and only one data packet needs to be sent, the multicast router establishes the fastest tree-type route for the transmission of the multicast time synchronization message by means of the multicast routing protocol, and the transmitted multicast time synchronization message starts to be copied and distributed at a divergent intersection as far as possible. The embodiment sends the multicast time synchronization message in a multicast mode, improves the transmission efficiency of the multicast time synchronization message, reduces the possibility of congestion of a backbone network, realizes the receiving synchronization of the multicast time synchronization message, and improves the time synchronization accuracy and reliability.
In the time synchronization method for a private network cluster terminal provided in this embodiment, a time synchronization device sends temporary multicast group information to at least one terminal, where the temporary multicast group information includes a multicast address of a temporary multicast group; if the time synchronization device receives the information that the at least one terminal joins the temporary multicast group, acquiring a multicast time synchronization message; the time synchronization device sends the multicast time synchronization message to the multicast address, so that the at least one terminal receives the multicast time synchronization message from the multicast address and completes time synchronization according to the multicast time synchronization message, thereby improving the transmission efficiency of the multicast time synchronization message, reducing the possibility of congestion of a backbone network, realizing the receiving synchronization of the multicast time synchronization message and improving the time synchronization accuracy and reliability. And the method and the device do not depend on remote clock sources such as a GPS and the like, so that the time synchronization reliability is improved.
In the above embodiment, in the specific process of acquiring the multicast time synchronization message by the time synchronization device, according to the difference of the reference clock signal, at least two embodiments may be included: in one embodiment, the time tick device may generate the multicast time tick message according to a local clock signal of the time tick device; in another embodiment, the time synchronization device may generate the multicast time synchronization message according to a reference clock signal acquired from the outside.
The process of generating the multicast time tick message according to the reference clock signal obtained from the outside will be described in detail with reference to fig. 3 and the specific embodiment. Referring to fig. 3, a schematic flowchart of a time synchronization method for another private network trunking terminal provided in the embodiment of the present invention includes steps S201 to S204, which are specifically as follows:
s201, sending temporary multicast group information to at least one terminal, where the temporary multicast group information includes a multicast address of a temporary multicast group.
In this embodiment, the step S201 refers to the description of the step S101 in the embodiment shown in fig. 2, and is not described herein again.
S202, receiving a reference terminal configuration request which contains a terminal identifier, determining a terminal corresponding to the terminal identifier as a reference terminal, and sending reference determination information to the reference terminal.
Specifically, in an implementation manner, a terminal identifier included in the reference terminal configuration request indicates a terminal that sends the reference terminal configuration request. It can be understood that a terminal that needs to perform time setting sends a reference terminal configuration request to a time setting device to designate itself as a reference for time setting. In another implementation manner, the terminal identifier included in the reference terminal configuration request indicates other terminals except the terminal that sends the reference terminal configuration request. It is understood that a terminal sends a reference terminal configuration request to a time tick device to designate another terminal as a reference for the time tick. In the two implementations, the terminal sending the reference terminal configuration request may not only be a member of the at least one terminal that needs to be paired, but also may not belong to the at least one terminal. For example, in an application scenario, a terminal held by a commander sends a reference terminal configuration request to a time synchronization device to designate itself as a time synchronization reference and to perform time synchronization for terminals held by all executives.
S203, if receiving the information that the at least one terminal joins the temporary multicast group, acquiring a reference clock signal from the reference terminal; and generating a multicast time tick message according to the reference clock signal.
And after receiving the information that the at least one terminal joins the temporary multicast group, the time synchronization device acquires a reference clock signal serving as a reference for the time synchronization from the reference terminal confirmed in the previous step, and generates a multicast time synchronization message according to the reference clock signal.
S204, the multicast time tick message is sent to the multicast address, so that the at least one terminal receives the multicast time tick message from the multicast address and completes time tick according to the multicast time tick message.
In this embodiment, the step S204 refers to the description of the step S103 in the embodiment shown in fig. 2, and is not described herein again.
According to the embodiment, the terminal serving as the time synchronization reference is specified according to the reference terminal configuration request, so that the time synchronization flexibility is improved, and the time synchronization of at least one terminal and a specific terminal is realized.
On the basis of the foregoing embodiment, the receiving of the reference terminal configuration request may specifically be: and the time synchronization device receives a reference terminal configuration request from the multicast router. It is understood that the time-tick device is also a member of a multicast group, and the multicast source sends the reference terminal configuration request to the multicast group address of the time-tick device. The method can be applied to application scenes of batch specification and unified time setting.
Referring to fig. 4, a schematic structural diagram of a time synchronization device of a private network trunking terminal provided in the embodiment of the present invention includes:
a temporary multicast group information sending module 41, configured to send temporary multicast group information to at least one terminal, where the temporary multicast group information includes a multicast address of a temporary multicast group.
A multicast timing message obtaining module 42, configured to obtain a multicast timing message if receiving information that the at least one terminal joins the temporary multicast group.
A multicast time setting message sending module 43, configured to send the multicast time setting message to the multicast address, so that the at least one terminal receives the multicast time setting message from the multicast address, and completes time setting according to the multicast time setting message.
The time synchronization device in the embodiment shown in fig. 4 can be correspondingly used to execute the steps executed by the time synchronization device in the embodiment shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
On the basis of the foregoing embodiment, the temporary multicast group information sending module 41 is further configured to: receiving a time tick request from the at least one terminal before the sending of the temporary multicast group information to the at least one terminal.
Referring to fig. 5, which is a schematic structural diagram of a time synchronization apparatus of another private network trunking terminal provided in the embodiment of the present invention, further includes a reference terminal determining module 44, configured to: receiving a reference terminal configuration request before acquiring a multicast synchronization message if the information that the at least one terminal joins the temporary multicast group is received, wherein the reference terminal configuration request comprises a terminal identifier; and determining the terminal corresponding to the terminal identification as a reference terminal, and sending reference determination information to the reference terminal.
Correspondingly, the multicast time tick obtaining module 42 is specifically configured to: if the information that the at least one terminal joins the temporary multicast group is received, acquiring a reference clock signal from the reference terminal; and generating a multicast time tick message according to the reference clock signal.
On the basis of the embodiment shown in fig. 3 or fig. 4, the multicast time tick obtaining module 42 is specifically configured to: and if the information that the at least one terminal joins the temporary multicast group is received, generating a multicast time tick message according to a local clock signal.
On the basis of the embodiment shown in fig. 5, the reference terminal determining module 44 is specifically configured to: receiving a reference terminal configuration request from a multicast router before acquiring a multicast synchronization message if the information that the at least one terminal joins the temporary multicast group is received, wherein the reference terminal configuration request comprises a terminal identifier; and determining the terminal corresponding to the terminal identification as a reference terminal, and sending reference determination information to the reference terminal.
Referring to fig. 6, it is a schematic diagram of a hardware structure of a time synchronization apparatus provided in an embodiment of the present invention, where the time synchronization apparatus includes: a processor 91, memory 92 and computer programs; wherein
A memory 92 for storing the computer program, which may also be a flash memory (flash).
A processor 91 for executing the computer program stored in the memory to implement the steps performed by the time synchronization apparatus in the above method. Reference may be made in particular to the description relating to the preceding method embodiment.
Alternatively, the memory 92 may be separate or integrated with the processor 91.
When the memory 92 is a device independent of the processor 91, the time-setting device may further include:
a bus 93 for connecting the memory 92 and the processor 91. The time tick means of fig. 6 may further comprise a transmitter (not shown) for transmitting the information generated by the processor 91 to the terminal.
The present invention also provides a readable storage medium, in which a computer program is stored, which when executed is used to implement the methods provided by the various embodiments described above.
The readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Additionally, the ASIC may reside in user equipment. Of course, the processor and the readable storage medium may also reside as discrete components in a communication device.
The present invention also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the device may read the execution instructions from the readable storage medium, and the execution of the execution instructions by the at least one processor causes the device to implement the methods provided by the various embodiments described above.
In the above embodiments of the time synchronization apparatus, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor, or in a combination of the hardware and software modules in the processor.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (6)

1. A time synchronization method for a private network cluster terminal is characterized by comprising the following steps:
sending temporary multicast group information to at least one terminal, wherein the temporary multicast group information comprises a multicast address of a temporary multicast group;
receiving a reference terminal configuration request, wherein the reference terminal configuration request comprises a terminal identifier; determining a terminal corresponding to the terminal identifier as a reference terminal, and sending reference determination information to the reference terminal; the terminal identification contained in the reference terminal configuration request indicates the terminal sending the reference terminal configuration request or indicates other terminals except the terminal sending the reference terminal configuration request;
if the information that the at least one terminal joins the temporary multicast group is received, acquiring a reference clock signal from the reference terminal; generating a multicast time setting message according to the reference clock signal;
and sending the multicast time tick message to the multicast address so that the at least one terminal receives the multicast time tick message from the multicast address and completes time tick according to the multicast time tick message.
2. The method of claim 1, wherein before the sending the temporary multicast group information to the at least one terminal, further comprising:
and receiving a time setting request sent by the at least one terminal.
3. The method of claim 1, wherein receiving a reference terminal configuration request comprises:
a reference terminal configuration request is received from the multicast router.
4. A time synchronization device for a private network cluster terminal is characterized by comprising:
a temporary multicast group information sending module, configured to send temporary multicast group information to at least one terminal, where the temporary multicast group information includes a multicast address of a temporary multicast group;
a multicast timing message obtaining module, configured to obtain a multicast timing message if receiving information that the at least one terminal joins the temporary multicast group;
a multicast time tick message sending module, configured to send the multicast time tick message to the multicast address, so that the at least one terminal receives the multicast time tick message from the multicast address and completes time tick according to the multicast time tick message;
a reference terminal determining module, configured to receive a reference terminal configuration request before acquiring a multicast synchronization message if the information that the at least one terminal joins the temporary multicast group is received, where the reference terminal configuration request includes a terminal identifier; determining a terminal corresponding to the terminal identifier as a reference terminal, and sending reference determination information to the reference terminal; the terminal identification contained in the reference terminal configuration request indicates the terminal sending the reference terminal configuration request or indicates other terminals except the terminal sending the reference terminal configuration request;
the multicast time synchronization message acquisition module is specifically configured to: if the information that the at least one terminal joins the temporary multicast group is received, acquiring a reference clock signal from the reference terminal; and generating a multicast time tick message according to the reference clock signal.
5. The apparatus of claim 4, wherein the temporary multicast group information sending module is further configured to: receiving a time tick request from the at least one terminal before the sending of the temporary multicast group information to the at least one terminal.
6. The apparatus of claim 4, wherein the reference terminal determining module is specifically configured to: receiving a reference terminal configuration request from a multicast router before acquiring a multicast synchronization message if the information that the at least one terminal joins the temporary multicast group is received, wherein the reference terminal configuration request comprises a terminal identifier; and determining the terminal corresponding to the terminal identification as a reference terminal, and sending reference determination information to the reference terminal.
CN201810583964.1A 2018-06-08 2018-06-08 Time synchronization method and device for private network cluster terminal Active CN110581828B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810583964.1A CN110581828B (en) 2018-06-08 2018-06-08 Time synchronization method and device for private network cluster terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810583964.1A CN110581828B (en) 2018-06-08 2018-06-08 Time synchronization method and device for private network cluster terminal

Publications (2)

Publication Number Publication Date
CN110581828A CN110581828A (en) 2019-12-17
CN110581828B true CN110581828B (en) 2022-05-03

Family

ID=68809166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810583964.1A Active CN110581828B (en) 2018-06-08 2018-06-08 Time synchronization method and device for private network cluster terminal

Country Status (1)

Country Link
CN (1) CN110581828B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021127964A1 (en) * 2019-12-24 2021-07-01 威创集团股份有限公司 Whole-wall echo display method and device for distributed combination system, and computer apparatus
CN111132302B (en) * 2019-12-27 2022-05-03 京信网络系统股份有限公司 Time synchronization method, device, base station equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453282A (en) * 2007-11-30 2009-06-10 华为技术有限公司 Time clock distribution method, equipment and system
CN103229437A (en) * 2011-01-11 2013-07-31 西门子企业通讯有限责任两合公司 Method for the clock synchronization of a plurality of modules
CN103986791A (en) * 2014-06-06 2014-08-13 浪潮电子信息产业股份有限公司 Rapid internal cluster node time synchronization method
CN104823516A (en) * 2012-12-20 2015-08-05 英特尔公司 Methods and systems for multi-directional time preservation distribution in multi-communication core devices
CN107947885A (en) * 2017-11-01 2018-04-20 中国电子科技集团公司第二十八研究所 Non-stop layer time synchronization ad hoc network method under a kind of cluster environment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8064484B2 (en) * 2006-02-01 2011-11-22 Symmetricom, Inc. Enhanced clock control in packet networks
US7814360B2 (en) * 2007-01-25 2010-10-12 Oralce International Corporation Synchronizing cluster time to a master node with a faster clock
US20080281938A1 (en) * 2007-05-09 2008-11-13 Oracle International Corporation Selecting a master node in a multi-node computer system
US8169856B2 (en) * 2008-10-24 2012-05-01 Oracle International Corporation Time synchronization in cluster systems
CN101997671B (en) * 2010-11-25 2014-12-10 中兴通讯股份有限公司 Clock synchronization method and system of master/salve clock equipment
CN107017958B (en) * 2016-01-28 2019-02-15 浙江宇视科技有限公司 A kind of method for synchronizing time and corresponding system based on NTP

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453282A (en) * 2007-11-30 2009-06-10 华为技术有限公司 Time clock distribution method, equipment and system
CN103229437A (en) * 2011-01-11 2013-07-31 西门子企业通讯有限责任两合公司 Method for the clock synchronization of a plurality of modules
CN104823516A (en) * 2012-12-20 2015-08-05 英特尔公司 Methods and systems for multi-directional time preservation distribution in multi-communication core devices
CN103986791A (en) * 2014-06-06 2014-08-13 浪潮电子信息产业股份有限公司 Rapid internal cluster node time synchronization method
CN107947885A (en) * 2017-11-01 2018-04-20 中国电子科技集团公司第二十八研究所 Non-stop layer time synchronization ad hoc network method under a kind of cluster environment

Also Published As

Publication number Publication date
CN110581828A (en) 2019-12-17

Similar Documents

Publication Publication Date Title
CN109561022B (en) Multicast forwarding method and multicast router
US10855576B2 (en) Information transmission method and device
CN106817250B (en) Dynamic election method and system
WO2012122813A1 (en) Method, system and device for switching and selecting clock source device
CN110581828B (en) Time synchronization method and device for private network cluster terminal
CN112688827B (en) Multicast stream detection method, device and system
WO2015027813A1 (en) Method and device for determining ethernet clock source
US8139558B2 (en) Method and system for establishing a system time within a mobile ad hoc network
CN104506330A (en) Message synchronizing method and system
CN117880372B (en) FTTR system equipment access control method, gateway equipment and gateway distributed system
US9735859B1 (en) Method and apparatus for distributing addresses of communication devices within a satellite network
CN110753313A (en) Data synchronization method and system
CN108900422B (en) Multicast forwarding method and device and electronic equipment
US9912782B2 (en) Method and apparatus for recovery in a communication system employing redundancy
US11612007B2 (en) Low power dissipation Bluetooth mesh network system and communication method
WO2018108168A1 (en) Method for implementing multicast service of packet transmission network, device thereof and communication system
CN110868353A (en) Message processing method and device
CN114884805A (en) Data transmission method, device, terminal and storage medium
CN112995095B (en) Data processing method, device and computer readable storage medium
CN112751907B (en) Information processing method, information processing apparatus, storage medium, and electronic apparatus
CN105357674B (en) Data distribution method, device and system
CN111416760B (en) Information synchronization method, terminal and information synchronization system
US20140173335A1 (en) High reliability redundant voting system for a signal received by voting processors in a communication system
CN106992890B (en) Multi-server switching method and system
CN107548025B (en) Position information sharing method and core network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant