Communication method, apparatus and system, and storage medium

MYPI2025001245A0Undetermined Publication Date: 2024-02-25HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
MYPI2025001245
Authority / Receiving Office
MY · MY
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-08-25
Filing Date
2023-06-30
Publication Date
2024-02-25

AI Technical Summary

Technical Problem

In a wireless fidelity network, when a terminal device is roaming and accessing a new access point, it may mistake the data units sent by the new access point as duplicate data units, causing service data transmission to be interrupted.

Method used

Obtain and send the data unit sequence number that has been sent to the terminal device through the first access point, ensuring that the new access point obtains the data unit sequence number to be sent based on the sequence number, so that the terminal device can successfully receive data and avoid interrupting service data transmission. Specific methods include obtaining the sequence number of the data unit, sending the sequence number, and using the controller to forward the sequence number to ensure sequence number consistency when the access point switches.

Benefits of technology

It effectively avoids interruption of business data transmission, ensures the continuity and accuracy of data transmission, and improves the stability of the wireless network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure PI2025001245_DRAWING_001
    Figure PI2025001245_DRAWING_001
  • Figure PI2025001245_DRAWING_002
    Figure PI2025001245_DRAWING_002
  • Figure PI2025001245_DRAWING_003
    Figure PI2025001245_DRAWING_003
Patent Text Reader

Abstract

This application discloses a communication method, apparatus, and system, and a storage medium, and belongs to the communications field. The method includes: A first access point AP obtains a first serial number based on a serial number of a first data unit, where the first data unit is a data unit that has been sent by the first AP to a terminal, and an AP that communicates with the terminal is switched from the first AP to a second AP. The first AP sends the first serial number. The second AP obtains a serial number of a second data unit based on the first serial number, where the second data unit is a data unit to be sent by the second AP to the terminal. In this application, interruption of transmission of service data can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Communication method, device, system and storage medium

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on August 25, 2022, with application number 202211027349.5 and application name “Communication Method, Device, System and Storage Medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communications, and in particular to a communication method, device, system, and storage medium. Background Art

[0003] In a wireless fidelity (Wi-Fi) network, an access point (AP) provides access services to terminals. The AP sends data units to the terminal. Each data unit has a sequence number, which is obtained by the AP sequentially numbering the data units. The terminal receives the data unit based on the sequence number.

[0004] On a Wi-Fi network, a terminal roams to a new AP. The new AP sends data units to the terminal. The sequence numbers of these data units are obtained by the new AP sequentially numbering them. Based on the sequence numbers of the data units sent by the new AP, the terminal may determine that the data units sent by the new AP are duplicate data units and discard the received data units, interrupting service data transmission.

[0005] Summary of the Invention

[0006] This application provides a communication method, device, system, and storage medium to avoid interrupting the transmission of business data. The technical solution is as follows:

[0007] In a first aspect, the present application provides a communication method, in which a first access point (AP) obtains a sequence number of a first data unit sent to a terminal, obtains a first sequence number based on the sequence number of the first data unit, and sends the first sequence number, wherein the AP communicating with the terminal is switched from the first AP to a second AP. The second AP obtains a sequence number of a second data unit based on the first sequence number, and the second data unit is a data unit to be sent by the second AP to the terminal.

[0008] The first data unit is the first data unit sent by the first AP to the terminal. The value of the anti-replay counter for receiving the data unit in the terminal is less than or equal to the sequence number of the first data unit, and / or the starting position of the receive window for receiving the data unit is obtained based on the sequence number of the first data unit. The first AP obtains the first sequence number based on the sequence number of the first data unit, and the second AP obtains the sequence number of the second data unit to be sent to the terminal based on the first sequence number, so that the terminal can successfully receive the data unit sent by the second AP based on the anti-replay counter and / or the receive window, thereby avoiding interruption of service data transmission.

[0009] In one possible implementation, the first sequence number is the sequence number of the first data unit, or the first sequence number is the sum of the sequence number of the first data unit and a first value, where the first value indicates the number of data units sent by the first AP to the terminal after sending the first data unit. This enriches the methods for obtaining the first sequence number and increases the flexibility of obtaining the first sequence number.

[0010] In another possible implementation, the first AP obtains the sequence number of the received third data unit sent by the terminal and sends the sequence number of the third data unit. The second AP obtains a receiving window based on the sequence number of the third data unit, and the receiving window is used to receive the data unit sent by the terminal.

[0011] Since the third data unit is a data unit sent by the terminal that has been received by the first AP, after the terminal switches to the second AP, the sequence number of the data unit to be sent by the terminal to the second AP is obtained by adding the sequence number of the third data unit. The second AP obtains the receiving window based on the sequence number of the third data unit, ensuring that the second AP can successfully receive the data unit sent by the terminal based on the receiving window, thereby avoiding interruption of service data transmission.

[0012] In another possible implementation, the third data unit is a data unit belonging to the first service, and the first AP sends a service identifier of the first service. The second AP obtains a receive window based on the sequence number of the third data unit and the service identifier of the first service. The receive window is used to receive data units belonging to the first service sent by the terminal. The second AP obtains a receive window corresponding to the first service based on the service identifier of the first service. Using this receive window, the second AP can successfully receive data units of the first service sent by the terminal, avoiding interruption of transmission of service data belonging to the first service.

[0013] In another possible implementation, a first AP sends identification information of a first frequency resource, where the first frequency resource is the frequency resource used by the first AP to send the first data unit. Based on this identification information, the second AP uses the first frequency resource to send the second data unit. Because the first frequency resource is the frequency resource used by the first AP to send the first data unit, the first AP sends the identification information of the first frequency resource, causing the second AP to use the first frequency resource to send the second data unit. This seamlessly switches service data transmitted between the terminal and the first AP to the second AP, avoiding interruption of service data transmission.

[0014] In another possible implementation, the sequence number of the first data unit includes a packet sequence number (PN) of the first data unit, which is used to number data units sent to the terminal. This ensures that the second AP can obtain the PN of the second data unit, ensuring that the terminal successfully receives the second data unit sent by the second AP based on the anti-replay counter, thereby preventing the terminal from rejecting the second data unit.

[0015] In another possible implementation, the first data unit is a data unit belonging to the second service, and the sequence number of the first data unit also includes a sequence number SN of the first data unit, which is used to number the data units belonging to the second service. This ensures that the second AP can obtain the SN of the second data unit, ensuring that the terminal can successfully receive the second data unit sent by the second AP based on the receive window, thereby preventing the terminal from rejecting the second data unit.

[0016] In another possible implementation, the first AP sends the service identifier of the second service to ensure that the second AP obtains the sequence number of the second data unit belonging to the second service based on the first sequence number, so that the terminal can successfully receive the data unit belonging to the second service sent by the second AP based on the anti-replay counter and / or the receiving window, avoiding interruption of transmission of service data belonging to the second service.

[0017] In another possible implementation, the first sequence number includes the sequence number of the first data unit, which includes the PN and SN of the first data unit. The first AP sends a first message to the controller, the first message including a packet sequence number field and a sequence number field, the packet sequence number field including the PN of the first data unit, and the sequence number field including the SN of the first data unit. The controller sends a second message to the second AP, the second message including the packet sequence number field and the sequence number field. In this manner, the controller successfully forwards the first sequence number to the second AP.

[0018] In another possible implementation, the first data unit is the last data unit sent by the first AP to the terminal when the AP communicating with the terminal switches from the first AP to a second AP, or the first data unit is the data unit preceding the last data unit. This enriches the methods for obtaining the first data unit and increases the flexibility of obtaining the sequence number of the first data unit.

[0019] In a second aspect, the present application provides a communication method, in which a first access point (AP) obtains a sequence number of a first data unit sent to a terminal, obtains a first sequence number based on the sequence number of the first data unit, and switches the AP communicating with the terminal from the first AP to a second AP. The first AP sends the first sequence number, the first sequence number being used to indicate the sequence number of a second data unit, the second data unit being a data unit to be sent by the second AP to the terminal.

[0020] The first data unit is the first data unit that the first AP has sent to the terminal. The value of the anti-replay counter for receiving the data unit in the terminal is less than or equal to the sequence number of the first data unit, and / or the starting position of the receiving window for receiving the data unit is obtained based on the sequence number of the first data unit. The first AP obtains the first sequence number based on the sequence number of the first data unit, and the first sequence number is used to indicate the sequence number of the second data unit. In this way, the second AP obtains the sequence number of the second data unit to be sent to the terminal based on the first sequence number, so that the terminal can successfully receive the data unit sent by the second AP based on the anti-replay counter and / or the receiving window, thereby avoiding interruption of service data transmission.

[0021] In one possible implementation, the first sequence number is the sequence number of the first data unit, or the first sequence number is the sum of the sequence number of the first data unit and a first value, where the first value indicates the number of data units sent by the first AP to the terminal after sending the first data unit. This enriches the methods for obtaining the first sequence number and increases the flexibility of obtaining the first sequence number.

[0022] In another possible implementation, the first AP sends the sequence number of the third data unit, where the third data unit is a data unit sent by the terminal that has been received by the first AP. The sequence number of the third data unit is used to instruct the second AP to obtain a receiving window, which is used to receive the data unit sent by the terminal.

[0023] Since the third data unit is a data unit sent by the terminal that has been received by the first AP, after the terminal switches to the second AP, the sequence number of the data unit to be sent by the terminal to the second AP is obtained by adding the sequence number of the third data unit. The second AP obtains the receiving window based on the sequence number of the third data unit, ensuring that the second AP can successfully receive the data unit sent by the terminal based on the receiving window, thereby avoiding interruption of service data transmission.

[0024] In another possible implementation, the third data unit is a data unit belonging to the first service. The first AP sends a service identifier for the first service, and the receive window is used to receive data units belonging to the first service sent by the terminal. The receive window obtained by the second AP corresponds to the first service, and the second AP can successfully receive the data units of the first service sent by the terminal through the receive window, thereby avoiding interruption of transmission of service data belonging to the first service.

[0025] In another possible implementation, the first AP sends identification information of a first frequency resource, where the first frequency resource is the frequency resource used by the first AP to send the first data unit. The identification information of the first frequency resource is used to instruct the second AP to use the first frequency resource to send the second data unit, thereby seamlessly switching the service data transmitted between the terminal and the first AP to the second AP to avoid interrupting the transmission of the service data.

[0026] In another possible implementation, the sequence number of the first data unit includes a packet sequence number (PN) of the first data unit, which is used to number data units sent to the terminal. This ensures that the second AP can obtain the PN of the second data unit, ensuring that the terminal successfully receives the second data unit sent by the second AP based on the anti-replay counter, thereby preventing the terminal from rejecting the second data unit.

[0027] In another possible implementation, the first data unit is a data unit belonging to the second service, and the sequence number of the first data unit also includes a sequence number SN of the first data unit, which is used to number the data units belonging to the second service. This ensures that the second AP can obtain the SN of the second data unit, ensuring that the terminal can successfully receive the second data unit sent by the second AP based on the receive window, thereby preventing the terminal from rejecting the second data unit.

[0028] In another possible implementation, the first AP sends the service identifier of the second service to ensure that the second AP obtains the sequence number of the second data unit belonging to the second service based on the first sequence number, so that the terminal can successfully receive the data unit belonging to the second service sent by the second AP based on the anti-replay counter and / or the receiving window, avoiding interruption of transmission of service data belonging to the second service.

[0029] In another possible implementation, the first sequence number includes the sequence number of the first data unit, which includes the PN and SN of the first data unit. The first AP sends a first message to the controller, the first message including a packet sequence number field and a sequence number field, the packet sequence number field including the PN of the first data unit, and the sequence number field including the SN of the first data unit. The first message is used to trigger the controller to send a second message to the second AP, the second message including the packet sequence number field and the sequence number field. In this way, the first sequence number can be successfully forwarded to the second AP through the controller.

[0030] In another possible implementation, the first data unit is the last data unit sent by the first AP to the terminal when the AP communicating with the terminal switches from the first AP to the second AP, or the first data unit is the data unit preceding the last data unit. This enriches the methods for obtaining the first data unit and increases the flexibility of obtaining the sequence number of the first data unit.

[0031] In a third aspect, the present application provides a communication method, in which a second access point (AP) receives a first sequence number, where the first sequence number is obtained by the first AP based on a sequence number of a first data unit, where the first data unit is a data unit that the first AP has sent to a terminal, and the AP communicating with the terminal is switched from the first AP to the second AP. The second AP obtains a sequence number of a second data unit based on the first sequence number, where the second data unit is a data unit to be sent by the second AP to the terminal.

[0032] The first data unit is the first data unit sent by the first AP to the terminal. The value of the anti-replay counter for receiving the data unit in the terminal is less than or equal to the sequence number of the first data unit, and / or the starting position of the receive window for receiving the data unit is obtained based on the sequence number of the first data unit. The first sequence number is obtained based on the sequence number of the first data unit, and the second AP obtains the sequence number of the second data unit to be sent to the terminal based on the first sequence number, so that the terminal can successfully receive the data unit sent by the second AP based on the anti-replay counter and / or the receive window, thereby avoiding interruption of service data transmission.

[0033] In one possible implementation, the first sequence number is the sequence number of the first data unit, or the first sequence number is the sum of the sequence number of the first data unit and a first value, where the first value indicates the number of data units sent by the first AP to the terminal after sending the first data unit. This enriches the methods for obtaining the first sequence number and increases the flexibility of obtaining the first sequence number.

[0034] In one possible implementation, the second AP receives a sequence number of a third data unit, where the third data unit is a data unit sent by the terminal and received by the first AP. The second AP obtains a receiving window based on the sequence number of the third data unit, where the receiving window is used to receive the data unit sent by the terminal.

[0035] Since the third data unit is a data unit sent by the terminal that has been received by the first AP, after the terminal switches to the second AP, the sequence number of the data unit to be sent by the terminal to the second AP is obtained by adding the sequence number of the third data unit. The second AP obtains the receiving window based on the sequence number of the third data unit, ensuring that the second AP can successfully receive the data unit sent by the terminal based on the receiving window, thereby avoiding interruption of service data transmission.

[0036] In another possible implementation, the third data unit is a data unit belonging to the first service, and the second AP receives a service identifier of the first service. The second AP obtains a receive window based on the sequence number of the third data unit and the service identifier of the first service. The receive window is used to receive data units belonging to the first service sent by the terminal. The receive window is aligned with the first service, and the second AP can successfully receive the data units of the first service sent by the terminal using the receive window, thereby avoiding interruption of transmission of service data belonging to the first service.

[0037] In another possible implementation, the second AP includes an anti-replay counter, which is used to record the number of data units successfully received from the terminal. The second AP sets the initial value of the anti-replay counter to be less than or equal to the sequence number of the third data unit. In this way, the second AP can successfully receive the data unit sent by the terminal to the second AP based on the anti-replay counter, thereby avoiding interruption of service data transmission.

[0038] In another possible implementation, the second AP receives identification information of a first frequency resource, where the first frequency resource is the frequency resource used by the first AP to send the first data unit. Based on the identification information, the second AP uses the first frequency resource to send the second data unit to the terminal. This seamlessly switches service data transmitted between the terminal and the first AP to the second AP, avoiding interruption of service data transmission.

[0039] In another possible implementation, the sequence number of the first data unit includes a packet sequence number (PN) of the first data unit, which is used to number data units sent to the terminal. This ensures that the second AP can obtain the PN of the second data unit, ensuring that the terminal successfully receives the second data unit sent by the second AP based on the anti-replay counter, thereby preventing the terminal from rejecting the second data unit.

[0040] In another possible implementation, the first data unit is a data unit belonging to the second service, and the sequence number of the first data unit also includes a sequence number SN of the first data unit, which is used to number the data units belonging to the second service. This ensures that the second AP can obtain the SN of the second data unit, ensuring that the terminal can successfully receive the second data unit sent by the second AP based on the receive window, thereby preventing the terminal from rejecting the second data unit.

[0041] In another possible implementation, the second AP receives the service identifier of the second service, ensuring that the second AP obtains the sequence number of the second data unit belonging to the second service based on the first sequence number, so that the terminal can successfully receive the data unit belonging to the second service sent by the second AP based on the anti-replay counter and / or the receiving window, avoiding interruption of transmission of service data belonging to the second service.

[0042] In another possible implementation, the first sequence number includes the sequence number of the first data unit, which includes the PN and SN of the first data unit. The second AP receives a second message sent by the controller, the second message includes a packet sequence number field and a sequence number field, the packet sequence number field includes the PN of the first data unit, and the sequence number field includes the SN of the first data unit. The second message is sent by the controller based on the first message received from the first AP, the first message including the packet sequence number field and the sequence number field. In this way, the first sequence number can be successfully forwarded to the second AP through the controller.

[0043] In another possible implementation, the first data unit is the last data unit sent by the first AP to the terminal when the AP communicating with the terminal is switched from the first AP to the second AP, or the data unit preceding the last data unit. This enriches the methods for obtaining the first data unit and increases the flexibility of obtaining the sequence number of the first data unit.

[0044] In a fourth aspect, the present application provides a communication method, wherein a controller receives a first sequence number sent by a first access point (AP), where the first sequence number is obtained by the first AP based on a sequence number of a first data unit, where the first data unit is a data unit that the first AP has sent to a terminal, and the AP communicating with the terminal has switched from the first AP to a second AP. The controller sends the first sequence number to the second AP, where the first sequence number is used to indicate the sequence number of a second data unit, where the second data unit is a data unit to be sent by the second AP to the terminal.

[0045] The first data unit is the first data unit that the first AP has sent to the terminal, and the first sequence number is obtained based on the sequence number of the first data unit. The value of the anti-replay counter for receiving data units in the terminal is less than or equal to the sequence number of the first data unit, and / or the starting position of the receiving window for receiving data units is obtained based on the sequence number of the first data unit. The controller receives the first sequence number and sends the first sequence number to the second AP. The second AP obtains the sequence number of the second data unit to be sent to the terminal based on the first sequence number, so that the terminal can successfully receive the data unit sent by the second AP based on the anti-replay counter and / or the receiving window, thereby avoiding interruption of service data transmission.

[0046] In one possible implementation, the first sequence number is the sequence number of the first data unit, or the first sequence number is the sum of the sequence number of the first data unit and a first value, where the first value indicates the number of data units sent by the first AP to the terminal after sending the first data unit. This enriches the methods for obtaining the first sequence number and increases the flexibility of obtaining the first sequence number.

[0047] In another possible implementation, the controller receives a sequence number of a third data unit sent by a first AP, where the third data unit is a data unit sent by a terminal and received by the first AP. The controller sends the sequence number of the third data unit to a second AP, where the sequence number of the third data unit is used to instruct the second AP to obtain a receive window for receiving the data unit sent by the terminal.

[0048] Since the third data unit is a data unit sent by the terminal that has been received by the first AP, after the terminal switches to the second AP, the sequence number of the data unit to be sent by the terminal to the second AP is obtained by adding the sequence number of the third data unit. The second AP obtains the receiving window based on the sequence number of the third data unit, ensuring that the second AP can successfully receive the data unit sent by the terminal based on the receiving window, thereby avoiding interruption of service data transmission.

[0049] In another possible implementation, the third data unit is a data unit belonging to the first service. The controller receives a service identifier of the first service sent by the first AP. The controller sends the service identifier of the first service to the second AP. The second AP then obtains a receive window corresponding to the first service based on the service identifier of the first service. The second AP can successfully receive the data unit of the first service sent by the terminal within the receive window, thereby avoiding interruption of transmission of service data belonging to the first service.

[0050] In another possible implementation, a controller receives identification information of a first frequency resource sent by a first AP, where the first frequency resource is the frequency resource used by the first AP to send the first data unit. The controller sends the identification information of the first frequency resource to a second AP. Based on this identification information, the second AP then uses the first frequency resource to send the second data unit. Because the first frequency resource is the frequency resource used by the first AP to send the first data unit, the first AP sends the identification information of the first frequency resource, causing the second AP to use the first frequency resource to send the second data unit. This seamlessly switches service data transmitted between the terminal and the first AP to the second AP, avoiding interruption of service data transmission.

[0051] In another possible implementation, the sequence number of the first data unit includes a packet sequence number (PN) of the first data unit, which is used to number data units sent to the terminal. This ensures that the second AP can obtain the PN of the second data unit, ensuring that the terminal successfully receives the second data unit sent by the second AP based on the anti-replay counter, thereby preventing the terminal from rejecting the second data unit.

[0052] In another possible implementation, the first data unit is a data unit belonging to the second service, and the sequence number of the first data unit also includes a sequence number SN of the first data unit, which is used to number the data units belonging to the second service. This ensures that the second AP can obtain the SN of the second data unit, ensuring that the terminal can successfully receive the second data unit sent by the second AP based on the receive window, thereby preventing the terminal from rejecting the second data unit.

[0053] In another possible implementation, the controller receives a service identifier of a second service sent by a first AP. The controller sends the service identifier of the second service to the second AP, ensuring that the second AP obtains a sequence number of a second data unit belonging to the second service based on the first sequence number. In this way, the terminal can successfully receive the data unit belonging to the second service sent by the second AP based on an anti-replay counter and / or a receiving window, thereby avoiding interruption of transmission of service data belonging to the second service.

[0054] In another possible implementation, the first sequence number includes the sequence number of the first data unit, which includes the PN and SN of the first data unit. The controller receives a first message sent by a first AP, the first message including a packet sequence number field and a sequence number field, the packet sequence number field including the PN of the first data unit, and the sequence number field including the SN of the first data unit. The controller sends a second message to a second AP, the second message including the packet sequence number field and the sequence number field. In this manner, the controller successfully forwards the first sequence number to the second AP.

[0055] In another possible implementation, the first data unit is the last data unit sent by the first AP to the terminal when the AP communicating with the terminal switches from the first AP to the second AP, or the first data unit is the data unit preceding the last data unit. This enriches the methods for obtaining the first data unit and increases the flexibility of obtaining the sequence number of the first data unit.

[0056] In a fifth aspect, the present application provides a communication device for executing the method in the second aspect or any possible implementation of the second aspect. Specifically, the device includes a unit for executing the method in the second aspect or any possible implementation of the second aspect.

[0057] In a sixth aspect, the present application provides a communication device for executing the method in the third aspect or any possible implementation of the third aspect. Specifically, the device includes a unit for executing the method in the third aspect or any possible implementation of the third aspect.

[0058] In a seventh aspect, the present application provides a communication device for executing the method in the fourth aspect or any possible implementation of the fourth aspect. Specifically, the device includes a unit for executing the method in the fourth aspect or any possible implementation of the fourth aspect.

[0059] In an eighth aspect, the present application provides a first access point AP, which includes a memory, a processor, and a computer program stored on the memory. When the processor executes the computer program, the first AP completes the method in the second aspect or any possible implementation of the second aspect.

[0060] In the ninth aspect, the present application provides a second access point AP, which includes a memory, a processor and a computer program stored on the memory. When the processor executes the computer program, the second AP completes the method in the third aspect or any possible implementation of the third aspect.

[0061] In the tenth aspect, the present application provides a controller, which includes a memory, a processor, and a computer program stored on the memory. When the processor executes the computer program, the controller completes the method in the fourth aspect or any possible implementation of the fourth aspect.

[0062] In the eleventh aspect, the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium, and the computer program is loaded by a processor to implement the above-mentioned second aspect, third aspect, fourth aspect, any possible implementation of the second aspect, any possible implementation of the third aspect, or any possible implementation of the fourth aspect.

[0063] In the twelfth aspect, the present application provides a computer-readable storage medium for storing a computer program or instruction, which is loaded by a processor to implement the above-mentioned second aspect, third aspect, fourth aspect, any possible implementation of the second aspect, any possible implementation of the third aspect, or any possible implementation of the fourth aspect.

[0064] In the thirteenth aspect, the present application provides a chip comprising a memory and a processor, the memory being used to store computer instructions, and the processor being used to call and execute the computer instructions from the memory to implement the method of the above-mentioned second aspect, third aspect, fourth aspect, any possible implementation of the second aspect, any possible implementation of the third aspect, or any possible implementation of the fourth aspect.

[0065] In a fourteenth aspect, the present application provides a communication system, comprising the communication device described in the fifth aspect and the communication device described in the sixth aspect, or comprising the first AP described in the eighth aspect and the second AP described in the ninth aspect.

[0066] In a possible implementation, the system further includes the communication device described in the seventh aspect, or the controller described in the tenth aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] FIG1 is a schematic diagram of a network architecture provided by an embodiment of the present application;

[0068] FIG2 is a schematic diagram of another network architecture provided in an embodiment of the present application;

[0069] FIG3 is a schematic diagram of a receiving window provided in an embodiment of the present application;

[0070] FIG4 is a flow chart of a communication method provided in an embodiment of the present application;

[0071] FIG5 is a schematic diagram of the structure of a first message provided in an embodiment of the present application;

[0072] FIG6 is a schematic diagram of an encrypted data unit provided in an embodiment of the present application;

[0073] FIG7 is a flow chart of another communication method provided in an embodiment of the present application;

[0074] FIG8 is a schematic structural diagram of another first message provided in an embodiment of the present application;

[0075] FIG9 is a schematic structural diagram of a communication device provided in an embodiment of the present application;

[0076] FIG10 is a schematic structural diagram of another communication device provided in an embodiment of the present application;

[0077] FIG11 is a schematic structural diagram of another communication device provided in an embodiment of the present application;

[0078] FIG12 is a schematic diagram of a device structure provided in an embodiment of the present application;

[0079] FIG13 is a schematic diagram of a communication system structure provided in an embodiment of the present application. DETAILED DESCRIPTION

[0080] The embodiments of the present application will be described in further detail below with reference to the accompanying drawings.

[0081] 1 , an embodiment of the present application provides a network architecture 100 , which includes a controller 101 and multiple APs 102 .

[0082] The controller 101 is configured to manage the multiple APs 102. For any AP 102, the AP 102 provides a terminal access service, so that a terminal 103 can access the AP 102 and communicate with the AP 102.

[0083] In some embodiments, the terminal 103 can access one AP 102, or the terminal 103 can access a sub-network including multiple APs 102. When the terminal 103 accesses the sub-network, one of the multiple APs 102 included in the sub-network is a primary AP, and the APs other than the primary AP in the multiple APs 102 are backup APs. The terminal 103 communicates with the primary AP, and each backup AP includes the identity information of the terminal 103.

[0084] 2 , in some embodiments, the network architecture 100 further includes a connector 104, and the controller 101 communicates with any AP 102 via the connector 104. The connector 104 includes an optical splitter.

[0085] In some embodiments, in order to improve the coverage of the signal, multiple APs 102 are networked to form a Wi-Fi network with wide coverage. Optionally, the sub-network is part of the Wi-Fi network.

[0086] The networking modes of the multiple APs 102 are categorized as same-basic service set identification (BSSID) networking and different-BSSID networking. In the same-BSSID networking, each AP has the same BSSID. When a terminal 103 roams from the coverage area of ​​one AP to the coverage area of ​​another AP, the AP accessed by the terminal 103 may switch from the AP to the other AP. The terminal 103 will not be aware of the AP switching and will not perform authentication, association, or key negotiation with the other AP.

[0087] However, in a heterogeneous BSSID network, the BSSID of each AP is different. When the terminal 103 roams from the coverage of one AP to the coverage of another AP, the AP accessed by the terminal 103 may switch from the AP to the other AP. The terminal 103 accesses the other AP and needs to perform authentication, association, and key negotiation with the other AP.

[0088] In the above sub-network, when the AP associated with the terminal 103 switches from a primary AP to a backup AP, the terminal 103 will not perform authentication, association, or key negotiation with the backup AP because the backup AP includes the identity information of the terminal 103 .

[0089] When the terminal 103 communicates with the AP 102 , service data is exchanged. The service data includes at least one data unit, and each data unit has a sequence number.

[0090] Terminal 103 is capable of sending a data unit to AP 102. The sequence number of the data unit is obtained by adding the sequence number of the previous data unit sent by terminal 103. The data unit belongs to first service data sent by terminal 103 to AP 102. The first service data belongs to a first service, the first service is an uplink service, and the first service data is uplink service data. Optionally, the sequence number of the data unit is obtained by adding 1 to the sequence number of the previous data unit sent by terminal 103.

[0091] AP 102 can send a data unit to terminal 103. The sequence number of the data unit is obtained by adding the sequence number of the previous data unit sent by AP 102. The data unit belongs to second service data sent by AP 102 to terminal 103. The second service data belongs to a second service, the second service is a downlink service, and the second service data is downlink service data. Optionally, the sequence number of the data unit is obtained by adding 1 to the sequence number of the previous data unit sent by AP 102.

[0092] The sequence number of the data unit includes a packet number (PN) of the data unit, and the PN is used to number the data units sent to the terminal 103 .

[0093] Terminal 103 includes a first anti-replay counter, which is used to count the data units successfully received by terminal 103. AP 102 includes a second anti-replay counter, which is used to count the data units successfully received by AP 102.

[0094] For downlink data units, which include data units sent by AP 102 to terminal 103 and are data units of the second service data, AP 102 initializes the initial PN value of the first data unit to be sent to terminal 103. For the nth data unit to be sent to terminal 103, the PN of the nth data unit is equal to the PN of the n-1th data unit + P, where n = 2, 3, 4, ..., and P is an integer greater than 0, a specified integer value. Terminal 103 initializes the initial value of the first anti-replay counter, which is less than or equal to the PN of the first data unit. Whenever terminal 103 receives a data unit sent by AP 102, it compares the PN of the data unit to see if it is greater than or equal to the value counted by the first anti-replay counter. If the comparison shows that the PN of the data unit is less than the value counted by the first anti-replay counter, it indicates that the data unit may be a duplicate data unit received by terminal 103, and the data unit is discarded. If the PN of the data unit is greater than or equal to the value of the first anti-replay counter, P is added to the value of the first anti-replay counter and a confirmation message is sent to AP102. The confirmation message is used to indicate that Terminal 103 has successfully received the data unit.

[0095] For example, Terminal 103 initializes the first anti-replay counter to 0, and AP 102 initializes the PN of the first data unit to be sent to Terminal 103 to 0. Assuming P = 1, Terminal 103 receives the first data unit sent by AP 102. The PN of the first data unit is equal to the value of the first anti-replay counter. Terminal 103 increments the value of the first anti-replay counter by 1 (the value of the first anti-replay counter becomes 1), and sends an acknowledgment message to AP 102, indicating that Terminal 103 successfully received the first data unit. Upon receiving the acknowledgment message, AP 102 sends a second data unit to Terminal 103. The PN of the second data unit is equal to the PN of the first data unit plus 1, i.e., the PN of the second data unit = 0 + 1 = 1, and sends the second data unit to Terminal 103. Terminal 103 receives the second data unit sent by AP 102. The PN of the second data unit is 1, and the value of the first anti-replay counter is 1. The PN of the second data unit is equal to the value of the first anti-replay counter. 1 is added to the value of the first anti-replay counter (the value of the first anti-replay counter becomes 2), and a confirmation message is sent to AP 102, indicating that Terminal 103 successfully received the second data unit. The above process is repeated, and Terminal 103 receives the third data unit, the fourth data unit, and so on. Similarly, the process of Terminal 103 sending data units to AP 102 refers to the process of AP 102 sending data units to Terminal 103, which will not be described in detail here.

[0096] In some embodiments, the sequence number of the data unit also includes the sequence number (SN) of the data unit. The data unit belongs to the service data interacted between AP102 and terminal 103. For the service to which the service data belongs, the SN is used to number the data units belonging to the service.

[0097] AP 102 may send multiple different service data to terminal 103. For the first data unit of a particular service data, AP 102 initializes the initial SN of the first data unit of the service data. For the mth data unit of the same service data, if the SN+S of the m-1th data unit is less than or equal to a specified SN threshold, the SN of the mth data unit is equal to the SN+S of the m-1th data unit, where m = 2, 3, 4, ..., and S is an integer greater than 0, which is a specified integer value. If the SN+S of the m-1th data unit is greater than the specified SN threshold, the SN of the mth data unit of the service data is initialized.

[0098] The SN is a number of bits long, and the designated SN threshold is the maximum integer value indicated by the number of bits. Assuming the SN is 12 bits long, the designated SN threshold is 4095. AP 102 initializes the SN of the first data unit of the service data to 0. For the mth data unit of the service data, if the SN+S of the m-1th data unit is less than or equal to 4095, the SN of the mth data unit is equal to the SN+S of the m-1th data unit. If the SN+S of the m-1th data unit is greater than 4095, the SN of the mth data unit of the service data is initialized to 0.

[0099] For example, assuming S=1, AP 102 sends service data 1 and service data 2 to terminal 103. Service data 1 includes ten data units, and service data 2 includes eight data units. AP 102 initializes the SN of the first data unit of service data 1 to 0, so the SNs of the ten data units included in service data 1 are 0, 1, 2, ..., 9, respectively. AP 102 initializes the SN of the first data unit of service data 2 to 0, so the SNs of the eight data units included in service data 2 are 0, 1, 2, ..., 7, respectively.

[0100] To improve data transmission efficiency, multiple data units can be aggregated into a downlink service message. These multiple data units belong to the same service data. AP102 sends the downlink service message to the terminal. Terminal 103 includes a receive window corresponding to the service data. The starting position of the receive window is equal to the SN+1 of the last data unit belonging to the service data received by terminal 102. After receiving the downlink service message, terminal 103 uses the receive window to receive the multiple data units in the downlink service message. If the multiple data units are successfully received using the receive window, terminal 103 moves the receive window so that the starting position of the receive window is equal to the SN+1 of the last data unit of the multiple data units.

[0101] For example, referring to Figure 3 , assuming the service data is service data 1, AP 102 initializes the SN of the first data unit of service data 1 to 0, aggregates the first, second, third, and fourth data units of service data 1 into a first downlink service message, and sends the first downlink service message to terminal 103. Terminal 103 initializes the starting position of the receive window corresponding to service data 1 to 0. Referring to Figure 3(a), when receiving the first downlink service message sent by AP 102, terminal 103 uses the receive window to receive the first, second, third, and fourth data units in the first downlink service message. Referring to Figure 3(b), terminal 103 moves the receive window so that the starting position of the receive window is equal to the SN of the fourth data unit + 1, and sends a first confirmation message to AP 102. The first confirmation message indicates that terminal 103 has successfully received the four data units.

[0102] AP102 receives the first confirmation message and aggregates the fifth, sixth, seventh, and eighth data units of service data 1 into a second downlink service message, and sends the second downlink service message to terminal 103. Referring to Figure 3(c), when receiving the second downlink service message sent by AP102, terminal 103 uses the receive window to receive the fifth, sixth, seventh, and eighth data units in the second downlink service message. Referring to Figure 3(d), terminal 103 moves the receive window so that the starting position of the receive window is equal to the SN+1 of the eighth data unit and sends a second confirmation message to AP102. The second confirmation message is used to indicate that terminal 103 has successfully received the four data units.

[0103] AP 102 receives the second confirmation message, aggregates the ninth and tenth data units of service data 1 into a third downlink service message, and sends the third downlink service message to terminal 103. Referring to FIG3(e), when receiving the third downlink service message sent by AP 102, terminal 103 uses the receive window to receive the ninth and tenth data units in the third downlink service message, and sends a third confirmation message to AP 102. The third confirmation message is used to indicate that terminal 103 has successfully received the two data units.

[0104] Similarly, AP 102 also includes a receive window. The process by which AP 102 uses this receive window to receive data units sent by terminal 103 is described above with reference to the process by which terminal 103 uses a receive window to receive data units sent by AP 102, and will not be further described here. For ease of explanation, the receive window in terminal 103 will be referred to as the first receive window, and the receive window in AP 102 will be referred to as the second receive window.

[0105] In some embodiments, upon startup, terminal 103 first connects to an AP 102. For ease of explanation, this AP 102 is referred to as the first AP. Terminal 103 performs authentication, association, and key negotiation with the first AP. During this process, terminal 103 initializes the initial value of a first anti-replay counter and the starting position of a first receive window for a particular service data. The first AP also initializes the initial PN and SN values ​​of the first data unit to be sent. Terminal 103 then receives the data unit belonging to the service data sent by the first AP based on the first anti-replay counter and the first receive window.

[0106] In some embodiments, the terminal 103 accesses multiple APs 102 when it is powered on. The multiple APs 102 include a first AP, which is a primary AP. The APs other than the first AP in the multiple APs 102 are backup APs. The terminal communicates with the first AP.

[0107] In a Wi-Fi network, the AP communicating with terminal 103 may switch from a first AP to a second AP. The first and second APs are different APs. The following two situations may cause the AP communicating with terminal 103 to switch from the first AP to the second AP. Of course, other situations may also cause the AP communicating with terminal 103 to switch from the first AP to the second AP, which will not be listed here.

[0108] In the first case, the terminal 103 roams in the Wi-Fi network. The terminal 103 may roam from the coverage of the first AP to which it has accessed to the coverage of the second AP. At this time, the controller 101 may switch the AP to which the terminal 103 accesses, that is, the controller 101 may switch the AP to which the terminal 103 accesses from the first AP to the second AP, so that the AP communicating with the terminal 103 is switched from the first AP to the second AP.

[0109] In a scenario where the Wi-Fi networking mode is heterogeneous BSSID networking, terminal 103 roams and accesses a second AP. Terminal 103 performs authentication, association, and key negotiation with the second AP. Terminal 103 reinitializes the initial value of the first anti-replay counter and the starting position of the first receive window. The second AP initializes the initial PN value and initial SN value of the first data unit to be sent to terminal 103. Terminal 103 receives the data unit sent by the second AP based on the first anti-replay counter and the first receive window. The second AP initializes the initial value of the second anti-replay counter and the starting position of the second receive window. Terminal 103 initializes the initial PN value and initial SN value of the first data unit to be sent to the second AP. The second AP receives the data unit sent by terminal 103 based on the second anti-replay counter and the second receive window.

[0110] In the scenario where the Wi-Fi networking mode is the same BSSID networking mode, terminal 103 roams and accesses the second AP. Terminal 103 will not perceive that an AP switch has occurred, and will not perform authentication, association, and key negotiation with the second AP, resulting in terminal 103 not initializing the initial value of the first anti-replay counter and the starting position of the first receiving window. However, the second AP initializes the initial value of the PN and the initial value of the SN of the first data unit sent to terminal 103, making the value of the first anti-replay counter greater than the PN of the first data unit, and the starting position of the first receiving window greater than the SN of the first data unit. This causes terminal 103 to determine the data unit sent by the second AP as a duplicate received data unit and discard the received data unit, resulting in the interruption of the transmission of downlink service data. The second AP may reinitialize the initial value of the second anti-replay counter and the starting position of the second receiving window. Terminal 103 will not initialize the initial PN value and the initial SN value of the first data unit to be sent to the second AP. The SN of the first data unit sent by terminal 103 to the second AP may exceed the end position of the second receiving window in the second AP. The second AP refuses to receive the data unit sent by terminal 103 based on the second receiving window, resulting in interruption of transmission of service data in the uplink direction.

[0111] In the second case, the second AP is a backup AP of the first AP, and the AP communicating with the terminal 103 is switched from the first AP to the second AP under specified circumstances. Alternatively, the controller 101 may switch the AP communicating with the terminal 103 from the first AP to the second AP under specified circumstances.

[0112] For example, when the communication signal quality between terminal 103 and the first AP is poor, controller 101 switches the AP communicating with terminal 103 from the first AP to the second AP. Alternatively, when a specified time arrives, controller 101 switches the AP communicating with terminal 103 from the first AP to the second AP. Alternatively, when the number of data units sent by the first AP to terminal 103 reaches a specified threshold, controller 101 switches the AP communicating with terminal 103 from the first AP to the second AP.

[0113] Because Terminal 103 has already connected to the second AP, when the AP communicating with Terminal 103 switches from the first AP to the second AP, Terminal 103 will not perform authentication, association, or key negotiation with the second AP. Consequently, Terminal 103 will not initialize the initial value of the first anti-replay counter and the starting position of the first receive window. However, the second AP initializes the initial PN and SN values ​​of the first data unit to be sent to Terminal 103, causing the value of the first anti-replay counter to be greater than the PN of the first data unit, and the starting position of the first receive window to be greater than the SN of the first data unit. This causes Terminal 103 to identify the data unit sent by the second AP as a duplicate data unit and discard the received data unit, resulting in the interruption of downlink service data transmission. The second AP may reinitialize the initial value of the second anti-replay counter and the starting position of the second receiving window. Terminal 103 will not initialize the initial PN value and the initial SN value of the first data unit to be sent to the second AP. The SN of the first data unit sent by terminal 103 to the second AP may exceed the end position of the second receiving window in the second AP. The second AP refuses to receive the data unit sent by terminal 103 based on the second receiving window, resulting in interruption of transmission of service data in the uplink direction.

[0114] In some embodiments, the controller 101 is an access controller (AC), etc., and the terminal 103 is a station (STA), for example, a mobile phone, a tablet computer, and / or a computer, etc. The above-mentioned data unit is a medium access control protocol data unit (MPDU), etc.

[0115] Referring to FIG. 4 , an embodiment of the present application provides a communication method 400. Method 400 is applied to the network architecture 100 shown in FIG. 1 or FIG. 2 . In method 400, a first access point (AP) obtains a sequence number of a first data unit sent to a terminal and sends the sequence number of the first data unit. A second AP obtains a sequence number of a second data unit to be sent to the terminal based on the sequence number of the first data unit. Method 400 includes the following operations: Steps 401 to 405.

[0116] Step 401: A first AP obtains a sequence number of a first data unit, where the first data unit is a data unit sent by the first AP to a terminal. The AP communicating with the terminal is switched from the first AP to a second AP.

[0117] The first AP may obtain the sequence number of the first data unit when the AP communicating with the terminal switches from the first AP to the second AP. Alternatively, the first AP may obtain the sequence number of the first data unit before the AP communicating with the terminal switches from the first AP to the second AP.

[0118] The first AP and the second AP are two different APs in the Wi-Fi network. In step 401, the following two situations are listed for switching the AP communicating with the terminal from the first AP to the second AP. Of course, other situations are also possible for switching the AP communicating with the terminal from the first AP to the second AP, which are not listed here.

[0119] In the first case, the terminal roams from the coverage of the first AP to which it has accessed to the coverage of the second AP. The controller switches the first AP to which the terminal has accessed to the second AP, so that the AP communicating with the terminal is switched from the first AP to the second AP.

[0120] When switching the first AP to which the terminal is connected to the second AP, the controller sends a notification message to the first AP. The first AP receives the notification message and obtains the sequence number of the first data unit.

[0121] In the second case, the second AP is a backup AP of the first AP. The first AP and the second AP are APs in the subnet accessed by the terminal. Under specified circumstances, the AP communicating with the terminal is switched from the first AP to the second AP.

[0122] The first AP in the subnet may have at least one backup AP, and the second AP is one of the at least one backup AP. A terminal has accessed the subnet, and the backup APs in the subnet include the terminal's identity information. When the AP communicating with the terminal is switched from the first AP to the second AP, the second AP communicates with the terminal based on the terminal's identity information included in the second AP.

[0123] In step 401, the first AP obtains the sequence number of the first data unit when the current situation is the specified situation.

[0124] In some embodiments, the controller may switch the AP communicating with the terminal from the first AP to the second AP under specified circumstances.

[0125] The second AP may be the AP with the best communication signal quality with the terminal among the at least one backup AP, or the AP closest to the terminal among the at least one backup AP, or the AP with the least load among the at least one backup AP. Of course, the second AP may also be an AP in other situations, which are not listed here.

[0126] The following designated cases 1, 2 and 3 are listed below. Of course, there may be other designated cases, which are not listed here one by one.

[0127] In a specific case 1, when the communication signal quality between the terminal and the first AP is poor, the AP communicating with the terminal is switched from the first AP to the second AP.

[0128] In the designated situation 1, when the first AP detects that the communication signal quality with the terminal is lower than the designated signal quality threshold, the sequence number of the first data unit is obtained.

[0129] When the first AP detects that the signal quality of the communication with the terminal is lower than the specified signal quality threshold, it obtains the sequence number of the first data unit and requests the controller to switch the AP communicating with the terminal. The AP receives the request and switches the AP communicating with the terminal to the second AP. Or,

[0130] When the first AP detects that the signal quality of the communication with the terminal is below a specified signal quality threshold, it requests the controller to switch the AP communicating with the terminal. The controller receives the request and switches the AP communicating with the terminal to the second AP. Upon detecting that the AP communicating with the terminal has been switched to the second AP, the first AP obtains the sequence number of the first data unit.

[0131] In the designated case 2, when the designated time arrives, the controller switches the AP communicating with the terminal from the first AP to the second AP.

[0132] The first AP obtains the sequence number of the first data unit when the specified time arrives. Alternatively, when the specified time arrives, the controller switches the AP communicating with the terminal from the first AP to the second AP, and the first AP obtains the sequence number of the first data unit upon sensing the switch of the AP communicating with the terminal.

[0133] In the designated case 3, when the number of data units sent by the first AP to the terminal reaches a designated number threshold, the controller switches the AP communicating with the terminal from the first AP to the second AP.

[0134] When the number of data units sent to the terminal reaches a specified threshold, the first AP obtains the sequence number of the first data unit and requests the controller to switch the AP communicating with the terminal. The AP receives the request and switches the AP communicating with the terminal to the second AP. Or,

[0135] When the number of data units sent to the terminal reaches a specified threshold, the first AP requests the controller to switch the AP communicating with the terminal. Upon receiving the request, the controller switches the AP communicating with the terminal to the second AP. Upon detecting that the AP communicating with the terminal has switched to the second AP, the first AP obtains the sequence number of the first data unit.

[0136] In the above-mentioned designated case 1, designated case 2 or designated case 3, when the controller switches the AP communicating with the terminal to the second AP, it may send a notification message to the first AP. The first AP receives the notification message and senses based on the notification message that the AP communicating with the terminal has switched to the second AP.

[0137] The sequence number of the first data unit includes the PN of the first data unit. Alternatively, the sequence number of the first data unit includes the PN and the SN of the first data unit.

[0138] The first data unit is a data unit belonging to the second service. In a case where the sequence number of the first data unit includes the SN of the first data unit, the first AP may further obtain the service identifier of the second service.

[0139] The first AP includes a cache area, where the cache area is used to cache data units belonging to a second service to be sent to the terminal. The service identifier of the second service may include one or more of the following: a name of the second service, a number of the second service, or an identifier of the cache area. The identifier of the cache area may be a traffic identification (TID) corresponding to the cache area.

[0140] The first AP may aggregate multiple data units into a downlink service message and send the downlink service message to the terminal. The downlink service message includes the multiple data units. The terminal includes a first receive window, and the terminal receives the multiple data units in the downlink service message based on the first receive window. In this case, the sequence number of the first data unit obtained by the first AP may include the PN and SN of the first data unit, so that the second AP sets the starting position of the first receive window based on the SN of the first data unit. Alternatively, the sequence number of the first data unit obtained by the first AP may include the PN of the first data unit but not the SN of the first data unit.

[0141] The first AP may not perform data unit aggregation. A downlink service message sent by the first AP to the terminal includes a data unit, and the terminal does not need a first receive window to receive the data unit in the downlink service message. In this case, the sequence number of the first data unit obtained by the first AP may include both the PN and the SN of the first data unit, or may include the PN of the first data unit but not the SN of the first data unit.

[0142] In some embodiments, the first data unit is the last data unit sent by the first AP to the terminal when the AP communicating with the terminal switches from the first AP to the second AP, or the first data unit is the data unit before the last data unit, etc.

[0143] For example, let's take Example 1. In Example 1, it is assumed that the first data unit is the last data unit sent, the PN of the first data unit is 50, and the SN of the first data unit is 30. After the terminal receives the first data unit, the value counted by the terminal's first anti-replay counter is less than or equal to 50. Assuming that the value of the first anti-replay counter is 50, the starting position of the first receive window in the terminal is 31, and assuming that the length of the first receive window is 6, the ending position of the first receive window is 37.

[0144] In some embodiments, after the AP communicating with the terminal switches from a first AP to a second AP, the first AP stops sending data units to the terminal, i.e., after sending the first data unit, the first AP no longer sends data units to the terminal. Alternatively, the first AP's buffer area includes data units that have not yet been sent to the terminal. After the AP communicating with the terminal switches from the first AP to the second AP, the first AP may continue to send data units in the buffer area to the terminal, i.e., after sending the first data unit, the first AP may continue to send data units in the buffer area to the terminal.

[0145] In step 401, the first AP may also obtain the sequence number of the third data unit and / or the service identifier of the first service, the third data unit is a data unit sent by the terminal and received by the first AP, and the first data unit is a data unit belonging to the first service.

[0146] The sequence number of the third data unit includes the SN of the third data unit. Alternatively, the sequence number of the third data unit includes the PN and SN of the third data unit.

[0147] In some embodiments, the third data unit may be the last data unit received by the first AP when the AP communicating with the terminal is switched from the first AP to the second AP, or the third data unit may be the data unit before the last data unit.

[0148] For example, let's take Example 2. In Example 2, it is assumed that the third data unit is the last data unit received, the PN of the third data unit is 7, and the SN of the third data unit is 5. After the terminal sends the third data unit, the PN of the next data unit to be sent is 8 and the SN is 6. For ease of explanation, this next data unit is referred to as data unit 1.

[0149] In step 401, the first AP may also obtain identification information of a first frequency resource, where the first frequency resource is a frequency resource used by the first AP to send a first data unit to a terminal.

[0150] The first frequency resource may include one or more frequency points, etc.

[0151] Step 402: The first AP sends a first message to the controller, where the first message includes a sequence number of a first data unit.

[0152] The first message may further include one or more of the following: a service identifier of the first service, a service identifier of the second service, identification information of the first frequency resource, or a sequence number of the third data unit.

[0153] Referring to Figure 5 , the first message may include a first packet sequence number field, which includes the PN of the first data unit. Optionally, the first packet sequence number field includes a first field and a second field, wherein the first field includes a portion of the PN of the first data unit, and the second field includes the contents of the PN of the first data unit other than the portion. For example, assuming that the PN of the first data unit includes 48 bits, the first field includes the upper 24 bits of the PN of the first data unit, and the second field includes the lower 24 bits of the PN of the first data unit.

[0154] 5 , the first message may further include a first sequence number field and / or a first service field, the first sequence number field includes the SN of the first data unit, and the first service field includes the service identifier of the second service.

[0155] 5 , the first message may further include a second sequence number field and / or a second service field, the second sequence number field includes the SN of the third data unit, and the second service field includes the service identifier of the first service.

[0156] Referring to Figure 5 , the first message may also include a second packet sequence number field, which includes the PN of the third data unit. Optionally, the second packet sequence number field includes a third field and a fourth field, where the third field includes a portion of the PN of the third data unit, and the fourth field includes the contents of the PN of the third data unit excluding the portion. For example, assuming that the PN of the third data unit includes 48 bits, the third field includes the upper 24 bits of the PN of the third data unit, and the fourth field includes the lower 24 bits of the PN of the third data unit.

[0157] The destination device identifier of the first message is the identifier of the first AP, and the source device identifier of the first message is the identifier of the controller. Optionally, the identifier of the first AP includes the address of the first AP and / or the serial number of the first AP, and the identifier of the controller includes the address of the controller and / or the serial number of the controller.

[0158] 5 , the first message may further include an information type field and / or a payload length field, where the information type field is used to indicate information included in the first message. For example, the information type field is used to indicate that the first message includes one or more of the following information: the PN of the first data unit, the SN of the first data unit, the PN of the third data unit, the SN of the third data unit, the service identifier of the first service, the service identifier of the second service, or identification information of the first frequency resource.

[0159] The payload of the first message may include the one or more pieces of information, or the message header of the first message may include the one or more pieces of information.

[0160] In a Wi-Fi multi-link application scenario, the first message may further include identification information of the first frequency resource.

[0161] In some embodiments, the one or more information may be carried in multiple first messages, and the first AP sends the multiple first messages to the controller.

[0162] 5 , the first message may also include a payload length field, which includes the payload length of the first message. And / or, the first message may also include the address of the terminal. For example, the first message may include the media access control (MAC) address of the terminal.

[0163] In some embodiments, the first message may further include a sending rate of data units sent by the first AP and / or a packet loss rate of lost data units.

[0164] The length of each field of the first message recorded in Figure 5 above is only an example. The length of each field in the first message can be set according to actual needs. For example, the SN of the first data unit may be 32 bits in length, and the SN of the third data unit may be 32 bits in length. Then the length of the first sequence number field and the second sequence number field in the first message are both 32 bits.

[0165] Step 403: The controller receives the first message and sends a second message to the second AP, where the second message includes the sequence number of the first data unit.

[0166] In step 403, the controller receives the first message, replaces the source device identifier of the first message with the identifier of the controller, replaces the destination device identifier of the first message with the identifier of the second AP, obtains a second message, and sends the second message to the second AP. Optionally, the identifier of the second AP includes the address of the second AP and / or the serial number of the second AP, etc.

[0167] In the case where the first AP sends multiple first messages, the controller sends multiple second messages to the second AP. The multiple first messages correspond to the multiple second messages one by one. For any first message, the source device identifier of the first message is replaced with the identifier of the controller, and the destination device identifier of the first message is replaced with the identifier of the second AP to obtain the second message corresponding to the first message.

[0168] Step 404: The second AP receives a second message including the sequence number of the first data unit. The second AP obtains the sequence number of the second data unit based on the sequence number of the first data unit. The second data unit is a data unit to be sent by the second AP to the terminal.

[0169] In step 404, the second AP obtains a first value indicating the number of data units sent by the first AP to the terminal after sending the first data unit, and adds the sequence number of the first data unit to the first value to obtain the sequence number of the second data unit.

[0170] The first value is an integer greater than 0, and may be an integer such as 1, 10, 20, or 30. The first value may be a specified integer, or the first value is a value obtained by the second AP based on the transmission rate and / or packet loss rate of the first AP.

[0171] In the case where the first message includes the sending rate of the data unit sent by the first AP and / or the packet loss rate of the lost data unit, the second AP obtains the time length used for the AP communicating with the terminal to switch from the first AP to the second AP, and obtains the first value based on the time length and the sending rate, or obtains the first value based on the time length, the sending rate and the packet loss rate.

[0172] In step 404, the sequence number of the first data unit includes the PN of the first data unit, the first value includes a PN offset value, the PN of the second data unit is equal to the PN of the first data unit + ΔPN, and ΔPN is the PN offset value. And / or, the sequence number of the first data unit includes the SN of the first data unit, the first value includes an SN offset value, the SN of the second data unit is equal to the SN of the first data unit + ΔSN, and ΔSN is the SN offset value.

[0173] For example, in the above example 1, the PN of the first data unit is 50, the SN of the first data unit is 30, assuming ΔPN=1, ΔSN=1, so the PN of the second data unit is equal to 51, and the SN of the second data unit is equal to 31.

[0174] In step 404, the second AP further includes a second anti-replay counter, which is used to count the data units sent by the terminal that are successfully received by the second AP. The second AP sets the initial value of the second anti-replay counter to be less than or equal to the PN of the third data unit.

[0175] If the second message includes the PN of the third data unit, the second AP sets the initial value of the second anti-replay counter to be less than or equal to the PN of the third data unit. If the second message does not include the PN of the third data unit, the second AP sets the initial value of the second anti-replay counter to be equal to a smaller value such as 0, 1, or 2. Typically, the smaller value is less than the PN of the third data unit.

[0176] In step 404, the second message includes the SN of the third data unit, and the second AP may also obtain a second receiving window based on the SN of the third data unit, and the second receiving window is used to receive the data unit sent by the terminal to the second AP.

[0177] The second AP sets the starting position of the second receiving window to SN+1 of the third data unit and sets the length of the second receiving window to the specified length. The ending position of the second receiving window is equal to the sum of the starting position of the second receiving window and the specified length.

[0178] In this way, when the second AP receives an uplink service message sent by the terminal, the uplink service message includes multiple data units, and the PN of each data unit in the multiple data units is greater than or equal to the value counted by the second anti-replay counter, and it is determined that each data unit is not a data unit received repeatedly by the second AP. And when the SN of each data unit is greater than or equal to the starting position of the second receiving window and less than or equal to the ending position of the second receiving window, the second receiving window is used to receive the multiple data units. When each data unit is received, the value of the second anti-replay counter is increased. After receiving the multiple data units, the second receiving window is moved so that the starting position of the second receiving window is equal to the SN+1 of the last received data unit. This ensures that the second AP can successfully receive the data unit sent by the terminal and avoids interrupting the transmission of uplink service data.

[0179] For example, in Example 2 above, the third data unit has a PN of 7 and a SN of 5. Assuming the specified length is 6, the second AP sets the initial value of the second anti-replay counter to 2, sets the starting position of the second receive window to 6, sets the length of the second receive window to 6, and sets the ending position of the second receive window to 12. When the second AP receives an uplink service message sent by the terminal, assuming that the uplink service message includes data unit 1, data unit 2, and data unit 3, data unit 1 has a PN of 8 and an SN of 6, data unit 2 has a PN of 9 and an SN of 7, and data unit 3 has a PN of 10 and an SN of 8. The PNs of these three data units are all greater than the value 2 counted by the second anti-replay counter, and the SN of each of these three data units is greater than or equal to the starting position 6 of the second receive window and less than or equal to the ending position 12 of the second receive window. The second receive window is used to receive these three data units. Each time a data unit is received, the second anti-replay counter is incremented by 1. Therefore, after receiving these three data units, the second anti-replay counter has a value of 5. After receiving the three data units, the second receiving window is moved so that the starting position of the second receiving window is equal to SN+1 of data unit 3, that is, the starting position of the second receiving window is equal to 9.

[0180] In step 404, the second message includes the service identifier of the first service. The second AP may also obtain a second receiving window based on the SN of the third data unit and the service identifier of the first service. The second receiving window is used to receive data units belonging to the first service sent by the terminal to the second AP.

[0181] The second AP sets the starting position of the second receiving window to SN+1 of the third data unit and sets the length of the second receiving window to a specified length, and associates the first service with the second receiving window based on the service identifier of the first service.

[0182] In this way, when the second AP receives an uplink service message sent by the terminal, the uplink service message includes multiple data units belonging to the first service. When the SN of each data unit in the multiple data units is greater than or equal to the starting position of the second receiving window and less than or equal to the end position of the second receiving window, the second receiving window is used to receive the multiple data units.

[0183] In step 404, the second message does not include the SN of the third data unit, and the second AP may also negotiate with the terminal about the starting position of the second receiving window.

[0184] The second AP negotiates with the terminal about the SN of the first data unit to be sent by the terminal to the second AP, and sets the starting position of the second receiving window to the SN of the first data unit.

[0185] In some embodiments, the terminal may initialize the SN of the first data unit to be sent to the second AP to be equal to 0, and the second AP sets the starting position of the second receiving window to 0; or, the terminal may send the SN of the first data unit to be sent to the second AP, and the second AP sets the starting position of the second receiving window to the SN of the first data unit.

[0186] Step 405: The second AP sends a second data unit to the terminal.

[0187] In a case where the first message includes identification information of the first frequency resource, the second AP sends the second data unit to the terminal using the first frequency resource based on the identification information of the first frequency resource.

[0188] As shown in Figure 6 , before sending the second data unit, the second AP encrypts the second data unit. The second data unit includes a MAC header and data content. The MAC header includes the SN of the second data unit. The encryption process involves generating a random number and a counter mode cipher block chaining message integrity code (CCMP) header based on the PN of the second data unit. The CCMP header includes the PN of the second data unit. The data content of the second data unit and the random number are encrypted using a key to obtain ciphertext. The encrypted second data unit includes the MAC header, the CCMP header, and the ciphertext. The encrypted second data unit may also include forward error control (FEC).

[0189] In step 405, the second AP sends a downlink service message to the terminal, where the downlink service message includes the encrypted second data unit.

[0190] In some embodiments, the downlink service message may further include one or more data units located after the second data unit.

[0191] For example, in Example 1 above, the PN of the second data unit is 51, the SN of the second data unit is 31, the value counted by the first anti-replay counter of the terminal is 50, the starting position of the first receiving window in the terminal is 31, and the ending position is 37. Assume that the downlink service message includes the second data unit, the fourth data unit, and the fifth data unit, the sequence number of the fourth data unit is obtained by adding the sequence number of the second data unit, and the sequence number of the fifth data unit is obtained by adding the sequence number of the fourth data unit. Assuming that the added value is 1, the PN of the fourth data unit is 52, the SN is 32, and the PN of the fifth data unit is 53, the SN is 33. The second AP sends the downlink service message to the terminal, and the second data unit, the fourth data unit, and the fifth data unit included in the downlink service message are all encrypted data units.

[0192] The terminal receives the downlink service message and obtains the PN of the second, fourth, and fifth data units in the downlink service message. The PN of the second, fourth, and fifth data units are all greater than or equal to the value of the terminal's first anti-replay counter, 50. Furthermore, the SN of the second, fourth, and fifth data units are all greater than or equal to the starting position 31 of the terminal's first receive window and less than or equal to the ending position 37 of the receive window. The terminal receives the second, fourth, and fifth data units and decrypts them to obtain the data content of the second, fourth, and fifth data units. The second anti-replay counter is incremented each time a data unit is received. After receiving these three data units, the value of the second anti-replay counter is equal to 53. The first receive window is shifted so that the starting position of the first receive window is equal to the SN of the fifth data unit + 1, i.e., 34. This ensures that the terminal can successfully receive the data units sent by the second AP, avoiding interruption of downlink service data transmission.

[0193] In an embodiment of the present application, a first AP obtains the sequence number of a first data unit sent to a terminal, the AP communicating with the terminal is switched from the first AP to a second AP, and the first AP sends the sequence number of the first data unit to the second AP via a controller. The sequence number of the first data unit includes the PN and SN of the first data unit, the value of the first anti-replay counter of the terminal is less than or equal to the PN of the first data unit, and the starting position of the terminal's receive window is obtained based on the SN of the first data unit. The second AP obtains the PN and SN of the second data unit based on the PN and SN of the first data unit and sends the second data unit to the terminal, ensuring that the terminal can successfully receive the second data unit based on the first anti-replay counter and the receive window, thereby avoiding interruption of downlink service data transmission. The first AP obtains the sequence number of a third data unit sent by the terminal and sends the sequence number of the third data unit to the second AP via a controller. The sequence number of the third data unit includes the PN and SN of the third data unit, the PN of the data unit to be sent by the terminal to the second AP is obtained by adding the PN of the third data unit, and the SN of the data unit to be sent is obtained by adding the SN of the third data unit. The second AP sets the value of the second anti-replay counter to be less than or equal to the PN of the third data unit, and sets the starting position of the receiving window to be equal to the SN of the second data unit, to ensure that the second AP can successfully receive the data unit to be sent based on the second anti-replay counter and the receiving window, thereby avoiding interruption of the transmission of uplink service data.

[0194] Referring to FIG. 7 , an embodiment of the present application provides a communication method 700. Method 700 is applied to the network architecture 100 shown in FIG. 1 or FIG. 2 . In method 700, a first AP obtains the sequence number of a first data unit sent to a terminal, obtains the sequence number of a second data unit to be sent to the terminal by a second AP based on the sequence number of the first data unit, sends the sequence number of the second data unit, and the second AP receives the sequence number of the second data unit. Method 700 includes the following operations: Steps 701 to 705.

[0195] Step 701: is the same as step 401 of method 400 shown in FIG4 , and will not be described in detail here.

[0196] Step 702: The first AP obtains the sequence number of the second data unit based on the sequence number of the first data unit, where the second data unit is a data unit to be sent by the second AP to the terminal.

[0197] In step 702, the first AP obtains a first value, which is used to indicate the number of data units sent by the first AP to the terminal after sending the first data unit, and adds the sequence number of the first data unit to the first value to obtain the sequence number of the second data unit.

[0198] The first value is an integer greater than 0. The first value may be a specified integer, or the first value is a value obtained by the second AP based on the transmission rate and / or packet loss rate of the first AP.

[0199] The first AP obtains the time length used for the AP communicating with the terminal to switch from the first AP to the second AP, and obtains the first value based on the time length and the sending rate, or obtains the first value based on the time length, the sending rate and the packet loss rate.

[0200] The sequence number of the first data unit includes the PN of the first data unit, the first value includes the PN offset value, the PN of the second data unit is equal to the PN of the first data unit + ΔPN, and ΔPN is the PN offset value. And / or, the sequence number of the first data unit includes the SN of the first data unit, the first value includes the SN offset value, the SN of the second data unit is equal to the SN of the first data unit + ΔSN, and ΔSN is the SN offset value.

[0201] Step 703: The first AP sends a first message to the controller, where the first message includes the sequence number of the second data unit.

[0202] The first message may further include, for example, one or more of: a service identifier of the first service, a service identifier of the second service, identification information of the first frequency resource, or a sequence number of the third data unit.

[0203] 8 , the first message may include a first packet sequence number field, which includes the PN of the second data unit. Optionally, the first packet sequence number field includes a first field and a second field, wherein the first field includes a portion of the PN of the second data unit, and the second field includes the contents of the PN of the second data unit other than the portion.

[0204] 8 , the first message may further include a first sequence number field and / or a first service field, the first sequence number field includes the SN of the first data unit, and the first service field includes the service identifier of the second service.

[0205] 8 , the first message may further include a second sequence number field and / or a second service field, the second sequence number field includes the SN of the third data unit, and the second service field includes the service identifier of the first service.

[0206] Referring to Figure 8 , the first message may further include a second packet sequence number field, which includes the PN of the third data unit. Optionally, the second packet sequence number field includes a third field and a fourth field, where the third field includes a portion of the PN of the third data unit, and the fourth field includes the contents of the PN of the third data unit excluding the portion.

[0207] The source device identifier of the first message is the identifier of the first AP, and the destination device identifier of the first message is the identifier of the controller.

[0208] Step 704: The controller receives the first message and sends a second message to the second AP, where the second message includes the sequence number of the second data unit.

[0209] In step 704, the controller receives the first message, replaces the source device identifier of the first message with the controller identifier, replaces the destination device identifier of the first message with the identifier of the second AP, obtains a second message, and sends the second message to the second AP.

[0210] Step 705: The second AP receives the second message including the sequence number of the second data unit, and sends the second data unit to the terminal.

[0211] In a case where the first message includes identification information of the first frequency resource, the second AP sends the second data unit to the terminal using the first frequency resource based on the identification information of the first frequency resource.

[0212] Optionally, for a detailed implementation process of the second AP sending the second data unit to the terminal, refer to the relevant content in step 405 of the method 400 shown in FIG4 , which will not be described in detail here.

[0213] In an embodiment of the present application, a first AP obtains the sequence number of a first data unit sent to a terminal, and the AP communicating with the terminal is switched from the first AP to a second AP. The sequence number of the first data unit includes the PN and SN of the first data unit, the value of the terminal's first anti-replay counter is less than or equal to the PN of the first data unit, and the starting position of the terminal's receive window is obtained based on the SN of the first data unit. The first AP obtains the PN and SN of the second data unit based on the PN and SN of the first data unit, and sends the sequence number of the second data unit to the second AP via a controller. The second AP receives the PN and SN of the second data unit and sends the second data unit to the terminal, ensuring that the terminal can successfully receive the second data unit based on the first anti-replay counter and receive window, thereby avoiding interruption of downlink service data transmission. The first AP obtains the sequence number of a third data unit sent by the terminal, and sends the sequence number of the third data unit to the second AP via a controller. The sequence number of the third data unit includes the PN and SN of the third data unit. The PN of the data unit to be sent by the terminal to the second AP is obtained by adding the PN of the third data unit, and the SN of the data unit to be sent is obtained by adding the SN of the third data unit. The second AP sets the value of the second anti-replay counter to be less than or equal to the PN of the third data unit, and sets the starting position of the receiving window to be equal to the SN of the second data unit, to ensure that the second AP can successfully receive the data unit to be sent based on the second anti-replay counter and the receiving window, thereby avoiding interruption of the transmission of uplink service data.

[0214] 9 , an embodiment of the present application provides a communication device 900. The device 900 may be deployed on the AP in the network architecture 100 shown in FIG. 1 or FIG. 2 , or deployed on the first AP in the method 400 shown in FIG. 4 , or deployed on the first AP in the method 700 shown in FIG. 7 . The device 900 includes:

[0215] The processing unit 901 is configured to obtain a first sequence number based on a sequence number of a first data unit, where the first data unit is a data unit that the apparatus 900 has sent to the terminal, and an AP communicating with the terminal is switched from the apparatus 900 to a second AP;

[0216] The communication unit is used to send a first sequence number, where the first sequence number is used to indicate a sequence number of a second data unit, and the second data unit is a data unit to be sent by the second AP to the terminal.

[0217] Optionally, for the detailed implementation process of the processing unit 901 obtaining the first serial number, refer to the relevant content in step 401 of the method 400 shown in FIG4 or step 702 of the method 700 shown in FIG7 , which will not be described in detail here.

[0218] Optionally, for the detailed implementation process of the communication unit 902 sending the first sequence number, refer to the relevant content in step 402 of the method 400 shown in Figure 4 or step 703 of the method 700 shown in Figure 7, which will not be described in detail here.

[0219] Optionally, the first sequence number is the sequence number of the first data unit, or the first sequence number is the sum of the sequence number of the first data unit and a first numerical value, and the first numerical value is used to indicate the number of data units sent by the device 900 to the terminal after sending the first data unit.

[0220] Optionally, the communication unit 902 is also used to send the sequence number of the third data unit, where the third data unit is a data unit sent by the terminal that has been received by the device 900. The sequence number of the third data unit is used to instruct the second AP to obtain a receiving window, which is used to receive the data unit sent by the terminal.

[0221] Optionally, for the detailed implementation process of the communication unit 902 sending the sequence number of the third data unit, refer to the relevant content in step 402 of the method 400 shown in Figure 4 or step 703 of the method 700 shown in Figure 7, which will not be described in detail here.

[0222] Optionally, the third data unit is a data unit belonging to the first service, and the communication unit 902 is also used to send the service identifier of the first service. The service identifier of the first service is used to instruct the second AP to obtain a receiving window, which is used to receive the data unit belonging to the first service sent by the terminal.

[0223] Optionally, for the detailed implementation process of the communication unit 902 sending the service identifier of the first service, refer to the relevant content in step 402 of the method 400 shown in Figure 4 or step 703 of the method 700 shown in Figure 7, which will not be described in detail here.

[0224] Optionally, the communication unit 902 is also used to send identification information of the first frequency resource, where the first frequency resource is the frequency resource used by the device 900 to send the first data unit, and the identification information of the first frequency resource is used to instruct the second AP to use the first frequency resource to send the second data unit.

[0225] Optionally, for the detailed implementation process of the communication unit 902 sending the identification information of the first frequency resource, refer to the relevant content in step 402 of the method 400 shown in Figure 4 or step 703 of the method 700 shown in Figure 7, which will not be described in detail here.

[0226] Optionally, the sequence number of the first data unit includes a packet sequence number PN of the first data unit, where the PN is used to number data units sent to the terminal.

[0227] Optionally, the first data unit is a data unit belonging to the second service, and the sequence number of the first data unit further includes a serial number SN of the first data unit, where the SN is used to number the data units belonging to the second service.

[0228] Optionally, the communication unit is further configured to send a service identifier of a second service, and the second data unit is a data unit belonging to the second service.

[0229] Optionally, for the detailed implementation process of the communication unit 902 sending the service identifier of the second service, refer to the relevant content in step 402 of the method 400 shown in Figure 4 or step 703 of the method 700 shown in Figure 7, which will not be described in detail here.

[0230] Optionally, the first sequence number includes a sequence number of the first data unit,

[0231] Communication unit 902 is used to send a first message to the controller, the first message includes a packet sequence number field and a serial number field, the packet sequence number field includes the PN of the first data unit, and the serial number field includes the SN of the first data unit. The first message is used to trigger the controller to send a second message to the second AP, and the second message includes the packet sequence number field and the serial number field.

[0232] Optionally, for the detailed implementation process of the communication unit 902 sending the first message, refer to the relevant content in step 402 of the method 400 shown in Figure 4 or step 703 of the method 700 shown in Figure 7, which will not be described in detail here.

[0233] Optionally, the first data unit is the last data unit sent by the apparatus 900 to the terminal when the AP communicating with the terminal is switched from the apparatus 900 to a second AP, or the first data unit is a data unit preceding the last data unit.

[0234] In an embodiment of the present application, the processing unit obtains the sequence number of the first data unit that has been sent to the terminal, obtains the first sequence number based on the sequence number of the first data unit, and the communication unit sends the first sequence number, wherein the AP communicating with the terminal is switched from the device to the second AP. The second AP obtains the sequence number of the second data unit based on the first sequence number, and the second data unit is a data unit to be sent to the terminal by the second AP. The first data unit is the first data unit that the device has sent to the terminal, the value of the anti-replay counter for receiving data units in the terminal is less than or equal to the sequence number of the first data unit, and / or the starting position of the receiving window for receiving data units is obtained based on the sequence number of the first data unit. The processing unit obtains the first sequence number based on the sequence number of the first data unit, and the second AP obtains the sequence number of the second data unit to be sent to the terminal based on the first sequence number, so that the terminal can successfully receive the data unit sent by the second AP based on the anti-replay counter and / or the receiving window, thereby avoiding interruption of service data transmission.

[0235] Referring to FIG. 10 , an embodiment of the present application provides a communication device 1000. The device 1000 may be deployed on the AP in the network architecture 100 shown in FIG. 1 or FIG. 2 , or deployed on the second AP in the method 400 shown in FIG. 4 , or deployed on the second AP in the method 700 shown in FIG. 7 . The device 1000 includes:

[0236] The communication unit 1001 is configured to receive a first sequence number, where the first sequence number is obtained by the first AP based on the sequence number of the first data unit, the first data unit being a data unit that the first AP has sent to the terminal, and the AP communicating with the terminal is switched from the first AP to the apparatus 1000;

[0237] The processing unit 1002 is configured to obtain a sequence number of a second data unit based on the first sequence number, where the second data unit is a data unit to be sent by the apparatus 900 to the terminal.

[0238] Optionally, for the detailed implementation process of the communication unit 1001 receiving the first sequence number, refer to the relevant content in step 404 of the method 400 shown in FIG4 or step 705 of the method 700 shown in FIG7 , which will not be described in detail here.

[0239] Optionally, for the detailed implementation process of the processing unit 1002 obtaining the sequence number of the second data unit, refer to the relevant content in step 404 of the method 400 shown in FIG4 , which will not be described in detail here.

[0240] Optionally, the first sequence number is the sequence number of the first data unit, or the first sequence number is the sum of the sequence number of the first data unit and a first numerical value, and the first numerical value is used to indicate the number of data units sent by the first AP to the terminal after sending the first data unit.

[0241] Optionally, the communication unit 1001 is further configured to receive a sequence number of a third data unit, where the third data unit is a data unit sent by the terminal and received by the first AP;

[0242] The processing unit 1002 is further configured to obtain a receiving window based on the sequence number of the third data unit, where the receiving window is used to receive the data unit sent by the terminal.

[0243] Optionally, for the detailed implementation process of the communication unit 1001 receiving the sequence number of the third data unit, refer to the relevant content in step 404 of the method 400 shown in Figure 4 or step 705 of the method 700 shown in Figure 7, which will not be described in detail here.

[0244] Optionally, for a detailed implementation process of the processing unit 1002 obtaining the receiving window, refer to step 404 of the method 400 shown in FIG4 or step 705 of the method 700 shown in FIG7 , which will not be described in detail here.

[0245] Optionally, the third data unit is a data unit belonging to the first service, and the communication unit 1001 is further configured to receive a service identifier of the first service;

[0246] The processing unit 1002 is configured to obtain a receiving window based on the sequence number of the third data unit and the service identifier of the first service, where the receiving window is used to receive data units belonging to the first service sent by the terminal.

[0247] Optionally, for the detailed implementation process of the communication unit 1001 receiving the service identifier of the first service, refer to the relevant content in step 404 of the method 400 shown in FIG4 or step 705 of the method 700 shown in FIG7 , which will not be described in detail here.

[0248] Optionally, for a detailed implementation process of the processing unit 1002 obtaining the receiving window, refer to step 404 of the method 400 shown in FIG4 or step 705 of the method 700 shown in FIG7 , which will not be described in detail here.

[0249] Optionally, the device 1000 includes an anti-replay counter, which is used to record the number of data units successfully received from the terminal. The processing unit 1002 is further used to set the initial value of the anti-replay counter to be less than or equal to the sequence number of the third data unit.

[0250] Optionally, for the detailed implementation process of the processing unit 1002 setting the initial value of the anti-replay counter, please refer to the relevant content in step 404 of the method 400 shown in Figure 4 or step 705 of the method 700 shown in Figure 7, which will not be described in detail here.

[0251] Optionally, the communication unit 1001 is configured to receive identification information of a first frequency resource, where the first frequency resource is a frequency resource used by the first AP to send a first data unit;

[0252] The communication unit 1001 is further configured to send a second data unit to the terminal using the first frequency resource based on the identification information.

[0253] Optionally, for the detailed implementation process of the communication unit 1001 receiving the identification information of the first frequency resource, refer to the relevant content in step 404 of the method 400 shown in Figure 4 or step 705 of the method 700 shown in Figure 7, which will not be described in detail here.

[0254] Optionally, for the detailed implementation process of the communication unit 1001 sending the second data unit, refer to the relevant content in step 405 of the method 400 shown in Figure 4 or step 705 of the method 700 shown in Figure 7, which will not be described in detail here.

[0255] Optionally, the sequence number of the first data unit includes a packet sequence number PN of the first data unit, where the PN is used to number data units sent to the terminal.

[0256] Optionally, the first data unit is a data unit belonging to the second service, and the sequence number of the first data unit further includes a serial number SN of the first data unit, where the SN is used to number the data units belonging to the second service.

[0257] Optionally, the communication unit 1001 is further configured to receive a service identifier of a second service, and the second data unit is a data unit belonging to the second service.

[0258] Optionally, for the detailed implementation process of the communication unit 1001 receiving the service identifier of the second service, refer to the relevant content in step 404 of the method 400 shown in FIG4 or step 705 of the method 700 shown in FIG7 , which will not be described in detail here.

[0259] Optionally, the first sequence number includes the sequence number of the first data unit, and the communication unit 1001 is used to receive a second message sent by the controller, the second message includes a packet sequence number field and a serial number field, the packet sequence number field includes the PN of the first data unit, and the serial number field includes the SN of the first data unit. The second message is sent by the controller based on the first message received from the first AP, and the first message includes the packet sequence number field and the serial number field.

[0260] Optionally, for the detailed implementation process of the communication unit 1001 receiving the second message, refer to the relevant content in step 404 of the method 400 shown in Figure 4 or step 705 of the method 700 shown in Figure 7, which will not be described in detail here.

[0261] Optionally, the first data unit is the last data unit sent by the first AP to the terminal when the AP communicating with the terminal is switched from the first AP to the device, or the first data unit is a data unit before the last data unit.

[0262] In an embodiment of the present application, a communication unit receives a first sequence number, which is obtained by a first AP based on the sequence number of a first data unit. The first data unit is a data unit that the first AP has sent to the terminal, and the AP communicating with the terminal is switched from the first AP to the device. The processing unit obtains the sequence number of a second data unit based on the first sequence number, and the second data unit is a data unit to be sent by the device to the terminal. The first data unit is the first data unit that the first AP has sent to the terminal, and the value of the anti-replay counter for receiving data units in the terminal is less than or equal to the sequence number of the first data unit, and / or the starting position of the receiving window for receiving data units is obtained based on the sequence number of the first data unit. The first sequence number is obtained based on the sequence number of the first data unit, and the processing unit obtains the sequence number of the second data unit to be sent to the terminal based on the first sequence number, so that the terminal can successfully receive the data unit sent by the communication unit based on the anti-replay counter and / or the receiving window, thereby avoiding interruption of service data transmission.

[0263] Referring to FIG. 11 , an embodiment of the present application provides a communication device 1100. The device 1100 may be deployed on the controller in the network architecture 100 shown in FIG. 1 or FIG. 2 , or deployed on the controller in the method 400 shown in FIG. 4 , or deployed on the controller in the method 700 shown in FIG. 7 . The device 1100 includes:

[0264] A communication unit 1101 is configured to receive a first sequence number sent by a first access point (AP), where the first sequence number is obtained by the first AP based on a sequence number of a first data unit, where the first data unit is a data unit that the first AP has sent to the terminal, and the AP communicating with the terminal is switched from the first AP to a second AP.

[0265] The communication unit 1101 is further configured to send a first sequence number to the second AP, where the first sequence number is used to indicate a sequence number of a second data unit, and the second data unit is a data unit to be sent by the second AP to the terminal.

[0266] Optionally, for the detailed implementation process of the communication unit 1101 receiving the first sequence number, refer to the relevant content in step 403 of the method 400 shown in FIG4 or step 704 of the method 700 shown in FIG7 , which will not be described in detail here.

[0267] Optionally, for the detailed implementation process of the communication unit 1101 sending the first sequence number, refer to the relevant content in step 403 of the method 400 shown in FIG4 or step 704 of the method 700 shown in FIG7 , which will not be described in detail here.

[0268] Optionally, the first sequence number is the sequence number of the first data unit, or the first sequence number is the sum of the sequence number of the first data unit and a first numerical value, and the first numerical value is used to indicate the number of data units sent by the first AP to the terminal after sending the first data unit.

[0269] Optionally, the communication unit 1101 is further configured to receive a sequence number of a third data unit sent by the first AP, where the third data unit is a data unit sent by the terminal and received by the first AP;

[0270] The communication unit 1101 is further configured to send the sequence number of the third data unit to the second AP, where the sequence number of the third data unit is used to instruct the second AP to obtain a receiving window, where the receiving window is used to receive the data unit sent by the terminal.

[0271] Optionally, for the detailed implementation process of the communication unit 1101 receiving the sequence number of the third data unit, refer to the relevant content in step 403 of the method 400 shown in Figure 4 or step 704 of the method 700 shown in Figure 7, which will not be described in detail here.

[0272] Optionally, for the detailed implementation process of the communication unit 1101 sending the sequence number of the third data unit, refer to the relevant content in step 403 of the method 400 shown in Figure 4 or step 704 of the method 700 shown in Figure 7, which will not be described in detail here.

[0273] Optionally, the third data unit is a data unit belonging to the first service, and the communication unit 1101 is further configured to receive a service identifier of the first service sent by the first AP;

[0274] The communication unit 1101 is further configured to send a service identifier of the first service to the second AP, where the service identifier of the first service is used to instruct the second AP to obtain a receiving window for receiving data units belonging to the first service sent by the terminal.

[0275] Optionally, for the detailed implementation process of the communication unit 1101 receiving the service identifier of the first service, refer to the relevant content in step 403 of the method 400 shown in Figure 4 or step 704 of the method 700 shown in Figure 7, which will not be described in detail here.

[0276] Optionally, for the detailed implementation process of the communication unit 1101 sending the service identifier of the first service, refer to the relevant content in step 403 of the method 400 shown in Figure 4 or step 704 of the method 700 shown in Figure 7, which will not be described in detail here.

[0277] Optionally, the communication unit 1101 is further configured to receive identification information of a first frequency resource sent by a first AP, where the first frequency resource is a frequency resource used by the first AP to send a first data unit;

[0278] The communication unit 1101 is further configured to send identification information of the first frequency resource to the second AP, where the identification information of the first frequency resource is used to instruct the second AP to use the first frequency resource to send the second data unit.

[0279] Optionally, for the detailed implementation process of the communication unit 1101 receiving the identification information of the first frequency resource, refer to the relevant content in step 403 of the method 400 shown in Figure 4 or step 704 of the method 700 shown in Figure 7, which will not be described in detail here.

[0280] Optionally, for the detailed implementation process of the communication unit 1101 sending the identification information of the first frequency resource, refer to the relevant content in step 403 of the method 400 shown in Figure 4 or step 704 of the method 700 shown in Figure 7, which will not be described in detail here.

[0281] Optionally, the sequence number of the first data unit includes a packet sequence number PN of the first data unit, where the PN is used to number data units sent to the terminal.

[0282] Optionally, the first data unit is a data unit belonging to the second service, and the sequence number of the first data unit further includes a serial number SN of the first data unit, where the SN is used to number the data units belonging to the second service.

[0283] Optionally, the communication unit 1101 is configured to receive a service identifier of a second service sent by the first AP;

[0284] The communication unit 1101 is configured to send a service identifier of a second service to a second AP, where the second data unit is a data unit belonging to the second service.

[0285] Optionally, for the detailed implementation process of the communication unit 1101 receiving the service identifier of the second service, refer to the relevant content in step 403 of the method 400 shown in FIG4 or step 704 of the method 700 shown in FIG7 , which will not be described in detail here.

[0286] Optionally, for the detailed implementation process of the communication unit 1101 sending the service identifier of the second service, refer to the relevant content in step 403 of the method 400 shown in Figure 4 or step 704 of the method 700 shown in Figure 7, which will not be described in detail here.

[0287] Optionally, the first sequence number includes a sequence number of the first data unit, and the communication unit 1101 is configured to receive a first message sent by the first AP, where the first message includes a packet sequence number field and a sequence number field, where the packet sequence number field includes a PN of the first data unit, and the sequence number field includes an SN of the first data unit;

[0288] The communication unit 1101 is configured to send a second message to the second AP, where the second message includes the packet sequence number field and the serial number field.

[0289] Optionally, the device 1100 further includes a processing unit 1102, and the second message is obtained by the processing unit 1102 based on the first message.

[0290] Optionally, for the detailed implementation process of the communication unit 1101 receiving the first message, refer to the relevant content in step 403 of the method 400 shown in Figure 4 or step 704 of the method 700 shown in Figure 7, which will not be described in detail here.

[0291] Optionally, for the detailed implementation process of the communication unit 1101 sending the second message, refer to the relevant content in step 403 of the method 400 shown in Figure 4 or step 704 of the method 700 shown in Figure 7, which will not be described in detail here.

[0292] Optionally, the first data unit is the last data unit sent by the first AP to the terminal when the AP communicating with the terminal is switched from the first AP to the second AP, or the first data unit is a data unit preceding the last data unit.

[0293] In an embodiment of the present application, a communication unit receives a first sequence number sent by a first access point (AP). The first sequence number is obtained by the first AP based on the sequence number of a first data unit. The first data unit is a data unit that the first AP has sent to a terminal, and the AP communicating with the terminal has switched from the first AP to a second AP. A first sequence number is sent to a second AP. The first sequence number is used to indicate the sequence number of a second data unit. The second data unit is a data unit that the second AP is to send to the terminal. The first data unit is the first data unit that the first AP has sent to the terminal, and the first sequence number is obtained based on the sequence number of the first data unit. The value of an anti-replay counter for receiving data units in the terminal is less than or equal to the sequence number of the first data unit, and / or the starting position of a receive window for receiving data units is obtained based on the sequence number of the first data unit. The communication unit receives the first sequence number and sends the first sequence number to the second AP. The second AP obtains the sequence number of the second data unit to be sent to the terminal based on the first sequence number, so that the terminal can successfully receive the data unit sent by the second AP based on the anti-replay counter and / or the receive window, thereby avoiding interruption of service data transmission.

[0294] Referring to FIG. 12 , an embodiment of the present application provides a schematic diagram of a device 1200 . The device 1200 may be the first AP, second AP, or controller provided in any of the above embodiments. For example, the device 1200 may be the AP or controller in the network architecture 100 shown in FIG. 1 or FIG. 2 , or the device 1200 may be the first AP, second AP, or controller in the method 400 shown in FIG. 4 , or the device 1200 may be the first AP, second AP, or controller in the method 700 shown in FIG. 7 . The device 1200 includes at least one processor 1201 , an internal connection 1202 , a memory 1203 , and at least one communication interface 1204 .

[0295] The device 1200 is a hardware structured apparatus.

[0296] In some embodiments, the device 1200 can be used to implement the functional modules in the apparatus 900 shown in FIG. 9 . For example, those skilled in the art will appreciate that the processing unit 901 in the apparatus 900 shown in FIG. 9 can be implemented by the at least one processor 1201 invoking code in the memory 1203 . The communication unit 902 in the apparatus 900 shown in FIG. 9 can be implemented by the at least one communication interface 1204 . The device 1200 can also be used to implement the functions of the first AP in any of the above embodiments.

[0297] In some embodiments, the device 1200 can be used to implement the functional modules in the apparatus 1000 shown in FIG. 10 . For example, those skilled in the art will appreciate that the processing unit 1002 in the apparatus 1000 shown in FIG. 10 can be implemented by the at least one processor 1201 invoking code in the memory 1203. The communication unit 1001 in the apparatus 1000 shown in FIG. 10 can be implemented by the at least one communication interface 1204. The device 1200 can also be used to implement the functionality of the second AP in any of the aforementioned embodiments.

[0298] In some embodiments, the device 1200 can be used to implement the functional modules in the apparatus 1100 shown in FIG11 . For example, those skilled in the art will appreciate that the processing unit 1102 in the apparatus 1100 shown in FIG11 can be implemented by the at least one processor 1201 calling code in the memory 1203 . The communication unit 1101 in the apparatus 1100 shown in FIG11 can be implemented by the at least one communication interface 1204 . The device 1200 can also be used to implement the functions of the controller in any of the above embodiments.

[0299] The processor 1201 is, for example, a general-purpose central processing unit (CPU), a digital signal processor (DSP), a network processor (NP), a graphics processing unit (GPU), a neural network processing unit (NPU), a data processing unit (DPU), a microprocessor, or one or more integrated circuits for implementing the solution of the present application. For example, the processor 1201 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The PLD is, for example, a complex programmable logic device (CPLD), a field programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. It can implement or execute the various logic blocks, modules, and circuits described in conjunction with the disclosure of the embodiments of the present application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0300] The internal connection 1202 may include a path for transmitting information between the components. The internal connection 1202 may be a single board or a bus. The bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. Buses can be classified as address buses, data buses, control buses, etc. For ease of illustration, FIG12 shows only one thick line, but this does not imply that there is only one bus or only one type of bus.

[0301] The at least one communication interface 1204 uses any transceiver-type device for communicating with other devices or communication networks, and the communication network can be Ethernet, wireless access network or wireless local area network (WLAN), etc. The communication interface 1204 can include a wired communication interface and a wireless communication interface. Specifically, the communication interface 1204 can be an Ethernet interface, a Fast Ethernet (FE) interface, a Gigabit Ethernet (GE) interface, an Asynchronous Transfer Mode (ATM) interface, a wireless local area network (WLAN) interface, a cellular network communication interface or a combination thereof. The Ethernet interface can be an optical interface, an electrical interface or a combination thereof. In the embodiment of the present application, the communication interface 1204 can be used for the device 1200 to communicate with other devices.

[0302] The above-mentioned memory 1203 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this. The memory can exist independently and be connected to the processor via a bus. The memory 1203 can also be integrated with the processor 1201.

[0303] In a specific implementation, as an embodiment, the processor 1201 may include one or more CPUs, such as CPU0 and CPU1 in FIG12 . Each of these CPUs may be a single-core processor or a multi-core processor. The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0304] In a specific implementation, as an example, the device 1200 may include multiple processors, such as the processor 1201 and the processor 1207 in FIG12 . Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0305] Referring to Figure 13, an embodiment of the present application also provides a communication system 1300, which includes a device 900 as shown in Figure 9, a device 1000 as shown in Figure 10, and a device 1100 as shown in Figure 11. The device shown in Figure 9 can be a first AP1301, the device shown in Figure 10 can be a second AP1302, and the device 1100 shown in Figure 11 can be a controller 1303.

[0306] This application is applied to wireless LAN systems that support IEEE 802.11ax next-generation Wi-Fi protocols, such as 802.11be, Wi-Fi 7, or extremely high throughput (EHT), as well as 802.11be next generation, Wi-Fi 8, Wi-Fi AI, ultra high reliability (UHR), and other 802.11 series protocols.

[0307] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.

[0308] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A communication method, characterized in that: The method comprises: The first access point AP obtains a first sequence number based on a sequence number of a first data unit, where the first data unit is a data unit that the first AP has sent to the terminal, and an AP communicating with the terminal is switched from the first AP to a second AP; The first AP sends the first sequence number; The second AP obtains the sequence number of a second data unit based on the first sequence number, where the second data unit is a data unit to be sent by the second AP to the terminal.

2. The method according to claim 1, wherein The first sequence number is the sequence number of the first data unit, or the first sequence number is the sum of the sequence number of the first data unit and a first numerical value, and the first numerical value is used to indicate the number of data units sent by the first AP to the terminal after sending the first data unit.

3. The method according to claim 1 or 2, wherein: The method further comprises: a sequence number of a third data unit sent by the first AP, where the third data unit is a data unit sent by the terminal and received by the first AP; The second AP obtains a receiving window based on the sequence number of the third data unit, where the receiving window is used to receive the data unit sent by the terminal.

4. The method according to claim 3, wherein The third data unit is a data unit belonging to the first service, and the method further includes: The first AP sends a service identifier of the first service; The second AP obtains a receiving window based on the sequence number of the third data unit, including: The second AP obtains a receiving window based on the sequence number of the third data unit and the service identifier of the first service, where the receiving window is used to receive the data unit belonging to the first service sent by the terminal.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: The first AP sends identification information of a first frequency resource, where the first frequency resource is a frequency resource used by the first AP to send the first data unit; The second AP sends the second data unit using the first frequency resource based on the identification information.

6. The method according to any one of claims 1 to 5, wherein: The sequence number of the first data unit includes a packet sequence number PN of the first data unit, where the PN is used to number data units sent to the terminal.

7. The method according to claim 6, wherein The first data unit is a data unit belonging to the second service, and the sequence number of the first data unit further includes a serial number SN of the first data unit, where the SN is used to number the data units belonging to the second service.

8. The method according to claim 7, wherein The method further comprises: The first AP sends the service identifier of the second service, and the second data unit is a data unit belonging to the second service.

9. The method according to claim 7 or 8, wherein The first sequence number includes a sequence number of the first data unit, and the first AP sending the first sequence number includes: The first AP sends a first message to the controller, the first message including a packet sequence number field and a sequence number field, the packet sequence number field including the PN of the first data unit, and the sequence number field including the SN of the first data unit; The controller sends a second message to the second AP, wherein the second message includes the packet sequence number field and the sequence number field. Column number field.

10. The method according to any one of claims 1 to 9, wherein The first data unit is the last data unit sent by the first AP to the terminal when the AP communicating with the terminal is switched from the first AP to the second AP, or the first data unit is a data unit preceding the last data unit.

11. A communication method, characterized in that: The method comprises: The first access point AP obtains a first sequence number based on a sequence number of a first data unit, where the first data unit is a data unit that the first AP has sent to the terminal, and an AP communicating with the terminal is switched from the first AP to a second AP; The first AP sends a first sequence number, where the first sequence number is used to indicate a sequence number of a second data unit, and the second data unit is a data unit to be sent by the second AP to the terminal.

12. The method according to claim 11, wherein The first sequence number is the sequence number of the first data unit, or the first sequence number is the sum of the sequence number of the first data unit and a first numerical value, and the first numerical value is used to indicate the number of data units sent by the first AP to the terminal after sending the first data unit.

13. The method according to claim 11 or 12, wherein: The method further comprises: The first AP sends the sequence number of the third data unit, where the third data unit is the data unit sent by the terminal and has been received by the first AP. The sequence number of the third data unit is used to instruct the second AP to obtain a receiving window, where the receiving window is used to receive the data unit sent by the terminal.

14. The method according to claim 13, wherein The third data unit is a data unit belonging to the first service, and the method further includes: The first AP sends a service identifier of the first service, where the service identifier of the first service is used to instruct the second AP to obtain the receiving window, where the receiving window is used to receive data units belonging to the first service sent by the terminal.

15. The method according to any one of claims 11 to 14, wherein: The method further comprises: The first AP sends identification information of a first frequency resource, where the first frequency resource is the frequency resource used by the first AP to send the first data unit, and the identification information of the first frequency resource is used to instruct the second AP to use the first frequency resource to send the second data unit.

16. The method according to any one of claims 11 to 15, wherein: The sequence number of the first data unit includes a packet sequence number PN of the first data unit, where the PN is used to number data units sent to the terminal.

17. The method according to claim 16, wherein The first data unit is a data unit belonging to the second service, and the sequence number of the first data unit further includes a serial number SN of the first data unit, where the SN is used to number the data units belonging to the second service.

18. The method according to claim 17, wherein The method further comprises: The first AP sends the service identifier of the second service, and the second data unit is a data unit belonging to the second service.

19. The method according to claim 17 or 18, wherein: The first sequence number includes a sequence number of the first data unit, and the first AP sending the first sequence number includes: The first AP sends a first message to the controller, the first message includes a packet sequence number field and a serial number field, the packet sequence number field includes the PN of the first data unit, and the serial number field includes the SN of the first data unit. The first message is used to trigger the controller to send a second message to the second AP, and the second message includes the packet sequence number field and the serial number field.

20. The method according to any one of claims 11 to 19, wherein: The first data unit is the last data unit sent by the first AP to the terminal when the AP communicating with the terminal is switched from the first AP to the second AP, or the first data unit is a data unit preceding the last data unit.

21. A communication method, characterized in that: The method comprises: The second access point AP receives a first sequence number, where the first sequence number is obtained by the first AP based on a sequence number of a first data unit, the first data unit being a data unit sent by the first AP to the terminal, and the AP communicating with the terminal is switched from the first AP to the second AP; The second AP obtains the sequence number of a second data unit based on the first sequence number, where the second data unit is a data unit to be sent by the second AP to the terminal.

22. The method according to claim 21, wherein The first sequence number is the sequence number of the first data unit, or the first sequence number is the sum of the sequence number of the first data unit and a first numerical value, and the first numerical value is used to indicate the number of data units sent by the first AP to the terminal after sending the first data unit.

23. The method according to claim 21 or 22, wherein: The method further comprises: a sequence number of a third data unit received by the second AP, where the third data unit is a data unit sent by the terminal and received by the first AP; The second AP obtains a receiving window based on the sequence number of the third data unit, where the receiving window is used to receive the data unit sent by the terminal.

24. The method according to claim 23, wherein The third data unit is a data unit belonging to the first service, and the method further includes: The second AP receives a service identifier of the first service; The second AP obtains a receiving window based on the sequence number of the third data unit, including: The second AP obtains a receiving window based on the sequence number of the third data unit and the service identifier of the first service, where the receiving window is used to receive the data unit belonging to the first service sent by the terminal.

25. The method according to claim 23 or 24, wherein: The second AP includes an anti-replay counter, where the anti-replay counter is used to record the number of data units successfully received from the terminal. The method further includes: The second AP sets an initial value of the anti-replay counter to be less than or equal to the sequence number of the third data unit.

26. The method according to any one of claims 21 to 25, wherein: The method further comprises: The second AP receives identification information of a first frequency resource, where the first frequency resource is a frequency resource used by the first AP to send the first data unit; The second AP sends the second data unit to the terminal using the first frequency resource based on the identification information.

27. The method according to any one of claims 21 to 26, wherein: The sequence number of the first data unit includes a packet sequence number PN of the first data unit, where the PN is used to number data units sent to the terminal.

28. The method of claim 27, wherein: The first data unit is a data unit belonging to the second service, and the sequence number of the first data unit further includes a serial number SN of the first data unit, where the SN is used to number the data units belonging to the second service.

29. The method of claim 28, wherein The method further comprises: The second AP receives the service identifier of the second service, and the second data unit is data belonging to the second service. unit.

30. The method according to claim 28 or 29, wherein The first sequence number includes a sequence number of the first data unit, and the second access point AP receives the first sequence number, including: The second AP receives a second message sent by the controller, the second message includes a packet sequence number field and a sequence number field, the packet sequence number field includes the PN of the first data unit, and the sequence number field includes the SN of the first data unit. The second message is sent by the controller based on the first message received from the first AP, and the first message includes the packet sequence number field and the sequence number field.

31. The method according to any one of claims 21 to 30, wherein: The first data unit is the last data unit sent by the first AP to the terminal when the AP communicating with the terminal is switched from the first AP to the second AP, or the first data unit is a data unit before the last data unit.

32. A communication method, characterized in that: The method comprises: The controller receives a first sequence number sent by a first access point AP, where the first sequence number is obtained by the first AP based on a sequence number of a first data unit, the first data unit being a data unit sent by the first AP to the terminal, and the AP communicating with the terminal is switched from the first AP to the second AP; The controller sends the first sequence number to the second AP, where the first sequence number is used to indicate a sequence number of a second data unit, and the second data unit is a data unit to be sent by the second AP to the terminal.

33. The method of claim 32, wherein: The first sequence number is the sequence number of the first data unit, or the first sequence number is the sum of the sequence number of the first data unit and a first numerical value, and the first numerical value is used to indicate the number of data units sent by the first AP to the terminal after sending the first data unit.

34. The method according to claim 32 or 33, wherein The method further comprises: The controller receives a sequence number of a third data unit sent by the first AP, where the third data unit is a data unit sent by the terminal and received by the first AP; The controller sends the sequence number of the third data unit to the second AP, where the sequence number of the third data unit is used to instruct the second AP to obtain a receiving window, where the receiving window is used to receive the data unit sent by the terminal.

35. The method of claim 34, wherein: The third data unit is a data unit belonging to the first service, and the method further includes: The controller receives the service identifier of the first service sent by the first AP; The controller sends a service identifier of the first service to the second AP, where the service identifier of the first service is used to instruct the second AP to obtain the receiving window, where the receiving window is used to receive data units belonging to the first service sent by the terminal.

36. The method according to any one of claims 32 to 35, wherein: The method further comprises: The controller receives identification information of a first frequency resource sent by the first AP, where the first frequency resource is a frequency resource used by the first AP to send the first data unit; The controller sends identification information of the first frequency resource to the second AP, where the identification information of the first frequency resource is used to instruct the second AP to use the first frequency resource to send the second data unit.

37. The method according to any one of claims 32 to 36, wherein: The sequence number of the first data unit includes a packet sequence number PN of the first data unit, where the PN is used to number data units sent to the terminal.

38. The method of claim 37, wherein: The first data unit is a data unit belonging to the second service, and the sequence number of the first data unit further includes a serial number SN of the first data unit, where the SN is used to number the data units belonging to the second service.

39. The method of claim 38, wherein The method further comprises: The controller receives the service identifier of the second service sent by the first AP; The controller sends the service identifier of the second service to the second AP, and the second data unit is a data unit belonging to the second service.

40. The method according to claim 38 or 39, wherein The first sequence number includes a sequence number of the first data unit, and the controller receives the first sequence number sent by the first access point AP, including: The controller receives a first message sent by the first AP, where the first message includes a packet sequence number field and a sequence number field, the packet sequence number field includes a PN of the first data unit, and the sequence number field includes an SN of the first data unit; The controller sending the first sequence number to the second AP includes: The controller sends a second message to the second AP, where the second message includes the packet sequence number field and the serial number field.

41. The method according to any one of claims 32 to 40, wherein: The first data unit is the last data unit sent by the first AP to the terminal when the AP communicating with the terminal is switched from the first AP to the second AP, or the first data unit is a data unit preceding the last data unit.

42. A communication device, characterized in that The communication device includes a processing unit and a communication unit, The communication unit is configured to perform: a sending operation and / or a receiving operation performed by the first access point AP in the method according to any one of claims 11 to 20; The processing unit is used to perform: the operations performed by the first AP in the method according to any one of claims 11 to 20 except the sending operation and the receiving operation.

43. A communication device, characterized in that The communication device includes a processing unit and a communication unit, The communication unit is configured to perform: a sending operation and / or a receiving operation performed by the second access point AP in the method according to any one of claims 21 to 31; The processing unit is used to perform: the operations other than the sending operation and the receiving operation performed by the second AP in the method according to any one of claims 21 to 31.

44. A communication device, characterized in that The communication device includes a processing unit and a communication unit, The communication unit is configured to perform: a sending operation and / or a receiving operation performed by the controller in the method according to any one of claims 32 to 41; The processing unit is used to perform: the operations performed by the controller in the method according to any one of claims 32 to 41 except the sending operation and the receiving operation.

45. A first access point AP, characterized in that: The first AP includes a memory, a processor, and a computer program stored in the memory. When the processor executes the computer program, the first AP implements the method according to any one of claims 11 to 20.

46. ​​A second access point AP, characterized in that: The second AP includes a memory, a processor, and a computer program stored in the memory. When the processor executes the computer program, the second AP implements the method according to any one of claims 21 to 31.

47. A controller, characterized in that: The controller includes a memory, a processor, and a computer program stored in the memory. When the processor executes the computer program, the controller implements the method according to any one of claims 32 to 41.

48. A communication system, characterized in that The communication system includes the apparatus according to claim 42 and the apparatus according to claim 43, or the communication system includes the first access point AP according to claim 45 and the second AP according to claim 46.

49. The communication system according to claim 48, wherein The communication system further comprises the apparatus of claim 44 or the controller of claim 47 .

50. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the method according to any one of claims 11 to 41 is implemented.

51. A computer program product having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 11 to 41 is implemented.