CN-122002499-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, 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 fifth message when determining that a wireless communication module of the sub-optical network device is switched from a time synchronization state to an out-of-synchronization or abnormal state, wherein the fifth message is used for indicating that the wireless communication module of the sub-optical network device is in the out-of-synchronization or abnormal state. Based on the scheme, when the wireless communication module of the sub optical network equipment is in an out-of-sync or abnormal state, an alarm message is sent to the main optical network equipment, so that the time synchronization can be carried out again later.
Inventors
- QIU YIGUI
- YAN LONG
- Shu Haisen
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 main optical network device and a sub-optical network device, the method performed by the sub-optical network device comprising: And when the wireless communication module of the sub-optical network equipment is determined to be switched from the time synchronization state to the out-of-synchronization or abnormal state, a fifth message is sent, wherein the fifth message is used for indicating that the wireless communication module of the sub-optical network equipment is in the out-of-synchronization or abnormal state.
- 2. The method according to claim 1, wherein the fifth message comprises a tenth field for indicating a second abnormal or out-of-sync time synchronization and/or an eleventh field for indicating a third abnormal or out-of-sync time synchronization, wherein the second time synchronization is 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 is 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.
- 3. The method of claim 2, wherein the fifth message further comprises at least one of a twelfth field, a thirteenth field, or a fourteenth field; the twelfth field is used for indicating wireless network frequency band information, the thirteenth field is used for indicating the identification of the main optical network device, and the fourteenth 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: 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 sending a second message, wherein the second message is used for indicating whether the first time synchronization is completed or not.
- 5. The method of claim 4, wherein the first message comprises a first field for indicating that the first message is a time synchronization notification message.
- 6. The method of claim 4 or 5, wherein the second message comprises a fifth field for indicating that the second message is a time synchronization status report message.
- 7. The method according to any of claims 4 to 6, wherein the second message comprises a sixth field for indicating whether the first time synchronization is complete.
- 8. The method according to any one of claims 4 to 7, 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.
- 9. The method according to any of claims 4 to 8, 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.
- 10. The method according to claim 9, wherein the method further comprises: The second time synchronization is performed, and/or, And performing the third time synchronization.
- 11. A method according to claim 2 or 3, wherein the tenth field has a length of 1 byte.
- 12. A method according to claim 2 or 3 or 11, wherein the length of the eleventh field is 1 byte.
- 13. A method according to claim 3, wherein the twelfth field is 1 byte in length, the thirteenth field is 2 bytes in length, and the fourteenth field is 2 bytes in length.
- 14. 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: And receiving a fifth message, wherein the fifth message is used for indicating that the wireless communication module of the sub-optical network equipment is in an out-of-sync or abnormal state.
- 15. The method according to claim 14, wherein the fifth message comprises a tenth field for indicating a second abnormal or out-of-sync time synchronization and/or an eleventh field for indicating a third abnormal or out-of-sync time synchronization, wherein the second time synchronization is a time synchronization between the optical communication module of the sub-optical network device and the main optical network device, and the third time synchronization is a time synchronization between the optical communication module of the sub-optical network device and the wireless communication module of the sub-optical network device.
- 16. The method of claim 15, wherein the fifth message further comprises at least one of a twelfth field, a thirteenth field, or a fourteenth field; the twelfth field is used for indicating wireless network frequency band information, the thirteenth field is used for indicating the identification of the main optical network device, and the fourteenth field is used for indicating the identification of the sub optical network device.
- 17. The method according to any one of claims 14 to 16, further comprising: Transmitting a first message, wherein the first message is used for indicating a wireless communication module in the sub-optical network equipment to enable first time synchronization; A second message is received, the second message indicating whether the first time synchronization is complete.
- 18. The method of claim 17, wherein the first message comprises a first field for indicating that the first message is a time synchronization notification message.
- 19. The method according to claim 17 or 18, wherein the second message comprises a fifth field for indicating that the second message is a time synchronization status report message.
- 20. The method according to any of claims 17 to 19, wherein the second message comprises a sixth field for indicating whether the first time synchronization is complete.
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 a sub-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 sub-optical network device. The method comprises the steps of sending a fifth message when the wireless communication module of the sub-optical network equipment is determined to be switched from a time synchronization state to an out-of-synchronization or abnormal state, wherein the fifth message is used for indicating that the wireless communication module of the sub-optical network equipment is in the out-of-synchronization or abnormal state. Based on the scheme, when the wireless communication module of the sub optical network equipment is in an out-of-sync or abnormal state, an alarm message is sent to the main optical network equipment, so that the time synchronization can be carried out again later. In some implementations, the fifth message includes a tenth field and/or an eleventh field, where the tenth field is used to indicate that the second time synchronization is abnormal or out of synchronization, and the eleventh field is used to indicate that the third time synchronization is abnormal or out of synchronization, where the second time synchronization is time synchronization between the optical communication module of the sub-optical network device and the main optical network device, and the third time synchronization is time synchronization between the optical communication module of the sub-optical network device and the wireless communication module of the sub-optical network device. In some implementations, the fifth message further includes at least one of a twelfth field for indicating wireless network band information, a thirteenth field for indicating an identity of the primary optical network device, or a fourteenth field for indicating an identity of the sub-optical network device. In some implementations, the method further includes receiving a first message indicating that wireless communication modules in the sub-optical network devices enable first time synchronization, and sending a second message indicating whether the first time synchronization is complete. 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. In some implementatio