CN112399484B - Data transmission method and device, storage medium and electronic equipment - Google Patents

Data transmission method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112399484B
CN112399484B CN202011270058.XA CN202011270058A CN112399484B CN 112399484 B CN112399484 B CN 112399484B CN 202011270058 A CN202011270058 A CN 202011270058A CN 112399484 B CN112399484 B CN 112399484B
Authority
CN
China
Prior art keywords
data
wireless access
access points
transmitted
load information
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.)
Active
Application number
CN202011270058.XA
Other languages
Chinese (zh)
Other versions
CN112399484A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011270058.XA priority Critical patent/CN112399484B/en
Publication of CN112399484A publication Critical patent/CN112399484A/en
Application granted granted Critical
Publication of CN112399484B publication Critical patent/CN112399484B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The application discloses a data transmission method, a device, a storage medium and electronic equipment, wherein the method is applied to the electronic equipment and comprises the following steps: and respectively acquiring load information of a plurality of wireless access points currently connected with the electronic equipment, acquiring data to be transmitted, dividing the data to be transmitted into a plurality of sub-data according to the load information of the plurality of wireless access points, and respectively transmitting the plurality of sub-data to the plurality of wireless access points through a multiplexing link, wherein the multiplexing link corresponds to the plurality of wireless access points one by one. The embodiment of the application can be connected with a plurality of wireless access points at the same time, and divides the network data according to the load conditions of the plurality of wireless access points and then distributes the network data for transmission so as to realize reasonable distribution of the transmitted network data.

Description

Data transmission method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a data transmission method, a data transmission device, a storage medium, and an electronic device.
Background
With the development of mobile communication technology, users have increasingly demanded data communication, and currently, when electronic devices on the market transmit data in a mode of cellular mobile network communication or Wi-Fi communication, the electronic devices need to compete with other devices in the same area for wireless link resources.
In order to solve the above problems, an MPTCP (MultipaTH TCP) function is proposed, and compared with a conventional single-path TCP, a plurality of link paths are used to transmit data when transmitting data, thereby improving the maximum resource utilization and increasing redundancy, and significantly improving throughput. However, in the actual use process, the priority of the data transmitted in each sub-stream is the same, and the transmitted network data cannot be intelligently and reasonably distributed.
Disclosure of Invention
The application provides a data transmission method, a data transmission device, a storage medium and electronic equipment, which can reasonably distribute transmitted network data according to data types.
In a first aspect, an embodiment of the present application provides a data transmission method, applied to an electronic device, where the method includes the following steps:
load information of a plurality of wireless access points currently connected with the electronic equipment is respectively obtained;
acquiring data to be transmitted, and dividing the data to be transmitted into a plurality of sub-data according to the load information of the plurality of wireless access points;
and respectively transmitting the plurality of sub-data to the plurality of wireless access points through multiplexing links, wherein the multiplexing links are in one-to-one correspondence with the plurality of wireless access points.
In a second aspect, an embodiment of the present application provides a data transmission apparatus, applied to an electronic device, where the apparatus includes:
the acquisition module is used for respectively acquiring load information of a plurality of wireless access points currently connected with the electronic equipment;
the dividing module is used for acquiring data to be transmitted and dividing the data to be transmitted into a plurality of sub-data according to the load information of the plurality of wireless access points;
and the transmission module is used for respectively transmitting the plurality of sub-data to the plurality of wireless access points through a multiplexing link, and the multiplexing link corresponds to the plurality of wireless access points one by one.
In a third aspect, an embodiment of the present application provides a storage medium having stored thereon a computer program which, when run on a computer, causes the computer to perform the above-described data transmission method.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions in the memory to perform the following steps:
load information of a plurality of wireless access points currently connected with the electronic equipment is respectively obtained;
Acquiring data to be transmitted, and dividing the data to be transmitted into a plurality of sub-data according to the load information of the plurality of wireless access points;
and respectively transmitting the plurality of sub-data to the plurality of wireless access points through multiplexing links, wherein the multiplexing links are in one-to-one correspondence with the plurality of wireless access points.
The data transmission method provided by the embodiment of the application can respectively acquire the load information of a plurality of wireless access points currently connected with the electronic equipment, acquire the data to be transmitted, divide the data to be transmitted into a plurality of sub-data according to the load information of the plurality of wireless access points, respectively transmit the plurality of sub-data to the plurality of wireless access points through a multiplexing link, wherein the multiplexing link corresponds to the plurality of wireless access points one by one. The embodiment of the application can be connected with a plurality of wireless access points at the same time, and divides the network data according to the load conditions of the plurality of wireless access points and then distributes the network data for transmission so as to realize reasonable distribution of the transmitted network data.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a system frame of an electronic device according to an embodiment of the present application.
Fig. 2 is a schematic flow chart of a data transmission method according to an embodiment of the present application.
Fig. 3 is a schematic flow chart of another data transmission method according to an embodiment of the present application
Fig. 4 is a schematic structural diagram of a data transmission device according to an embodiment of the present application.
Fig. 5 is a schematic diagram of another structure of a data transmission device according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 7 is a schematic diagram of another structure of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements throughout, the principles of the present application are illustrated in an appropriate computing environment. The following description is based on illustrative embodiments of the application and should not be taken as limiting other embodiments of the application not described in detail herein.
In the description that follows, specific embodiments of the application will be described with reference to steps and symbols performed by one or more computers, unless otherwise indicated. Thus, these steps and operations will be referred to in several instances as being performed by a computer, which as referred to herein performs operations that include processing units by the computer that represent electronic signals that represent data in a structured form. This operation transforms the data or maintains it in place in the computer's memory system, which may reconfigure or otherwise alter the computer's operation in a manner well known to those skilled in the art. The data structure maintained by the data is the physical location of the memory, which has specific characteristics defined by the data format. However, the principles of the present application are described in the foregoing text and are not meant to be limiting, and one skilled in the art will recognize that various steps and operations described below may also be implemented in hardware.
The terms "first," "second," and "third," etc. in this disclosure are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to the particular steps or modules listed and certain embodiments may include additional steps or modules not listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, fig. 1 is a schematic diagram of a system frame of an electronic device according to an embodiment of the application. The data transmission method provided by the embodiment of the application is applied to electronic equipment, the electronic equipment supports the function of MPTCP (MultiPath Transmission Control Protocol, multiple transmission control protocol), the MPTCP is the expansion evolution of TCP, two communication parties are allowed to simultaneously establish a plurality of TCP links for data transmission, and when the two communication parties have a plurality of physical channels, the MPTCP realizes the concurrent transmission by simultaneously establishing TCP subflows on the plurality of physical channels. Different scheduling strategies are adopted on the MPTCP subflows to achieve different effects, an aggregate scheduling strategy is adopted to achieve high throughput, a redundant scheduling strategy is adopted to achieve low delay and high reliability. For example, an AP (wireless access point) of two hotspots is connected to a mobile phone through MPTCP at the same time.
In the prior art, some electronic devices have dual WiFi capability, so that multiple paths of dual WiFi exist between a mobile phone and a router, and the underlying support of multiple paths is provided for applying MPTCP, however, in the dual WiFi in the prior art, different TCP data streams are distributed to a primary WiFi or a secondary WiFi, and for a single data stream or a single WiFi, the single WiFi has the problems of large delay fluctuation and poor performance under interference. On the basis of double WiFi, if the capacity of MPTCP is expanded, one data stream can be transmitted on the double WiFi at the same time, and the link performance between the mobile phone and the router can be improved well.
In fig. 1, an electronic device 101 may be connected to a router 102 using WiFi, a technology that allows the electronic device to connect to a wireless local area network, typically using the 2.4G UHF or 5G SHF ISM radio frequency bands. The electronic device 101 may be connected to multiple routers 102 simultaneously through MPTCP, so that the electronic device may be connected to multiple radio access points through multiple transmission links, respectively, where the radio access points may also open a hotspot function for other electronic devices 103, such as the electronic device 103, to serve as one radio access point.
Referring to fig. 2, fig. 2 is a flow chart of a data transmission method according to an embodiment of the application. The data transmission method provided by the embodiment of the application is applied to the electronic equipment, and the specific flow can be as follows:
step 101, load information of a plurality of wireless access points currently connected with the electronic device is respectively obtained.
In the embodiment of the present application, the electronic device is respectively connected to a plurality of wireless access points through a multiplexing link, where the multiplexing link may be a TCP sub-stream that is simultaneously established on a plurality of physical channels by the electronic device through an MPTCP function, for example, two or more paths. For example, two transmission links are taken as an example, when a multiplexing link exists between the electronic device and the plurality of wireless access points, two transmission links may be selected from the multiplexing links to connect, where the two transmission links may be WiFi links, such as a 2.4G WiFi link and a 5G WiFi link, respectively, where the two wireless access points may have the same SSID (Service Set Identifier ) or may be different SSIDs. That is, the plurality of wireless access points currently connected to the electronic device include gateway devices connected through a local area network protocol and/or base station devices connected through a mobile communication protocol. Further, when two transmission links are selected from the multiple transmission links to connect with the corresponding radio access point, the selection may be performed according to the parameter information of the transmission links, such as delay, transmission rate, packet loss rate, and the like of the transmission links.
The wireless access point may be an AP providing a wireless network access service, a terminal device hotspot, or the like. The wireless network includes, but is not limited to, a wireless local area network based on IEEE802.11 series standard protocols, for example, a wireless local area network based on IEEE802.11n protocol, which is called a WiFi network, and the wireless device may access the corresponding wireless network through the wireless access point. In a subsequent embodiment of the invention, a wireless access point accessing a WiFi network is described as an example.
Further, after accessing to a plurality of wireless access points through a multiplexing link, load information of the plurality of wireless access points may be obtained, respectively. The load information may include a memory idle rate of each wireless access point, a CPU (Central Processing Unit ) idle rate, and the like.
In other embodiments, the load information may further include one or more of information of a current access device number, a maximum access device number, a current used bandwidth, a maximum bandwidth, and the like of each wireless access point. In the preferred embodiment of the invention, the wireless access point device can notify the electronic device of the information such as the current access device number, the maximum access device number, the current bandwidth, the maximum bandwidth and the like of the wireless access point device through the transmitted broadcast beacon frame and the probe response message of the response terminal.
The load information may include a wireless access device load rate, and specifically may be calculated according to the number of devices that have access to the wireless access point, that is, the formula: wireless access device load rate= (number of devices that have accessed the wireless access point/maximum number of devices that the wireless access point can access) ×100% is calculated. The load information may further include a wireless access bandwidth load rate, and specifically may be calculated according to current bandwidth information of the wireless access point, that is, a formula: wireless access bandwidth load rate= (current used bandwidth of wireless access point/maximum bandwidth of wireless access point) = 100% is calculated. Further, the load information may be obtained by performing comprehensive calculation according to the wireless access device load rate and the wireless access bandwidth load rate, for example, the wireless access device load rate obtained by performing calculation according to the number of devices accessed to the wireless access point and the wireless access bandwidth load rate obtained by performing calculation according to the current bandwidth information of the wireless access point are set with different weights, and weighted summation is obtained.
It should be noted that, the calculation of the wireless access device load rate and the wireless access bandwidth load rate may be performed by the wireless access point and then transmitted to the electronic device, or may be obtained by the electronic device by self-calculation after receiving the information such as the current access device number, the maximum access device number, the current usage bandwidth, the maximum bandwidth, and the like sent by the wireless access point. The information may even be obtained from the wireless access point by a server connected to the wireless access point and calculated and then sent to the electronic device, which is not particularly limited herein.
Preferably, the load information corresponding to the wireless access point may be periodically received by the electronic device from the wireless access point. The wireless access point periodically reports (e.g., once every 5 minutes, once every fifteen minutes, once every half hour, etc.) load information to the electronic device. The electronic device may store the load information in a database according to identification information (e.g., SSID) of the wireless access point. When the electronic equipment receives or generates a load information acquisition request, inquiring from a database according to the identification information of the wireless access point included in the load information acquisition request to obtain the load information corresponding to the wireless access point.
In an embodiment, a load threshold may be preset as a threshold value for normal operation of the radio access point. After the load information of the plurality of wireless access points currently connected is acquired, comparing the load information with the load threshold, and if the load information is smaller than the load threshold, further executing the subsequent steps. For example, if the electronic device is currently connected to two wireless access points, namely, a first wireless access point and a second wireless access point, through MPTCP, and the load rates of the two wireless access points are obtained and then compared with the load threshold, and if the load rate of the first wireless access point is smaller than the load threshold and the load rate of the second wireless access point is greater than the load threshold, the second wireless access point can be directly confirmed to be in an unavailable state currently, and at this time, the electronic device can only transmit data to the first wireless access point when transmitting data subsequently. If the load rates of the first wireless access point and the second wireless access point are both less than the load threshold, step 102 may be continued.
Step 102, obtaining data to be transmitted, and dividing the data to be transmitted into a plurality of sub-data according to the load information of a plurality of wireless access points.
In an embodiment, when the electronic device needs to transmit data, the data to be transmitted may be divided into a plurality of sub-data according to the load information of the plurality of wireless access points, so as to perform subsequent split transmission, thereby improving transmission efficiency. Before dividing the data to be transmitted, an application program corresponding to the data to be transmitted can be determined, then whether the application program is a preset application program or not is judged, the preset application program can be some application programs with higher importance degree installed in the electronic equipment, and if yes, the step of dividing the data to be transmitted is executed. Therefore, when the electronic equipment runs the preset application program and transmits application data, the transmission efficiency can be effectively improved through the shunt transmission scheme provided by the application. And aiming at other application programs with lower importance, data division and shunt transmission are not needed, so that equipment resources are saved. The preset application program may be preconfigured for the electronic device system, or may be set for the user, for example, the preset application program may be added or subtracted.
Further, considering that the foreground application program can be intuitively seen by the user in the process of using the electronic device, there is a higher requirement on the efficiency of data transmission. Therefore, the preset application program may be a foreground application program, after the data to be transmitted is obtained, it is determined whether the application program corresponding to the data to be transmitted is an application program, if yes, the step of dividing the data to be transmitted may be continuously performed.
In another embodiment, the data amount of the data to be transmitted may be further acquired and whether the data amount is greater than a preset value may be intelligently set by the electronic device system, for example, 200M, and if so, the data to be transmitted may be divided into a plurality of sub-data. For example, after the game application is opened, the game needs to update and download the 500M update package, and at this time, it is confirmed that the data size of the game data is greater than the preset value, and the transmission efficiency can be greatly improved by dividing the data and then performing split transmission.
In the embodiment of the application, the data to be transmitted can be divided into a plurality of sub-data according to the load information of a plurality of wireless access points, and particularly the data to be transmitted can be divided into a plurality of sub-data according to the proportion among the load rates of a plurality of wireless access points as the dividing basis, so that the sub-data with smaller data quantity can be transmitted through the wireless access point with higher load, and the sub-data with larger data quantity can be transmitted through the wireless access point with lower load.
For example, if the electronic device is currently connected to two wireless access points, namely, a first wireless access point and a second wireless access point, through MPTCP, the load rates of the two wireless access points are obtained to be 20% of the load rate of the first wireless access point and 80% of the load rate of the second wireless access point, and the ratio of the load rates is 2:8, at this time, the data to be transmitted can be divided into two sub-data according to the ratio, that is, the data size ratio of the divided two word data is also 2:8, for example, the data quantity to be transmitted is 100M, and sub data a of 20M and sub data B of 80M can be obtained through division.
Step 103, transmitting the plurality of sub-data to the plurality of wireless access points through multiplexing links, wherein the multiplexing links are in one-to-one correspondence with the plurality of wireless access points.
Continuing with the above example, after dividing 100M data to be transmitted into 20M sub data a and 80M sub data B, the sub data B may be transmitted to the first wireless access point, and the sub data a may be transmitted to the second wireless access point, so as to implement transmission of sub data with smaller data size through the wireless access point with higher load, and transmission of sub data with larger data size through the wireless access point with lower load. And the data to be transmitted are reasonably distributed according to the load conditions of a plurality of wireless access points, and split transmission is performed, so that the transmission efficiency is effectively improved.
In an embodiment, after the data to be transmitted is divided, a tag may be further added to the divided sub-data, where the tag may indicate a target wireless access point where the sub-data needs to be transmitted, for example, the tag may include an SSID of the target wireless access point.
As can be seen from the foregoing, in the data transmission method provided by the embodiment of the present application, a plurality of wireless access points may be connected through a multiplexing link, load information of the plurality of wireless access points currently connected may be obtained, data to be transmitted may be obtained, the data to be transmitted may be divided into a plurality of sub-data according to the load information of the plurality of wireless access points, and the plurality of sub-data may be transmitted to the corresponding wireless access points through the multiplexing link. The embodiment of the application can be connected with a plurality of wireless access points at the same time, and divides the network data according to the load conditions of the plurality of wireless access points and then distributes the network data for transmission so as to realize reasonable distribution of the transmitted network data.
The data transmission method of the present application will be further described based on the method described in the above embodiments. Referring to fig. 3, fig. 3 is another flow chart of a data transmission method according to an embodiment of the present application, where the data transmission method includes:
Step 201, load information of a plurality of wireless access points connected currently is obtained respectively, wherein the load information includes bandwidth occupancy rate of the wireless access points or number of devices accessed by the wireless access points.
In an embodiment, the electronic device is connected to the multiple radio access points through multiple transmission links, respectively, where the multiple transmission links may be TCP sub-streams that are simultaneously established on multiple physical channels by the electronic device through MPTCP function, for example, two or more paths. The wireless access point may be an AP providing a wireless network access service, a terminal device hotspot, or the like.
After accessing to a plurality of wireless access points through a multiplexing link, load information of the plurality of wireless access points can be acquired respectively. The load information may include a bandwidth occupancy of the wireless access point or the number of devices accessed by the wireless access point.
Further, the load information may further include current bandwidth used and maximum bandwidth information of each wireless access point, and then calculate the bandwidth occupancy rate of the wireless access point according to the current bandwidth used and the maximum bandwidth information. Of course, in other embodiments, the load information may also include a memory idle rate of each wireless access point, a CPU (Central Processing Unit ) idle rate, and the like.
Preferably, the load information corresponding to the wireless access point may be periodically received by the electronic device from the wireless access point. The wireless access point periodically reports (e.g., once every 5 minutes, once every fifteen minutes, once every half hour, etc.) load information to the electronic device.
Step 202, calculating a first ratio of bandwidth occupancy of each of the plurality of wireless access points or a number of devices accessed by the plurality of wireless access points.
In an embodiment, if the load information includes the currently used bandwidth and the maximum bandwidth information of the wireless access point, the bandwidth occupancy rate may be calculated according to the current bandwidth and the maximum bandwidth information. I.e. using the formula: bandwidth occupancy= (current used bandwidth of wireless access point/maximum bandwidth of wireless access point) ×100% is calculated. And then, respectively calculating the bandwidth occupancy rates of the wireless access points to obtain a first ratio among the bandwidth occupancy rates.
For example, if the electronic device is currently connected to two wireless access points, namely, a first wireless access point and a second wireless access point, through MPTCP, the bandwidth occupancy rates of the two wireless access points are obtained to be 20% of the bandwidth occupancy rate of the first wireless access point and 80% of the bandwidth occupancy rate of the second wireless access point, and the ratio of the bandwidth occupancy rates is 2:8.
In another embodiment, the first ratio may also be calculated according to the number of devices that each of the plurality of wireless access points accesses, for example, the number of access devices of the two wireless access points is 6 for the first wireless access point and 4 for the second wireless access point, where the ratio of the number of access devices is 6:4.
in step 203, a second proportion of the data to be transmitted to be divided is calculated according to the first proportion, and the data to be transmitted is divided into a plurality of sub-data according to the second proportion.
In an embodiment, the second ratio may be calculated according to the reciprocal of the first ratio, where the second ratio is a data dividing ratio, and the data to be transmitted is divided into a plurality of sub-data according to the second ratio. For example, if the bandwidth occupancy of each of the first wireless access point and the second wireless access point or the number of devices accessed by the plurality of wireless access points is a first ratio of 2:8, at this time, a second ratio of 8:2, the data to be transmitted can be divided into two sub-data according to the second proportion, for example, the data to be transmitted is 100M, and sub-data a of 80M and sub-data B of 20M can be obtained after division.
In an embodiment, the transmission quality of the plurality of wireless access points may be determined and scored according to load information, where the load information may include the bandwidth occupancy of the wireless access points and the number of accessed devices at the same time. For example, the lower the bandwidth occupancy, the fewer the number of access devices, indicating better communication quality, and the higher the quality score; the higher the bandwidth occupancy, the more the number of access devices, the worse the communication quality, and the lower the quality score. Then a first ratio between the quality scores of the plurality of wireless access points is obtained, and a second ratio of the divided sub-data is calculated.
In this embodiment, a radio access point with a higher quality score may be selected to transmit sub-data with a larger data size. If the quality score of the first wireless access point is higher than that of the second wireless access point, sub-data with larger divided data volume can be transmitted to the first wireless access point. If the quality score of the first wireless access point is lower than that of the second wireless access point, sub-data with larger divided data quantity can be transmitted to the second wireless access point. It can be appreciated that if the quality score of the first wireless access point is the same as the quality score of the second wireless access point, the data to be transmitted may be equally divided and randomly transmitted to the first wireless access point and the second wireless access point.
That is, in this embodiment of the application, the load information includes a bandwidth occupancy rate of the radio access point and the number of devices that are accessed, and the step of dividing the data to be transmitted into a plurality of sub-data according to the load information of the plurality of radio access points includes:
performing aggregation analysis on the bandwidth occupancy rate of the wireless access point and the number of the accessed devices, and calculating a quality score according to an analysis result;
calculating a first ratio of quality scores of the plurality of wireless access points;
and calculating a second proportion of the data to be transmitted, which is required to be divided, according to the first proportion, and dividing the data to be transmitted into a plurality of sub-data according to the second proportion.
In step 204, among the plurality of sub-data, the target wireless access point corresponding to each sub-data is determined according to the load information of the plurality of wireless access points.
In step 205, a mapping relationship between the sub-data and the corresponding target wireless access point is established.
In an embodiment, after the data to be transmitted is divided, a target wireless access point corresponding to the divided sub-data may be further determined according to load information of the wireless access point, where the target wireless access point may indicate the wireless access point to which the sub-data needs to be transmitted, and the target wireless access point may confirm through an SSID of the wireless access point. Then, a mapping relationship between the sub data and the SSID of the corresponding target wireless access point can be further established.
Step 206, determining target wireless access points corresponding to the plurality of sub-data according to the mapping relation.
Step 207, transmitting the sub-data through the transmission link corresponding to the target wireless access point.
For example, a first ratio of the first wireless access point to the second wireless access point is 2:8, then one can rely on 8:2 dividing the data to be transmitted, if the data to be transmitted is 100M, obtaining sub data a of 80M and sub data B of 20M after dividing, transmitting the sub data a to a first wireless access point, and transmitting the sub data B to a second wireless access point, so as to realize the transmission of the sub data with smaller data volume through the wireless access point with higher load and the transmission of the sub data with larger data volume through the wireless access point with lower load. And the data to be transmitted are reasonably distributed according to the load conditions of a plurality of wireless access points, and split transmission is performed, so that the transmission efficiency is effectively improved.
As can be seen from the foregoing, in the data transmission method provided in the embodiment of the present application, a plurality of wireless access points may be connected through a multiplex transmission link, load information of each of the plurality of wireless access points may be obtained, the load information includes a bandwidth occupancy rate of the wireless access point or a number of devices accessed by the wireless access point, a first ratio of a bandwidth occupancy rate of each of the plurality of wireless access points or a number of devices accessed by the plurality of wireless access points is calculated, a second ratio of data to be transmitted is calculated according to the first ratio, the data to be transmitted is divided into a plurality of sub-data according to the second ratio, among the plurality of sub-data, a mapping relationship between each sub-data and a corresponding target wireless access point is determined according to the load information of the plurality of wireless access points, the target wireless access points corresponding to the plurality of sub-data are respectively determined according to the mapping relationship, the sub-data are transmitted through the transmission link corresponding to the target wireless access points, and the data to be transmitted may be connected simultaneously, and the data to be divided into a plurality of sub-data according to the load conditions of the plurality of wireless access points, so that the network is reasonably transmitted after the data is divided.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a data transmission device according to an embodiment of the application. Wherein the data transmission device 30 is applied to an electronic apparatus, which is respectively connected to a plurality of wireless access points through a multiplexing link, and the device comprises:
an obtaining module 301, configured to obtain load information of a plurality of wireless access points currently connected to the electronic device, respectively;
the dividing module 302 is configured to obtain data to be transmitted, and divide the data to be transmitted into a plurality of sub-data according to load information of the plurality of wireless access points;
and a transmission module 303, configured to transmit the plurality of sub-data to the plurality of wireless access points through multiplexing links, where the multiplexing links are in one-to-one correspondence with the plurality of wireless access points.
In an embodiment, with continued reference to fig. 5, the load information includes a bandwidth occupancy and/or a number of access devices, and further, the dividing module 302 may include:
a calculating submodule 3021 for calculating a data dividing ratio according to the load information;
and the dividing submodule 3022 is used for dividing the data to be transmitted into a plurality of sub-data according to the data dividing proportion.
In another embodiment, the calculating submodule is further configured to perform aggregate analysis on a bandwidth occupancy rate of the wireless access points and the number of accessed devices, calculate mass fractions according to analysis results, and calculate a first proportion of mass fractions of the plurality of wireless access points;
the dividing submodule 3022 is further configured to calculate a second proportion of the data to be transmitted that needs to be divided according to the first proportion, and divide the data to be transmitted into a plurality of sub-data according to the second proportion.
As can be seen from the foregoing, the data transmission device 30 in the embodiment of the present application may respectively obtain the load information of a plurality of wireless access points currently connected to the electronic device, obtain the data to be transmitted, divide the data to be transmitted into a plurality of sub-data according to the load information of the plurality of wireless access points, and respectively transmit the plurality of sub-data to the plurality of wireless access points through multiplexing links, where the multiplexing links are in one-to-one correspondence with the plurality of wireless access points. The embodiment of the application can be connected with a plurality of wireless access points at the same time, and divides the network data according to the load conditions of the plurality of wireless access points and then distributes the network data for transmission so as to realize reasonable distribution of the transmitted network data.
In the embodiment of the present application, the data transmission device and the data transmission method in the above embodiment belong to the same concept, and any method provided in the data transmission method embodiment may be run on the data transmission device, and the specific implementation process is detailed in the data transmission method embodiment, which is not described herein again.
The term "module" as used herein may be considered a software object executing on the computing system. The various components, modules, engines, and services described herein may be viewed as implementing objects on the computing system. The apparatus and methods described herein may be implemented in software, but may also be implemented in hardware, and are within the scope of the present application.
The embodiment of the application also provides a storage medium, on which a computer program is stored, which when run on a computer causes the computer to execute the data transmission method described above.
The embodiment of the application also provides electronic equipment, such as a tablet personal computer, a mobile phone and the like, wherein the electronic equipment comprises a processor and a memory, the memory stores a plurality of instructions, and the processor loads the instructions in the memory for executing the following steps:
Load information of a plurality of wireless access points currently connected with the electronic equipment is respectively obtained;
acquiring data to be transmitted, and dividing the data to be transmitted into a plurality of sub-data according to the load information of the plurality of wireless access points;
and respectively transmitting the plurality of sub-data to the plurality of wireless access points through multiplexing links, wherein the multiplexing links are in one-to-one correspondence with the plurality of wireless access points.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
Referring to fig. 6, the electronic device 400 includes a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 400 is a control center of the electronic device 400, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device 400 and processes data by running or loading computer programs stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device 400.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by running the computer programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a computer program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device, etc. In addition, memory 402 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. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
In the embodiment of the present application, the processor 401 in the electronic device 400 loads the instructions corresponding to the processes of one or more computer programs into the memory 402 according to the following steps, and the processor 401 executes the computer programs stored in the memory 402, so as to implement various functions, as follows:
Load information of a plurality of wireless access points currently connected with the electronic equipment is respectively obtained;
acquiring data to be transmitted, and dividing the data to be transmitted into a plurality of sub-data according to the load information of the plurality of wireless access points;
and respectively transmitting the plurality of sub-data to the plurality of wireless access points through multiplexing links, wherein the multiplexing links are in one-to-one correspondence with the plurality of wireless access points.
Referring to fig. 7, in some embodiments, the electronic device 400 may further include: a display 403, radio frequency circuitry 404, audio circuitry 405, and a power supply 406. Wherein, the display 403, the radio frequency circuit 404, the audio circuit 405 and the power supply 406 are electrically connected to the processor 401 respectively.
The display 403 may be used to display information entered by a user or provided to a user as well as various graphical user interfaces that may be composed of graphics, text, icons, video, and any combination thereof. The display 403 may include a display panel, which in some embodiments may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), or an Organic Light-Emitting Diode (OLED), or the like.
The radio frequency circuitry 404 may be used to transceive radio frequency signals to establish wireless communications with a network device or other electronic device via wireless communications. Typically, the radio frequency circuitry 501 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM, subscriber Identity Module) card, a transceiver, a coupler, a low noise amplifier (LNA, low Noise Amplifier), a duplexer, and the like.
The audio circuitry 405 may be used to provide an audio interface between a user and an electronic device through a speaker, microphone. The audio circuit 506 may convert the received audio data into an electrical signal, transmit to a speaker, and be converted into a sound signal output by the speaker.
The power supply 406 may be used to power the various components of the electronic device 400. In some embodiments, the power supply 406 may be logically connected to the processor 401 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system. The power supply 406 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown in fig. 7, the electronic device 400 may further include a camera, a bluetooth module, etc., which will not be described herein.
In an embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
It should be noted that, for the data transmission method according to the embodiment of the present application, it will be understood by those skilled in the art that all or part of the flow of implementing the data transmission method according to the embodiment of the present application may be implemented by controlling related hardware by a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and the execution may include the flow of the embodiment of the data transmission method. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
For the data transmission device of the embodiment of the application, each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules, if implemented as software functional modules and sold or used as a stand-alone product, may also be stored on a computer readable storage medium such as read-only memory, magnetic or optical disk, etc.
The foregoing describes in detail a data transmission method, apparatus, storage medium and electronic device provided in the embodiments of the present application, and specific examples are applied to illustrate the principles and implementations of the present application, where the foregoing examples are only used to help understand the method and core idea of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, the present description should not be construed as limiting the present application.

Claims (7)

1. A data transmission method applied to an electronic device, the method comprising:
the method comprises the steps that a plurality of wireless access points are respectively connected through a multiplexing link, wherein the multiplexing link is a TCP substream which is established on a plurality of physical channels by the electronic equipment through a multiplexing control protocol function;
respectively acquiring load information of the plurality of wireless access points, wherein the load information comprises bandwidth occupancy rate of the wireless access points and/or the number of accessed devices;
comparing the load information with a preset load threshold, and if the load information is larger than the preset load threshold, determining that the corresponding wireless access point is in an unavailable state currently;
If the load information is smaller than the preset load threshold, determining an application program corresponding to the data to be transmitted; if the application program is judged to be a preset application program, acquiring data to be transmitted and the data quantity of the data to be transmitted, calculating a first proportion corresponding to the type according to the type of load information of a corresponding wireless access point when the data quantity of the data to be transmitted is larger than a preset value, calculating a second proportion to be divided of the data to be transmitted according to the first proportion, and dividing the data to be transmitted into a plurality of sub-data according to the second proportion;
and respectively transmitting the plurality of sub-data to the plurality of wireless access points through multiplexing links, wherein the multiplexing links are in one-to-one correspondence with the plurality of wireless access points.
2. The data transmission method according to claim 1, wherein after dividing the data to be transmitted into a plurality of sub-data, the method further comprises:
according to the load information of the plurality of wireless access points, respectively determining a target wireless access point corresponding to each piece of sub-data in the plurality of pieces of sub-data;
And establishing mapping relations between the plurality of sub-data and the plurality of wireless access points.
3. The data transmission method according to claim 2, wherein the step of transmitting the plurality of sub-data to the plurality of radio access points through multiplexing links, respectively, comprises:
and respectively transmitting the plurality of sub-data to the plurality of wireless access points according to the mapping relation.
4. The data transmission method according to claim 1, wherein the plurality of wireless access points currently connected to the electronic device include gateway devices connected through a local area network protocol and/or base station devices connected through a mobile communication protocol.
5. A data transmission apparatus for use in an electronic device, the apparatus comprising:
the acquisition module is used for respectively connecting a plurality of wireless access points through a multiplexing transmission link, wherein the multiplexing transmission link is a TCP substream which is established on a plurality of physical channels by the electronic equipment through a multiplexing transmission control protocol function; respectively acquiring load information of the plurality of wireless access points, wherein the load information comprises bandwidth occupancy rate of the wireless access points and/or the number of accessed devices; comparing the load information with a preset load threshold, and if the load information is larger than the preset load threshold, determining that the corresponding wireless access point is in an unavailable state currently;
The dividing module is used for determining an application program corresponding to data to be transmitted if the load information is smaller than the preset load threshold value; if the application program is judged to be a preset application program, acquiring data to be transmitted and the data quantity of the data to be transmitted, calculating a first proportion corresponding to the type according to the type of load information of a corresponding wireless access point when the data quantity of the data to be transmitted is larger than a preset value, calculating a second proportion to be divided of the data to be transmitted according to the first proportion, and dividing the data to be transmitted into a plurality of sub-data according to the second proportion;
and the transmission module is used for respectively transmitting the plurality of sub-data to the plurality of wireless access points through a multiplexing link, and the multiplexing link corresponds to the plurality of wireless access points one by one.
6. A storage medium having stored thereon a computer program which, when run on a computer, causes the computer to perform the data transmission method according to any of claims 1 to 4.
7. An electronic device comprising a processor and a memory, the memory storing a plurality of instructions, wherein the processor loads the instructions in the memory for performing the steps of:
The method comprises the steps that a plurality of wireless access points are respectively connected through a multiplexing link, wherein the multiplexing link is a TCP substream which is established on a plurality of physical channels by the electronic equipment through a multiplexing control protocol function;
respectively acquiring load information of the plurality of wireless access points, wherein the load information comprises bandwidth occupancy rate of the wireless access points and/or the number of accessed devices;
comparing the load information with a preset load threshold, and if the load information is larger than the preset load threshold, determining that the corresponding wireless access point is in an unavailable state currently;
if the load information is smaller than the preset load threshold, determining an application program corresponding to the data to be transmitted; if the application program is judged to be a preset application program, acquiring data to be transmitted and the data quantity of the data to be transmitted, calculating a first proportion corresponding to the type according to the type of load information of a corresponding wireless access point when the data quantity of the data to be transmitted is larger than a preset value, calculating a second proportion to be divided of the data to be transmitted according to the first proportion, and dividing the data to be transmitted into a plurality of sub-data according to the second proportion;
And respectively transmitting the plurality of sub-data to the plurality of wireless access points through multiplexing links, wherein the multiplexing links are in one-to-one correspondence with the plurality of wireless access points.
CN202011270058.XA 2020-11-13 2020-11-13 Data transmission method and device, storage medium and electronic equipment Active CN112399484B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011270058.XA CN112399484B (en) 2020-11-13 2020-11-13 Data transmission method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011270058.XA CN112399484B (en) 2020-11-13 2020-11-13 Data transmission method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112399484A CN112399484A (en) 2021-02-23
CN112399484B true CN112399484B (en) 2023-09-12

Family

ID=74600301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011270058.XA Active CN112399484B (en) 2020-11-13 2020-11-13 Data transmission method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112399484B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113645283B (en) * 2021-07-29 2023-04-07 北京三快在线科技有限公司 Multilink communication method, device, storage medium and electronic equipment
CN113810502A (en) * 2021-09-27 2021-12-17 远峰科技股份有限公司 Communication data transmission method, system, computer equipment and storage medium
CN113689270B (en) * 2021-10-25 2022-04-01 阿里云计算有限公司 Method for determining black product device, electronic device, storage medium, and program product
CN115118675B (en) * 2022-06-17 2023-05-23 赛诺信致软件技术(北京)有限公司 Data stream transmission acceleration method and system based on intelligent network card equipment
CN116887446A (en) * 2023-08-08 2023-10-13 深圳市盛安讯达数字技术有限公司 5G communication system, data communication method and nonvolatile storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103517323A (en) * 2012-06-20 2014-01-15 华为技术有限公司 Data transmission method of wireless heterogeneous network, distribution apparatus, base station apparatus
CN105357718A (en) * 2015-11-06 2016-02-24 深圳市金立通信设备有限公司 Wireless network load balancing method, network equipment and terminal equipment
CN106130608A (en) * 2016-06-07 2016-11-16 华中科技大学 A kind of heterogeneous network converged framework processed based on double-deck cloud and data transmission method thereof
WO2017008701A1 (en) * 2015-07-10 2017-01-19 努比亚技术有限公司 Data transmission method, apparatus, and user device
CN107949035A (en) * 2017-11-30 2018-04-20 维沃移动通信有限公司 A kind of connection method of Wireless LAN, device and mobile terminal
CN107949019A (en) * 2017-10-24 2018-04-20 上海连尚网络科技有限公司 A kind of load-balancing method of wireless access point
CN108494681A (en) * 2018-02-05 2018-09-04 普联技术有限公司 Data flow transmission method, wireless telecom equipment and the storage medium of multilink
CN109618373A (en) * 2019-01-15 2019-04-12 Oppo广东移动通信有限公司 Link choosing method and relevant apparatus
CN109640329A (en) * 2018-12-14 2019-04-16 Oppo广东移动通信有限公司 Link aggregation implementation method and Related product
CN109729602A (en) * 2017-10-31 2019-05-07 中国移动通信有限公司研究院 A kind of link data processing method, device and computer storage medium
CN109803325A (en) * 2019-02-12 2019-05-24 Oppo广东移动通信有限公司 Data distribution method, device, mobile terminal and storage medium
CN109889499A (en) * 2019-01-17 2019-06-14 Oppo广东移动通信有限公司 File transmitting method and relevant apparatus
CN109922504A (en) * 2019-03-27 2019-06-21 Oppo广东移动通信有限公司 Data distribution method and Related product
CN111836329A (en) * 2019-04-19 2020-10-27 Oppo广东移动通信有限公司 Data transmission method and related device

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103517323A (en) * 2012-06-20 2014-01-15 华为技术有限公司 Data transmission method of wireless heterogeneous network, distribution apparatus, base station apparatus
WO2017008701A1 (en) * 2015-07-10 2017-01-19 努比亚技术有限公司 Data transmission method, apparatus, and user device
CN105357718A (en) * 2015-11-06 2016-02-24 深圳市金立通信设备有限公司 Wireless network load balancing method, network equipment and terminal equipment
CN106130608A (en) * 2016-06-07 2016-11-16 华中科技大学 A kind of heterogeneous network converged framework processed based on double-deck cloud and data transmission method thereof
CN107949019A (en) * 2017-10-24 2018-04-20 上海连尚网络科技有限公司 A kind of load-balancing method of wireless access point
CN109729602A (en) * 2017-10-31 2019-05-07 中国移动通信有限公司研究院 A kind of link data processing method, device and computer storage medium
CN107949035A (en) * 2017-11-30 2018-04-20 维沃移动通信有限公司 A kind of connection method of Wireless LAN, device and mobile terminal
CN108494681A (en) * 2018-02-05 2018-09-04 普联技术有限公司 Data flow transmission method, wireless telecom equipment and the storage medium of multilink
CN109640329A (en) * 2018-12-14 2019-04-16 Oppo广东移动通信有限公司 Link aggregation implementation method and Related product
CN109618373A (en) * 2019-01-15 2019-04-12 Oppo广东移动通信有限公司 Link choosing method and relevant apparatus
CN109889499A (en) * 2019-01-17 2019-06-14 Oppo广东移动通信有限公司 File transmitting method and relevant apparatus
CN109803325A (en) * 2019-02-12 2019-05-24 Oppo广东移动通信有限公司 Data distribution method, device, mobile terminal and storage medium
CN109922504A (en) * 2019-03-27 2019-06-21 Oppo广东移动通信有限公司 Data distribution method and Related product
CN111836329A (en) * 2019-04-19 2020-10-27 Oppo广东移动通信有限公司 Data transmission method and related device

Also Published As

Publication number Publication date
CN112399484A (en) 2021-02-23

Similar Documents

Publication Publication Date Title
CN112399484B (en) Data transmission method and device, storage medium and electronic equipment
US11071092B2 (en) Response message transmission method and apparatus
CN110383870A (en) A kind of processing method and terminal of radio frequency resource
US11974342B2 (en) Multi-link establishment method and communication apparatus
US20220264675A1 (en) System and method for processing data
CN112383948B (en) Data transmission method, device, storage medium and electronic equipment
IL268179A (en) Access method, and terminal
US8929315B2 (en) Method and system for coexistence between wireless communication networks
CN112867069B (en) Interference processing method and device, storage medium and electronic equipment
CN114189938A (en) Carrier determining method, communication device, and storage medium
CN106851685B (en) Method and system for controlling bandwidth of mobile terminal
CN113727331A (en) 5G base station deployment method and device
CN113068161A (en) Bluetooth low-energy-consumption communication method, device and system and storage medium
CN109565826B (en) Data transmission method and related product
JP2019513309A (en) Communication method based on device to device
CN112333690B (en) Data transmission method, device, storage medium, terminal and network access point equipment
CN109246760B (en) Wireless local area network load balancing method based on power control, wireless access device and wireless access equipment
CN111565432B (en) Communication method and access network equipment
CN110461039B (en) Communication method and device
CN111669810A (en) Energy-saving method and device for digital indoor distribution system
CN114666888B (en) NSA network registration method and related device
WO2024011575A1 (en) Systems and methods for conditional handover and extended reality capacity enhancements
CN108141761A (en) Radio resource determines method, apparatus and service server
CN116528372A (en) Dynamic service transmission method, device, equipment and storage medium
CN117156506A (en) Cell switching method, device, equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant