US-12628225-B2 - Data processing method and terminal
Abstract
Disclosed in the present application is a data transmission method. The data transmission method includes: establishing a multipath transmission control protocol (MPTCP) connection with a network access point device, the MPTCP connection including a first TCP connection and a second TCP connection, the first TCP connection being constructed according to a first Wi-Fi connection corresponding to a first Wi-Fi module, and the second TCP connection being constructed according to a second Wi-Fi connection corresponding to a second Wi-Fi module; and transmitting network access data to the network access point device by means of the MPTCP connection.
Inventors
- Wei Liu
- Hao Peng
Assignees
- GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD.
Dates
- Publication Date
- 20260512
- Application Date
- 20230428
- Priority Date
- 20201113
Claims (16)
- 1 . A data transmission method performed by a terminal, the terminal comprising a first Wi-Fi module and a second Wi-Fi module, and the data transmission method comprising: establishing a Multipath Transmission Control Protocol (MPTCP) connection between the terminal and a network access point device, wherein the MPTCP connection comprises a first Transmission Control Protocol (TCP) connection between the terminal and the network access point device and a second TCP connection between the terminal and the network access point device, the first TCP connection is constructed based on a first Wi-Fi connection between the first Wi-Fi module and the network access point device, and the second TCP connection is constructed based on a second Wi-Fi connection between the second Wi-Fi module and the network access point device; and transmitting network access data to the network access point device through the MPTCP connection and enabling the network access point device to transmit the network access data to a server requested to be accessed through a TCP connection between the network access point device and the server; wherein the network access data comprises at least one data flow, each of the at least one data flow comprises a plurality of data packets, the plurality of data packets are configured to be transmitted through the first TCP connection and the second TCP connection at the same time from the terminal to the network access point device, and the plurality of data packets are configured to be transmitted through the TCP connection from the network access point device to the server.
- 2 . The data transmission method according to claim 1 , wherein the transmitting network access data to the network access point device through the MPTCP connection comprises: selecting a redundant scheduling strategy or an aggregated scheduling strategy based on a type of an application generating the network access data to transmit the network access data to the network access point device, wherein the redundant scheduling strategy is configured to transmit the plurality of data packets through the first TCP connection and transmit the plurality of data packets through the second TCP connection at the same time, the aggregated scheduling strategy is configured to distribute the plurality of data packets to first TCP connection and the second TCP connection for transmitting.
- 3 . The data transmission method according to claim 2 , wherein the selecting a redundant scheduling strategy or an aggregated scheduling strategy based on a type of an application generating the network access data to transmit the network access data to the network access point device comprises: transmitting the network access data to the network access point device by using the redundant scheduling strategy and through the MPTCP connection in response to the network access data being generated by a first type application; transmitting the network access data to the network access point device by using the aggregated scheduling strategy and through the MPTCP connection in response to the network access data being generated by a second type application; wherein the first type application has a higher requirement for reliability than the second type application, and the second type application has a higher requirement for a transmission rate than the first type application.
- 4 . The data transmission method according to claim 3 , wherein the first type application is a mail application, a payment application, or a mobile banking application, and the second type application is an online video play application, a video live application, or a game application.
- 5 . The data transmission method according to claim 3 , wherein the selecting a redundant scheduling strategy or an aggregated scheduling strategy based on a type of an application generating the network access data to transmit the network access data to the network access point device further comprises: transmitting the network access data to the network access point device through the MPTCP connection under a condition without specifying a scheduling strategy in response to detecting that the network access data is neither generated by the first type application nor generated by the second type application.
- 6 . The data transmission method according to claim 3 , wherein the method further comprises: acquiring a residual power value of the terminal; and wherein the transmitting the network access data to the network access point device by using the redundant scheduling strategy and through the MPTCP connection in response to the network access data being generated by a first type application comprises: transmitting the network access data to the network access point device by using the redundant scheduling strategy and through the MPTCP connection in response to the network, access data being generated by the first type application and the residual power value being greater than a preset threshold.
- 7 . The data transmission method according to claim 6 , wherein the transmitting the network access data to the network access point device by using the redundant scheduling strategy and through the MPTCP connection in response to the network access data being generated by a first type application further comprises: transmitting the network access data to the network access point device through the first TCP connection or the second TCP connection in response to the residual power value being less than or equal to the preset threshold.
- 8 . The data transmission method according to claim 1 , further comprising: acquiring data transmitted by the server from the network access point device through the MPTCP connection.
- 9 . A data transmission method performed by a network access point device, comprising: establishing a Multipath Transmission Control Protocol (MPTCP) connection between the network access point device and a terminal, wherein the MPTCP connection comprises a first Transmission Control Protocol (TCP) connection between the terminal and the network access point device and a second TCP connection between the terminal and the network access point device, the first TCP connection is constructed based on a first Wi-Fi connection between the terminal and the network access point device, and the second TCP connection is constructed based on a second Wi-Fi connection between the terminal and the network access point device; acquiring network access data from the terminal through the MPTCP connection, establishing a TCP connection between the network access point device and a server requested to be accessed by the network access data, and transmitting the network access data to the server through the TCP connection; and acquiring data to be transmitted to the terminal from the server through the TCP connection and transmitting the data to the terminal through the MPTCP connection; wherein the network access data comprises at least one data flow, each of the at least one data flow comprises a plurality of data packets, the plurality of data packets are configured to be transmitted through the first TCP connection and the second TCP connection at the same time from the terminal to the network access point device, and the plurality of data packets are configured to be transmitted through the TCP connection from the network access point device to the server.
- 10 . A terminal comprising a memory, a processor, a first Wi-Fi module, and a second Wi-Fi module, wherein the processor is configured to call a computer program stored in the memory to execute: establishing a Multipath Transmission Control Protocol (MPTCP) connection between the terminal and a network access point device, wherein the MPTCP connection comprises a first Transmission Control Protocol (TCP) connection between the terminal and the network access point device and a second TCP connection between the terminal and the network access point device, the first TCP connection is constructed based on a first Wi-Fi connection between the first Wi-Fi module and the network access point device, and the second TCP connection is constructed based on a second Wi-Fi connection between the second Wi-Fi module and the network access point device; and transmitting network access data to the network access point device through the MPTCP connection, and enabling the network access point device to transmit the network access data to a server requested to be accessed through a TCP connection between the network access point device and the server; wherein the network access data comprises at least one data flow, each of the at least one data flow comprises a plurality of data packets, the plurality of data packets are configured to be transmitted through the first TCP connection and the second TCP connection at the same time from the terminal to the network access point device, and the plurality of data packets are configured to be transmitted through the TCP connection from the network access point device to the server.
- 11 . The terminal according to claim 10 , wherein in response to executing the transmitting network access data to the network access point device through the MPTCP connection, the processor executes: selecting a redundant scheduling strategy or an aggregated scheduling strategy based on a type of an application generating the network access data to transmit the network access data to the network access point device, wherein the redundant scheduling strategy is configured to transmit the plurality of data packets through the first TCP connection and transmit the plurality of data packets through the second TCP connection at the same time, the aggregated scheduling strategy is configured to distribute the plurality of data packets to first TCP connection and the second TCP connection for transmitting.
- 12 . The terminal according to claim 11 , wherein in response to executing the selecting a redundant scheduling strategy or an aggregated scheduling strategy based on a type of an application generating the network access data to transmit the network access data to the network access point device, the processor executes: transmitting the network access data to the network access point device by using the redundant scheduling strategy and through the MPTCP connection in response to the network access data being generated by a first type application; transmitting the network access data to the network access point device by using the aggregated scheduling strategy and through the MPTCP connection in response to the network access data being generated by a second type application; wherein the first type application has a higher requirement for reliability than the second type application, and the second type application has a higher requirement for a transmission rate than the first type application.
- 13 . The terminal according to claim 12 , wherein in response to executing the selecting a redundant scheduling strategy or an aggregated scheduling strategy based on a type of an application generating the network access data to transmit the network access data to the network access point device, the processor further executes: transmitting the network access data to the network access point device through the MPTCP connection under a condition without specifying a scheduling strategy in response to detecting that the network access data is neither generated by the first type application nor generated by the second type application.
- 14 . The terminal according to claim 12 , wherein the processor further executes: acquiring a residual power value of the terminal; and transmitting the network access data to the network access point device by using the redundant scheduling strategy and through the MPTCP connection in response to the network access data being generated by the first type application and the residual power value being greater than a preset threshold.
- 15 . The terminal according to claim 14 , wherein the processor further executes: transmitting the network access data to the network access point device through the first TCP connection or the second TCP connection in response to the residual power value being less than or equal to the preset threshold.
- 16 . The terminal according to claim 10 , wherein the processor the processor further executes: acquiring data transmitted by the server from the network access point device through the MPTCP connection.
Description
CROSS REFERENCE TO RELATED APPLICATIONS The present disclosure is a continuation of International Patent Application No. PCT/CN2021/115451, filed on Aug. 30, 2021, which claims priority to Chinese Patent Application No. 202011272708.4 entitled “DATA PROCESSING METHOD AND APPARATUS, STORAGE MEDIUM, TERMINAL, AND NETWORK ACCESS POINT DEVICE”, filed on Nov. 13, 2020 in the National Intellectual Property Administration of China, the content of which is herein incorporated by reference in their entireties. TECHNICAL FIELD The present disclosure relates to the technology field of data, in particular to a data transmission method and a terminal. BACKGROUND Data transmission is often required between different devices. For example, as a mobile terminal accesses a network, the mobile terminal may transmit a network access request to a network access point device, and then the network access point device may transmit the network access request of the mobile terminal to a network device such as an application server, or the like. However, the efficiency of the data transmission in the related art is still low. SUMMARY Some embodiments of the present disclosure provide a data transmission method, a data transmission apparatus and a terminal. In a first aspect, some embodiments of the present disclosure provide a data transmission method performed by a terminal. The terminal including a first Wi-Fi module and a second Wi-Fi module, and the data transmission method includes: establishing a Multipath Transmission Control Protocol (MPTCP) connection with a network access point device; and transmitting network access data to the network access point device through the MPTCP connection and enabling the network access point device to transmit the network access data to a server requested to be accessed through a TCP connection. Herein, the MPTCP connection includes a first Transmission Control Protocol (TCP) connection and a second TCP connection, the first TCP connection is constructed based on a first Wi-Fi connection corresponding to the first Wi-Fi module, and the second TCP connection is constructed based on a second Wi-Fi connection corresponding to the second Wi-Fi module. In a second aspect, some embodiments of the present disclosure provide a data transmission method performed by a network access point device. The data transmission method includes: establishing a Multipath Transmission Control Protocol (MPTCP) connection with a terminal; acquiring network access data from the terminal through the MPTCP connection, establishing a TCP connection with a server requested to be accessed by the network access data, and transmitting the network access data to the server through the TCP connection; and acquiring data to be transmitted to the terminal from the server through the TCP connection and transmitting the data to the terminal through the MPTCP connection. Herein, the MPTCP connection includes a first Transmission Control Protocol (TCP) connection and a second TCP connection, the first TCP connection is constructed based on a first Wi-Fi connection between the terminal and the network access point device, and the second TCP connection is constructed based on a second Wi-Fi connection between the terminal and the network access point device. In a third aspect, some embodiments of the present disclosure provide a terminal including a memory, a processor, a first Wi-Fi module, and a second Wi-Fi module. The processor is configured to call a computer program stored in the memory to execute operations of the data transmission method provided by the first aspect of the embodiments of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a first schematic flow chart of a data transmission method provided by some embodiments of the present disclosure. FIG. 2 is a second schematic flow chart of a data transmission method provided by some embodiments of the present disclosure. FIG. 3 is a schematic view illustrating a first scenario of the data transmission method provided by some embodiments of the present disclosure. FIG. 4 is a schematic view illustrating a scenario of establishing a MPTCP connection between a terminal and a server by using a Wi-Fi network and a mobile data network in the related art, and the MPTCP connection is configured to transmit data between the terminal and the server. FIG. 5 is a third schematic flow chart of a data transmission method provided by some embodiments of the present disclosure. FIG. 6 is a fourth schematic flow chart of a data transmission method provided by some embodiments of the present disclosure. FIG. 7 is a fifth schematic flow chart of a data transmission method provided by some embodiments of the present disclosure. FIGS. 8-9 are schematic views illustrating a second scenario of the data transmission method provided by some embodiments of the present disclosure. FIG. 10 is a first schematic structural view of a data transmission apparatus provided by some embodiment