Search

CN-122002498-A - Time synchronization method and device

CN122002498ACN 122002498 ACN122002498 ACN 122002498ACN-122002498-A

Abstract

The application provides a time synchronization method and a time synchronization device. The method is applied to an optical fiber-to-room FTTR network, wherein the FTTR network comprises a main optical network device and a sub-optical network device, and the method comprises the steps of sending a first message, wherein the first message is used for indicating that a wireless communication module in the sub-optical network device enables first time synchronization, and receiving a second message, wherein the second message is used for indicating whether the first time synchronization is completed. The application improves the stability of the WLAN network and the transmission efficiency of running data and reduces the conflict problem in a wireless channel by completing the time synchronization between the wireless modules of the main optical network equipment and the sub optical network equipment.

Inventors

  • ZHENG LUBIN
  • CHEN MING
  • TAN JIEZHEN

Assignees

  • 华为技术有限公司

Dates

Publication Date
20260508
Application Date
20241104

Claims (17)

  1. 1. A method of time synchronization applied to a fiber-to-room FTTR network, the FTTR network comprising a primary optical network device and a secondary optical network device, the method performed by the primary optical network device comprising: Transmitting a first message when a first condition is met, wherein the first message is used for indicating a wireless communication module in the sub-optical network equipment to enable first time synchronization; wherein the first condition comprises at least one of the following conditions: The sub-optical network equipment is on line, receives the alarm message that the wireless communication module is out of synchronization or abnormal, detects that the service processed by the wireless communication module needs to be time-synchronized, or detects that the PON protocol mode of the passive optical network is switched; A second message is received, the second message indicating whether the first time synchronization is complete.
  2. 2. The method of claim 1, wherein the first message comprises a first field for indicating that the first message is a time synchronization notification message.
  3. 3. The method of claim 2, wherein the first message further comprises at least one of a second field, a third field, or a fourth field; The second field is used for indicating wireless network frequency band information, the third field is used for indicating the identification of the main optical network equipment, and the fourth field is used for indicating the identification of the sub optical network equipment.
  4. 4. A method according to any one of claims 1 to 3, wherein the second message comprises a fifth field for indicating that the second message is a time synchronization status report message.
  5. 5. The method according to any of claims 1 to 4, wherein the second message comprises a sixth field for indicating whether the first time synchronization is complete.
  6. 6. The method of claim 4 or 5, wherein the second message further comprises at least one of a seventh field, an eighth field, or a ninth field; The seventh field is used for indicating wireless network frequency band information, the eighth field is used for indicating the identification of the main optical network device, and the ninth field is used for indicating the identification of the sub optical network device.
  7. 7. The method according to any one of claims 1 to 6, further comprising: and receiving a third message, wherein the third message is used for indicating that a wireless communication module of the sub-optical network device is available.
  8. 8. The method according to any of claims 1 to 7, wherein the first time synchronization comprises a second time synchronization and/or a third time synchronization, the second time synchronization being a time synchronization between an optical communication module of the sub-optical network device and the main optical network device, the third time synchronization being a time synchronization between an optical communication module of the sub-optical network device and a wireless communication module of the sub-optical network device.
  9. 9. A method according to claim 2 or 3, wherein the first field is 2 bytes in length.
  10. 10. A method according to claim 3, wherein the second field is 1 byte in length, the third field is 2 bytes in length, and the fourth field is 2 bytes in length.
  11. 11. The method of claim 4, wherein the length of the fifth field is 2 bytes.
  12. 12. The method of claim 5, wherein the sixth field has a length of 1 byte.
  13. 13. The method of claim 6, wherein the seventh field is 1 byte in length, the eighth field is 2 bytes in length, and the ninth field is 2 bytes in length.
  14. 14. A communication device comprising at least one processor for executing a computer program or instructions stored in a memory to cause a method as claimed in any one of claims 1 to 13 to be performed.
  15. 15. A chip comprising circuitry and a communication interface for receiving a signal or information to be processed and for transmitting the signal or information to be processed to the circuitry, the circuitry for processing the received signal or information such that the method of any of claims 1 to 13 is performed.
  16. 16. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program or instructions, which when run on a communication device, cause the communication device to perform the method of any of claims 1 to 13.
  17. 17. A computer program product, characterized in that the computer program product comprises means for performing the method according to any of claims 1 to 13.

Description

Time synchronization method and device Technical Field The present application relates to the field of communication technology, and more particularly, to a method and apparatus for time synchronization. Background With the rapid development of wireless communication technology, wireless local area network (wireless local area network, WLAN) technology has become an integral part of people's daily lives. The data transmission is realized through the wireless channel resources, and a flexible and convenient network access mode is provided for the user. However, since the wireless channel has only one collision domain, this results in an unavoidable collision problem when a plurality of network nodes attempt to access the network at the same time. Although the current carrier sense multiple access/collision avoidance (CARRIER SENSE multiple ACCESS WITH collision avoidance, CSMA/CA) mechanism reduces the occurrence of collisions to some extent, the problem of time synchronization between the main optical network device and the sub optical network devices is more serious as the number of user terminals (STAs) increases. If the time between the radio modules of the main optical network device and the sub optical network device is not completely synchronized, delay or failure of data transmission may be caused, which affects the stability and efficiency of the whole wireless network. Therefore, how to ensure time synchronization between the wireless modules of the main optical network device and the sub optical network device is one of the key factors for maintaining an efficient WLAN network. Disclosure of Invention The application provides a time synchronization method and a time synchronization device, which can complete time synchronization between wireless modules of main optical network equipment and sub optical network equipment, thereby carrying out centralized scheduling resource control on the sub optical network equipment and reducing the conflict problem in a wireless channel. In a first aspect, a method for time synchronization is provided, where the method may be performed by a main optical network device, or may be performed by a module (such as a circuit, a chip, or a system-on-chip) of the main optical network device, or may be implemented by a logic node, a logic module, or software that can implement all or part of the functions of the main optical network device. The method comprises the steps of sending a first message under the condition that a first condition is met, wherein the first message is used for indicating a wireless communication module in sub-optical network equipment to enable first time synchronization, the first condition comprises at least one of the following conditions that the sub-optical network equipment is on line, an alarm message that the wireless communication module is out of synchronization or abnormal is received, the fact that time synchronization is needed by a service processed by the wireless communication module or the fact that a Passive Optical Network (PON) protocol mode is switched is detected, and a second message is received, wherein the second message is used for indicating whether the first time synchronization is completed or not. Based on the scheme, when the triggering condition for starting the first time synchronization is met, the time synchronization between the wireless modules of the main optical network equipment and the sub optical network equipment can be completed, so that the centralized scheduling resource control is carried out on the sub optical network equipment, and the conflict problem in a wireless channel is reduced. In some implementations, the first message includes a first field for indicating that the first message is a time synchronization notification message. Based on the above scheme, the sub-optical network device may determine, through a first field in the first message, that the first message is a time synchronization notification message, thereby determining that the first time synchronization is enabled. In some implementations, the first message further includes at least one of a second field for indicating wireless network band information, a third field for indicating an identity of the primary optical network device, or a fourth field for indicating an identity of the sub-optical network device. In some implementations, the second message includes a fifth field for indicating that the second message is a time synchronization status report message. In some implementations, the second message includes a sixth field for indicating whether the first time synchronization is complete. In some implementations, the second message further includes at least one of a seventh field for indicating wireless network band information, an eighth field for indicating an identity of the primary optical network device, or a ninth field for indicating an identity of the sub-optical network device. In certain implementations, the meth