CN-122002412-A - Communication method and device
Abstract
A communication method and device relate to the technical field of communication and are used for reducing or avoiding longer service interruption time in the station roaming process. The method comprises the steps that a first SFU obtains an association request frame (or a re-association request frame) from a station and a secret key used for communication between the station and the station, the association request frame (re-association request frame) is used for associating the station with the first SFU, and the first SFU sends the association request frame (or the re-association request frame) and the secret key to a main optical network unit MFU. The MFU sends an association request frame (or reassociation request frame) and a key to the second SFU. In the online association stage, the SFU synchronizes the obtained association request frame and the key to the MFU, and the MFU resynchronizes to other SFUs, so that the association request frame and the key do not need to be obtained again in the roaming stage, the complexity of the roaming switching process is reduced, and the longer service interruption time in the station roaming process is reduced or avoided.
Inventors
- SUN YANBIN
- Chen Yunman
- DAI WENLEI
Assignees
- 华为技术有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20250219
- Priority Date
- 20241104
Claims (20)
- 1. A method of communication, comprising: a first sub-optical network unit SFU obtains an association request frame from a station and a key used for communication between the first sub-optical network unit SFU and the station, wherein the association request frame is used for associating the station with the first SFU; The first SFU sends the association request frame and the key to a master optical network unit MFU.
- 2. The method of claim 1, wherein the first SFU sending the association request frame and the key to a master optical network unit MFU comprises: the first SFU sends a virtual information report message to the MFU, wherein the virtual information report message comprises the association request frame and the secret key.
- 3. The method of claim 2, wherein the virtual information report message is carried in a Wi-Fi management control interface WMCI message.
- 4. A method according to any of claims 1-3, wherein the first SFU sending the key to the MFU comprises: And the first SFU sends key information to the MFU, wherein the key information is obtained by encrypting the key.
- 5. The method of claim 4, wherein the method further comprises: the first SFU receives an encryption function starting instruction sent by the MFU, and the encryption function starting instruction is used for indicating to start a link layer encryption function.
- 6. The method of any one of claims 1-5, wherein the method further comprises: the first SFU receives a first online indication message from an MFU, the first online indication message being used to indicate that the first SFU is associated with the STA.
- 7. The method of claim 6, wherein the first online indication message carries an identifier assigned by the MFU for the station, the identifier for uniquely identifying the station in a network.
- 8. A method of communication, comprising: The method comprises the steps that a second sub-network unit (SFU) receives an association request frame of a station from a main optical network unit (MFU) and a key for communication negotiated by the station and a first SFU, wherein the first SFU is an SFU currently associated with the station, and the association request frame is used for associating the station with the first SFU; and the second SFU creates a virtual user for the site according to the association request frame and the secret key.
- 9. The method of claim 8, wherein the second SFU receiving the association request frame and the key from the MFU comprises: The second SFU receives a virtual user creation request message from the MFU, the first virtual user creation request message including the association request frame and the key.
- 10. The method of claim 9, wherein the virtual user creation request message is carried in a Wi-Fi management control interface WMCI message.
- 11. The method of any one of claims 8-10, wherein the method further comprises: The second SFU receives a second online indication message from the MFU, the second online indication message being used to instruct the second SFU to close a communication channel with the STA.
- 12. The method of any of claims 8-11, wherein the first SFU and the second SFU have a same basic service set identifier, BSSID.
- 13. A communication device, characterized by being applied to a first sub-optical network unit SFU, comprising: a receiving module, configured to obtain an association request frame from a station, and a key used for communication with the station, where the association request frame is used for associating the station with the first SFU; and the sending module is used for sending the association request frame and the secret key to the main optical network unit (MFU).
- 14. The apparatus of claim 13, wherein the sending module is configured to send a virtual information report message to the MFU, the virtual information report message including the association request frame and the key.
- 15. The apparatus of claim 14, wherein the virtual information report message is carried in a Wi-Fi management control interface WMCI message.
- 16. The apparatus according to any of the claims 13-15, wherein the sending module is specifically configured to: and sending key information to the MFU, wherein the key information is obtained by encrypting the key.
- 17. The apparatus of claim 16, wherein the receiving module is further for: and receiving an encryption function starting instruction sent by the MFU, wherein the encryption function starting instruction is used for indicating to start a link layer encryption function.
- 18. The apparatus of any of claims 13-17, wherein the receiving module is further to: a first online indication message from an MFU is received, the first online indication message for indicating that the first SFU is associated with the STA.
- 19. The apparatus of claim 18, wherein the first online indication message carries an identifier assigned by the MFU for the station, the identifier for uniquely identifying the station in a network.
- 20. A communication device, characterized by being applied to a second sub-network unit SFU, comprising: A receiving module, configured to receive an association request frame of a station from a main optical network unit MFU, and a key negotiated by the station and a first SFU for communication, where the first SFU is an SFU currently associated with the station, and the association request frame is used for associating the station with the first SFU; And the processing module is used for creating a virtual user for the site according to the association request frame and the secret key.
Description
Communication method and device The present application claims priority from chinese patent application No. 202411563226.2, entitled "a communication method and apparatus" filed on 11/4/2024, the entire contents of which are incorporated herein by reference. Technical Field The present application relates to the field of communications technologies, and in particular, to a communications method and apparatus. Background When the channel quality between the terminal and the currently associated access point is poor in the process of moving in the optical fiber-to-room (Fiber To The Room, FTTR) networking, the terminal needs to roam to an access point with better channel quality so as to ensure the continuity of the service. At present, the terminal needs to re-execute each flow for establishing connection at a new access point, which is complicated in process and can cause longer service interruption time. Disclosure of Invention The embodiment of the application provides a communication method and a communication device, which are used for reducing or avoiding longer service interruption time in the station roaming process. In a first aspect, an embodiment of the present application provides a communication method, where a first sub-optical network unit SFU obtains an association request frame (or a reassociation request frame) from a station, where the association request frame is used for associating the station with the first SFU, and a key used for communication with the station, and the reassociation request frame is used for associating the station with the first SFU. The first SFU sends the association request frame (or reassociation request frame) and the key to the primary optical network unit MFU. Through the scheme, the SFU synchronizes the acquired association request frame and the key to the MFU in the online association stage, so that the association request frame and the key do not need to be acquired again in the roaming stage, the complexity of the roaming switching process is reduced, and the longer service interruption time in the station roaming process is reduced or avoided. In one possible design, the first SFU sending the association request frame and the key to a master optical network unit MFU includes the first SFU sending a virtual information report message to the MFU, the virtual information report message including the association request frame and the key. The virtual information reporting message may also be referred to as a terminal connection information reporting message, or may be referred to as another name, which is not limited in the embodiment of the present application. In one possible design, the virtual information report message is carried in a Wi-Fi management control interface WMCI message. In one possible design, the virtual information report message carries a content field in a Wi-Fi management control interface WMCI message. In one possible design, the first SFU sending the key to the MFU includes: And the first SFU sends key information to the MFU, wherein the key information is obtained by encrypting the key. In one possible design, the method further comprises: the first SFU receives an encryption function starting instruction sent by the MFU, and the encryption function starting instruction is used for indicating to start a link layer encryption function. In one possible design, the key information is encrypted using a link layer encryption mechanism for the key. In one possible design, the method further comprises: the first SFU receives a first online indication message from an MFU, the first online indication message being used to indicate that the first SFU is associated with the STA. In one possible design, the first online indicator message carries an identifier assigned by the MFU to the station, the identifier being for uniquely identifying the station in the network. The presence indication message may also be referred to as a terminal presence message. In a second aspect, an embodiment of the present application provides a communication method, where a second sub-network unit SFU receives an association request frame from a station of a main optical network unit MFU, and a key negotiated by the station and a first SFU for communication, where the first SFU is an SFU currently associated with the station, the association request frame is used for associating the station with the first SFU, and the second SFU creates a virtual user for the station according to the association request frame and the key. Through the scheme, the MFU synchronizes the association request frame and the secret key to other SFUs in the online association stage, so that the other SFUs do not need to acquire the association request frame and the secret key again in the roaming stage, the complexity of the roaming switching process is reduced, and longer service interruption time in the station roaming process is reduced or avoided. In one possible design, the second SFU re