CN112929409A - WIFI data transmission method, terminal and storage medium - Google Patents

WIFI data transmission method, terminal and storage medium Download PDF

Info

Publication number
CN112929409A
CN112929409A CN202110074174.2A CN202110074174A CN112929409A CN 112929409 A CN112929409 A CN 112929409A CN 202110074174 A CN202110074174 A CN 202110074174A CN 112929409 A CN112929409 A CN 112929409A
Authority
CN
China
Prior art keywords
data
data packets
packets
server
identifications
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110074174.2A
Other languages
Chinese (zh)
Inventor
易晓柯
王佰祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN202110074174.2A priority Critical patent/CN112929409A/en
Publication of CN112929409A publication Critical patent/CN112929409A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9057Arrangements for supporting packet reassembly or resequencing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a WIFI data transmission method, a terminal and a storage medium, and belongs to the technical field of terminal data communication. When the method is based on a terminal side, the method comprises the following steps: synchronously establishing connection with two frequency band hot spots of the router; when an application on the terminal starts to transmit application data, judging whether the application data is multi-socket data or not; if the application data is not the multi-socket data, packaging the application data into a plurality of first data packets, and sending the first data packets to the router through a preset connection link of a frequency band hot spot; and if the application data is multi-socket data, performing data recombination on the application data according to a first preset mode to obtain a plurality of second data packets with identifications, and then sending the second data packets to the router through the connection links of the two frequency band hot spots. According to the technical scheme, the technical problem that the limited bandwidth of the existing WIFI data transmission becomes a transmission bottleneck in a household broadband can be effectively solved.

Description

WIFI data transmission method, terminal and storage medium
Technical Field
The embodiment of the invention relates to the technical field of terminal data communication, in particular to a WIFI data transmission method, a terminal and a storage medium.
Background
At present, users seek higher downloading speed in downloading, so that applications generally start multiple sockets to download, but a general WIFI router on the market still belongs to a product of WIFI5, the highest downloading speed that WIFI5G can provide at present is 866Mbps, and the bandwidth of fiber to the home is generally a gigabit network port at present, so that the bandwidth of WIFI5G becomes a bottleneck on the whole transmission link.
Disclosure of Invention
The embodiment of the invention mainly aims to provide a WIFI data transmission method, a terminal and a storage medium, and aims to solve the technical problem that the limited bandwidth of the existing WIFI data transmission becomes the transmission bottleneck in a household broadband.
In order to achieve the above object, an embodiment of the present invention provides a method for WIFI data transmission, where based on a terminal side, the method includes the following steps: synchronously establishing connection with two frequency band hot spots of the router; when an application on a terminal starts to transmit application data, judging whether the application data is multi-socket data or not; if the application data is not multi-socket data, packaging the application data into a plurality of first data packets, and sending the first data packets to the router through a preset connection link of the frequency band hot spot; and if the application data is multi-socket data, performing data recombination on the application data according to a first preset mode to obtain a plurality of second data packets with identifications, and then sending the second data packets to the router through the connecting links of the two frequency band hot spots.
Optionally, the step of sending the application data to the router through the connection link of the two frequency band hot spots after performing data reassembly on the application data according to a first preset mode to obtain a plurality of second data packets with identifiers includes: repackaging and packaging the application data according to a TCP (transmission control protocol) protocol or a UDP (user datagram protocol) protocol, and recording the characteristic information of the application data through a reserved field preset in an Option of the TCP protocol or a newly-added field preset in front of the application data of the UDP protocol so as to obtain a plurality of second data packets with identifications; and distributing the second data packets with the identifications to the connection links of the two frequency band hot spots according to a preset proportion so as to respectively send the second data packets to the router.
Optionally, after the step of performing data reassembly on the application data according to a first preset manner to obtain a plurality of second data packets with identifiers and sending the second data packets to the router through the connection link between the two frequency band hot spots, the method further includes: after receiving a plurality of data packets sent by the router, judging the types of the data packets; if the data packets are first data packets, normally forwarding the data packets to corresponding applications; and if the data packets are second data packets with identifications, carrying out data packet recombination on the data packets according to a second preset mode, synthesizing a path of data and sending the data to a corresponding application.
Optionally, if the plurality of data packets are second data packets with identifications, performing data packet reassembly on the plurality of data packets according to a second preset mode, and synthesizing a path of data to send to a corresponding application specifically includes: and if the data packets are second data packets with identifications, sequentially carrying out data packet recombination on each data packet according to the identifications to synthesize a path of data to be sent to corresponding application.
In addition, to achieve the above object, an embodiment of the present invention further provides a method for WIFI data transmission, where based on a router side, the method includes the following steps: synchronously establishing connection with two frequency band hot spots of the terminal; after receiving a plurality of data packets sent by the terminal, judging the types of the data packets; if the data packets are first data packets, the data packets are normally forwarded to the corresponding server; and if the data packets are second data packets with identifications, carrying out data packet recombination on the data packets according to a second preset mode, synthesizing a path of data and sending the data to the server.
Optionally, if the plurality of data packets are second data packets with identifications, performing data packet reassembly on the plurality of data packets according to a second preset mode, and synthesizing a path of data to send to the server specifically includes: and if the data packets are second data packets with identifications, sequentially carrying out data packet recombination on each data packet according to the identifications to synthesize a path of data and send the path of data to the server.
Optionally, after the step of performing packet reassembly on the plurality of data packets according to a second preset manner and synthesizing a path of data to send to the server if the plurality of data packets are second data packets with identifications, the method further includes: when server data returned by the server is received, judging whether the server data is multi-socket data or not; if the server data is not the multi-socket data, packaging the server data into a plurality of first data packets, and sending the first data packets to the terminal through a preset connection link of the frequency band hot spot; and if the server data is multi-socket data, performing data packet recombination on the server data according to a first preset mode to obtain a plurality of second data packets with identifications, and then sending the second data packets to the terminal through the connecting links of the two frequency band hot spots.
Optionally, the step of performing packet reassembly on the server data according to a first preset mode to obtain a plurality of second packets with identifiers, and then sending the second packets to the terminal through the connection links of the two frequency band hot spots specifically includes: repackaging and packaging the server data according to a TCP (transmission control protocol) protocol or a UDP (user datagram protocol) protocol, and recording the characteristic information of the server data through a reserved field preset in an Option of the TCP protocol or a newly-added field preset in front of the server data of the UDP protocol so as to obtain a plurality of second data packets with identifications; and distributing the second data packets with the identifications to the connection links of the two frequency band hot spots according to a preset proportion so as to respectively send the second data packets to the terminal.
In addition, in order to achieve the above object, an embodiment of the present invention further provides a terminal, where the terminal includes a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for implementing connection communication between the processor and the memory, and the program implements the steps of the above method when executed by the processor.
In addition, to achieve the above object, an embodiment of the present invention further proposes a storage medium for computer-readable storage, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement the steps of the above method.
According to the WIFI data transmission method, the terminal and the storage medium, when the application data are multi-socket data, the terminal side performs data recombination on the application data according to the first preset mode to obtain the second data packets with the identifiers, and then performs WIFI data transmission between the terminal and the router through the connecting links of the two frequency band hot spots, so that the transmission speed of the WIFI link between the terminal and the router can be expanded to be the sum of the transmission speeds of the connecting links of the two frequency band hot spots, and the WIFI data transmission method, the terminal and the storage medium do not become a transmission bottleneck in a household broadband. Meanwhile, when a router side receives a second data packet with an identification, which is sent by a terminal, the data packets are recombined according to a second preset mode, and a path of data is synthesized and sent to a server, so that the server can correctly respond to application data sent by the terminal, the difficulty that the acceleration is invalid due to the fact that the server side does not support multiple IPs is solved, the compatibility problem of the server side due to acceleration of multiple sockets is solved, any new application adaptation work is not needed, and the downloading speed of a user is improved to the maximum extent. Therefore, the technical problem that the limited bandwidth of the existing WIFI data transmission becomes the transmission bottleneck in the household broadband can be effectively solved by the technical scheme.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
Fig. 2 is a diagram of a communication network system architecture on which the mobile terminal shown in fig. 1 is based.
Fig. 3 is a flowchart of a WIFI data transmission method according to an embodiment of the present invention.
Fig. 4 is a detailed flowchart of step S140 of the method for WIFI data transmission shown in fig. 3.
Fig. 5 is another flowchart of the method for WIFI data transmission shown in fig. 3.
Fig. 6 is a flowchart of a WIFI data transmission method according to an embodiment of the present invention.
Fig. 7 is another flowchart of the method for WIFI data transmission shown in fig. 6.
Fig. 8 is a detailed flowchart of step S270 of the method for WIFI data transmission shown in fig. 7.
Fig. 9 is a block diagram of a terminal according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit a signal during a message transmission or a call, and specifically, receive a downlink message from a base station and then process the received downlink message to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display a message input by the user or a message provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character messages and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives a touch message from the touch sensing device, converts the touch message into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute a command sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data messages, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific messages regarding service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
Example one
As shown in fig. 3, a method for WIFI data transmission according to an embodiment of the present invention is provided, and based on a terminal side, the method specifically includes the following steps:
step S110: and synchronously establishing connection with two frequency band hot spots of the router.
Specifically, the system on the terminal side and the system on the router side are provided with corresponding function settings, so that the terminal side and the system on the router side both have the capability of establishing the connection link of the two frequency band hotspots simultaneously, and thus, when a user can use the terminal to perform WIFI connection, the user can synchronously establish connection with the two frequency band hotspots of the router. The two frequency band hot spots are generally a 2.4G frequency band hot spot and a 5G frequency band hot spot, when the two hot spots are connected, the terminal side starts a virtual network card of the VPN, and the terminal side and the router side start a specific port for transmitting corresponding data.
Step S120: when an application on the terminal starts to transmit application data, whether the application data is multi-socket data or not is judged.
Specifically, when an application on the terminal wants to access a corresponding server through the network, it starts to transmit application data, which is first transmitted to the VPN. Meanwhile, a multi-socket judgment module at the terminal side can judge whether the application data is multi-socket data, when the application initiates multi-socket downloading, the application data transmitted by the application data is the multi-socket data, a connection link required to be transmitted needs a larger bandwidth, when the application does not initiate multi-socket downloading, the application data transmitted by the application data is not the multi-socket data, and the connection link which does not need to be transmitted needs a larger bandwidth.
Step S130: and if the application data is not the multi-socket data, packaging the application data into a plurality of first data packets, and sending the first data packets to the router through a preset connection link of a frequency band hotspot.
Specifically, when the multi-socket determination module at the terminal side determines that the application data is not multi-socket data through the above method steps, it does not need to require a connection link for transmission to have a large bandwidth. At this time, after the application data is packed into a plurality of first data packets according to a normal mode, the first data packets are sent to the router through a preset connection link of a frequency band hotspot. The preset frequency band hot spot is preferably a 5G frequency band hot spot, and can meet the transmission bandwidth requirement of most application data which is not multi-socket data.
Step S140: and if the application data is multi-socket data, performing data recombination on the application data according to a first preset mode to obtain a plurality of second data packets with identifications, and then sending the second data packets to the router through the connection links of the two frequency band hot spots.
Specifically, when the multi-socket determination module at the terminal side determines that the application data is multi-socket data through the above method steps, since the connection link that requires transmission requires a relatively large bandwidth, at this time, data reassembly of the application data is performed according to a first preset mode, and after a plurality of second data packets with identifiers are obtained, the second data packets are sent to the router through the connection links with two frequency band hot spots, as shown in fig. 4, the specific process is as follows:
step S141: and repackaging and packaging the application data according to a TCP protocol or a UDP protocol, and recording the characteristic information of the application data through a preset reserved field in an Option of the TCP protocol or a preset newly-added field before the application data of the UDP protocol so as to obtain a plurality of second data packets with identifications.
Step S142: and distributing a plurality of second data packets with the identifications to the connection links of the two frequency band hot spots according to a preset proportion so as to respectively send the second data packets to the router.
When the multi-socket judgment module at the terminal side judges that the application data is multi-socket data, the data recombination module at the terminal side repackages and packs the application data according to a TCP protocol or a UDP protocol, and records the characteristic information of the application data through a reserved field preset in an Option of the TCP protocol or a newly-added field preset in front of the application data of the UDP protocol, so as to obtain a plurality of second data packets with identifications. The preset reserved field is specifically a reserved field with the type of 31 in the Option of the TCP protocol, and the preset newly added field is specifically an 8-bit data field newly added before the application data of the UDP protocol. The characteristic information of the application data comprises information such as a destination port and a destination address of the application data initiation, and an account associated ip address originally used by the socket. Since the two frequency band hot spots are generally a 2.4G frequency band hot spot and a 5G frequency band hot spot, after obtaining a plurality of second data packets with identifications, the second data packets with identifications are preferably distributed to the connection links between the 2.4G frequency band hot spot and the 5G frequency band hot spot according to a ratio of 1:4 so as to be respectively sent to the router.
In addition, after the router sends the application data to the corresponding server, the corresponding server will forward the corresponding server data back through the router, and at this time, as shown in fig. 5, after the step of "if the application data is re-assembled in the first preset manner to obtain a plurality of second data packets with identifiers, and then sending the second data packets to the router through the connection link of the two frequency band hot spots" is executed, the method further includes:
step S150: and after receiving a plurality of data packets sent by the router, judging the types of the data packets.
Specifically, the type of the data packet sent by the router to the terminal should be consistent with the type of the data packet sent by the terminal to the router, so that after receiving a plurality of data packets sent by the router, the types of the data packets are judged, the types of the data packets include a first data packet and a second data packet with an identifier, and during the judgment, whether a reserved field with a type of 31 exists in an Option of the data packet or whether a newly added 8-bit data field exists before server data of the data packet is checked, if not, the data packet is the first data packet, and if so, the data packet is the second data packet with the identifier.
Step S160: and if the data packets are the first data packets, normally forwarding the data packets to corresponding applications.
Specifically, when the data packets are judged to be the first data packets through the steps of the method, the data packets are normally transmitted and only need to be normally forwarded to the corresponding application.
Step S170: and if the data packets are second data packets with identifications, carrying out data packet recombination on the data packets according to a second preset mode, synthesizing a path of data and sending the data to a corresponding application.
Specifically, when the data packets are judged to be the second data packets with the identifiers through the steps of the method, it is indicated that the data packets are sent from the router side through the connection link of the two frequency band hot spots, at this time, the data packets need to be reassembled according to a second preset mode, a path of data is synthesized, and the data is sent to a corresponding application, and the specific process is as follows: and if the data packets are second data packets with identifications, sequentially carrying out data packet recombination on each data packet according to the identifications to synthesize a path of data to be sent to corresponding application. Namely, the field content of the reserved field with the type of 31 in the Option of the data packet or the field content of the newly added 8-bit data field before the server data of the data packet is extracted, and data packet recombination is sequentially carried out on each data packet to synthesize one path of data to be sent to corresponding application.
Example two
As shown in fig. 6, a second embodiment of the present invention provides a WIFI data transmission method, where based on a router side, the method includes the following steps:
step S210: and synchronously establishing connection with two frequency band hot spots of the terminal.
Specifically, the system on the terminal side and the system on the router side are provided with corresponding function settings, so that the terminal and the system both have the capability of establishing the connection link of the two frequency band hotspots simultaneously, and thus, when a user uses the terminal to perform WIFI connection, the connection can be synchronously established with the two frequency band hotspots of the terminal. The two frequency band hot spots are generally a 2.4G frequency band hot spot and a 5G frequency band hot spot, when the two hot spots are connected, the terminal side starts a virtual network card of the VPN, and the terminal side and the router side start a specific port for transmitting corresponding data.
Step S220: and after receiving a plurality of data packets sent by the terminal, judging the types of the data packets.
Specifically, as can be seen from the method steps in the first embodiment, the types of the data packets include a first data packet and a second data packet with an identifier, and after receiving a plurality of data packets sent by the terminal, the types of the data packets are determined, and when determining, the type of the data packet is determined by checking whether a reserved field with a type of 31 exists in an Option of the data packet or whether a newly added 8-bit data field exists before application data of the data packet, and if not, the data packet is the first data packet, and if so, the data packet is the second data packet with the identifier.
Step S230: if the data packets are the first data packets, the data packets are normally forwarded to the corresponding server.
Specifically, when the data packets are judged to be the first data packets through the steps of the method, the data packets are normally transmitted, and only the data packets are normally forwarded to the corresponding server.
Step S240: and if the data packets are second data packets with identifications, carrying out data packet recombination on the data packets according to a second preset mode, synthesizing a path of data and sending the data to the server.
Specifically, when the data packets are judged to be the second data packets with the identifiers through the steps of the method, it is indicated that the data packets are sent from the terminal side through the connection link of the two frequency band hot spots, at this time, the data packets need to be reassembled according to a second preset mode, a path of data is synthesized, and the data is sent to the server, and the specific process is as follows: and if the data packets are second data packets with identifications, sequentially carrying out data packet recombination on each data packet according to the identifications to synthesize a path of data and send the path of data to the server. Namely, the field content of the reserved field with the type of 31 in the Option of the data packet or the field content of the newly added 8-bit data field before the server data of the data packet is extracted, and data packet recombination is sequentially carried out on each data packet to synthesize a path of data to be sent to the server.
In addition, after the router sends the application data to the corresponding server, the corresponding server returns the corresponding server data to forward the application data to the corresponding terminal through the router, and at this time, as shown in fig. 7, after the step of "if the plurality of data packets are the second data packets with the identifiers, performing packet reassembly on the plurality of data packets according to a second preset manner, and synthesizing a path of data to send to the server" is performed, the method further includes:
step S250: and when receiving the server data returned by the server, judging whether the server data is multi-socket data or not.
Specifically, when the router side receives server data returned by the server, the multi-socket judgment module on the router side can judge whether the server data is multi-socket data, when the application initiates multi-socket downloading, the server data returned correspondingly by the application is the multi-socket data, a connection link required to be transmitted needs a larger bandwidth, and when the application does not initiate multi-socket downloading, the server data returned correspondingly by the application is not the multi-socket data, and the connection link not required to be transmitted has a larger bandwidth.
Step S260: and if the server data is not the multi-socket data, packaging the server data into a plurality of first data packets, and sending the first data packets to the terminal through a preset connection link of a frequency band hotspot.
Specifically, when the multi-socket determination module at the router side determines that the server data is not multi-socket data through the above method steps, it does not need to require a connection link for transmission to have a large bandwidth. At this time, after the application data is packed into a plurality of first data packets according to a normal mode, the first data packets are sent to the terminal through a preset connection link of a frequency band hotspot. The preset frequency band hot spot is preferably a 5G frequency band hot spot, and can meet the transmission bandwidth requirement of most server data which is not multi-socket data.
Step S270: and if the server data is multi-socket data, performing data packet recombination on the server data according to a first preset mode to obtain a plurality of second data packets with identifications, and then sending the second data packets to the terminal through the connection links of the two frequency band hot spots.
Specifically, when the multi-socket determination module at the router side determines that the server data is multi-socket data through the above method steps, since the connection link that requires transmission requires a relatively large bandwidth, at this time, data reassembly of the server data is performed according to a first preset mode, and after a plurality of second data packets with identifiers are obtained, the second data packets are sent to the terminal through the connection links with two frequency band hotspots, as shown in fig. 4, the specific process is as follows:
step S271: and repackaging and packaging the server data according to a TCP (transmission control protocol) protocol or a UDP (user datagram protocol) protocol, and recording the characteristic information of the server data through a reserved field preset in the Option of the TCP protocol or a newly-added field preset in front of the server data of the UDP protocol so as to obtain a plurality of second data packets with identifications.
Step S272: and distributing a plurality of second data packets with the identifications to the connection links of the two frequency band hot spots according to a preset proportion so as to respectively send the second data packets to the terminal.
When the multi-socket judgment module at the router side judges that the server data is the multi-socket data, the data recombination module at the router side repackages and packs the server data according to the TCP protocol or the UDP protocol, and records the characteristic information of the application data through a reserved field preset in the Option of the TCP protocol or a newly added field preset in front of the server data of the UDP protocol, so as to obtain a plurality of second data packets with identifications. The preset reserved field is specifically a reserved field with a type of 31 in an Option of a TCP protocol, and the preset newly added field is specifically an 8-bit data field newly added before server data of a UDP protocol. The characteristic information of the server data includes information such as a destination port from which the server data originates, a destination address, and an account-related ip address originally used by the socket. Since the two frequency band hot spots are generally a 2.4G frequency band hot spot and a 5G frequency band hot spot, after obtaining a plurality of second data packets with identifications, the second data packets with identifications are preferably allocated to the connection links between the 2.4G frequency band hot spot and the 5G frequency band hot spot according to a ratio of 1:4 so as to be respectively sent to the terminal.
EXAMPLE III
As shown in fig. 9, a third embodiment of the present invention provides a terminal 20, where the terminal 20 includes a memory 21, a processor 22, a program stored in the memory and capable of running on the processor, and a data bus 23 for implementing connection communication between the processor 21 and the memory 22, where the program is executed by the processor to implement the steps of the method for WIFI data transmission in the first embodiment, which are specifically described above and are not described herein again.
It should be noted that the embodiment of the terminal 20 and the first method embodiment of the present invention belong to the same concept, and specific implementation processes thereof are detailed in the first method embodiment, and technical features in the first method embodiment are correspondingly applicable in the embodiment of the terminal 20, which is not described herein again.
Example four
A storage medium is provided in an embodiment of the present invention, and is used for computer-readable storage, where the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the specific steps of the method for WIFI data transmission in the first embodiment.
It should be noted that the storage medium and the method embodiment belong to the same concept, and specific implementation processes thereof are detailed in the first method embodiment, and technical features in the first method embodiment are correspondingly applicable in the storage medium embodiment, which is not described herein again.
According to the WIFI data transmission method, the terminal and the storage medium, when the application data are multi-socket data, the terminal side performs data recombination on the application data according to the first preset mode to obtain the second data packets with the identifiers, and then performs WIFI data transmission between the terminal and the router through the connecting links of the two frequency band hot spots, so that the transmission speed of the WIFI link between the terminal and the router can be expanded to be the sum of the transmission speeds of the connecting links of the two frequency band hot spots, and the WIFI data transmission method, the terminal and the storage medium do not become a transmission bottleneck in a household broadband. Meanwhile, when a router side receives a second data packet with an identification, which is sent by a terminal, the data packets are recombined according to a second preset mode, and a path of data is synthesized and sent to a server, so that the server can correctly respond to application data sent by the terminal, the difficulty that the acceleration is invalid due to the fact that the server side does not support multiple IPs is solved, the compatibility problem of the server side due to acceleration of multiple sockets is solved, any new application adaptation work is not needed, and the downloading speed of a user is improved to the maximum extent. Therefore, the technical problem that the limited bandwidth of the existing WIFI data transmission becomes the transmission bottleneck in the household broadband can be effectively solved by the technical scheme.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A WIFI data transmission method is based on a terminal side and is characterized by comprising the following steps:
synchronously establishing connection with two frequency band hot spots of the router;
when an application on a terminal starts to transmit application data, judging whether the application data is multi-socket data or not;
if the application data is not multi-socket data, packaging the application data into a plurality of first data packets, and sending the first data packets to the router through a preset connection link of the frequency band hot spot;
and if the application data is multi-socket data, performing data recombination on the application data according to a first preset mode to obtain a plurality of second data packets with identifications, and then sending the second data packets to the router through the connecting links of the two frequency band hot spots.
2. The method of claim 1, wherein the step of sending the application data to the router via the connection link of the two frequency band hot spots after performing data reassembly on the application data according to the first preset manner to obtain a plurality of second data packets with identifications comprises:
repackaging and packaging the application data according to a TCP (transmission control protocol) protocol or a UDP (user datagram protocol) protocol, and recording the characteristic information of the application data through a reserved field preset in an Option of the TCP protocol or a newly-added field preset in front of the application data of the UDP protocol so as to obtain a plurality of second data packets with identifications;
and distributing the second data packets with the identifications to the connection links of the two frequency band hot spots according to a preset proportion so as to respectively send the second data packets to the router.
3. The method of claim 1, wherein after the step of sending the second data packets with the identifiers to the router via the connection link between the two frequency band hot spots after the step of performing data reassembly on the application data according to the first preset manner to obtain a plurality of second data packets with the identifiers, the method further comprises:
after receiving a plurality of data packets sent by the router, judging the types of the data packets;
if the data packets are first data packets, normally forwarding the data packets to corresponding applications;
and if the data packets are second data packets with identifications, carrying out data packet recombination on the data packets according to a second preset mode, synthesizing a path of data and sending the data to a corresponding application.
4. The method according to claim 3, wherein if the plurality of packets are second packets with identifications, the step of performing packet reassembly on the plurality of packets according to a second predetermined manner to synthesize a path of data to be sent to a corresponding application specifically comprises:
and if the data packets are second data packets with identifications, sequentially carrying out data packet recombination on each data packet according to the identifications to synthesize a path of data to be sent to corresponding application.
5. A WIFI data transmission method is based on a router side and is characterized by comprising the following steps:
synchronously establishing connection with two frequency band hot spots of the terminal;
after receiving a plurality of data packets sent by the terminal, judging the types of the data packets;
if the data packets are first data packets, the data packets are normally forwarded to the corresponding server;
and if the data packets are second data packets with identifications, carrying out data packet recombination on the data packets according to a second preset mode, synthesizing a path of data and sending the data to the server.
6. The method according to claim 5, wherein if the plurality of packets are second packets with identifications, the step of performing packet reassembly on the plurality of packets according to a second predetermined manner to synthesize a path of data and send the path of data to the server specifically includes:
and if the data packets are second data packets with identifications, sequentially carrying out data packet recombination on each data packet according to the identifications to synthesize a path of data and send the path of data to the server.
7. The method according to claim 5, wherein after the step of performing packet reassembly on the plurality of packets according to a second predetermined manner and synthesizing a path of data to be sent to the server if the plurality of packets are the second packets with the identification, the method further comprises:
when server data returned by the server is received, judging whether the server data is multi-socket data or not;
if the server data is not the multi-socket data, packaging the server data into a plurality of first data packets, and sending the first data packets to the terminal through a preset connection link of the frequency band hot spot;
and if the server data is multi-socket data, performing data packet recombination on the server data according to a first preset mode to obtain a plurality of second data packets with identifications, and then sending the second data packets to the terminal through the connecting links of the two frequency band hot spots.
8. The method according to claim 7, wherein the step of sending the server data to the terminal through the connection link of the two frequency band hot spots after performing packet reassembly on the server data according to the first preset mode to obtain a plurality of second packets with identifications specifically includes:
repackaging and packaging the server data according to a TCP (transmission control protocol) protocol or a UDP (user datagram protocol) protocol, and recording the characteristic information of the server data through a reserved field preset in an Option of the TCP protocol or a newly-added field preset in front of the server data of the UDP protocol so as to obtain a plurality of second data packets with identifications;
and distributing the second data packets with the identifications to the connection links of the two frequency band hot spots according to a preset proportion so as to respectively send the second data packets to the terminal.
9. A terminal, comprising: memory, a processor, a program stored on the memory and executable on the processor, and a data bus for enabling a connection communication between the processor and the memory, the program, when executed by the processor, implementing the steps of the method according to any one of claims 1 to 8.
10. A storage medium for computer readable storage, wherein the storage medium stores one or more programs which are executable by one or more processors to implement the steps of the method of any of claims 1-8.
CN202110074174.2A 2021-01-20 2021-01-20 WIFI data transmission method, terminal and storage medium Pending CN112929409A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110074174.2A CN112929409A (en) 2021-01-20 2021-01-20 WIFI data transmission method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110074174.2A CN112929409A (en) 2021-01-20 2021-01-20 WIFI data transmission method, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN112929409A true CN112929409A (en) 2021-06-08

Family

ID=76164456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110074174.2A Pending CN112929409A (en) 2021-01-20 2021-01-20 WIFI data transmission method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112929409A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113438187A (en) * 2021-06-23 2021-09-24 广州极飞科技股份有限公司 Data transmission method, device, transmission equipment and readable storage medium
CN113709780A (en) * 2021-08-02 2021-11-26 南京北路软件技术有限公司 Mining data transmission method, device and system based on WiFi6 wireless double-link hot standby

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120093150A1 (en) * 2010-10-15 2012-04-19 Telefonaktiebolaget L M Ericsson Multipath transmission control protocol proxy
CN106851683A (en) * 2017-01-10 2017-06-13 青岛海信移动通信技术股份有限公司 Multifrequency carrier aggregation WIFI data transmission methods, device and terminal device
CN107708216A (en) * 2017-09-29 2018-02-16 努比亚技术有限公司 Data link distribution method, mobile terminal and computer-readable recording medium
CN107949035A (en) * 2017-11-30 2018-04-20 维沃移动通信有限公司 A kind of connection method of Wireless LAN, device and mobile terminal
CN109890087A (en) * 2018-12-29 2019-06-14 华为终端有限公司 A kind of method and apparatus handling data packet
CN111698274A (en) * 2019-03-15 2020-09-22 华为技术有限公司 Data processing method and device
CN112243268A (en) * 2020-10-16 2021-01-19 南京邮电大学 Multi-stream transmission control method based on QUIC protocol

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120093150A1 (en) * 2010-10-15 2012-04-19 Telefonaktiebolaget L M Ericsson Multipath transmission control protocol proxy
CN106851683A (en) * 2017-01-10 2017-06-13 青岛海信移动通信技术股份有限公司 Multifrequency carrier aggregation WIFI data transmission methods, device and terminal device
CN107708216A (en) * 2017-09-29 2018-02-16 努比亚技术有限公司 Data link distribution method, mobile terminal and computer-readable recording medium
CN107949035A (en) * 2017-11-30 2018-04-20 维沃移动通信有限公司 A kind of connection method of Wireless LAN, device and mobile terminal
CN109890087A (en) * 2018-12-29 2019-06-14 华为终端有限公司 A kind of method and apparatus handling data packet
CN111698274A (en) * 2019-03-15 2020-09-22 华为技术有限公司 Data processing method and device
CN112243268A (en) * 2020-10-16 2021-01-19 南京邮电大学 Multi-stream transmission control method based on QUIC protocol

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113438187A (en) * 2021-06-23 2021-09-24 广州极飞科技股份有限公司 Data transmission method, device, transmission equipment and readable storage medium
CN113438187B (en) * 2021-06-23 2022-12-27 广州极飞科技股份有限公司 Data transmission method, device, transmission equipment and readable storage medium
CN113709780A (en) * 2021-08-02 2021-11-26 南京北路软件技术有限公司 Mining data transmission method, device and system based on WiFi6 wireless double-link hot standby

Similar Documents

Publication Publication Date Title
CN112004173B (en) Bluetooth headset switching method, mobile terminal and computer readable storage medium
CN109195143B (en) Network access method, mobile terminal and readable storage medium
CN110784898A (en) Network switching method, mobile terminal and computer readable storage medium
CN108282405B (en) Application program interface cache management method, application server and storage medium
CN107124428B (en) Method, equipment and storage medium for improving VoLTE call success rate
CN107172605B (en) Emergency call method, mobile terminal and computer readable storage medium
CN112822538A (en) Screen projection display method, screen projection device, terminal and storage medium
CN112929409A (en) WIFI data transmission method, terminal and storage medium
CN109618377B (en) Call processing method, terminal, network side device and computer readable storage medium
CN108199964B (en) Transmission method, terminal, server and computer readable storage medium
CN108541046B (en) Network selection method, terminal and storage medium
CN108040116B (en) Message pushing method, router and computer readable storage medium
CN112492529B (en) Audio transmission method, mobile terminal and computer readable storage medium
CN112770279A (en) Network sharing method, mobile terminal and computer readable storage medium
CN109818967B (en) Notification method, server, mobile terminal and computer readable storage medium
CN109462829B (en) Call transfer method, device and computer readable storage medium
CN110191477B (en) Network search control method, terminal and computer readable storage medium
CN110099173B (en) Touch experience mode switching method, terminal and storage medium
CN111970738A (en) Network switching control method, equipment and computer readable storage medium
CN108183833B (en) Response processing method and device and computer readable storage medium
CN113988237A (en) Electronic price tag communication control method, electronic price tag communication control equipment and computer readable storage medium
CN113301509B (en) Communication method and related equipment
CN109495948B (en) Communication connection method, equipment and computer readable storage medium
CN110262707B (en) Application program operation recording method and device and computer readable storage medium
CN108650403B (en) Message sending method, mobile terminal and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination