CN-122002496-A - Time synchronization method and device
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, 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, the first message comprises a first field, the first field is used for indicating that the first message is a time synchronization notification message, receiving a second message, the second message is used for indicating whether the first time synchronization is completed, the second message comprises a fifth field and/or a sixth field, the fifth field is used for indicating that the second message is a time synchronization state report message, and the sixth field is used for indicating whether the first time synchronization is completed. By completing time synchronization between the wireless modules of the main optical network device and the sub optical network device, the stability of the WLAN network and the transmission efficiency of operation data are improved, and the problem of conflict in wireless channels is reduced.
Inventors
- ZHAO ZHONGLIANG
- HU YONG
- ZHANG YU
Assignees
- 华为技术有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241104
Claims (20)
- 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, wherein the first message is used for indicating a wireless communication module in sub-optical network equipment to enable first time synchronization, and the first message comprises a first field, and the first field is used for indicating the first message to be a time synchronization notification message; A second message is received, wherein the second message is used for indicating whether the first time synchronization is completed, the second message comprises a fifth field and/or a sixth field, the fifth field is used for indicating that the second message is a time synchronization status report message, and the sixth field is used for indicating whether the first time synchronization is completed.
- 2. The method of claim 1, 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.
- 3. The method of claim 1 or 2, 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.
- 4. A method according to any one of claims 1 to 3, 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.
- 5. The method according to any of claims 1 to 4, 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.
- 6. The method according to any one of claims 1 to 5, wherein the length of the first field is 2 bytes.
- 7. The method of claim 2, 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.
- 8. The method according to any one of claims 1 to 7, wherein the length of the fifth field is 2 bytes.
- 9. The method according to any one of claims 1 to 8, wherein the length of the sixth field is 1 byte.
- 10. A method according to claim 3, 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.
- 11. A method of time synchronization applied to a fiber-to-room FTTR network, the FTTR network comprising a main optical network device and a sub-optical network device, the method performed by the sub-optical network device comprising: receiving a first message, wherein the first message is used for indicating a wireless communication module in sub-optical network equipment to enable first time synchronization, and the first message comprises a first field, and the first field is used for indicating the first message to be a time synchronization notification message; And sending a second message, wherein the second message is used for indicating whether the first time synchronization is completed, the second message comprises a fifth field and/or a sixth field, the fifth field is used for indicating that the second message is a time synchronization status report message, and the sixth field is used for indicating whether the first time synchronization is completed.
- 12. The method of claim 11, 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.
- 13. The method according to claim 11 or 12, 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.
- 14. The method according to any one of claims 11 to 13, further comprising: And sending a third message, wherein the third message is used for indicating that the wireless communication module of the sub-optical network device is available.
- 15. The method according to any of claims 11 to 14, 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.
- 16. The method of claim 15, wherein the method further comprises: The second time synchronization is performed, and/or, And performing the third time synchronization.
- 17. The method according to any of claims 11 to 16, wherein the first field is 2 bytes in length.
- 18. The method of claim 12, 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.
- 19. The method according to any of claims 11 to 18, wherein the length of the fifth field is 2 bytes.
- 20. The method according to any one of claims 11 to 19, wherein the length of the sixth field is 1 byte.
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, wherein the first message is used for indicating a wireless communication module in sub-optical network equipment to enable first time synchronization, the first message comprises a first field, the first field is used for indicating that the first message is a time synchronization notification message, receiving a second message, the second message is used for indicating whether the first time synchronization is completed, the second message comprises a fifth field and/or a sixth field, the fifth field is used for indicating that the second message is a time synchronization status report message, and the sixth field is used for indicating whether the first time synchronization is completed. Based on the scheme, time synchronization between the wireless modules of the main optical network equipment and the sub optical network equipment can be completed, so that centralized scheduling resource control is performed on the sub optical network equipment, and the problem of conflict in wireless channels is reduced. 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 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 some implementations, the method further includes receiving a third message indicating that a wireless communication module of the sub-optical network device is available. In some implementations, the first time synchronization includes 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, and 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. In some implementations, the first field is 2 bytes in length. In some implementations, the second field is 1 byte in length, the third field is 2 bytes in length, and the fourth field is 2 bytes in len