WO2013082812A1 - 确定主时钟设备的方法、设备、其他方法、设备与系统 - Google Patents

确定主时钟设备的方法、设备、其他方法、设备与系统 Download PDF

Info

Publication number
WO2013082812A1
WO2013082812A1 PCT/CN2011/083774 CN2011083774W WO2013082812A1 WO 2013082812 A1 WO2013082812 A1 WO 2013082812A1 CN 2011083774 W CN2011083774 W CN 2011083774W WO 2013082812 A1 WO2013082812 A1 WO 2013082812A1
Authority
WO
WIPO (PCT)
Prior art keywords
level information
clock
clock device
time
frequency
Prior art date
Application number
PCT/CN2011/083774
Other languages
English (en)
French (fr)
Inventor
刘颂
谢雷
徐骁
韩希
欧雷特⋅米歇尔
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2011/083774 priority Critical patent/WO2013082812A1/zh
Priority to CN201180003581.9A priority patent/CN103250371B/zh
Publication of WO2013082812A1 publication Critical patent/WO2013082812A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0641Change of the master or reference, e.g. take-over or failure of the master
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays

Definitions

  • the present invention relates to the field of mobile networks, and in particular, to a method for determining a master clock device, a method for transmitting a message, a method for receiving a message, a clock device, a clock system, and a receiving device.
  • a network usually includes multiple network devices.
  • the network device determines the master clock device and synchronizes with the master clock device for clock synchronization, which is the basis for communication between multiple network devices within the network.
  • the Institute of Electrical and Electronics Engineers (IEEE) released the second edition of the 158 Book 8 Agreement.
  • the slave clock device can determine the master clock device based on the time level information of the alternate master clock device.
  • the time level information identifies the time precision of the alternate master clock device. Identifying the alternate master clock device with time level information does not more fully reflect the accuracy of the alternate master clock device. Therefore, the alternate master clock device cannot send information that more fully reflects the accuracy of the alternate master clock device. A device that receives a message sent by an alternate primary clock device cannot receive a message containing information that more fully reflects the accuracy of the alternate primary clock device.
  • Embodiments of the present invention provide a method for determining a master clock device, a method for transmitting a message, a method for receiving a message, a clock device, a clock system, and a receiving device.
  • an embodiment of the present invention provides a method for determining a master clock device, including:
  • first message sent by the first clock device, where the first message includes first clock level information, where the first clock level information is determined by the first time level information, the first frequency level information, and a preset function, where the first The time level information is used to identify the time precision of the first clock device, where the first frequency level information is used to identify the frequency accuracy of the first clock device;
  • Second message sent by the second clock device, where the second message includes second clock level information, where the second clock level information is determined by the second time level information, the second frequency level information, and the preset function, where the The second time level information is used to identify the time precision of the second clock device, and the second frequency level information is used to identify the second clock set.
  • the first clock device is a master clock device.
  • an embodiment of the present invention provides a method for sending a message, including:
  • the clock device sends a message, where the message includes clock level information, where the clock level information is determined by time level information, frequency level information, and a preset function, where the time level information is used to identify time precision of the clock device, and the frequency level information is used for Identifies the frequency accuracy of the clock device.
  • an embodiment of the present invention provides a method for receiving a message, including: receiving a message sent by a clock device, where the message includes clock level information, the clock level information is determined by time level information, frequency level information, and a preset function. It is determined that the time level information is used to identify the time precision of the clock device, and the frequency level information is used to identify the frequency accuracy of the clock device.
  • an embodiment of the present invention provides a clock device, including a receiver and a determining unit: the receiver is configured to receive a first message sent by a first clock device, where the first message includes first clock level information, The first clock level information is determined by the first time level information, the first frequency level information, and a preset function, where the first time level information is used to identify time precision of the first clock device, and the first frequency level information is used for Identifying a frequency accuracy of the first clock device;
  • the receiver is further configured to receive a second message sent by the second clock device, where the second message includes second clock level information, where the second clock level information is determined by the second time level information, the second frequency level information, and the pre- The function determines that the second time level information is used to identify the time precision of the second clock device, and the second frequency level information is used to identify the frequency accuracy of the second clock device;
  • the determining unit is configured to determine, according to the first clock level information and the second clock level information, the first clock device as a master clock device.
  • an embodiment of the present invention provides a clock system, the clock system including:
  • a first clock device a second clock device, and a slave clock device
  • the first clock device includes a first transmitter
  • the first transmitter is configured to send a first message, where the first message includes first clock level information, where the first clock level information is determined by first time level information, first frequency level information, and a preset function, where the first The time level information is used to identify the time precision of the first clock device, where the first frequency level information is used to identify the frequency accuracy of the first clock device;
  • the second clock device includes a second transmitter
  • the second transmitter is configured to send a second message, where the second message includes second clock level information, the second clock
  • the level information is determined by the second time level information, the second frequency level information, and the preset function, the second time level information is used to identify the time precision of the second clock device, and the second frequency level information is used to identify the first Frequency accuracy of the two clock devices;
  • the slave clock device includes a receiver and a determining unit
  • the receiver is configured to receive the first message sent by the first clock device
  • the receiver is further configured to receive the second message sent by the second clock device
  • the determining unit is configured to determine, according to the first clock level information and the second clock level information, the first clock device as a master clock device.
  • an embodiment of the present invention provides a clock device, where the clock device includes a transmitter.
  • the transmitter is configured to send a message, where the message includes clock level information, where the clock level information is determined by time level information, frequency level information, and a preset function, where the time level information is used to identify time precision of the clock device, and the frequency level information is used. Used to identify the frequency accuracy of the clock device.
  • an embodiment of the present invention provides a receiving device, the receiving device including a receiver,
  • the receiver is configured to receive a message sent by the clock device, where the message includes clock level information, where the clock level information is determined by time level information, frequency level information, and a preset function, where the time level information is used to identify time precision of the clock device, The frequency level information is used to identify the frequency accuracy of the first clock device.
  • the message provided by the alternate master clock device includes the clock level information.
  • the clock level information is a function of time level information and frequency level information. Therefore, the clock level information reflects both the time accuracy of the alternate master clock device and the frequency accuracy of the alternate master clock device. Therefore, the technical solution provided by the embodiment of the present invention can implement the selection of the master clock device according to the clock level information that comprehensively reflects the accuracy of the candidate master clock device.
  • FIG. 1 is a flowchart of a method for determining a master clock device according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for sending a message according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for receiving a message according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a clock device according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of another clock device according to an embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of a receiving device according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a clock system according to an embodiment of the present invention. detailed description
  • Embodiments of the present invention provide a method for determining a master clock device.
  • the body of execution of the method can be a slave clock device.
  • the slave clock device is a network device, and the slave clock device may be a bearer network device or a base station device.
  • FIG. 1 is a flowchart of a method for determining a master clock device according to an embodiment of the present invention. The method includes:
  • the first message sent by the first clock device is received, where the first message includes first clock level information, where the first clock level information is determined by the first time level information, the first frequency level information, and a preset function, where The first time level information is used to identify the time precision of the first clock device, and the first frequency level information is used to identify the frequency accuracy of the first clock device.
  • the level information is used to identify the accuracy of the clock device.
  • the time level information is used to identify the time accuracy of the clock device.
  • the frequency level information is used to identify the frequency accuracy of the clock device.
  • the level information can be either a numeric value or an expression. It should be noted that in the scenario where the level information is a numerical value, the level of accuracy is not necessarily related to the magnitude of the value of the level information. For example, in a case where the accuracy of the first device is higher than that of the second device, the value of the level information of the first device and the value of the level information of the second device may be 1 and 2, respectively; the value of the level information of the first device and The value of the level information of the second device may also be 2 and 1, respectively.
  • the accuracy is not necessarily related to the selection of the expression.
  • the expression of the level information of the first device and the expression of the level information of the second device may be A and a respectively; the level information of the first device
  • the expressions of the expression and the level information of the second device may also be a and A, respectively.
  • the first clock device is a master clock device.
  • the first time level information and the first frequency level information are respectively used to identify time precision and frequency accuracy of the first clock device.
  • the first time level information may be decimal 6.
  • the time accuracy of the decimal 6 to identify the first clock device can be an error of ⁇ 10-11 seconds.
  • the first time level information can also be decimal 7.
  • the time accuracy of the decimal 7 identifying the first clock device can be an error of ⁇ 5 X 10-10 seconds.
  • the first frequency level information may be decimal 2 or decimal 4.
  • the frequency accuracy corresponding to decimal 2 and decimal 4 please refer to the G.781 ten-issue issued by the ITU-T for ITU Telecommunication Standardization Sector.
  • the first clock level information is determined by the first time level information, the first frequency level information, and the preset function, and the first time level information of the first clock device and the first frequency level information are substituted into the The preset function, the obtained function value is the first clock level information.
  • the second message sent by the second clock device is received, where the second message includes second clock level information, where the second clock level information is determined by the second time level information, the second frequency level information, and the preset function.
  • the second time level information is used to identify the time precision of the second clock device
  • the second frequency level information is used to identify the frequency accuracy of the second clock device.
  • the second clock device is a master clock device.
  • the second time level information and the second frequency level information are respectively used to identify time precision and frequency accuracy of the second clock device.
  • the second time level information and the second frequency level information are specifically implemented, please refer to the first time level information and the first frequency level information, and details are not described herein again.
  • the second clock level information is determined by the second time level information, the second frequency level information, and the preset function, and the second time level information and the second frequency level information of the second clock device are substituted into the preset function to obtain
  • the function value is the second clock level information.
  • the order of the priorities of the first clock device and the second clock device is determined based on the first clock level information and the second clock level information.
  • the priority of the first clock device is higher than the priority of the second clock device, it is determined that the first clock device is the master clock device.
  • the above priority is used to indicate the sequence of selecting the master clock device from the plurality of candidate master clock devices from the clock device.
  • the slave clock device can define the way to determine the priority level. The following is an example of the determination method:
  • the slave clock device can define the value of the clock level information to be proportional to the priority level.
  • the slave clock device can also define the level of the clock level information to be inversely proportional to the priority level.
  • the priority level of the slave clock device can be defined by the order of the English alphabet. For example, the higher the ranking, the higher the priority; or the higher the ranking, the lower the priority.
  • the priority of the slave clock device can also be related to the case of the English alphabet. For example, uppercase English letters have higher priority than lowercase English letters; or lowercase English letters have higher priority than uppercase letters. The priority of the English letter.
  • the clock level information is the value of the above-described preset function.
  • the value of the preset function can be either a numeric value or an expression. It should be noted that, in the scenario where the value of the preset function is a value, the priority level is not necessarily related to the size of the value. In the scenario of the expression of the value of the preset function, the priority level is not necessarily related to the selection of the expression. Examples are as follows:
  • the value of the preset function corresponding to the clock level information is a numerical value is as an example: in a case where the priority of the first device is higher than that of the second device, the clock level information of the first device and the clock level information of the second device may be It is 1 and 2 respectively; the clock level information of the first device and the clock level information of the second device may also be 2 and 1, respectively.
  • the value of the preset function corresponding to the clock level information is an expression is taken as an example: in the case where the priority of the first device is higher than that of the second device, the clock level information of the first device and the clock level information of the second device It may be A and a respectively ; the clock level information of the first device and the clock level information of the second device may also be a and A, respectively.
  • the message provided by the alternate master clock device includes clock level information.
  • the clock level information is a function of time level information and frequency level information. Therefore, the clock level information reflects both the time accuracy of the alternate master clock device and the frequency accuracy of the alternate master clock device. Therefore, the method provided by this embodiment can implement the selection of the master clock device based on the clock level information that more comprehensively reflects the accuracy of the alternate master clock device.
  • the method further includes:
  • the third message sent by the third clock device is received, where the third message includes third clock level information, where the third clock level information is determined by the third time level information, the third frequency level information, and the preset function.
  • the third time level information is used to identify the time precision of the third clock device, where the third frequency level information is used to identify the frequency accuracy of the third clock device; the first time level information, the second time level information, and In the third time level information, at least one time level information is different from the other two time level information; at least one of the first frequency level information, the second frequency level information, and the third frequency level information The information is different from the other two frequency level information;
  • Determining, according to the first clock level information and the second clock level information, that the first clock device is a main clock device specifically includes:
  • the first clock device is a master clock device, where the first clock device is an element of an intersection of the first set and the second set; the first set includes the first clock device, the second clock device, and the All clock devices except the clock device having the lowest time precision among the third clock devices; the second set includes all of the first clock device, the second clock device, and the clock device having the lowest frequency accuracy among the third clock devices Clock device.
  • the 105 When the 105 is specifically implemented, it can be:
  • the first clock device and the slave clock device receiving the first message can access the correspondence table.
  • the correspondence table can store multiple entries.
  • An entry in the correspondence table includes first time level information, first frequency level information, and first clock level information.
  • the first clock device finds an entry in the correspondence table that includes the first time level information and the first frequency level information.
  • the first clock device obtains first clock level information according to the entry.
  • the first clock device encapsulates the first clock level information into the first message and transmits the first message to the slave clock device.
  • the first clock level information is parsed from the first message.
  • the slave clock device finds an entry containing the first clock level information in the correspondence table.
  • the slave clock device obtains the first time level information and the first frequency level information according to the entry.
  • the 105 When the 105 is specifically implemented, it can also be:
  • the first time level information and the first frequency level information are included in the first clock level information.
  • the first time level information and the first frequency level information are Expression A and Expression a, respectively.
  • the first clock level information is expressed by Expression Aa.
  • the first set and the second set are determined.
  • the intersection of the first collection and the second collection is taken to obtain a third set.
  • the third set includes at least one element.
  • the first clock device is selected from the third set.
  • the first set contains one or more clock devices.
  • the slave clock device may determine the elements in the first set according to the first time precision information, the second time precision information, and the third time precision information. At least one of the first time precision information, the second time precision information, and the third time precision information is different from the other two time precision information.
  • the clock device having the lowest time precision among the first clock device, the second clock device, and the third clock device is excluded from the first set. Therefore, the first set can only contain one clock device or two clock devices of the first clock device, the second clock device, and the third clock device.
  • the second set contains one or more clock devices.
  • the second set can also include only one of the first clock device, the second clock device, and the third clock device, or two clock devices.
  • the third set is the intersection of the first set and the second set. Therefore, the third set can only contain one clock device or two clock devices of the first clock device, the second clock device, and the third clock device. In addition, the third set not only excludes the clock device with the lowest time precision among the first clock device, the second clock device, and the third clock device, but also eliminates the frequencies in the first clock device, the second clock device, and the third clock device. The lowest precision clock device.
  • the master clock device determined from the clock device comes from the third set. Therefore, the clock device with the lowest time precision among the first clock device, the second clock device, and the third clock device is avoided. At the same time, the clock device with the lowest frequency accuracy among the first clock device, the second clock device, and the third clock device is also avoided.
  • the first clock level information and the second clock level information are carried on a clock level field of the announcement message.
  • the first clock level information can be carried in the ClockClass field of the Announce message.
  • the version after the second edition of the 1588 protocol can define the Announce message and the ClockClass field.
  • the third clock level information is carried on the clock level field of the announcement message.
  • the method After determining that the first clock device is the master clock device, the method includes:
  • the master clock is determined according to the second edition of the 1588 protocol, and time synchronization is performed.
  • the master clock is determined according to the G.781 protocol and frequency synchronization is performed.
  • the master clock determined according to the second edition of the 1588 protocol and the master clock determined according to the G.781 protocol may not be the same master clock. Therefore, in the prior art, when time synchronization is performed, the master clock device operates in the time plane. When performing frequency synchronization, the master clock device operates in the frequency plane. When the master clock device that performs time synchronization and the master clock device that performs frequency synchronization are not the same device, the time plane and the frequency plane are not in the same device. Synchronization from the clock device to the two master clock devices has a high degree of synchronization complexity.
  • the method provided by this embodiment ensures that the master clock device that performs time synchronization and the master clock device that performs frequency synchronization are the same master clock device. Reduces the complexity of time synchronization and frequency synchronization from clock devices.
  • the embodiment of the invention provides a method for sending a message.
  • the main body of the method can be a master clock device.
  • figure 2 It is a flowchart of a method for sending a message according to an embodiment of the present invention. The method includes:
  • the clock device sends a message, where the message includes clock level information, where the clock level information is determined by time level information, frequency level information, and a preset function, where the time level information is used to identify time precision of the clock device, and the frequency level information is used. Used to identify the frequency accuracy of the clock device.
  • the frequency level information For the time level information, the frequency level information, and the preset function, see 101 in the first embodiment.
  • the message sent by the clock device includes clock level information.
  • the clock level information is a function of time level information and frequency level information. Therefore, the clock level information reflects both the time accuracy of the clock device and the frequency accuracy of the clock device. Therefore, the method provided by this embodiment can provide clock level information that comprehensively reflects the accuracy of the clock device, so that the network device receiving the clock device selects the master clock device according to the clock level information that more comprehensively reflects the accuracy of the clock device.
  • the clock level information is carried in the clock level field of the announcement message.
  • the clock device is a master clock device for time synchronization and frequency synchronization with the slave clock device.
  • the method provided by this embodiment ensures that the master clock device that performs time synchronization from the clock device and the master clock device that performs frequency synchronization are the same master clock device. Reduces the complexity of time synchronization and frequency synchronization from clock devices.
  • Embodiments of the present invention provide a method for receiving a message.
  • the body of execution of the method can be a slave clock device.
  • FIG. 3 is a flowchart of a method for receiving a message according to an embodiment of the present invention. The method includes:
  • 301 Receive a message sent by a clock device, where the message includes clock level information, where the clock level information is determined by time level information, frequency level information, and a preset function, where the time level information is used to identify a time precision of the clock device, the frequency The level information is used to identify the frequency accuracy of the clock device.
  • the frequency level information For the time level information, the frequency level information, and the preset function, see 101 in the first embodiment.
  • the received message includes clock level information.
  • the clock level information is a function of time level information and frequency level information. Therefore, the clock level information reflects both the clock device's time.
  • the inter-precision also reflects the frequency accuracy of the clock device. Therefore, the method provided in this embodiment can ensure that the received message contains clock level information that comprehensively reflects the accuracy of the clock device, so that the device receiving the message selects according to the clock level information that comprehensively reflects the accuracy of the clock device. Master clock device.
  • the clock level information is carried in the clock level field of the announcement message.
  • the method provided in this embodiment may further include, after receiving the message sent by the clock device,
  • the clock device is a master clock device, and time synchronization and frequency synchronization are performed with the master clock device.
  • the method provided in this embodiment ensures that when the device that receives the message synchronizes with the clock device, the master clock device that performs time synchronization determined by the device that receives the message and the master clock device that performs frequency synchronization are the same master clock device. The complexity of time synchronization and frequency synchronization of the device receiving the message is reduced.
  • FIG. 4 is a schematic structural diagram of a clock device according to an embodiment of the present invention.
  • the device includes a receiver 401 and a determining unit 402.
  • the receiver 401 is configured to receive a first message sent by the first clock device, where the first message includes first clock level information, where the first clock level information is first time level information, first frequency level information, and preset
  • the function determines that the first time level information is used to identify the time precision of the first clock device, and the first frequency level information is used to identify the frequency accuracy of the first clock device.
  • the receiver 401 is further configured to receive a second message sent by the second clock device, where the second message includes second clock level information, where the second clock level information is generated by the second time level information, the second frequency level information, and the The preset function determines that the second time level information is used to identify the time precision of the second clock device, and the second frequency level information is used to identify the frequency accuracy of the second clock device.
  • the determining unit 402 is configured to determine, according to the first clock level information and the second clock level information, the first clock device as a master clock device.
  • the message received by the clock device includes clock level information.
  • the clock level information is a function of time level information and frequency level information. Therefore, the clock level information reflects both the time accuracy of the alternate master clock device and the frequency accuracy of the alternate master clock device. Therefore, the device provided by this embodiment can implement the selection of the master clock device according to the clock level information that comprehensively reflects the accuracy of the candidate master clock device.
  • the receiver 401 is further configured to receive a third message sent by the third clock device, where the third message includes third clock level information, where the third clock level information is determined by the third time level information, the third frequency level information, and the The preset function determines that the third time level information is used to identify the time precision of the third clock device, and the third frequency level information is used to identify the frequency accuracy of the third clock device; the first time level information, the first In the second time level information and the third time level information, at least one time level information is different from the other two time level information; in the first frequency level information, the second frequency level information, and the third frequency level information, At least one frequency level information is different from the other two frequency level information.
  • the determining unit 402 specifically includes an obtaining subunit 403 and a determining subunit 404.
  • the obtaining sub-unit 403 is configured to obtain the first time level information and the first frequency level information according to the first clock level information.
  • the obtaining sub-unit 403 is further configured to acquire the second time level information and the second frequency level information according to the second clock level information.
  • the obtaining sub-unit 403 is further configured to acquire the third time level information and the third frequency level information according to the third clock level information.
  • the determining subunit 404 is configured to determine that the first clock device is a primary clock device, where the first clock device is an element of an intersection of the first set and the second set; the first set includes the first clock device and the second clock device And all clock devices except the clock device having the lowest time precision among the third clock devices; the second set includes all clocks other than the clock device having the lowest frequency accuracy among the first clock device, the second clock device, and the third clock device device.
  • the master clock device determined by the clock device provided in this embodiment is from the third set. Therefore, the clock device with the lowest time precision among the first clock device, the second clock device, and the third clock device is avoided. Meanwhile also The clock device with the lowest frequency accuracy among the first clock device, the second clock device, and the third clock device is avoided.
  • the clock device also includes a synchronization unit 405 for time synchronization and frequency synchronization with the master clock device.
  • the clock device ensures that the master clock device that performs time synchronization and the master clock device that performs frequency synchronization are the same master clock device. Reduces the complexity of time synchronization and frequency synchronization from clock devices.
  • the embodiment of the invention provides a clock device.
  • the clock device can be implemented by the method provided in Embodiment 2.
  • FIG. 5 is a schematic structural diagram of a clock device according to an embodiment of the present invention.
  • the clock device includes a transmitter 501,
  • the transmitter 501 is configured to send a message, where the message includes clock level information, where the clock level information is determined by time level information, frequency level information, and a preset function, where the time level information is used to identify a time precision of the clock device, the frequency The level information is used to identify the frequency accuracy of the clock device.
  • the message sent by the clock device includes clock level information.
  • the clock level information is a function of time level information and frequency level information.
  • the clock level information reflects both the time accuracy of the clock device and the frequency accuracy of the clock device. Therefore, the method provided in this embodiment can send clock level information that comprehensively reflects the accuracy of the clock device, so that the network device receiving the clock device selects the master clock device according to the clock level information.
  • the clock level information is carried in the clock level field of the announcement message.
  • the clock device is a master clock device for time synchronization and frequency synchronization with the slave clock device.
  • the clock device ensures that the master clock device performing time synchronization and the master clock device performing frequency synchronization are the same master clock device. Reduces the complexity of performing time synchronization and frequency synchronization.
  • Embodiment 6 The embodiment of the invention provides a receiving device.
  • the receiving device can be implemented by the method provided in Embodiment 3.
  • FIG. 6 is a schematic structural diagram of a receiving device according to an embodiment of the present invention.
  • the device includes:
  • the receiver 601 is configured to receive a message sent by the clock device, where the message includes clock level information, where the clock level information is determined by time level information, frequency level information, and a preset function, where the time level information is used to identify the time of the clock device. Accuracy, the frequency level information is used to identify the frequency accuracy of the clock device.
  • the message received by the receiving device includes clock level information.
  • the clock level information is a function of time level information and frequency level information.
  • the clock level information reflects both the time accuracy of the clock device and the frequency accuracy of the clock device. Therefore, the method provided in this embodiment can ensure that the message received by the receiving device includes clock level information that comprehensively reflects the accuracy of the clock device, so that the receiving device selects according to the clock level information that comprehensively reflects the accuracy of the clock device. Master clock device.
  • the clock level information is carried in the clock level field of the announcement message.
  • the receiving device may further include a synchronization unit,
  • the synchronization unit is configured to determine that the clock device is a master clock device, and perform time synchronization and frequency synchronization with the master clock device.
  • the receiving device ensures that when the receiving device performs synchronization, the master clock device that performs the time synchronization determined by the receiving device and the master clock device that performs the frequency synchronization are the same master clock device. Reduces the complexity of receiving devices for time synchronization and frequency synchronization.
  • FIG. 7 is a schematic structural diagram of a clock system according to an embodiment of the present invention.
  • the clock system includes:
  • the first clock device 701 includes a first transmitter 704,
  • the first transmitter 704 is configured to send a first message, where the first message includes first clock level information, where the first clock level information is determined by first time level information, first frequency level information, and a preset function, where First time, etc.
  • the level information is used to identify the time precision of the first clock device, where the first frequency level information is used to identify the frequency accuracy of the first clock device;
  • the second clock device 702 includes a second transmitter 705,
  • the second transmitter 705 is configured to send a second message, where the second message includes second clock level information, where the second clock level information is determined by the second time level information, the second frequency level information, and the preset function.
  • the second time level information is used to identify the time precision of the second clock device, where the second frequency level information is used to identify the frequency accuracy of the second clock device;
  • the slave clock device 703 includes a receiver 706 and a determining unit 707,
  • the receiver 706 is configured to receive the first message sent by the first clock device.
  • the receiver 706 is further configured to receive the second message sent by the second clock device.
  • the determining unit 707 is configured to determine, according to the first clock level information and the second clock level information, the first clock device as a master clock device.
  • the first clock device 701 When the first clock device 701 is specifically implemented, refer to the clock device provided in Embodiment 5.
  • slave clock device 703 When the slave clock device 703 is specifically implemented, refer to the clock device provided in the fourth embodiment.
  • the message sent by the first clock device and the second clock device includes clock level information.
  • the clock level information is a function of time level information and frequency level information.
  • the clock level information reflects both the time accuracy of the clock device and the frequency accuracy of the clock device. Therefore, the system provided by this embodiment can provide clock level information that more comprehensively reflects the accuracy of the clock device, and the slave clock device can select the master clock device based on the clock level information.
  • the clock system also includes a third clock device,
  • the third clock device includes a third transmitter
  • the third transmitter is configured to send a third message, where the third message includes third clock level information, where the third clock level information is determined by the third time level information, the third frequency level information, and the preset function, where the third The third time level information is used to identify the time precision of the third clock device, where the third frequency level information is used to identify the frequency accuracy of the third clock device; the first time level information, the second time level information, and the first At least one time level information in the three time level information is different from the other two time level information; at least one of the first frequency level information, the second frequency level information, and the third frequency level information is different from the other Two frequency level information;
  • the receiver 706 is further configured to receive the third message sent by the third clock device;
  • the determining unit 707 specifically includes an acquiring subunit and determining the subunit.
  • the acquiring subunit is configured to acquire the first time level information and the first frequency level information according to the first clock level information;
  • the acquiring subunit is further configured to acquire the second time level information and the second frequency level information according to the second clock level information;
  • the acquiring subunit is further configured to acquire the third time level information and the third frequency level information according to the third clock level information;
  • the determining subunit is configured to determine that the first clock device is a master clock device, the first clock device is an element of an intersection of the first set and the second set; the first set includes the first clock device, the second a clock device and all clock devices except the clock device having the lowest time precision among the third clock devices; the second set includes the first clock device, the second clock device, and the clock with the lowest frequency accuracy among the third clock devices All clock devices except the device.
  • the third clock device refers to the clock device provided in Embodiment 5.
  • the master clock device determined from the clock device is from the third set. Therefore, the clock device with the lowest time precision among the first clock device, the second clock device, and the third clock device is avoided. At the same time, the clock device with the lowest frequency accuracy among the first clock device, the second clock device, and the third clock device is also avoided.
  • the first clock level information is carried on a clock level field of the announcement message.
  • the second clock level information is carried in a clock level field of the announcement message.
  • the third clock level information is carried on the clock level field of the announcement message.
  • the first clock level information can be carried in the clock level field of the announcement message.
  • the slave clock device 703 can also include a synchronization unit.
  • the synchronization unit is configured to perform time synchronization and frequency synchronization with the first clock device.
  • the clock system ensures that when the clock device synchronizes with the master clock device, the master clock device that performs time synchronization determined by the slave clock device and the master clock device that performs frequency synchronization are the same master clock device. The complexity of time synchronization and frequency synchronization from the clock device is reduced.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Electric Clocks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

本发明公开了一种确定主时钟设备的方法,包括接收第一时钟设备发送的第一消息,该第一消息中包含第一时钟等级信息,该第一时钟等级信息由第一时间等级信息、第一频率等级信息以及预设函数确定;接收第二时钟设备发送的第二消息,该第二消息中包含第二时钟等级信息,该第二时钟等级信息由第二时间等级信息、第二频率等级信息以及该预设函数确定;根据该第一时钟等级信息以及该第二时钟等级信息确定该第一时钟设备为主时钟设备。此外,本发明实施例还公开了一种发送消息的方法、一种接收消息的方法、时钟设备、一种时钟同步系统以及一种接收设备。通过上述技术方案,可以实现根据比较全面地反映备选主时钟设备的精度的信息选择主时钟设备。

Description

确定主时钟设备的方法、 设备、 其他方法、 设备与系统 技术领域
本发明涉及移动网络领域, 尤其涉及确定主时钟设备的方法、 发送消息的方法、 接收 消息的方法、 时钟设备、 时钟系统以及接收设备。 说
背景技术
一个网络通常包括多个网络设备。 网络设备确定主时钟设备, 并与主时钟设备进行时 钟同步是网络内部的多个网络设备进行通信的基础。 电气和电子工程师协会 (Institute of Electrical and Electronics Engineers, IEEE)发布了 158书8协议第二版。根据 1588协议第二版, 从时钟设备可以根据备选主时钟设备的时间等级信息确定主时钟设备。
发明人发现现有技术存在如下技术问题:
在根据时间等级信息确定主时钟设备的场景下, 时间等级信息标识了备选主时钟设备 的时间精度。 用时间等级信息标识备选主时钟设备不能比较全面地反映备选主时钟设备的 精度。 因此, 备选主时钟设备无法发送比较全面地反映备选主时钟设备的精度的信息。 接 收备选主时钟设备发送的消息的设备无法接收到包含了比较全面地反映备选主时钟设备的 精度的信息的报文。 发明内容
本发明实施例提供了确定主时钟设备的方法、 发送消息的方法、 接收消息的方法、 时 钟设备、 时钟系统以及接收设备。
一方面, 本发明的实施例提供了一种确定主时钟设备的方法, 包括:
接收第一时钟设备发送的第一消息, 该第一消息中包含第一时钟等级信息, 该第一时 钟等级信息由第一时间等级信息、 第一频率等级信息以及预设函数确定, 该第一时间等级 信息用于标识该第一时钟设备的时间精度, 该第一频率等级信息用于标识该第一时钟设备 的频率精度;
接收第二时钟设备发送的第二消息, 该第二消息中包含第二时钟等级信息, 该第二时 钟等级信息由第二时间等级信息、 第二频率等级信息以及该预设函数确定, 该第二时间等 级信息用于标识该第二时钟设备的时间精度, 该第二频率等级信息用于标识该第二时钟设 备的频率精度;
根据该第一时钟等级信息以及该第二时钟等级信息确定该第一时钟设备为主时钟设 备。
另一方面, 本发明的实施例提供了一种发送消息的方法, 包括:
时钟设备发送消息, 该消息包含时钟等级信息, 该时钟等级信息由时间等级信息、 频 率等级信息和预设函数确定, 该时间等级信息用于标识该时钟设备的时间精度, 该频率等 级信息用于标识该时钟设备的频率精度。
另一方面, 本发明的实施例提供了一种接收消息的方法, 包括- 接收时钟设备发送的消息, 该消息包含时钟等级信息, 该时钟等级信息由时间等级信 息、 频率等级信息和预设函数确定, 该时间等级信息用于标识该时钟设备的时间精度, 该 频率等级信息用于标识该时钟设备的频率精度。
另一方面, 本发明的实施例提供了一种时钟设备, 包括接收器以及确定单元: 该接收器用于接收第一时钟设备发送的第一消息, 该第一消息中包含第一时钟等级信 息, 该第一时钟等级信息由第一时间等级信息、 第一频率等级信息以及预设函数确定, 该 第一时间等级信息用于标识该第一时钟设备的时间精度, 该第一频率等级信息用于标识该 第一时钟设备的频率精度;
该接收器还用于接收第二时钟设备发送的第二消息, 该第二消息中包含第二时钟等级 信息, 该第二时钟等级信息由第二时间等级信息、 第二频率等级信息以及该预设函数确定, 该第二时间等级信息用于标识该第二时钟设备的时间精度, 该第二频率等级信息用于标识 该第二时钟设备的频率精度;
该确定单元用于根据该第一时钟等级信息以及该第二时钟等级信息确定该第一时钟设 备为主时钟设备。
另一方面, 本发明的实施例提供了一种时钟系统, 该时钟系统包括:
第一时钟设备、 第二时钟设备和从时钟设备;
该第一时钟设备包括第一发送器,
该第一发送器用于发送第一消息, 该第一消息中包含第一时钟等级信息, 该第一时钟 等级信息由第一时间等级信息、 第一频率等级信息以及预设函数确定, 该第一时间等级信 息用于标识该第一时钟设备的时间精度, 该第一频率等级信息用于标识该第一时钟设备的 频率精度;
该第二时钟设备包括第二发送器,
该第二发送器用于发送第二消息, 该第二消息中包含第二时钟等级信息, 该第二时钟 等级信息由第二时间等级信息、 第二频率等级信息以及该预设函数确定, 该第二时间等级 信息用于标识该第二时钟设备的时间精度, 该第二频率等级信息用于标识该第二时钟设备 的频率精度;
该从时钟设备包括接收器以及确定单元,
该接收器用于接收该第一时钟设备发送的该第一消息;
该接收器还用于接收该第二时钟设备发送的该第二消息;
该确定单元用于根据该第一时钟等级信息以及该第二时钟等级信息确定该第一时钟设 备为主时钟设备。
另一方面, 本发明的实施例提供了一种时钟设备, 该时钟设备包括发送器,
该发送器用于发送消息, 该消息包含时钟等级信息, 该时钟等级信息由时间等级信息、 频率等级信息和预设函数确定, 该时间等级信息用于标识该时钟设备的时间精度, 该频率 等级信息用于标识该时钟设备的频率精度。
另一方面, 本发明的实施例提供了一种接收设备, 该接收设备包括接收器,
该接收器用于接收时钟设备发送的消息, 该消息包含时钟等级信息, 该时钟等级信息 由时间等级信息、 频率等级信息和预设函数确定, 该时间等级信息用于标识该时钟设备的 时间精度, 该频率等级信息用于标识该第一时钟设备的频率精度。
可见, 通过本发明实施例提供的技术方案, 备选的主时钟设备提供的消息中包含了时 钟等级信息。 时钟等级信息是时间等级信息以及频率等级信息的函数。 因此, 时钟等级信 息既反映了备选主时钟设备的时间精度, 也反映了备选主时钟设备的频率精度。 因此本发 明实施例提供的技术方案可以实现根据比较全面地反映备选主时钟设备的精度的时钟等级 信息选择主时钟设备。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施例或现有技 术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图是本发明的 一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据 这些附图获得其他的附图。
图 1是本发明实施例提供的一种确定主时钟设备的方法的流程图;
图 2是本发明实施例提供的一种发送消息的方法的流程图;
图 3是本发明实施例提供的一种接收消息的方法的流程图;
图 4是本发明实施例提供的一种时钟设备的结构示意图; 图 5是本发明实施例提供的另一种时钟设备的结构示意图;
图 6是本发明实施例提供的一种接收设备的结构示意图;
图 7是本发明实施例提供的一种时钟系统的结构示意图。 具体实施方式
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发明实施例中的 附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本 发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员 在没有作出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
实施例一
本发明实施例提供了一种确定主时钟设备的方法。 该方法的执行主体可以是从时钟设 备。 从时钟设备是一种网络设备, 从时钟设备可以是承载网设备, 也可以是基站设备。 图 1 是本发明实施例提供的一种确定主时钟设备的方法的流程图。 该方法包括:
101、 接收第一时钟设备发送的第一消息, 该第一消息中包含第一时钟等级信息, 该第 一时钟等级信息由第一时间等级信息、 第一频率等级信息以及预设函数确定, 该第一时间 等级信息用于标识该第一时钟设备的时间精度, 该第一频率等级信息用于标识该第一时钟 设备的频率精度。
等级信息用于标识时钟设备的精度。 时间等级信息用于标识时钟设备的时间精度。 频 率等级信息用于标识时钟设备的频率精度。 等级信息可以是数值, 也可以是表达式。 需要 说明的是, 在等级信息是数值的场景下, 精度的高低与等级信息的值的大小没有必然联系。 例如, 在第一设备的精度高于第二设备的情况下, 第一设备的等级信息的值和第二设备的 等级信息的值可以分别是 1和 2;第一设备的等级信息的值和第二设备的等级信息的值也可 以分别是 2和 1。 另外, 在等级信息是表达式的场景下, 精度的高低与表达式的选取没有必 然联系。 例如, 在第一设备的精度高于第二设备的情况下, 第一设备的等级信息的表达式 和第二设备的等级信息的表达式可以分别是 A和 a;第一设备的等级信息的表达式和第二设 备的等级信息的表达式也可以分别是 a和 A。
第一时钟设备是主时钟设备。 第一时间等级信息以及第一频率等级信息分别用于标识 该第一时钟设备的时间精度以及频率精度。
具体实现时, 第一时间等级信息可以是十进制 6。十进制 6标识第一时钟设备的时间精 度可以是误差 ± 10-11秒。 第一时间等级信息也可以十进制 7。 十进制 7标识第一时钟设备 的时间精度可以是误差 ± 5 X 10-10秒。关于时间精度等级,具体可以参考 1588协议第二版。 具体实现时, 第一频率等级信息可以是十进制 2, 也可以是十进制 4。 关于十进制 2和 十进制 4对应的频率精度, 具体请参考国际电信联盟远程通信标准化组织 (ITU-T for ITU Telecommunication Standardization Sector) 发布的 G.781十办议。
本实施例中, 该第一时钟等级信息由第一时间等级信息、 第一频率等级信息以及预设 函数确定, 是指将第一时钟设备的第一时间等级信息和第一频率等级信息代入该预设函数, 得到的函数值即为第一时钟等级信息。
102、 接收第二时钟设备发送的第二消息, 该第二消息中包含第二时钟等级信息, 该第 二时钟等级信息由第二时间等级信息、 第二频率等级信息以及该预设函数确定, 该第二时 间等级信息用于标识该第二时钟设备的时间精度, 该第二频率等级信息用于标识该第二时 钟设备的频率精度。
第二时钟设备是主时钟设备。 第二时间等级信息以及第二频率等级信息分别用于标识 该第二时钟设备的时间精度以及频率精度。 第二时间等级信息以及第二频率等级信息具体 实现时, 请参考第一时间等级信息以及第一频率等级信息, 此处不再赘述。
第二时钟等级信息具体实现时, 请参考第一时钟等级信息, 此处不再赘述。
第二时钟等级信息由第二时间等级信息、 第二频率等级信息以及该预设函数确定, 是 指将第二时钟设备的第二时间等级信息和第二频率等级信息代入该预设函数, 得到的函数 值即为第二时钟等级信息。
103、 根据该第一时钟等级信息以及该第二时钟等级信息确定该第一时钟设备为主时钟 设备。
具体实现时, 可以包括如下步骤:
根据第一时钟等级信息以及第二时钟等级信息确定第一时钟设备与第二时钟设备的优 先级的顺序。 当第一时钟设备的优先级高于第二时钟设备的优先级时, 确定第一时钟设备 为主时钟设备。
上述优先级用于指示从时钟设备从多个备选的主时钟设备中选择主时钟设备的先后顺 序。 从时钟设备可以定义确定优先级的高低的方式。 下面对确定方式进行举例:
当时钟等级信息为数值值时, 从时钟设备可以定义时钟等级信息的值的高低与优先级 的高低成正比, 从时钟设备也可以定义时钟等级信息的值的高低与优先级的高低成反比。
当时钟等级信息为由单个英文字母构成的表达式时, 从时钟设备可以定义优先级的高 低与英文字母的排序先后有关。 例如排序越靠前, 优先级越高; 或者排序越靠前, 优先级 越低。 从时钟设备也可以定义优先级的高低与英文字母的大小写有关, 例如大写英文字母 对应的优先级高于小写英文字母对应的优先级; 或者小写英文字母对应的优先级高于大写 英文字母对应的优先级。
根据上文的叙述, 时钟等级信息是上述预设函数的值。 预设函数的值可以是数值, 也 可以是表达式。 需要说明的是, 在预设函数的值是数值的场景下, 优先级的高低与数值的 大小没有必然的联系。 在预设函数的值时表达式的场景下, 优先级的高低与表达式的选取 也没有必然联系。 举例如下:
以时钟等级信息对应的预设函数的值为数值的场景为例: 在第一设备的优先级高于第 二设备的情况下, 第一设备的时钟等级信息和第二设备的时钟等级信息可以分别是 1和 2; 第一设备的时钟等级信息和第二设备的时钟等级信息也可以分别是 2和 1。
以时钟等级信息对应的预设函数的值为表达式的场景为例: 在第一设备的优先级高于 第二设备的情况下, 第一设备的时钟等级信息和第二设备的时钟等级信息可以分别是 A和 a; 第一设备的时钟等级信息和第二设备的时钟等级信息也可以分别是 a和 A。
可见, 通过本实施例提供的方法, 备选的主时钟设备提供的消息中包含了时钟等级信 息。 时钟等级信息是时间等级信息以及频率等级信息的函数。 因此, 时钟等级信息既反映 了备选主时钟设备的时间精度, 也反映了备选主时钟设备的频率精度。 因此, 本实施例提 供的方法可以实现根据比较全面地反映备选主时钟设备的精度的时钟等级信息选择主时钟 设备。
可选的,
该根据该第一时钟等级信息以及该第二时钟等级信息确定该第一时钟设备为主时钟设 备前还包括:
104、 接收第三时钟设备发送的第三消息, 该第三消息中包含第三时钟等级信息, 该第 三时钟等级信息由第三时间等级信息、 第三频率等级信息以及该预设函数确定, 该第三时 间等级信息用于标识该第三时钟设备的时间精度, 该第三频率等级信息用于标识该第三时 钟设备的频率精度; 该第一时间等级信息、 该第二时间等级信息以及该第三时间等级信息 中, 至少有一个时间等级信息不同于其他两个时间等级信息; 该第一频率等级信息、 该第 二频率等级信息以及该第三频率等级信息中, 至少有一个频率等级信息不同于其他两个频 率等级信息;
该根据该第一时钟等级信息以及该第二时钟等级信息确定该第一时钟设备为主时钟设 备具体包括-
105、 根据该第一时钟等级信息获取该第一时间等级信息以及第一频率等级信息。 106、 根据该第二时钟等级信息获取该第二时间等级信息以及第二频率等级信息。
107、 根据该第三时钟等级信息获取该第三时间等级信息以及第三频率等级信息。 108、 确定该第一时钟设备为主时钟设备, 该第一时钟设备为第一集合与第二集合的交 集的一个元素; 该第一集合包含该第一时钟设备、 该第二时钟设备以及该第三时钟设备中 时间精度最低的时钟设备以外的所有的时钟设备; 该第二集合包含该第一时钟设备、 该第 二时钟设备以及该第三时钟设备中频率精度最低的时钟设备以外的所有的时钟设备。
105具体实现时, 可以是:
第一时钟设备以及接收第一消息的从时钟设备都可以访问对应表。 对应表可以存储多 个表项。 对应表中的一个表项包含了第一时间等级信息、 第一频率等级信息以及第一时钟 等级信息。 第一时钟设备在对应表中查找到包含第一时间等级信息以及第一频率等级信息 的表项。 第一时钟设备根据该表项获得第一时钟等级信息。 第一时钟设备将第一时钟等级 信息封装到第一消息, 并将第一消息发送至从时钟设备。 从时钟设备接收到第一消息后, 从第一消息中解析出第一时钟等级信息。 从时钟设备在对应表中查找到包含第一时钟等级 信息的表项。 从时钟设备根据该表项获得第一时间等级信息以及第一频率等级信息。
105具体实现时, 也可以是:
第一时钟等级信息中包含了第一时间等级信息以及第一频率等级信息。 例如, 第一时 间等级信息以及第一频率等级信息分别是表达式 A以及表达式 a。第一时钟等级信息为表达 式 Aa。
106具体实现时,请参考上文中关于根据该第一时钟等级信息获取该第一时间等级信息 以及第一频率等级信息的描述。
106具体实现时,请参考上文中关于根据该第一时钟等级信息获取该第一时间等级信息 以及第一频率等级信息的描述。
108具体实现时, 可以是:
确定第一集合以及第二集合。 取第一合集与第二集合的交集, 获得第三集合。 第三集 合至少包括一个元素。 从第三集合中选取第一时钟设备。
第一集合包含一个或者多个时钟设备。 具体实现时, 从时钟设备可以根据第一时间精 度信息、 第二时间精度信息以及第三时间精度信息确定第一集合中的元素。 第一时间精度 信息、 第二时间精度信息以及第三时间精度信息中至少有一个时间精度信息不同于其他两 个时间精度信息。 另外, 第一集合中排除了第一时钟设备、 第二时钟设备以及第三时钟设 备中时间精度最低的时钟设备。 因此, 第一集合只能包含第一时钟设备、 第二时钟设备以 及第三时钟设备中的一个时钟设备或者两个时钟设备。
第二集合包含一个或者多个时钟设备。 具体实现时, 请参考上文关于第一集合的描述。 本领域的普通技术人员可以理解, 第二集合中排除了第一时钟设备、 第二时钟设备以及第 三时钟设备中频率精度最低的时钟设备。 第二集合中也只能包含第一时钟设备、 第二时钟 设备以及第三时钟设备中的一个时钟设备或者两个时钟设备。
第三集合是第一集合以及第二集合的交集。 因此, 第三集合只能包含第一时钟设备、 第二时钟设备以及第三时钟设备中的一个时钟设备或者两个时钟设备。 另外, 第三集合中 不仅排除了第一时钟设备、 第二时钟设备以及第三时钟设备中时间精度最低的时钟设备, 也排除了第一时钟设备、 第二时钟设备以及第三时钟设备中频率精度最低的时钟设备。
从时钟设备确定的主时钟设备来自第三集合。 因此, 避免了选取到第一时钟设备、 第 二时钟设备以及第三时钟设备中时间精度最低的时钟设备。 同时, 也避免了选取到第一时 钟设备、 第二时钟设备以及第三时钟设备中频率精度最低的时钟设备。
可选的,
该第一时钟等级信息和该第二时钟等级信息承载在宣告报文的时钟等级字段上。
第一时钟等级信息可以承载在宣告 (Announce) 报文的时钟等级 (ClockClass) 字段。 1588协议第二版之后的版本可以对 Announce报文以及 ClockClass字段进行定义。
可选的,
该第三时钟等级信息承载在宣告报文的时钟等级字段上。
第三时钟等级信息具体实现时, 请参考上文关于第一时钟等级信息以及第二时钟等级 信息的描述。
可选的,
确定该第一时钟设备为主时钟设备之后包括:
109、 与该主时钟设备进行时间同步以及频率同步。
现有技术中, 根据 1588协议第二版确定主时钟, 并进行时间同步。 根据 G.781协议确 定主时钟, 并进行频率同步。 根据 1588协议第二版确定的主时钟以及根据 G.781协议确定 的主时钟有可能不是同一个主时钟。 因此, 现有技术中, 进行时间同步时, 主时钟设备工 作在时间平面。 进行频率同步时, 主时钟设备工作在频率平面。 当进行时间同步的主时钟 设备和进行频率同步的主时钟设备不是同一设备时, 时间平面和频率平面没有处于同一设 备。 从时钟设备与两台主时钟设备进行同步, 同步的复杂度较高。
因此, 本实施例提供的方法确保了确定进行时间同步的主时钟设备以及进行频率同步 的主时钟设备是同一个主时钟设备。 降低了从时钟设备进行时间同步以及频率同步的复杂 度。
实施例二
本发明实施例提供了一种发送消息的方法。该方法的执行主体可以是主时钟设备。 图 2 是本发明实施例提供的一种发送消息的方法的流程图。 该方法包括:
201、时钟设备发送消息, 该消息包含时钟等级信息, 该时钟等级信息由时间等级信息、 频率等级信息和预设函数确定, 该时间等级信息用于标识该时钟设备的时间精度, 该频率 等级信息用于标识该时钟设备的频率精度。
关于时钟等级信息, 请参见实施例一中的 101。
关于时间等级信息、 频率等级信息和预设函数, 请参见实施例一中的 101。
可见, 通过本实施例提供的方法, 时钟设备发送的消息中包含了时钟等级信息。 时钟 等级信息是时间等级信息以及频率等级信息的函数。 因此, 时钟等级信息既反映了时钟设 备的时间精度, 也反映了时钟设备的频率精度。 因此, 本实施例提供的方法可以提供比较 全面地反映时钟设备的精度的时钟等级信息, 以便于接收该时钟设备的网络设备根据比较 全面地反映时钟设备的精度的时钟等级信息选择主时钟设备。
可选的,
该时钟等级信息承载在宣告报文的时钟等级字段上。
具体实现时, 请参见实施例一中关于第一时钟等级信息可以承载在宣告报文的时钟等 级字段的描述。
可选的,
该时钟设备为用于与从时钟设备进行时间同步以及频率同步的主时钟设备。
具体实现时, 请参见实施例一中的 109。
可见, 本实施例提供的方法确保了从时钟设备确定进行时间同步的主时钟设备以及进 行频率同步的主时钟设备是同一个主时钟设备。 降低了从时钟设备进行时间同步以及频率 同步的复杂度。
实施例三
本发明实施例提供了一种接收消息的方法。该方法的执行主体可以是从时钟设备。 图 3 是本发明实施例提供的一种接收消息的方法的流程图。 该方法包括:
301、 接收时钟设备发送的消息, 该消息包含时钟等级信息, 该时钟等级信息由时间等 级信息、 频率等级信息和预设函数确定, 该时间等级信息用于标识该时钟设备的时间精度, 该频率等级信息用于标识该时钟设备的频率精度。
关于时钟等级信息, 请参见实施例一中的 101。
关于时间等级信息、 频率等级信息和预设函数, 请参见实施例一中的 101。
可见, 通过本实施例提供的方法, 接收到的消息中包含了时钟等级信息。 时钟等级信 息是时间等级信息以及频率等级信息的函数。 因此, 时钟等级信息既反映了时钟设备的时 间精度, 也反映了时钟设备的频率精度。 因此, 本实施例提供的方法可以确保接收到的消 息中包含了比较全面地反映时钟设备的精度的时钟等级信息, 以便于接收消息的设备根据 比较全面地反映时钟设备的精度的时钟等级信息选择主时钟设备。
可选的,
该时钟等级信息承载在宣告报文的时钟等级字段上。
具体实现时, 请参见实施例一中关于第一时钟等级信息可以承载在宣告报文的时钟等 级字段的描述。
可选的,
本实施例提供的方法在该接收时钟设备发送的消息之后, 还可以包括,
确定该时钟设备为主时钟设备, 与该主时钟设备进行时间同步以及频率同步。
具体实现时, 请参见实施例一中的 109。
可见, 本实施例提供的方法确保了接收消息的设备与时钟设备进行同步时, 接收消息 的设备确定的进行时间同步的主时钟设备以及进行频率同步的主时钟设备是同一个主时钟 设备。 降低了接收消息的设备进行时间同步以及频率同步的复杂度。
实施例四
本发明实施例提供了一种时钟设备。 该时钟设备可以执行实施例提供的方法。 该时钟 设备可以是从时钟设备。 图 4 是本发明实施例提供的一种时钟设备的结构示意图。 该设备 包括接收器 401以及确定单元 402。
该接收器 401 用于接收第一时钟设备发送的第一消息, 该第一消息中包含第一时钟等 级信息, 该第一时钟等级信息由第一时间等级信息、 第一频率等级信息以及预设函数确定, 该第一时间等级信息用于标识该第一时钟设备的时间精度, 该第一频率等级信息用于标识 该第一时钟设备的频率精度。
接收器 401具体实现时, 可以参考实施例一中的 101。
该接收器 401 还用于接收第二时钟设备发送的第二消息, 该第二消息中包含第二时钟 等级信息, 该第二时钟等级信息由第二时间等级信息、 第二频率等级信息以及该预设函数 确定, 该第二时间等级信息用于标识该第二时钟设备的时间精度, 该第二频率等级信息用 于标识该第二时钟设备的频率精度。
接收器 401具体实现时, 可以参考实施例一中的 102。
该确定单元 402用于根据该第一时钟等级信息以及该第二时钟等级信息确定该第一时 钟设备为主时钟设备。
确定单元 402具体实现时, 可以参考实施例一中的 103。 可见, 通过本实施例提供的时钟设备, 时钟设备接收的消息中包含了时钟等级信息。 时钟等级信息是时间等级信息以及频率等级信息的函数。 因此, 时钟等级信息既反映了备 选主时钟设备的时间精度, 也反映了备选主时钟设备的频率精度。 因此, 本实施例提供的 设备可以实现根据比较全面地反映备选主时钟设备的精度的时钟等级信息选择主时钟设 备。
可选的,
该接收器 401 还用于接收第三时钟设备发送的第三消息, 该第三消息中包含第三时钟 等级信息, 该第三时钟等级信息由第三时间等级信息、 第三频率等级信息以及该预设函数 确定, 该第三时间等级信息用于标识该第三时钟设备的时间精度, 该第三频率等级信息用 于标识该第三时钟设备的频率精度; 该第一时间等级信息、 该第二时间等级信息以及该第 三时间等级信息中, 至少有一个时间等级信息不同于其他两个时间等级信息; 该第一频率 等级信息、 该第二频率等级信息以及该第三频率等级信息中, 至少有一个频率等级信息不 同于其他两个频率等级信息。
接收器 401具体实现时, 可以参考实施例一中的 104。
该确定单元 402具体包括获取子单元 403以及确定子单元 404。
该获取子单元 403 用于根据该第一时钟等级信息获取该第一时间等级信息以及第一频 率等级信息。
具体实现时, 请参见实施例一中的 105。
该获取子单元 403 还用于根据该第二时钟等级信息获取该第二时间等级信息以及第二 频率等级信息。
具体实现时, 请参见实施例一中的 106。
该获取子单元 403 还用于根据该第三时钟等级信息获取该第三时间等级信息以及第三 频率等级信息。
具体实现时, 请参见实施例一中的 107。
该确定子单元 404用于确定第一时钟设备为主时钟设备, 该第一时钟设备为第一集合 与第二集合的交集的一个元素; 该第一集合包含第一时钟设备、 第二时钟设备以及第三时 钟设备中时间精度最低的时钟设备以外的所有的时钟设备; 该第二集合包含第一时钟设备、 第二时钟设备以及第三时钟设备中频率精度最低的时钟设备以外的所有的时钟设备。
确定子单元 404具体实现时, 请参见实施例一中的 108。
可见, 本实施例提供的时钟设备确定的主时钟设备来自第三集合。 因此, 避免了选取 到第一时钟设备、 第二时钟设备以及第三时钟设备中时间精度最低的时钟设备。 同时, 也 避免了选取到第一时钟设备、 第二时钟设备以及第三时钟设备中频率精度最低的时钟设备。 可选的,
该时钟设备还包括- 同步单元 405, 用于与该主时钟设备进行时间同步以及频率同步。
同步单元 405具体实现时, 请参见实施例一中的 109。
可见, 本实施例提供的时钟设备确保了确定进行时间同步的主时钟设备以及进行频率 同步的主时钟设备是同一个主时钟设备。 降低了从时钟设备进行时间同步以及频率同步的 复杂度。
实施例五
本发明实施例提供了一种时钟设备。 该时钟设备可以通过实施例二提供的方法实现。 图 5 是本发明实施例提供的一种时钟设备的结构示意图。 该时钟设备包括- 发送器 501,
该发送器 501 用于发送消息, 该消息包含时钟等级信息, 该时钟等级信息由时间等级 信息、 频率等级信息和预设函数确定, 该时间等级信息用于标识该时钟设备的时间精度, 该频率等级信息用于标识该时钟设备的频率精度。
发送器 501具体实现时, 请参见实施例二中的 201。
可见, 通过本实施例提供的时钟设备, 该时钟设备发送的消息中包含了时钟等级信息。 时钟等级信息是时间等级信息以及频率等级信息的函数。 时钟等级信息既反映了时钟设备 的时间精度, 也反映了时钟设备的频率精度。 因此, 本实施例提供的方法可以发送比较全 面地反映时钟设备的精度的时钟等级信息, 以便于接收该时钟设备的网络设备根据时钟等 级信息选择主时钟设备。
可选的,
该时钟等级信息承载在宣告报文的时钟等级字段上。
具体实现时, 请参见实施例一中关于第一时钟等级信息可以承载在宣告报文的时钟等 级字段的描述。
可选的,
该时钟设备为用于与从时钟设备进行时间同步以及频率同步的主时钟设备。
具体实现时, 请参见实施例一中的 109。
可见, 本实施例提供的时钟设备确保了进行时间同步的主时钟设备以及进行频率同步 的主时钟设备是同一个主时钟设备。 降低了进行时间同步以及频率同步的复杂度。
实施例六 本发明实施例提供了一种接收设备。 该接收设备可以通过实施例三提供的方法实现。 图 6 是本发明实施例提供的一种接收设备的结构示意图。 该设备包括:
接收器 601,
该接收器 601 用于接收时钟设备发送的消息, 该消息包含时钟等级信息, 该时钟等级 信息由时间等级信息、 频率等级信息和预设函数确定, 该时间等级信息用于标识该时钟设 备的时间精度, 该频率等级信息用于标识该时钟设备的频率精度。
接收器 601具体实现时, 请参见实施例三中的 301。
可见, 通过本实施例提供的接收设备, 接收设备接收到的消息中包含了时钟等级信息。 时钟等级信息是时间等级信息以及频率等级信息的函数。 时钟等级信息既反映了时钟设备 的时间精度, 也反映了时钟设备的频率精度。 因此, 本实施例提供的方法可以确保接收设 备接收到的消息中包含了比较全面地反映时钟设备的精度的时钟等级信息, 以便于接收设 备根据比较全面地反映时钟设备的精度的时钟等级信息选择主时钟设备。
可选的,
该时钟等级信息承载在宣告报文的时钟等级字段上。
具体实现时, 请参见实施例一中关于第一时钟等级信息可以承载在宣告报文的时钟等 级字段的描述。
可选的,
该接收设备还可以包括同步单元,
该同步单元用于确定该时钟设备为主时钟设备, 与该主时钟设备进行时间同步以及频 率同步。
具体实现时, 请参见实施例一中的 109。
可见, 本实施例提供的接收设备确保了接收设备进行同步时, 接收设备确定的进行时 间同步的主时钟设备以及进行频率同步的主时钟设备是同一个主时钟设备。 降低了接收设 备进行时间同步以及频率同步的复杂度。
实施例七
本发明实施例提供了一种时钟系统。 图 7 是本发明实施例提供的一种时钟系统的结构 示意图。 该时钟系统包括:
第一时钟设备 701、 第二时钟设备 702和从时钟设备 703 ;
该第一时钟设备 701包括第一发送器 704,
该第一发送器 704用于发送第一消息, 该第一消息中包含第一时钟等级信息, 该第一 时钟等级信息由第一时间等级信息、 第一频率等级信息以及预设函数确定, 该第一时间等 级信息用于标识该第一时钟设备的时间精度, 该第一频率等级信息用于标识该第一时钟设 备的频率精度;
该第二时钟设备 702包括第二发送器 705,
该第二发送器 705 用于发送第二消息, 该第二消息中包含第二时钟等级信息, 该第二 时钟等级信息由第二时间等级信息、 第二频率等级信息以及该预设函数确定, 该第二时间 等级信息用于标识该第二时钟设备的时间精度, 该第二频率等级信息用于标识该第二时钟 设备的频率精度;
该从时钟设备 703包括接收器 706以及确定单元 707,
该接收器 706用于接收该第一时钟设备发送的该第一消息;
该接收器 706还用于接收该第二时钟设备发送的该第二消息;
该确定单元 707用于根据该第一时钟等级信息以及该第二时钟等级信息确定该第一时 钟设备为主时钟设备。
第一时钟设备 701具体实现时, 请参见实施例五提供的时钟设备。
第二时钟设备 702具体实现时, 请参见实施例五提供的时钟设备。
从时钟设备 703具体实现时, 请参见实施例四提供的时钟设备。
可见, 通过本实施例提供的时钟系统, 第一时钟设备以及第二时钟设备发送的消息中 包含了时钟等级信息。 时钟等级信息是时间等级信息以及频率等级信息的函数。 时钟等级 信息既反映了时钟设备的时间精度, 也反映了时钟设备的频率精度。 因此, 本实施例提供 的系统可以提供比较全面地反映时钟设备的精度的时钟等级信息, 从时钟设备可以根据时 钟等级信息选择主时钟设备。
可选的,
该时钟系统还包括第三时钟设备,
该第三时钟设备包括第三发送器,
该第三发送器用于发送第三消息, 该第三消息中包含第三时钟等级信息, 该第三时钟 等级信息由第三时间等级信息、 第三频率等级信息以及该预设函数确定, 该第三时间等级 信息用于标识该第三时钟设备的时间精度, 该第三频率等级信息用于标识该第三时钟设备 的频率精度; 该第一时间等级信息、 该第二时间等级信息以及该第三时间等级信息中至少 有一个时间等级信息不同于其他两个时间等级信息; 该第一频率等级信息、 该第二频率等 级信息以及该第三频率等级信息中至少有一个频率等级信息不同于其他两个频率等级信 息;
该接收器 706还用于接收该第三时钟设备发送的该第三消息; 该确定单元 707具体包括获取子单元以及确定子单元,
该获取子单元用于根据该第一时钟等级信息获取该第一时间等级信息以及该第一频率 等级信息;
该获取子单元还用于根据该第二时钟等级信息获取该第二时间等级信息以及该第二频 率等级信息;
该获取子单元还用于根据该第三时钟等级信息获取该第三时间等级信息以及该第三频 率等级信息;
该确定子单元用于确定该第一时钟设备为主时钟设备, 该第一时钟设备为第一集合与 第二集合的交集的一个元素; 该第一集合包含该第一时钟设备、 该第二时钟设备以及该第 三时钟设备中时间精度最低的时钟设备以外的所有的时钟设备; 该第二集合包含该第一时 钟设备、 该第二时钟设备以及该第三时钟设备中频率精度最低的时钟设备以外的所有的时 钟设备。
第三时钟设备具体实现时, 请参见实施例五提供的时钟设备。
获取子单元具体实现时, 请参见实施例一中的 105、 106以及 107。
确定子单元具体实现时, 请参见实施例一中的 108。
可见, 本实施例提供的时钟系统中, 从时钟设备确定的主时钟设备来自第三集合。 因 此, 避免了选取到第一时钟设备、 第二时钟设备以及第三时钟设备中时间精度最低的时钟 设备。 同时, 也避免了选取到第一时钟设备、 第二时钟设备以及第三时钟设备中频率精度 最低的时钟设备。
可选的,
该第一时钟等级信息承载在宣告报文的时钟等级字段上。
具体实现时, 请参见实施例一中关于第一时钟等级信息可以承载在宣告报文的时钟等 级字段的描述。
可选的,
该第二时钟等级信息承载在宣告报文的时钟等级字段上。
具体实现时, 请参见实施例一中关于第一时钟等级信息可以承载在宣告报文的时钟等 级字段的描述。
可选的,
该第三时钟等级信息承载在宣告报文的时钟等级字段上。
具体实现时, 请参见实施例一中关于第一时钟等级信息可以承载在宣告报文的时钟等 级字段的描述。 可选的,
该从时钟设备 703还可以包括同步单元,
该同步单元用于与该第一时钟设备进行时间同步以及频率同步。
具体实现时, 请参见实施例一中的 109。
可见, 本实施例提供的时钟系统确保了从时钟设备与主时钟设备进行同步时, 从时钟 设备确定的进行时间同步的主时钟设备以及进行频率同步的主时钟设备是同一个主时钟设 备。 降低了从时钟设备进行时间同步以及频率同步的复杂度。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤可以通过程序 指令相关的硬件来完成, 前述程序可以存储于一计算机可读取存储介质中, 该程序在执行 时, 执行包括上述方法实施例的步骤; 而前述的存储介质包括: ROM、 RAM, 磁碟或者光 盘等各种可以存储程序代码的介质。
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其限制; 尽管参 照前述实施例对本发明进行了详细的说明, 本领域的普通技术人员应当理解: 其依然可以 对前述各实施例所记载的技术方案进行修改, 或者对其中部分技术特征进行等同替换; 而 这些修改或者替换, 并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范 围。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完 成, 也可以通过程序来指令相关的硬件完成, 所述的程序可以存储于一种计算机可读存储 介质中, 上述提到的存储介质可以是只读存储器, 磁盘或光盘等。 以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的精神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1、 一种确定主时钟设备的方法, 其特征在于, 包括:
接收第一时钟设备发送的第一消息, 所述第一消息中包含第一时钟等级信息, 所述第一 时钟等级信息由第一时间等级信息、 第一频率等级信息以及预设函数确定, 所述第一时间等 级信息用于标识所述第一时钟设备的时间精度, 所述第一频率等级信息用于标识所述第一时 钟设备的频率精度;
接收第二时钟设备发送的第二消息, 所述第二消息中包含第二时钟等级信息, 所述第二 时钟等级信息由第二时间等级信息、 第二频率等级信息以及所述预设函数确定, 所述第二时 间等级信息用于标识所述第二时钟设备的时间精度, 所述第二频率等级信息用于标识所述第 二时钟设备的频率精度;
根据所述第一时钟等级信息以及所述第二时钟等级信息确定所述第一时钟设备为主时钟 设备。
2、 根据权利要求 1所述的方法, 其特征在于,
所述根据所述第一时钟等级信息以及所述第二时钟等级信息确定所述第一时钟设备为主 时钟设备前还包括- 接收第三时钟设备发送的第三消息, 所述第三消息中包含第三时钟等级信息, 所述第三 时钟等级信息由第三时间等级信息、 第三频率等级信息以及所述预设函数确定, 所述第三时 间等级信息用于标识所述第三时钟设备的时间精度, 所述第三频率等级信息用于标识所述第 三时钟设备的频率精度; 所述第一时间等级信息、 所述第二时间等级信息以及所述第三时间 等级信息中, 至少有一个时间等级信息不同于其他两个时间等级信息; 所述第一频率等级信 息、 所述第二频率等级信息以及所述第三频率等级信息中, 至少有一个频率等级信息不同于 其他两个频率等级信息;
所述根据所述第一时钟等级信息以及所述第二时钟等级信息确定所述第一时钟设备为主 时钟设备具体包括:
根据所述第一时钟等级信息获取所述第一时间等级信息以及所述第一频率等级信息; 根据所述第二时钟等级信息获取所述第二时间等级信息以及所述第二频率等级信息; 根据所述第三时钟等级信息获取所述第三时间等级信息以及所述第三频率等级信息; 确定所述第一时钟设备为主时钟设备, 所述第一时钟设备为第一集合与第二集合的交集 的一个元素; 所述第一集合包含所述第一时钟设备、 所述第二时钟设备以及所述第三时钟设 备中时间精度最低的时钟设备以外的所有的时钟设备;所述第二集合包含所述第一时钟设备、 所述第二时钟设备以及所述第三时钟设备中频率精度最低的时钟设备以外的所有的时钟设 备。
3、 根据权利要求 1至 2中任一所述的方法, 其特征在于, 所述第一时钟等级信息和所述 第二时钟等级信息承载在宣告报文的时钟等级字段上。
4、 根据权利要求 1至 3中任一所述的方法, 其特征在于, 确定所述第一时钟设备为主时 钟设备之后包括:
与所述主时钟设备进行时间同步以及频率同步。
5、 一种发送消息的方法, 其特征在于, 包括:
时钟设备发送消息, 所述消息包含时钟等级信息, 所述时钟等级信息由时间等级信息、 频率等级信息和预设函数确定, 所述时间等级信息用于标识所述时钟设备的时间精度, 所述 频率等级信息用于标识所述时钟设备的频率精度。
6、 一种接收消息的方法, 其特征在于, 包括:
接收时钟设备发送的消息, 所述消息包含时钟等级信息, 所述时钟等级信息由时间等级 信息、频率等级信息和预设函数确定, 所述时间等级信息用于标识所述时钟设备的时间精度, 所述频率等级信息用于标识所述时钟设备的频率精度。
7、 一种时钟设备, 其特征在于, 包括接收器以及确定单元:
所述接收器用于接收第一时钟设备发送的第一消息, 所述第一消息中包含第一时钟等级 信息, 所述第一时钟等级信息由第一时间等级信息、 第一频率等级信息以及预设函数确定, 所述第一时间等级信息用于标识所述第一时钟设备的时间精度, 所述第一频率等级信息用于 标识所述第一时钟设备的频率精度;
所述接收器还用于接收第二时钟设备发送的第二消息, 所述第二消息中包含第二时钟等 级信息, 所述第二时钟等级信息由第二时间等级信息、 第二频率等级信息以及所述预设函数 确定, 所述第二时间等级信息用于标识所述第二时钟设备的时间精度, 所述第二频率等级信 息用于标识所述第二时钟设备的频率精度;
所述确定单元用于根据所述第一时钟等级信息以及所述第二时钟等级信息确定所述第一 时钟设备为主时钟设备。
8、 根据权利要求 7所述的时钟设备, 其特征在于, 所述接收器还用于接收第三时钟设备 发送的第三消息, 所述第三消息中包含第三时钟等级信息, 所述第三时钟等级信息由第三时 间等级信息、 第三频率等级信息以及所述预设函数确定, 所述第三时间等级信息用于标识所 述第三时钟设备的时间精度,所述第三频率等级信息用于标识所述第三时钟设备的频率精度; 所述第一时间等级信息、 所述第二时间等级信息以及所述第三时间等级信息中, 至少有一个 时间等级信息不同于其他两个时间等级信息; 所述第一频率等级信息、 所述第二频率等级信 息以及所述第三频率等级信息中, 至少有一个频率等级信息不同于其他两个频率等级信息; 所述确定单元具体包括获取子单元以及确定子单元,
所述获取子单元用于根据所述第一时钟等级信息获取所述第一时间等级信息以及第一频 率等级信息;
所述获取子单元还用于根据所述第二时钟等级信息获取所述第二时间等级信息以及第二 频率等级信息;
所述获取子单元还用于根据所述第三时钟等级信息获取所述第三时间等级信息以及第三 频率等级信息;
所述确定子单元用于确定第一时钟设备为主时钟设备, 所述第一时钟设备为第一集合与 第二集合的交集的一个元素; 所述第一集合包含第一时钟设备、 第二时钟设备以及第三时钟 设备中时间精度最低的时钟设备以外的所有的时钟设备; 所述第二集合包含第一时钟设备、 第二时钟设备以及第三时钟设备中频率精度最低的时钟设备以外的所有的时钟设备。
9、 根据权利要求 6或 7所述的时钟设备, 其特征在于, 所述时钟设备还包括: 同步单元, 用于与所述主时钟设备进行时间同步以及频率同步。
10、 一种时钟系统, 其特征在于, 所述时钟系统包括:
第一时钟设备、 第二时钟设备和从时钟设备;
所述第一时钟设备包括第一发送器,
所述第一发送器用于发送第一消息, 所述第一消息中包含第一时钟等级信息, 所述第一 时钟等级信息由第一时间等级信息、 第一频率等级信息以及预设函数确定, 所述第一时间等 级信息用于标识所述第一时钟设备的时间精度, 所述第一频率等级信息用于标识所述第一时 钟设备的频率精度;
所述第二时钟设备包括第二发送器,
所述第二发送器用于发送第二消息, 所述第二消息中包含第二时钟等级信息, 所述第二 时钟等级信息由第二时间等级信息、 第二频率等级信息以及所述预设函数确定, 所述第二时 间等级信息用于标识所述第二时钟设备的时间精度, 所述第二频率等级信息用于标识所述第 二时钟设备的频率精度;
所述从时钟设备包括接收器以及确定单元, 所述接收器用于接收所述第一时钟设备发送的所述第一消息;
所述接收器还用于接收所述第二时钟设备发送的所述第二消息;
所述确定单元用于根据所述第一时钟等级信息以及所述第二时钟等级信息确定所述第一 时钟设备为主时钟设备。
11、根据权利要求 10所述的时钟系统,其特征在于,所述时钟系统还包括第三时钟设备, 所述第三时钟设备包括第三发送器,
所述第三发送器用于发送第三消息, 所述第三消息中包含第三时钟等级信息, 所述第三 时钟等级信息由第三时间等级信息、 第三频率等级信息以及所述预设函数确定, 所述第三时 间等级信息用于标识所述第三时钟设备的时间精度, 所述第三频率等级信息用于标识所述第 三时钟设备的频率精度; 所述第一时间等级信息、 所述第二时间等级信息以及所述第三时间 等级信息中至少有一个时间等级信息不同于其他两个时间等级信息;所述第一频率等级信息、 所述第二频率等级信息以及所述第三频率等级信息中至少有一个频率等级信息不同于其他两 个频率等级信息;
所述接收器还用于接收所述第三时钟设备发送的所述第三消息;
所述确定单元具体包括获取子单元以及确定子单元,
所述获取子单元用于根据所述第一时钟等级信息获取所述第一时间等级信息以及所述第 一频率等级信息;
所述获取子单元还用于根据所述第二时钟等级信息获取所述第二时间等级信息以及所述 第二频率等级信息;
所述获取子单元还用于根据所述第三时钟等级信息获取所述第三时间等级信息以及所述 第三频率等级信息;
所述确定子单元用于确定所述第一时钟设备为主时钟设备, 所述第一时钟设备为第一集 合与第二集合的交集的一个元素; 所述第一集合包含所述第一时钟设备、 所述第二时钟设备 以及所述第三时钟设备中时间精度最低的时钟设备以外的所有的时钟设备; 所述第二集合包 含所述第一时钟设备、 所述第二时钟设备以及所述第三时钟设备中频率精度最低的时钟设备 以外的所有的时钟设备。
12、 一种时钟设备, 其特征在于, 所述时钟设备包括发送器,
所述发送器用于发送消息, 所述消息包含时钟等级信息, 所述时钟等级信息由时间等级 信息、频率等级信息和预设函数确定, 所述时间等级信息用于标识所述时钟设备的时间精度, 所述频率等级信息用于标识所述时钟设备的频率精度。
13、 一种接收设备, 其特征在于, 所述接收设备包括接收器,
所述接收器用于接收时钟设备发送的消息, 所述消息包含时钟等级信息, 所述时钟等级 信息由时间等级信息、 频率等级信息和预设函数确定, 所述时间等级信息用于标识所述时钟 设备的时间精度, 所述频率等级信息用于标识所述第一时钟设备的频率精度。
PCT/CN2011/083774 2011-12-09 2011-12-09 确定主时钟设备的方法、设备、其他方法、设备与系统 WO2013082812A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2011/083774 WO2013082812A1 (zh) 2011-12-09 2011-12-09 确定主时钟设备的方法、设备、其他方法、设备与系统
CN201180003581.9A CN103250371B (zh) 2011-12-09 确定主时钟设备的方法、设备、其他方法、设备与系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/083774 WO2013082812A1 (zh) 2011-12-09 2011-12-09 确定主时钟设备的方法、设备、其他方法、设备与系统

Publications (1)

Publication Number Publication Date
WO2013082812A1 true WO2013082812A1 (zh) 2013-06-13

Family

ID=48573519

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/083774 WO2013082812A1 (zh) 2011-12-09 2011-12-09 确定主时钟设备的方法、设备、其他方法、设备与系统

Country Status (1)

Country Link
WO (1) WO2013082812A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105472725A (zh) * 2016-02-06 2016-04-06 北京佰才邦技术有限公司 基站同步方法及装置
CN107046449A (zh) * 2016-02-06 2017-08-15 华为技术有限公司 用于时间同步的方法和时钟
CN107437971A (zh) * 2016-05-27 2017-12-05 中国移动通信有限公司研究院 同步状态信息的处理方法及装置
CN107566069A (zh) * 2016-06-30 2018-01-09 中兴通讯股份有限公司 一种宣告报文的处理方法、时钟源的获取方法及传输设备
KR101822909B1 (ko) * 2015-03-26 2018-01-29 주식회사 만도 이미지 내 타원형 구조들을 감지하기 위한 방법 및 장치

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101932092A (zh) * 2009-06-23 2010-12-29 中国移动通信集团公司 实现宏基站时钟同步的方法、系统及宏基站设备
CN102036361A (zh) * 2009-09-25 2011-04-27 华为技术有限公司 时钟源选择的处理方法、装置和系统
EP2333993A1 (en) * 2009-12-09 2011-06-15 Alcatel Lucent Automatic management of timestamp-based synchronisation protocols
CN102148652A (zh) * 2011-02-17 2011-08-10 上海奇微通讯技术有限公司 一种测量网络时钟同步的系统和方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101932092A (zh) * 2009-06-23 2010-12-29 中国移动通信集团公司 实现宏基站时钟同步的方法、系统及宏基站设备
CN102036361A (zh) * 2009-09-25 2011-04-27 华为技术有限公司 时钟源选择的处理方法、装置和系统
EP2333993A1 (en) * 2009-12-09 2011-06-15 Alcatel Lucent Automatic management of timestamp-based synchronisation protocols
CN102148652A (zh) * 2011-02-17 2011-08-10 上海奇微通讯技术有限公司 一种测量网络时钟同步的系统和方法

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101822909B1 (ko) * 2015-03-26 2018-01-29 주식회사 만도 이미지 내 타원형 구조들을 감지하기 위한 방법 및 장치
CN105472725A (zh) * 2016-02-06 2016-04-06 北京佰才邦技术有限公司 基站同步方法及装置
CN107046449A (zh) * 2016-02-06 2017-08-15 华为技术有限公司 用于时间同步的方法和时钟
CN107437971A (zh) * 2016-05-27 2017-12-05 中国移动通信有限公司研究院 同步状态信息的处理方法及装置
CN107566069A (zh) * 2016-06-30 2018-01-09 中兴通讯股份有限公司 一种宣告报文的处理方法、时钟源的获取方法及传输设备
CN107566069B (zh) * 2016-06-30 2022-03-29 中兴通讯股份有限公司 一种宣告报文的处理方法、时钟源的获取方法及传输设备

Also Published As

Publication number Publication date
CN103250371A (zh) 2013-08-14

Similar Documents

Publication Publication Date Title
US20120224457A1 (en) Server for grouping devices based on sounds collected and method therefore
EP3499987A1 (en) Positioning method and apparatus based on bluetooth (ble)
WO2013082812A1 (zh) 确定主时钟设备的方法、设备、其他方法、设备与系统
WO2018137413A1 (zh) 授时的方法、终端设备和网络设备
US10609633B2 (en) Method for triggering registrar protocol interaction, access point, and station
JP6040466B2 (ja) 通信制御方法、ユーザ機器、ネットワークサーバ、およびシステム
CN108809617B (zh) 一种时延补偿方法及终端
US10039135B2 (en) Communication access method and user equipment
US20140286323A1 (en) Wireless network system and connecting method thereof
CN109152005A (zh) 一种上行波束指示方法、ue、基站及存储介质
CN104052565A (zh) 一种时间同步方法和通信终端
US11201849B2 (en) Natural language connectivity
EP2905938A1 (en) Method for acquiring locating information, terminal and mobile broadband interface model (mbim) device
JP5853819B2 (ja) 制御プログラム、制御方法、記憶制御装置および情報処理システム
US10404487B2 (en) Communication method, computer readable storage medium and information processing device
CN108713334A (zh) 一种基站间的同步方法、设备
WO2015003588A1 (zh) 用户设备直连通信的资源分配方法和设备
WO2016115680A1 (zh) 一种信号发送方法及设备
US20170134383A1 (en) Method and device for sharing a resource
EP3554142B1 (en) Wireless fidelity (wifi) connection method and related product
JP2020198494A (ja) ゲートウェイ装置、通信方法及びプログラム
JP2013074338A (ja) タイムサーバ、端末、時刻同期システム、時刻同期方法、及びプログラム
US9853691B2 (en) Near field communication technology-based terminal application control method, apparatus, and system
CN105052207B (zh) 一种信息查询方法、设备及系统
CN116210292A (zh) 信息传输方法及相关设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11876906

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11876906

Country of ref document: EP

Kind code of ref document: A1