CN111615170A - Data transmission method and system - Google Patents
Data transmission method and system Download PDFInfo
- Publication number
- CN111615170A CN111615170A CN202010417153.1A CN202010417153A CN111615170A CN 111615170 A CN111615170 A CN 111615170A CN 202010417153 A CN202010417153 A CN 202010417153A CN 111615170 A CN111615170 A CN 111615170A
- Authority
- CN
- China
- Prior art keywords
- terminal
- data
- transmission link
- transmission
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a data transmission method and a system, wherein the method comprises the following steps: if the first terminal is detected to need to send data, acquiring a first data transmission condition and a first network condition corresponding to a first transmission link and/or a second data transmission condition and a second network condition corresponding to a second transmission link; determining data transmission information corresponding to a first terminal based on a first data transmission condition and a first network condition corresponding to a first transmission link and/or a second data transmission condition and a second network condition corresponding to a second transmission link, and sending the data transmission information to the first terminal; and the first terminal sends the first data required to be sent to the first service end corresponding to the first terminal through a first transmission link of the access network of the first terminal and/or a second transmission link of the access network of the connected second terminal based on the data transmission information, so that the data transmission capability of the equipment which can only access the network through the wireless network transmission link is improved.
Description
Technical Field
The invention relates to the technical field of data transmission, in particular to a data transmission method and a data transmission system.
Background
At present, some electronic devices, such as tablet computers, can only access a network through a wireless network transmission link to realize transmission of network data. In some scenarios, if the network condition of the wireless network transmission link connected to the electronic device is not good, such as too large network delay, limited bandwidth, and high packet loss rate, the electronic device may be stuck and delayed when performing network data transmission, or even cannot complete network data transmission, and inconvenience may be brought to a user when the user uses the electronic device to surf the internet.
In view of the above, it is a problem to be solved urgently how to provide a method for enabling an electronic device to perform network data transmission by using the electronic device, which is simple and convenient and does not need to add a special device, under the condition that the network condition of the electronic device that can only access the network through a wireless network transmission link is not good.
Disclosure of Invention
The invention provides a data transmission method and a data transmission system, which are used for improving the data transmission capability of equipment which can only access a network through a wireless network transmission link. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a data transmission method, where a first terminal is connected to a second terminal, and a second transmission link different from a first transmission link of the first terminal accessing a network exists in transmission links of an access network included in the second terminal; the method comprises the following steps:
if detecting that a first terminal needs to send data, acquiring a first data transmission condition and a first network condition corresponding to a first transmission link of the first terminal and/or a second data transmission condition and a second network condition corresponding to a second transmission link of a second terminal;
determining data transmission information corresponding to the first terminal based on a first data transmission condition and a first network condition corresponding to a first transmission link of the first terminal and/or a second data transmission condition and a second network condition corresponding to a second transmission link of the second terminal, and sending the data transmission information to the first terminal; and the first terminal sends the first data required to be sent to the first service end corresponding to the first terminal through the first transmission link of the access network of the first terminal and/or the second transmission link of the access network of the second terminal.
In a second aspect, an embodiment of the present invention provides a data transmission method, where a second terminal is connected to a first terminal corresponding to a first service end, and a second transmission link different from a first transmission link, where the first transmission link accesses a network, exists in transmission links of an access network included in the second terminal; the method comprises the following steps:
if the first service end needs to send data, acquiring a third data transmission condition and a third network condition corresponding to a first transmission link between the first service end and the first terminal, and/or a fourth data transmission condition and a fourth network condition corresponding to a second transmission link between the first service end and the second terminal;
and determining data transmission information corresponding to the first service end based on the third data transmission condition and the third network condition, and/or the fourth data transmission condition and the fourth network condition, and sending the data transmission information to the first service end, so that the first service end sends second data required to be sent by the first service end to the first terminal through a first transmission link of an access network of the first terminal, and/or a second transmission link of an access network of a second terminal connected with the first terminal, based on the data transmission information corresponding to the first service end.
In a third aspect, an embodiment of the present invention provides a data transmission system, where the system includes: the system comprises a first processing end, a first terminal, a second terminal and a first service end corresponding to the first terminal, wherein the first terminal is connected with the second terminal, and a second transmission link different from a first transmission link of the first terminal accessing a network exists in transmission links of the second terminal accessing the network;
the first processing terminal is configured to obtain a first data transmission condition and a first network condition corresponding to a first transmission link of a first terminal and/or a second data transmission condition and a second network condition corresponding to a second transmission link of a second terminal if the first terminal is detected to need to send data; determining data transmission information corresponding to the first terminal based on a first data transmission condition and a first network condition corresponding to a first transmission link of the first terminal and/or a second data transmission condition and a second network condition corresponding to a second transmission link of the second terminal, and sending the data transmission information to the first terminal;
the first terminal is configured to send first data required to be sent to a first service end corresponding to the first terminal through a first transmission link of an access network of the first terminal and/or a second transmission link of an access network of the second terminal, wherein the first transmission link is connected with the first transmission link of the access network of the second terminal;
the first service end is configured to receive first data transmitted through a first transmission link of an access network of the first terminal and/or a second transmission link of an access network of the second terminal connected thereto.
In a fourth aspect, an embodiment of the present invention provides a data transmission system, where the system includes: the system comprises: the first terminal is connected with the second terminal, and a second transmission link different from a first transmission link of the first terminal accessing the network exists in transmission links of the access network included in the second terminal;
the second processing terminal is configured to, if it is detected that the first service terminal needs to send data, obtain a third data transmission condition and a third network condition corresponding to a first transmission link between the first service terminal and the first terminal, and/or obtain a fourth data transmission condition and a fourth network condition corresponding to a second transmission link between the first service terminal and the second terminal; determining data transmission information corresponding to the first service terminal based on the third data transmission condition and the third network condition and/or the fourth data transmission condition and the fourth network condition, and sending the data transmission information to the first service terminal;
the first service end is configured to send, to the first terminal, second data that the first service end needs to send, based on data transmission information corresponding to the first service end, through a first transmission link of an access network of the first terminal and/or a second transmission link of an access network of a second terminal connected to the first terminal;
the first terminal is configured to receive second data transmitted over a first transmission link of the access network of the first terminal and/or a second transmission link of the access network of the second terminal connected thereto.
As can be seen from the above, in the data transmission method and system provided in the embodiments of the present invention, the first terminal is connected to the second terminal, and a second transmission link different from the first transmission link of the first terminal accessing the network exists in the transmission links of the access network included in the second terminal; the method comprises the following steps: if the first terminal is detected to need to send data, acquiring a first data transmission condition and a first network condition corresponding to a first transmission link of the first terminal and/or a second data transmission condition and a second network condition corresponding to a second transmission link of a second terminal; determining data transmission information corresponding to a first terminal based on a first data transmission condition and a first network condition corresponding to a first transmission link of the first terminal and/or a second data transmission condition and a second network condition corresponding to a second transmission link of a second terminal, and sending the data transmission information to the first terminal; and the first terminal sends the first data required to be sent to the first service end corresponding to the first terminal through the first transmission link of the access network of the first terminal and/or the second transmission link of the access network of the connected second terminal based on the data transmission information. By applying the embodiment of the invention, the data transmission information corresponding to the first terminal can be determined based on the first data transmission condition and the first network condition, and/or the second data transmission condition and the second network condition, so that the first terminal can transmit the data required to be transmitted to the first service terminal through the first transmission link of the access network of the first terminal and/or the second transmission link of the access network of the connected second terminal based on the corresponding data transmission information, so that the first terminal does not need to transmit the data only by depending on the first transmission link of the access network of the first terminal, and under certain conditions, such as the condition of bad network, the data transmission capability of the first terminal can be improved based on the second transmission link of the second terminal which is connected with a transmission link different from the transmission link of the access network of the first terminal, thereby improving the data transmission capability of the equipment which can only access the network through the wireless network transmission link, the use experience of the user is improved. Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
The innovation points of the embodiment of the invention comprise:
1. the data transmission information corresponding to the first terminal can be determined based on the first data transmission condition and the first network condition, and/or the second data transmission condition and the second network condition, so that the first terminal sends the data required to be sent to the first service end based on the corresponding data transmission information through the first transmission link of the access network of the first terminal and/or the second transmission link of the access network of the connected second terminal, so that the first terminal does not need to only rely on the first transmission link of the access network of the first terminal to transmit data, and under certain conditions, such as the condition of poor network of the first terminal, the data transmission capability of the first terminal can be improved based on the second transmission link of the second terminal which is connected with a transmission link different from the transmission link of the access network, so as to improve the data transmission capability of the first terminal, and further improve the data transmission capability of the device which can only access the network through the wireless network transmission link, the use experience of the user is improved.
2. Based on different indications of data transmission information corresponding to the first terminal, the first terminal may send first subdata through the first transmission link and second subdata through the second transmission link of the second terminal, and subsequently, the first service end receives the first subdata and the second subdata and then aggregates the data, thereby completing receiving the first data and realizing sending and receiving the first data of the first terminal. Or, the first terminal transmits the first data to be transmitted through the second transmission link of the second terminal connected thereto, and then the second server side, which obtains the data transmitted by the second transmission link, forwards the corresponding data to the first server side, thereby implementing the sending and receiving of the first data of the first terminal. Or, the first terminal directly transmits the data to the first service end through the first transmission link thereof, so as to realize the sending and receiving of the first data of the first terminal, and the first terminal can realize the transmission of the data thereof through different transmission links.
3. Determining first transmission link allocation information indicating which link to transmit data through according to a first data transmission condition and a first network condition, and a second data transmission condition and a second network condition, adjusting a retransmission data interval of the first terminal to retransmit the data based on first network speed information of the first transmission link, determining smoothing delay parameter information corresponding to the first service end based on first timestamp range information of the data currently cached by the first terminal and/or first cache byte number information of the data currently cached by the first terminal, and determining whether to discard part of the data of the first data based on the first timestamp range information of the data currently cached by the first terminal and/or the first cache byte number information of the data currently cached by the first terminal, so as to determine various parameters in the data transmission process of the first terminal, the effective transmission of the data to be transmitted by the first terminal is guaranteed.
4. A plurality of connection modes are provided to realize the connection between the first terminal and the second terminal, and the compatibility of data transmission capability between the first transmission link of the first terminal and the second transmission link of the second terminal is ensured to a certain extent.
5. The first transmission link is a wireless local area network transmission link, the second transmission link is a cellular mobile network transmission link, the first terminal can realize data transmission without depending on a single type of network transmission mode, and the first terminal can still realize data transmission through the cellular mobile network of the second terminal under the condition that the network condition of the wireless local area network is not good, so that the use experience of a user is improved.
6. The data transmission information corresponding to the first service end can be determined based on the third data transmission condition and the third network condition, and/or the fourth data transmission condition and the fourth network condition, so that the first service end sends the data to be sent to the first terminal through the first transmission link and/or a second transmission link of a second terminal connected to the first terminal based on the corresponding data transmission information, so that the first service end does not need to rely on only a single first transmission link to transmit the data, and under certain conditions, such as poor first transmission link network, the data transmission capability of the first service end is improved based on a second transmission link of the second terminal connected to a transmission link different from the transmission link connected to the first service end, that is, the data receiving capability of the first terminal is improved, and further, the data transmission capability of equipment which can only access to the network through a wireless network transmission link is improved, the use experience of the user is improved.
7. Based on different indications of data transmission information corresponding to the first service end, the first service end may send third subdata through the first transmission link and fourth subdata through the second transmission link, and subsequently, the first terminal converges data after receiving the third subdata and the fourth subdata, thereby completing receiving of the second data and realizing sending and receiving of the second data. Or, the first service end transmits the second data to be transmitted through a second transmission link of a second terminal connected to the first terminal, and then the second terminal obtaining the data transmitted by the second transmission link forwards the corresponding data to the first terminal, so as to realize the transmission and reception of the second data. Or, the server directly transmits the data to the first terminal through the first transmission link thereof to realize the sending and receiving of the second data, so that the first service end can realize the sending of the data through different transmission links, and the first terminal can realize the receiving of the data through different transmission links.
8. Determining second transmission link allocation information indicating which link the data is transmitted through according to a third data transmission condition and a third network condition, and a fourth data transmission condition and a fourth network condition, adjusting a retransmission data interval of the first service end for retransmitting the data based on third network speed information of the first transmission link, determining smooth delay parameter information corresponding to the first service end based on second timestamp range information of the data currently cached by the first terminal and/or second cache byte number information of the data currently cached by the first terminal, and determining whether to discard part of the data of the first data based on the second timestamp range information of the data currently cached by the first terminal and/or the second cache byte number information of the data currently cached by the first terminal, so as to determine various parameters in the data transmission process of the first service end, the effective transmission of the data to be transmitted by the first service end, that is, the effective reception of the data of the first terminal, is ensured.
9. The first transmission link is a wireless local area network transmission link, the second transmission link is a cellular mobile network transmission link, the first terminal can receive data without depending on a single type of network transmission mode, and the first terminal can still receive data through the cellular mobile network of the second terminal under the condition that the network condition of the wireless local area network is not good, so that the use experience of a user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It is to be understood that the drawings in the following description are merely exemplary of some embodiments of the invention. For a person skilled in the art, without inventive effort, further figures can be obtained from these figures.
Fig. 1 is a schematic flow chart of a data transmission method according to an embodiment of the present invention;
fig. 2 is another schematic flow chart of a data transmission method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a data transmission system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a data transmission system according to an embodiment of the present invention;
fig. 5 is a scene schematic diagram of a data transmission system applied to an online class scene according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely a few embodiments of the invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive effort based on the embodiments of the present invention, are within the scope of the present invention.
It is to be noted that the terms "comprises" and "comprising" and any variations thereof in the embodiments and drawings of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
The invention provides a data transmission method and a data transmission system, which are used for improving the data transmission capability of equipment which can only access a network through a wireless network transmission link. The following provides a detailed description of embodiments of the invention.
Fig. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present invention. The first terminal is connected with the second terminal, and a second transmission link different from a first transmission link of the first terminal accessing the network exists in the transmission links of the access network included in the second terminal; the method may comprise the steps of:
s101: if the first terminal is detected to need to send data, a first data transmission condition and a first network condition corresponding to a first transmission link of the first terminal are obtained, and/or a second data transmission condition and a second network condition corresponding to a second transmission link of a second terminal are obtained.
The data transmission method provided by the embodiment of the invention can be applied to any type of first electronic equipment with computing capability. In one case, the first electronic device and the first terminal are the same physical device, and accordingly, the first electronic device can directly obtain a first data transmission condition and a first network condition corresponding to a first transmission link of the first electronic device, and can directly obtain a second data transmission condition and a second network condition corresponding to a second transmission link of a second terminal connected to the first electronic device; in another case, the first electronic device is a physical device different from the first terminal and the second terminal, and accordingly, the first electronic device may be directly connected or indirectly connected to the first terminal and the second terminal to obtain a first data transmission condition and a first network condition corresponding to a first transmission link of the first terminal, and a second data transmission condition and a second network condition corresponding to a second transmission link of the second terminal connected to the first terminal.
The first data transmission condition corresponding to the first transmission link comprises the following steps: at least one of the information describing a data transmission condition that the first terminal currently transmits data to the first server corresponding to the first terminal by using the first transmission link and the information describing a data transmission condition that the first terminal currently transmits data to the second terminal may include, but is not limited to: a first packet loss rate of a first terminal transmitting data to a first service terminal at present and a second packet loss rate of a second terminal transmitting data to the first terminal at present; or: the first terminal transmits data to the first service terminal at the current time, and the second terminal transmits data to the second terminal at the current time.
In one case, the first data transmission condition may be information determined when the first terminal is used to transmit the first history data to the first service terminal through the first transmission link. The first history data is relative to the data that the first terminal needs to transmit currently, and may identify the data that is transmitted through the first transmission link before the data that the first terminal needs to transmit currently, and is not limited in meaning.
The first network condition for the first transmission link comprises: describing data delay condition information and network speed information of a first terminal transmitting data to a first server corresponding to the first terminal through a first transmission link; may include, but is not limited to: the data transmission method comprises the steps of first timestamp range information of data currently cached by a first terminal, first cache byte number information of the data currently cached by the first terminal, timestamps corresponding to the data currently cached by the first terminal respectively and first network speed information of a first transmission link. The first timestamp range information of the data currently cached by the first terminal and the first cache byte number information of the data currently cached by the first terminal may be characterized as follows: and the first terminal transmits data to the data delay condition information of the first service end corresponding to the first terminal through the first transmission link and the second transmission link of the second terminal.
The first timestamp range information of the data currently cached by the first terminal includes: and the difference value between a first time stamp corresponding to the data with the earliest corresponding time stamp and a second time stamp corresponding to the data with the latest corresponding time stamp in the data currently cached by the first terminal. The information of the number of first buffer bytes of the data currently buffered by the first terminal may be characterized as follows: and the total byte number of the data currently cached by the first terminal.
The second data transmission condition corresponding to the second transmission link comprises: and describing the data transmission condition that the second terminal transmits data to the first server corresponding to the first terminal through the second transmission link currently. Including but not limited to: a third packet loss rate at which the second terminal transmits the data to the first service end currently or a third data transmission success rate at which the second terminal transmits the data to the first service end currently.
In one case, the second data transmission condition may be information determined when the second terminal is used to transmit the second history data to the first service terminal through the second transmission link. The second history data is relative to the data that the first terminal needs to send currently, and may identify the data that the first terminal sends through the second transmission link of the second terminal before the data that the first terminal needs to send currently, and is not limited in meaning.
The second network condition corresponding to the second transmission link includes: describing network speed information of a first service end corresponding to a second terminal which transmits data to the first terminal through a second transmission link at present; may include, but is not limited to: second network speed information of the second transmission link.
In one case, the first terminal may be a device that is accessible to the network using a transmission link of a single network type, and the second terminal may be a device that includes at least one available network that is different from the first terminal access network. In one implementation, the first terminal may be a desktop computer, a tablet computer, or a combination computer, and the second terminal may be a mobile phone. Correspondingly, the first transmission link of the first terminal is: the wireless local area network transmission link, the second transmission link of the second terminal is: cellular mobile network transmission links.
In one implementation, the connection mode between the first terminal and the second terminal may be various, and the connection mode between the first terminal and the second terminal may include but is not limited to: the connection is carried out by adopting a point-to-point or multicast protocol through at least one connection mode of wireless local area network, wifi-direct, USB (Universal Serial Bus), Ethernet, Zigbee, radio frequency and Bluetooth connection.
S201: determining data transmission information corresponding to a first terminal based on a first data transmission condition and a first network condition corresponding to a first transmission link of the first terminal and/or a second data transmission condition and a second network condition corresponding to a second transmission link of a second terminal, and sending the data transmission information to the first terminal; and the first terminal sends the first data required to be sent to the first service end corresponding to the first terminal through the first transmission link of the access network of the first terminal and/or the second transmission link of the access network of the connected second terminal based on the data transmission information.
The first data that the first terminal needs to send may include at least one type of data, for example: audio data, video data, and control data.
In this step, the first electronic device may determine, through a first data transmission condition and a first network condition corresponding to a first transmission link of the first terminal, a current data transmission capability of the first transmission link, and determine, through a second data transmission condition and a second network condition corresponding to a second transmission link of the second terminal, a current data transmission capability of the second transmission link. Furthermore, the data transmission information corresponding to the first terminal may be determined based on the current data transmission capability of the first transmission link and/or the current data transmission capability of the second transmission link, and then sent to the first terminal, and the first terminal sends the first data that needs to be sent to the first service end corresponding to the first terminal through the first transmission link of the access network of the first terminal and/or the second transmission link of the access network of the connected second terminal based on the indication in the corresponding data transmission information.
Subsequently, the first server may directly process the first data to obtain feedback data corresponding to the first data, and send the feedback data to the first terminal, or; the first service end directly forwards the first data to other service ends so as to process the first data through other service ends to obtain feedback data corresponding to the first data and feed the feedback data back to the first service end, and the first service end forwards the feedback data to the first terminal.
The data transmission information corresponding to the first terminal may include, but is not limited to: setting data caching information of a first terminal, strategy information for controlling the first terminal to send data and strategy information for controlling a first service terminal corresponding to the first terminal to receive data. In one case, the policy information for controlling the first terminal to transmit data may include at least one of the following information: and transmitting data proportion information, namely link allocation information, of the data required to be transmitted by the first terminal by using a first transmission link of the first terminal and a second transmission link of a second terminal connected with the first terminal, and controlling the frequency and strategy information of the data transmitted by the first terminal.
Wherein the link allocation information comprises information indicating that data is transmitted over the first transmission link and/or the second transmission link. The information for controlling the frequency and strategy of the first terminal to transmit data may include at least one of the following information: transmission priority information, forward error correction processing enable information, retransmission number information, retransmission time interval information, and retransmission priority information of different types of data in the first data.
In one case, the data ratio information of the data to be transmitted by the first terminal is transmitted by using the first transmission link of the first terminal and the second transmission link of the second terminal connected to the first transmission link, and the data ratio information is at least related to the first data transmission condition and the first network condition corresponding to the first transmission link. The first data transmission condition and the first network condition corresponding to the first transmission link represent that the data transmission capability of the first transmission link is better, and the higher the proportion of the data transmitted by the first transmission link is, the lower the proportion of the data transmitted by the second transmission link is.
On the contrary, the worse the first data transmission condition and the first network condition corresponding to the first transmission link represent the data transmission capability of the first transmission link, the lower the specific gravity of the data transmitted by using the first transmission link is, and correspondingly, the higher the specific gravity of the data transmitted by using the second transmission link is.
In the case where the first data includes three types of data, i.e., audio data, video data, and control data, the transmission priority information of the different types of data in the first data is: the transmission priority of the control data is higher than that of the audio data, and the transmission priority of the audio data is higher than that of the video data. In the case where the first data includes three types of audio data, video data, and control data, and includes other types of data, the transmission priority of the other types of data is lower than the transmission priority of the video data. For the same type of data, the data with the small corresponding timestamp is sent preferentially.
The retransmission priority information of the different types of data in the first data may be the same as or different from the transmission priority information of the different types of data in the first data.
In the case where the retransmission enable information indicates that the retransmission function is on, the first terminal may retransmit the data based on the retransmission number information and the retransmission interval information. When the forward error correction enabling information indicates that the forward error correction processing function is turned on, the first terminal may perform forward error correction processing on the transmitted data during the process of transmitting the data.
The policy information for controlling the first service end corresponding to the first terminal to receive data may include, but is not limited to: and controlling relevant information of the data received by the first service terminal corresponding to the first terminal, such as smooth delay information and information of frequency and strategy of the received data.
In one case, the first electronic device and the first terminal are the same physical device, and the data transmission information corresponding to the first terminal is sent to the inside of the device where the first terminal is the first terminal. In another case, the first electronic device and the first terminal are different physical devices, and the data transmission information corresponding to the first terminal is sent to the outside of the device of which the first terminal is the first terminal.
By applying the embodiment of the invention, the data transmission information corresponding to the first terminal can be determined based on the first data transmission condition and the first network condition, and/or the second data transmission condition and the second network condition, so that the first terminal can transmit the data required to be transmitted to the first service terminal through the first transmission link of the access network of the first terminal and/or the second transmission link of the access network of the connected second terminal based on the corresponding data transmission information, so that the first terminal does not need to transmit the data only by depending on the first transmission link of the access network of the first terminal, and under certain conditions, such as the condition of bad network, the data transmission capability of the first terminal can be improved based on the second transmission link of the second terminal which is connected with a transmission link different from the transmission link of the access network of the first terminal, thereby improving the data transmission capability of the equipment which can only access the network through the wireless network transmission link, the use experience of the user is improved.
In another embodiment of the present invention, a process that a first terminal sends data to a first server corresponding to a first terminal through a first transmission link of an access network of the first terminal and/or a second transmission link of an access network of a second terminal connected to the first terminal based on data transmission information is implemented by any one of the following three implementation manners:
the first implementation mode comprises the following steps:
and the data transmission information corresponding to the first terminal indicates that: in case of sending data through a first transmission link of a first terminal and a second transmission link of a second terminal to which the first terminal is connected;
the method comprises the steps that a first terminal respectively determines first subdata sent by a first transmission link of an access network of the first terminal and second subdata sent by a second transmission link of an access network of a second terminal connected with the first terminal based on data transmission information, wherein the first subdata and the second subdata form first data to be sent by the first terminal;
the first terminal sends the first subdata to a first service end through a first transmission link;
the first terminal sends the second subdata to the second terminal, so that the second terminal sends the second subdata to a second service end corresponding to the second terminal through a second transmission link, and the second service end sends the second subdata to the first service end, so that the first service end converges the first subdata and the second subdata after obtaining the first subdata and the second subdata, and the first data is obtained.
In this implementation manner, the first electronic device determines, based on the first data transmission condition and the first network condition, and/or the second data transmission condition and the second network condition, that the data transmission condition of the first transmission link of the first terminal is general and the network condition is general, and that the data transmission condition of the second transmission link of the second terminal is general and the network condition is general. At this time, the first electronic device may determine, based on the above situation, data transmission information corresponding to the first terminal, which includes information indicating that the first terminal needs to transmit the first data, via the first transmission link and the second transmission link of the second terminal connected thereto. And, correspondingly, the data transmission information corresponding to the first terminal may further include: the data transmitted through the first transmission link accounts for a proportion of the first data that the first terminal needs to transmit, and the data transmitted through the second transmission link accounts for a proportion of the first data that the first terminal needs to transmit.
The method includes that under the condition that a first packet loss rate of a first terminal for currently transmitting data to a first service end is in a first preset packet loss rate interval, a second packet loss rate of the first terminal for currently transmitting data to a second terminal is in a second preset packet loss rate interval, or under the condition that a first data transmission success rate of the first terminal for currently transmitting data to the first service end is in the first preset success rate interval and a second data transmission success rate of the first terminal for currently transmitting data to the second terminal is in the second preset success rate interval, it can be determined that the data transmission condition of a first transmission link of the first terminal is general.
When the first timestamp range information of the data currently cached by the first terminal is in the first preset range, the first cache byte number information of the data currently cached by the first terminal is in the first preset byte number range, or the first network speed information of the first transmission link is in the first preset speed range, the network condition of the first transmission link of the first terminal can be considered to be general.
When a third packet loss rate of the current data transmission from the second terminal to the first service end is within a third preset packet loss rate interval, or a third data transmission success rate of the current data transmission from the second terminal to the first service end is within a third preset success rate interval, it may be determined that a data transmission condition of a second transmission link of the second terminal is general.
In the case that the second network speed information of the second transmission link is within the second preset speed interval, the network condition of the second transmission link of the second terminal can be considered as general.
Correspondingly, the data transmission information corresponding to the first terminal indicates: in case of sending data through a first transmission link of a first terminal and a second transmission link of a second terminal to which the first terminal is connected; the first terminal divides first data to be sent into first subdata sent by a first transmission link and second subdata sent by a second transmission link based on corresponding data transmission information. The first terminal sends the first subdata to a first service end through a first transmission link; and the first terminal sends the second subdata to the second terminal through a second transmission link with the second terminal. And the second terminal sends the second subdata to a second server corresponding to the second terminal through a second transmission link. And the second service end sends the second subdata to the first service end. After the first server side obtains the first subdata and the second subdata, the first subdata and the second subdata are converged to obtain first data. The process of aggregating data in the embodiment of the present invention may refer to any manner in the related art that can implement aggregation of split data, which is not described herein again.
It can be understood that the second service end corresponding to the second terminal may be the same service end as the first service end, or may be a different service end from the first service end.
The second implementation mode comprises the following steps:
and the data transmission information corresponding to the first terminal indicates that: the method comprises the steps of sending data through a second transmission link of a second terminal connected with a first terminal;
the first terminal sends first data to be sent by the first terminal to the second terminal based on the data transmission information, so that the second terminal sends the first data to a second service end corresponding to the second terminal, and the second service end sends the first data to the first service end, so that the first service end obtains the first data.
In this implementation manner, the first electronic device determines, based on the first data transmission condition and the first network condition, and/or the second data transmission condition and the second network condition, that the data transmission condition of the first transmission link of the first terminal is poor and the network condition is poor, and that the data transmission condition of the second transmission link of the second terminal is good and the network condition is good. At this time, the first electronic device may determine, based on the above, data transmission information corresponding to the first terminal, which includes information indicating that data is transmitted via the second transmission link of the second terminal to which the first terminal is connected, and transmit the data to the first terminal.
The method includes that when a first packet loss rate of a first terminal currently transmitting data to a first service end is in a fourth preset packet loss rate interval, a second packet loss rate of the first terminal currently transmitting data to a second terminal is in a fifth preset packet loss rate interval, or when a first data transmission success rate of the first terminal currently transmitting data to the first service end is in the fourth preset success rate interval and a second data transmission success rate of the first terminal currently transmitting data to the second terminal is in the fifth preset success rate interval, it can be determined that a data transmission condition of a first transmission link of the first terminal is poor.
It can be understood that the larger the first packet loss rate is, the worse the data transmission condition characterizing that the data is transmitted to the first service end through the first transmission link is, the worse the data cannot be transmitted to the first service end through the first transmission link. Correspondingly, the minimum value of the fourth preset packet loss rate interval may exist, and is not lower than the maximum value of the first preset packet loss rate interval. Or the maximum value of the fourth preset success rate interval is not higher than the minimum value of the first preset success rate interval.
The smaller the second packet loss rate is, the higher the data transmission integrity between the first terminal and the second terminal is represented. Correspondingly, the minimum value of the fifth preset packet loss rate interval may not be higher than the minimum value of the second preset packet loss rate interval, and the maximum value of the fifth preset packet loss rate interval may not be higher than the maximum value of the second preset packet loss rate interval. Or the minimum value of the fifth preset success rate interval is not lower than the minimum value of the second preset success rate interval, and the maximum value of the fifth preset success rate interval is not lower than the maximum value of the second preset success rate interval.
When the first timestamp range information of the data currently cached by the first terminal is in the second preset range, the first cache byte number information of the data currently cached by the first terminal is in the second preset byte number range, or the first network speed information of the first transmission link is in the third preset speed range, the network condition of the first transmission link of the first terminal can be considered to be poor.
It can be understood that the larger the first timestamp range information of the data currently cached by the first terminal is, or the larger the first cache byte number information of the data currently cached by the first terminal is, and the lower the first network speed information of the first transmission link is, the worse the network condition of the first transmission link representing the first terminal is. The minimum value of the second preset range may not be smaller than the maximum value of the first preset range, and the minimum value of the second preset byte number may not be smaller than the maximum value of the first preset byte number.
When a third packet loss rate of the current data transmission from the second terminal to the first service end is within a sixth preset packet loss rate interval, or a third data transmission success rate of the current data transmission from the second terminal to the first service end is within the sixth preset success rate interval, it may be determined that a data transmission condition of a second transmission link of the second terminal is better. The smaller the third packet loss rate is, the higher the third data transmission success rate is, the better the data transmission condition representing that the second terminal transmits data to the first service end through the second transmission link is, and accordingly, the maximum value of the sixth preset packet loss rate interval may be not higher than the minimum value of the third preset packet loss rate interval, and the minimum value of the sixth preset success rate interval is not lower than the maximum value of the third preset success rate interval.
And under the condition that the second network speed information of the second transmission link is in the fourth preset speed interval, the network condition of the second transmission link of the second terminal can be considered to be better. The larger the second network speed information is, the better the network condition representing the second transmission link is, and correspondingly, the minimum value of the fourth preset speed interval may be not lower than the maximum value of the second preset speed interval.
The first terminal directly sends the first data to the second terminal based on the indication of the corresponding data transmission information, and the second terminal sends the first data to a second server corresponding to the second terminal. The second service end sends the first data to the first service end so that the first service end obtains the first data.
The third implementation mode comprises the following steps: and the data transmission information corresponding to the first terminal indicates that: in the case of transmitting data through a first transmission link of a first terminal;
the first terminal sends first data to be sent by the first terminal to the first service end based on the data transmission information, so that the first service end obtains the first data.
In this implementation, the first electronic device determines, based on the first data transmission condition and the first network condition, and/or the second data transmission condition and the second network condition, that the data transmission condition of the first transmission link of the first terminal is better and the network condition is better, and that the data transmission condition of the second transmission link of the second terminal is poor and the network condition is poor. At this time, the first electronic device may determine, based on the above, data transmission information corresponding to the first terminal that includes information indicating that data is to be transmitted through the first transmission link of the first terminal, and transmit the data transmission information to the first terminal.
The data transmission condition of the first transmission link of the first terminal can be determined to be better under the conditions that a first packet loss rate of the first terminal for currently transmitting data to the first service end is in a seventh preset packet loss rate interval, a second packet loss rate of the first terminal for currently transmitting data to the second terminal is in an eighth preset packet loss rate interval, or a first data transmission success rate of the first terminal for currently transmitting data to the first service end is in the seventh preset success rate interval, and a second data transmission success rate of the first terminal for currently transmitting data to the second terminal is in the eighth preset success rate interval.
Considering that the smaller the first packet loss rate is, the better the data transmission condition characterizing the data transmission to the first service end through the first transmission link is. Accordingly, the maximum value of the seventh preset packet loss rate interval may exist, and is not higher than the minimum value of the first preset packet loss rate interval. Or the minimum value of the seventh preset success rate interval is not lower than the maximum value of the first preset success rate interval.
The larger the second packet loss rate is, the lower the data transmission integrity between the first terminal and the second terminal is represented. Accordingly, there may be a case where the minimum value of the eighth preset packet loss rate interval is not lower than the maximum value of the second preset packet loss rate interval. Or the maximum value of the eighth preset success rate interval is not higher than the minimum value of the second preset success rate interval.
When the first timestamp range information of the data currently cached by the first terminal is in the third preset range, the first cache byte number information of the data currently cached by the first terminal is in the third preset byte number range, or the first network speed information of the first transmission link is in the fifth preset speed range, the network condition of the first transmission link of the first terminal can be considered to be better.
It can be understood that the smaller the first timestamp range information of the data currently cached by the first terminal is, or the smaller the first cache byte number information of the data currently cached by the first terminal is, and the higher the first network speed information of the first transmission link is, the better the network condition of the first transmission link representing the first terminal is. The maximum value of the third preset range may be not higher than the minimum value of the first preset range, and the maximum value of the third preset byte number may not be higher than the minimum value of the first preset byte number.
When a third packet loss rate of the current data transmission from the second terminal to the first service end is within a ninth preset packet loss rate interval, or a third data transmission success rate of the current data transmission from the second terminal to the first service end is within the ninth preset success rate interval, it may be determined that a data transmission condition of a second transmission link of the second terminal is poor. The larger the third packet loss rate is, the lower the third data transmission success rate is, and the worse the data transmission condition that the second terminal transmits data to the first service end through the second transmission link is represented. Correspondingly, the minimum value of the ninth preset packet loss rate interval may be not lower than the maximum value of the third preset packet loss rate interval, and the maximum value of the ninth preset success rate interval may not be higher than the minimum value of the third preset success rate interval.
In the case that the second network speed information of the second transmission link is within the sixth preset speed interval, the network condition of the second transmission link of the second terminal may be considered to be poor. The smaller the second network speed information is, the worse the network condition characterizing the second transmission link is, and correspondingly, the maximum value of the sixth preset speed interval may be not lower than the minimum value of the second preset speed interval.
The first terminal directly sends the first data to be sent by the first terminal to the first service end based on the corresponding data transmission information, so that the first service end obtains the first data.
Through the different manners, the first data required to be sent by the first terminal can be sent. Accordingly, the data can still be transmitted under the condition that the data transmission condition and the network condition of the first transmission link of the first terminal are poor. And then guarantee the use of first terminal to a certain extent, improve the user of first terminal and use experience to a certain extent.
In another embodiment of the present invention, the step S102 may include the following steps 011 and 014:
011: and determining the allocation information of the first transmission link based on a first data transmission condition and a first network condition corresponding to the first transmission link of the first terminal and a second data transmission condition and a second network condition corresponding to the second transmission link of the second terminal.
Wherein the first transmission link allocation information includes: the method comprises the steps that first data to be sent by a first terminal are transmitted by a first transmission link, or the first data are transmitted by a second transmission link, or the first data are transmitted by the first transmission link and the second transmission link together; the allocating information at the first transmission link comprises: in the case of jointly transmitting the first data using the first transmission link and the second transmission link, the first transmission link allocation information further includes: the first transmission link and the second transmission link transmit a data transmission ratio of the first data. Namely, the proportion of the first transmission link for transmitting data and the proportion of the second transmission link for transmitting data.
012: the retransmission data interval at which the first terminal retransmits the data is adjusted based on the first network speed information of the first transmission link of the first terminal. If the first network speed information of the first transmission link of the first terminal is larger than the network speed information before the history of the first transmission link of the first terminal, the retransmission data interval of the first terminal for retransmitting data is increased; otherwise, the retransmission data interval of the first terminal retransmission data is adjusted to be smaller.
013: and determining smooth delay parameter information corresponding to the first service terminal based on the first time stamp range information of the data currently cached by the first terminal and/or the first cache byte number information of the data currently cached by the first terminal.
So that the first service terminal forwards the first data based on the received smooth delay parameter after obtaining the first data.
014: and determining whether to discard part of the data of the first data or not based on the first time stamp range information of the data currently cached by the first terminal and/or the first caching byte number information of the data currently cached by the first terminal.
If the first timestamp range information of the data currently cached by the first terminal exceeds a first preset threshold value and/or the first cache byte number information of the data currently cached by the first terminal exceeds a second preset threshold value, determining to discard part of the data of the first data so as to obtain data transmission information corresponding to the first terminal.
In one case, the data transmission ratio of the first transmission link and the second transmission link for transmitting the first data may be determined based on at least a first packet loss rate of the first terminal for transmitting the data to the first service end and/or first network speed information of the first transmission link of the first terminal. The smaller the first packet loss rate is, and/or the larger the first network speed information of the first transmission link of the first terminal is, the larger the determined data transmission ratio of the first data transmitted by the first transmission link and the second transmission link can be, that is, the greater the proportion of the first data in the first data transmitted by the first transmission link is, the smaller the proportion of the first data in the first data transmitted by the second transmission link is, correspondingly, the smaller the proportion of the first data in the first data transmitted by the second transmission link is. Conversely, the larger the first packet loss rate is, and/or the smaller the first network speed information of the first transmission link of the first terminal is, the smaller the determined data transmission proportion of the first data transmitted by the first transmission link and the second transmission link can be, that is, the smaller the proportion of the first data occupied by the first data transmitted by the first transmission link is, the larger the proportion of the first data occupied by the first data transmitted by the second transmission link is, correspondingly, the larger the proportion of the first data occupied by the first data transmitted by the second transmission link is.
The first electronic device determines that the first network speed information is larger than the network speed information before the history of the first transmission link of the first terminal based on the first network speed information of the first transmission link of the first terminal, and then considers that the network condition of the first transmission link is improved, and at the moment, the retransmission data interval of the first terminal for retransmitting data can be increased; otherwise, the retransmission data interval of the first terminal retransmission data is adjusted to be smaller. At this time, the retransmission enabling information of the first terminal includes information indicating that the retransmission function of the first terminal is in an on state.
In the process of determining, by the first electronic device, the smoothing delay parameter information corresponding to the first service end based on the first timestamp range information of the data currently cached by the first terminal and/or the first cache byte number information of the data currently cached by the first terminal, the determining may be: under the condition that the first timestamp range information of the data currently cached by the first terminal is larger than the timestamp range information of the data historically cached by the first terminal, and/or the first cache byte number information of the data currently cached by the first terminal is larger than the byte number information of the data historically cached by the first terminal, the smoothing delay parameter information corresponding to the first service end can be increased. Otherwise, the smoothing delay parameter information corresponding to the first service end may be reduced. The first server may forward the first data to other servers based on the corresponding smoothing delay parameter information, so as to provide feedback data corresponding to the first data for the first terminal.
The first electronic device determines the current data delay condition of the first terminal based on the first timestamp range information of the currently cached data of the first terminal and/or the first cache byte number information of the currently cached data of the first terminal, and further determines whether to discard part of the data of the first data based on the current data delay condition of the first terminal. If the first timestamp range information of the data currently cached by the first terminal exceeds a first preset threshold value and/or the first cache byte number information of the data currently cached by the first terminal exceeds a second preset threshold value, which indicates that the delay condition of the current data of the first terminal is serious, determining to discard part of the data of the first data; on the contrary, if the first timestamp range information of the data currently cached by the first terminal does not exceed the first preset threshold, and the first cache byte number information of the data currently cached by the first terminal does not exceed the second preset threshold, which indicates that the current data delay condition of the first terminal is not serious, it is determined that part of the data of the first data is not discarded. So as to obtain data transmission information corresponding to the first terminal, wherein the data transmission information at least comprises information such as first transmission link allocation information, retransmission data interval, smooth delay parameter information corresponding to the first service terminal, whether to discard partial data of the first data, and the like.
In one implementation, the first electronic device may further determine to set the first terminal data caching information according to first timestamp range information of data currently cached by the first terminal and/or first caching byte number information of the data currently cached by the first terminal, or the first network speed information. When the first network speed information is lower than a first preset network speed, or the first timestamp range information of the data currently cached by the first terminal and/or the first cache byte number information of the data currently cached by the first terminal indicate that the data delay condition of the first terminal is serious, the setting of the first terminal data cache information may include controlling the first terminal to set a data cache space, so that the first terminal may cache the first data required to be sent by the first terminal.
In another embodiment of the present invention, the method may further include: and the first terminal determines the second terminal from the terminals which can be accessed by the first terminal and connects with the second terminal. The first terminal can determine the second terminal from the terminals accessible by the first terminal in a broadcasting or multicasting mode or in a radio frequency signal capturing mode, and is connected with the second terminal.
In one implementation, in order to improve the capability of the first terminal to transmit data, when the transmission capability of the first transmission link of the first terminal is not good, that is, the data transmission condition and the network condition are not good, the first terminal can still transmit data, and the first terminal needs to be connected to a second terminal, which has a transmission link different from the first transmission link of the first terminal accessing the network, that is, a transmission link of a different type, in the included transmission links. Accordingly, the step of connecting the first terminal with the second terminal may include the following sub-steps 021-:
021: and judging whether a second transmission link different from the first transmission link of the first terminal access network exists in the transmission links of the second terminal access network.
The method for judging whether a second transmission link different from a first transmission link of a first terminal access network exists in the transmission links of the second terminal access network comprises the following steps: and detecting whether a second transmission link with a public network outlet different from the public network outlet of the first transmission link exists in the transmission links of the second terminal accessed to the network, and if so, determining that the second transmission link different from the first transmission link of the first terminal accessed to the network exists.
022: and if so, connecting with the second terminal.
And the first terminal is directly connected with the second terminal under the condition that a second transmission link with a public network outlet different from the public network outlet of the first transmission link exists in the transmission links for accessing the second terminal into the network. Otherwise, the step of determining the second terminal from among the terminals accessible to it is continued.
In another embodiment of the present invention, the second terminal is installed with a designated application program, is connected to the first terminal through the designated application program, and provides a data forwarding function, where the data forwarding function is: and receiving the data sent by the first terminal and forwarding the received data to the first service terminal.
Under the condition that the designated application installed on the second terminal is in a background state or an inactive state, the designated application of the second terminal keeps the designated application from being suspended or ended by at least one of refreshing a background task, starting positioning service, playing audio, sending VOIP connection data, improving the priority of the application process, starting keep-alive service, residing in a notification bar, reducing a display interface, replacing a screen locking interface and setting a resident memory of the designated application so as to connect the second terminal with the first terminal and provide a data forwarding function.
In another embodiment of the invention, the second terminal may be connected to at least the first terminal. Under the condition that a second terminal is connected with a plurality of first terminals, the second terminal forwards data for the plurality of first terminals in a time-sharing mode; or the second terminal may forward data for the plurality of first terminals according to the respective data forwarding priorities of the plurality of first terminals.
In another embodiment of the present invention, a terminal may be simultaneously connected to at least one second terminal, and accordingly, the first electronic device may determine data transmission information corresponding to the first terminal based on a first data transmission condition and a first network condition corresponding to the first transmission link of the first terminal and/or a second data transmission condition and a second network condition corresponding to the second transmission link of each second terminal, where the data transmission information corresponding to the first terminal may include information indicating the first transmission link of the first terminal and/or the second transmission link of which second terminal or second transmission links the first terminal is connected to, and may further include respective transmission data ratios of the first transmission link and/or the second transmission link of the at least one second terminal.
On the other hand, an embodiment of the present invention further provides a data transmission method, where a second terminal is connected to a first terminal corresponding to a first service end, and a second transmission link different from a first transmission link, in which the first terminal accesses the network, exists in a transmission link of an access network included in the second terminal; as shown in fig. 2, a flow chart of a data transmission method may include:
s201: if the first server needs to send data, a third data transmission condition and a third network condition corresponding to a first transmission link between the first server and the first terminal and/or a fourth data transmission condition and a fourth network condition corresponding to a second transmission link between the first server and the second terminal are obtained.
The data transmission method provided by the embodiment of the invention can be applied to any type of second electronic equipment with computing capability. In one case, the second electronic device and the first service end are the same physical device, and accordingly, the second electronic device may directly obtain a third data transmission condition and a third network condition corresponding to the first transmission link between the second electronic device and the first terminal, and may directly obtain a fourth data transmission condition and a fourth network condition corresponding to the second transmission link between the second electronic device and the second terminal. In another case, the second electronic device is a physical device different from the first service end and a subsequent second service end, and accordingly, the second electronic device may be directly connected or indirectly connected to the first service end and the second service end to obtain a third data transmission condition and a third network condition corresponding to the first transmission link between the second electronic device and the first terminal, and a fourth data transmission condition and a fourth network condition corresponding to the second transmission link between the second electronic device and the second terminal.
The third data transfer case includes: the information describing the data transmission condition of the first server currently using the first transmission link to transmit data to the first terminal may include, but is not limited to: the first server transmits data to a fourth packet loss rate of the first terminal by using the first transmission link at present; or: and the first server transmits data to the fourth data transmission success rate of the first terminal by using the first transmission link currently.
In one case, the third data transmission condition may be information determined when the first server transmits the third history data to the first terminal through the first transmission link. The third history data is relative to the data currently required to be sent by the first service end, can identify the data sent by the first transmission link before the data currently required to be sent by the first service end, and has no other limiting meaning.
The third network condition includes: describing data delay condition information and network speed information of a first server transmitting data to a first terminal through a first transmission link at present; may include, but is not limited to: the second timestamp range information of the data currently cached by the first server, the second cache byte number information of the data currently cached by the first server, and the third network speed information of the first transmission link. The first timestamp range information of the currently cached data of the first server and the first cache byte number information of the currently cached data of the first terminal may be characterized as follows: and the first server transmits data to the data delay condition information of the first terminal through the first transmission link or the second transmission link currently.
The second timestamp range information of the currently cached data of the first server includes: and in the data currently cached by the first server, the difference value between the third timestamp corresponding to the data with the earliest corresponding timestamp and the fourth timestamp corresponding to the data with the latest corresponding timestamp. The second cache byte number information of the currently cached data of the first server may be characterized as follows: and the total byte number of the data currently cached by the first server side.
The fourth data transfer case includes: and the information describing the data transmission condition of the first server terminal transmitting data to the second terminal through the second transmission link and the information describing the data transmission condition of the second terminal transmitting data to the first terminal. Including but not limited to: a fifth packet loss rate at which the first service terminal transmits data to the second terminal currently, and a sixth packet loss rate at which the second terminal transmits data to the first terminal currently; alternatively, it may include, but is not limited to: a fifth data transmission success rate of the first service end for currently transmitting data to the second terminal and a sixth data transmission success rate of the second terminal for currently transmitting data to the first terminal.
In one case, the fourth data transmission condition may be that the fourth history data is transmitted to the second terminal by the second transmission link by using the first server, and the second terminal forwards the fourth history data to the first terminal. The fourth historical data is relative to the data that the first service terminal needs to send currently, and may identify the data that the first service terminal sends through the second transmission link of the second terminal before the data that the first service terminal needs to send currently, and does not have other limiting meanings.
The fourth network condition includes: describing network speed information of the first server side transmitting data to the second terminal through the second transmission link currently; may include, but is not limited to: fourth network speed information of the second transmission link.
In one case, the first terminal may be a device that is accessible to the network using a transmission link of a single network type, and the second terminal may be a device that is accessible to the network using at least one transmission link of a different network type than the transmission link of the first terminal. In one implementation, the first terminal may be a desktop computer, a tablet computer, or a combination computer, and the second terminal may be a mobile phone. Correspondingly, the first transmission link of the first terminal is: the wireless local area network transmission link, the second transmission link of the second terminal is: cellular mobile network transmission links.
In one implementation, the connection mode between the first terminal and the second terminal may be various, and the connection mode between the first terminal and the second terminal may include but is not limited to: the connection is carried out by adopting a point-to-point or multicast protocol through at least one connection mode of wireless local area network, wifi-direct, USB, Ethernet, Zigbee, radio frequency and Bluetooth connection.
S201: and determining data transmission information corresponding to the first service end based on the third data transmission condition and the third network condition and/or the fourth data transmission condition and the fourth network condition, and sending the data transmission information to the first service end, so that the first service end sends second data required to be sent by the first service end to the first terminal through a first transmission link of an access network of the first terminal and/or a second transmission link of an access network of a second terminal connected with the first terminal based on the data transmission information corresponding to the first service end. The first data that the first server needs to send may include at least one type of data, for example: audio data, video data, and control data.
In this step, the second electronic device may determine the current data transmission capability of the first transmission link according to the third data transmission condition and the third network condition, and determine the current data transmission capability of the second transmission link according to the fourth data transmission condition and the fourth network condition. Furthermore, the data transmission information corresponding to the first service end may be determined based on the current data transmission capability of the first transmission link and/or the current data transmission capability of the second transmission link, and then sent to the first service end, and the first service end sends the second data that needs to be sent to the first terminal through the first transmission link and/or the second transmission link based on the indication in the corresponding data transmission information.
Subsequently, the first terminal may directly process the second data and perform a corresponding operation.
The data transmission information corresponding to the first service end may include, but is not limited to: setting data cache information of a first service end, strategy information for controlling the first service end to send data and strategy information for controlling the first terminal to receive data. In one case, the policy information for controlling the first service end to transmit data may include at least one of the following information: and transmitting data proportion information, namely link allocation information, of second data to be transmitted by the first server side by using the first transmission link and the second transmission link. And information for controlling the frequency and strategy of the data transmitted by the first terminal, wherein the link allocation information comprises information indicating that the data is transmitted over the first transmission link and/or the second transmission link. The information for controlling the frequency and the policy of the first service end for sending data may include at least one of the following information: transmission priority information, forward error correction processing enable information, retransmission number information, retransmission time interval information, and retransmission priority information of different types of data in the second data.
In one case, the first transmission link and the second transmission link are used to transmit data proportion information of data to be transmitted by the first server, and the data proportion information is at least related to a third data transmission situation and a third network situation corresponding to the first transmission link. The third data transmission condition and the third network condition corresponding to the first transmission link represent that the data transmission capability of the first transmission link is better, and the higher the proportion of the data transmitted by the first transmission link is, the lower the proportion of the data transmitted by the second transmission link is correspondingly.
On the contrary, the worse the first data transmission condition and the first network condition corresponding to the first transmission link represent the data transmission capability of the first transmission link, the lower the specific gravity of the data transmitted by using the first transmission link is, and correspondingly, the higher the specific gravity of the data transmitted by using the second transmission link is.
In the case where the second data includes three types of data, i.e., audio data, video data, and control data, the transmission priority information of the different types of data in the second data is: the transmission priority of the control data is higher than that of the audio data, and the transmission priority of the audio data is higher than that of the video data. In the case where the second data includes other types of data in addition to the three types of audio data, video data, and control data, the transmission priority of the other types of data is lower than the transmission priority of the video data. For the same type of data, the data with the small corresponding timestamp is sent preferentially. The retransmission priority information of the different types of data in the second data may be the same as or different from the transmission priority information of the different types of data in the second data.
In the case that the retransmission enabling information indicates that the retransmission function is on, the first server may retransmit the data based on the retransmission number information and the retransmission interval information. Under the condition that the forward error correction processing enabling information represents that the forward error correction processing function is started, the first server side can perform forward error correction processing on the transmitted data in the process of transmitting the data.
The policy information for controlling the first terminal to receive data may include, but is not limited to: and controlling the relevant information of the data received by the first terminal, such as smooth delay information and information of frequency and strategy of receiving the data. For example: under the condition that the first server side simultaneously sends the second data by utilizing the first transmission link and the second transmission link, the first server side informs the first terminal to receive partial data of the first transmission link, receives partial data forwarded by the second transmission link and the second terminal, and converges the partial data of the first transmission link and the partial data forwarded by the second terminal, so that the first terminal can obtain the second data.
In one case, the second electronic device and the first service end are the same physical device, and the data transmission information corresponding to the first service end is sent to the inside of the device where the first service end is the first service end. In another case, the second electronic device and the first service end are different physical devices, and the data transmission information corresponding to the first service end is sent to the outside of the device where the first service end is the first service end.
By applying the embodiment of the present invention, based on the third data transmission situation and the third network situation, and/or the fourth data transmission situation and the fourth network situation, the data transmission information corresponding to the first service end can be determined, so that the first service end sends the data to be sent to the first terminal through the first transmission link and/or the second transmission link of the second terminal connected to the first terminal based on the corresponding data transmission information, so that the first service end does not need to rely on only a single first transmission link to transmit data, and under some conditions, for example, under the condition that the first transmission link is poor, the first service end transmits data based on the second transmission link of the second terminal connected to a transmission link different from the transmission link connected to the first service end, so as to improve the data transmission capability of the first service end, that is, improve the data receiving capability of the first terminal, and then realize improving the data transmission ability of the equipment that can only insert the network through the wireless network transmission link, improve user's use and experience.
In another embodiment of the present invention, a process that a first service end sends, to a first terminal, second data that the first service end needs to send, through a first transmission link of an access network of the first terminal and/or a second transmission link of an access network of a second terminal connected to the first terminal, based on data transmission information corresponding to the first service end, is implemented by any one of the following three implementation manners:
the first implementation mode comprises the following steps: the data transmission information corresponding to the first service end indicates that: in case of sending data through a first transmission link of a first terminal and a second transmission link of a second terminal to which the first terminal is connected;
the first service end respectively determines third subdata sent by a first transmission link of an access network of a first terminal and fourth subdata sent by a second transmission link of an access network of a second terminal connected with the first terminal based on data transmission information, wherein the third subdata and the fourth subdata form second data to be sent by the first service end;
the first server side sends the third subdata to the first terminal through the first transmission link;
the first server side sends the fourth subdata to a second server side corresponding to the second terminal, so that the second server side sends the received fourth subdata to the second terminal through a second transmission link, the second terminal sends the received fourth subdata to the first terminal, and after the first terminal obtains the third subdata and the fourth subdata, the third subdata and the fourth subdata are converged to obtain second data.
In this implementation manner, the second electronic device determines, based on the third data transmission condition and the third network condition, and/or the fourth data transmission condition and the fourth network condition, that the data transmission condition of the first transmission link is general and the network condition is general, and that the data transmission condition of the second transmission link is general and the network condition is general. At this time, the second electronic device may determine, based on the above situation, data transmission information corresponding to the first server, where the data transmission information includes information indicating that the first server transmits the second data that the first server needs to send through the first transmission link and the second transmission link. Correspondingly, the data transmission information corresponding to the first server may further include: the data transmitted through the first transmission link accounts for the proportion of the second data required to be transmitted by the first service end, and the data transmitted through the second transmission link accounts for the proportion of the second data required to be transmitted by the first service end.
When the fourth packet loss rate at which the first server transmits data to the first terminal through the first transmission link currently is within a tenth preset packet loss rate interval, or when the fourth data transmission success rate at which the first server transmits data to the first terminal through the first transmission link currently is within the tenth preset success rate interval, it may be determined that the data transmission condition of the first transmission link is general.
When the second timestamp range information of the data currently cached at the first server is in the fourth preset range, the second cache byte number information of the data currently cached at the first server is in the fourth preset byte number range, or the second network speed information of the first transmission link is in the seventh preset speed range, the network condition of the first transmission link can be considered to be general.
Under the condition that a fifth packet loss rate of the current data transmission from the first service end to the second terminal is in an eleventh preset packet loss rate interval and a sixth packet loss rate of the current data transmission from the second terminal to the first terminal is in a twelfth preset packet loss rate interval; or the data transmission condition of the second transmission link can be determined to be general under the condition that the fifth data transmission success rate of the first service end for currently transmitting data to the second terminal is within the eleventh preset success rate interval and the sixth data transmission success rate of the second terminal for currently transmitting data to the first terminal is within the twelfth preset packet loss rate interval. In the case that the fourth network speed information is in the eighth preset speed interval, the network condition of the second transmission link can be considered as general.
Correspondingly, the data transmission information corresponding to the first service end indicates: in case of transmitting data through the first transmission link and the second transmission link; the first service end divides second data to be sent into third subdata sent by the first transmission link and fourth subdata sent by the second transmission link based on the corresponding data transmission information. The first server side sends the third subdata to the first terminal side through the first transmission link; and the first server side sends the fourth subdata to a second server corresponding to the second terminal. The second server forwards the fourth sub data to the second terminal through a second transmission link, and the second terminal forwards the fourth sub data to the first terminal through a transmission link with the first terminal. And after the first red satin end obtains the third subdata and the fourth subdata, converging the third subdata and the fourth subdata to obtain second data. The process of aggregating data in the embodiment of the present invention may refer to any manner in the related art that can implement aggregation of split data, which is not described herein again.
In the process of dividing the second data, the first server may adopt any data dividing manner to divide the second data based on the data transmission ratio corresponding to each transmission link in the corresponding data transmission information.
It can be understood that the second service end corresponding to the second terminal may be the same service end as the first service end, or may be a different service end from the first service end.
The second implementation mode comprises the following steps: the data transmission information corresponding to the first service end indicates that: the method comprises the steps of sending data through a second transmission link of a second terminal connected with a first terminal;
and the first service end sends the second data to be sent to a second service end corresponding to the second terminal based on the data transmission information, so that the second service end sends the second data to the second terminal through a second transmission link, and the second terminal sends the second data to the first terminal, so that the first terminal obtains the second data.
In this implementation manner, the second electronic device determines, based on the third data transmission condition and the third network condition, and/or the fourth data transmission condition and the fourth network condition, that the data transmission condition of the first transmission link is poor and the network condition is poor, and that the data transmission condition of the second transmission link is good and the network condition is good. At this time, the second electronic device may determine, based on the above situation, data transmission information corresponding to the first service end that includes information indicating that data is to be sent over the second transmission link, and send the data transmission information to the first service end.
When a fourth packet loss rate at which the first server transmits data to the first terminal through the first transmission link currently is within a thirteenth preset packet loss rate interval, or when a fourth data transmission success rate at which the first server transmits data to the first terminal through the first transmission link currently is within the thirteenth preset success rate interval, it may be determined that the data transmission condition of the first transmission link is poor.
It can be understood that the larger the fourth packet loss rate is, the worse the data transmission condition characterizing the data transmission to the first terminal through the first transmission link is, the worse the data transmission to the first terminal through the first transmission link is. Correspondingly, the minimum value of the thirteenth preset packet loss rate interval may exist, and is not lower than the maximum value of the tenth preset packet loss rate interval. Or, the maximum value of the thirteenth preset success rate interval is not higher than the minimum value of the tenth preset success rate interval.
When the second timestamp range information of the data currently cached by the first server is in a fifth preset range, the second cache byte number information of the data currently cached by the first server is in the fifth preset byte number range, or the third network speed information of the first transmission link is in a ninth preset speed range, the network condition of the first transmission link may be considered to be poor.
It can be understood that the larger the second timestamp range information of the data currently cached by the first server is, or the larger the second cache byte number information of the data currently cached by the first server is, and the lower the third network speed information of the first transmission link is, the worse the network condition characterizing the first transmission link is. The minimum value of the fifth preset range may be not less than the maximum value of the fourth preset range, and the minimum value of the fifth preset byte number may not be less than the maximum value of the fourth preset byte number.
When a fifth packet loss rate of the first server currently transmitting data to the second terminal through the second transmission link is in a fourteenth preset packet loss rate interval, a sixth packet loss rate of the second terminal currently transmitting data to the first terminal is in a fifteenth preset packet loss rate interval, or when a fifth data transmission success rate of the first server currently transmitting data to the second terminal through the second transmission link is in a fourteenth preset success rate interval, and a sixth data transmission success rate of the second terminal currently transmitting data to the first terminal is in a fifteenth preset packet loss rate interval, it can be determined that the data transmission condition of the second transmission link is better. The smaller the fifth packet loss rate is, the higher the fifth data transmission success rate is, the better the data transmission condition representing that the first server transmits data to the second terminal through the second transmission link is, correspondingly, the maximum value of the fourteenth preset packet loss rate interval may be not higher than the minimum value of the twelfth preset packet loss rate interval, and the minimum value of the fourteenth preset success rate interval is not lower than the maximum value of the twelfth preset success rate interval.
The smaller the sixth packet loss rate is, the larger the sixth data transmission success rate is, and the higher the data transmission integrity between the first terminal and the second terminal is represented. Correspondingly, the minimum value of the fifteenth preset packet loss rate interval may be not higher than the minimum value of the thirteenth preset packet loss rate interval, and the maximum value of the fifteenth preset packet loss rate interval may not be higher than the maximum value of the thirteenth preset packet loss rate interval. Or the minimum value of the fifteenth preset success rate interval is not lower than the minimum value of the thirteenth preset success rate interval, and the maximum value of the fifteenth preset success rate interval is not lower than the maximum value of the thirteenth preset success rate interval.
And under the condition that the fourth network speed information is in the tenth preset speed interval, the network condition of the second transmission link can be considered to be better. The larger the fourth network speed information is, the better the network condition representing the second transmission link is, and accordingly, the minimum value of the tenth preset speed interval may be not lower than the maximum value of the eighth preset speed interval.
The first service end directly sends the second data to a second service end corresponding to the second terminal based on the indication of the corresponding data transmission information, the second service end forwards the received second data to the second terminal through a second transmission link, and the second terminal forwards the second data to the first terminal again, so that the first terminal obtains the second data.
The third implementation mode comprises the following steps: the data transmission information corresponding to the first service end indicates that: in the case of transmitting data through a first transmission link of a first terminal;
and the first service end sends the second data to be sent to the first terminal based on the data transmission information so that the first terminal can obtain the second data.
In this implementation manner, the second electronic device determines, based on the third data transmission condition and the third network condition, and/or the fourth data transmission condition and the fourth network condition, that the data transmission condition of the first transmission link is better and the network condition is better, and that the data transmission condition of the second transmission link is worse and the network condition is worse. At this time, the second electronic device may determine, based on the above situation, data transmission information corresponding to the first service end that includes information indicating that data is to be transmitted via the first transmission link, and transmit the data transmission information to the first service end.
When a fourth packet loss rate of the current data transmission from the first server to the first terminal is within a sixteenth preset packet loss rate interval, or when a fourth data transmission success rate of the current data transmission from the first server to the first terminal is within a sixteenth preset success rate interval, it may be determined that the data transmission condition of the first transmission link is better.
Considering that the smaller the fourth packet loss rate is, the better the data transmission condition characterizing the data transmission to the first terminal through the first transmission link is. Accordingly, the maximum value of the sixteenth preset packet loss rate interval may exist, and is not higher than the minimum value of the tenth preset packet loss rate interval. Or the minimum value of the sixteenth preset success rate interval is not lower than the maximum value of the tenth preset success rate interval.
When the second timestamp range information of the data currently cached by the first server is in the sixth preset range, the second cache byte number information of the data currently cached by the first server is in the sixth preset byte number range, or the third network speed information of the first transmission link is in the eleventh preset speed range, the network condition of the first transmission link can be considered to be better.
It can be understood that the smaller the second timestamp range information of the data currently cached by the first server is, or the smaller the second byte count information of the data currently cached by the first server is, and the higher the third network speed information of the first transmission link is, the better the network condition of the first transmission link is characterized. The maximum value of the sixth preset range may be not higher than the minimum value of the fourth preset range, and the maximum value of the sixth preset byte number may not be higher than the minimum value of the fourth preset byte number.
When a fifth packet loss rate of the current data transmission from the first service end to the second terminal is in a seventeenth preset packet loss rate interval, and a sixth packet loss rate of the current data transmission from the second terminal to the first terminal is in an eighteenth preset packet loss rate interval; or determining that the data transmission condition of the second transmission link is poor under the condition that the fifth data transmission success rate of the first service end for currently transmitting data to the second terminal is within a ninth preset success rate interval and the sixth data transmission success rate of the second terminal for currently transmitting data to the first terminal is within the ninth preset success rate interval. The larger the fifth packet loss rate is, the lower the success rate of the fifth data transmission is, and the worse the data transmission condition representing that data is transmitted to the second terminal through the second link is. Correspondingly, the minimum value of the seventeenth preset packet loss rate interval may not be lower than the maximum value of the twelfth preset packet loss rate interval, and the maximum value of the seventeenth preset success rate interval may not be higher than the minimum value of the twelfth preset success rate interval.
The larger the sixth packet loss rate is, the smaller the sixth data transmission success rate is, and the lower the data transmission integrity between the first terminal and the second terminal is represented. Accordingly, there may be a case where the minimum value of the eighteenth preset packet loss rate interval is not lower than the maximum value of the thirteenth preset packet loss rate interval. Or, the maximum value of the eighteenth preset success rate interval is not higher than the minimum value of the thirteenth preset success rate interval.
And in the case that the fourth network speed information of the second transmission link is within the twelfth preset speed interval, the network condition of the second transmission link can be considered to be poor. The smaller the fourth network speed information is, the worse the network condition of the second transmission link is represented, and correspondingly, the maximum value of the twelfth preset speed interval may be not lower than the minimum value of the eighth preset speed interval. And the first service terminal directly sends the second data to be sent by the first service terminal to the first terminal based on the corresponding data transmission information so that the first terminal can obtain the second data.
Through the different manners, the second data required to be sent by the first service end can be sent. Accordingly, the data can still be transmitted under the condition that the data transmission condition and the network condition of the first transmission link of the first terminal are poor, that is, the data of the first terminal can still be received. And then guarantee the use of first terminal to a certain extent, improve the user of first terminal and use experience to a certain extent.
In another embodiment of the present invention, the step S202 may include the following steps 031-:
031: and determining second transmission link distribution information based on the third data transmission condition and the third network condition, and the fourth data transmission condition and the fourth network condition.
Wherein the second transmission link allocation information includes: transmitting second data by using the first transmission link, or transmitting the second data by using the second transmission link, or transmitting the second data by using the first transmission link and the second transmission link together; the assigning information at the second transmission link includes: in the case of jointly transmitting the second data using the first transmission link and the second transmission link, the second transmission link allocation information further includes: the first transmission link and the second transmission link transmit a data transmission ratio of the second data.
032: and adjusting the retransmission data interval of the first service terminal for retransmitting the data based on the third network speed information of the first transmission link.
If the current network speed information of the first transmission link is larger than the historical network speed information of the first transmission link, the retransmission data interval of the retransmission data of the first server side is increased; otherwise, the retransmission data interval of the first server side retransmission data is adjusted to be small.
033: and determining the smoothing delay parameter information corresponding to the first terminal based on the second time stamp range information of the data currently cached by the first server and/or the second cache byte number information of the data currently cached by the first server. The smoothing delay parameter information corresponding to the first terminal is used for: the first terminal is controlled to display information of a smooth delay time for rendering the second data it receives, i.e., when to display information of rendering the received second data after the first terminal receives the second data.
034: and determining whether to discard part of the second data currently required to be sent by the first server based on the second timestamp range information of the currently cached data of the first server and/or the second cache byte number information of the currently cached data of the first server.
If the second timestamp range information of the data currently cached by the first server exceeds a third preset threshold or the second cache byte number information of the data currently cached by the first server exceeds a fourth preset threshold, determining to discard part of the data of the second data currently required to be sent by the first server, so as to obtain data transmission information corresponding to the first server.
In one case, the data transmission ratio of the first transmission link and the second transmission link for transmitting the second data may be determined based on at least a fourth packet loss rate of the first server for transmitting the data to the first terminal and/or third network speed information of the first transmission link. The smaller the third packet loss rate is, and/or the larger the third network speed information of the first transmission link is, the larger the determined data transmission ratio of the first transmission link and the second transmission link for transmitting the first data is, that is, the greater the proportion of the first transmission link for transmitting part of the second data in the second data is, the smaller the proportion of the second transmission link for transmitting part of the second data in the second data is. Conversely, the larger the fourth packet loss rate is, and/or the smaller the third network speed information of the first transmission link is, the smaller the determined data transmission ratio of the first transmission link and the second transmission link for transmitting the second data may be.
The second electronic device determines that the third network speed information is larger than the historical network speed information of the first transmission link based on the third network speed information of the first transmission link, and then considers that the network condition of the first transmission link is improved, and at the moment, the retransmission data interval of the first server for retransmitting data can be increased; otherwise, the retransmission data interval of the first server side retransmission data is adjusted to be small. At this time, the retransmission enabling information of the first service end includes information representing that the retransmission function of the first service end is in an open state.
In the process of determining, by the second electronic device, the smoothing delay parameter information corresponding to the first terminal based on the second timestamp range information of the data currently cached by the first service end and/or the second cache byte number information of the data currently cached by the first service end, the following may be performed: under the condition that the second timestamp range information of the currently cached data of the first service end is larger than the timestamp range information of the historically cached data, and/or the second cache byte number information of the currently cached data of the first service end is larger than the byte number information of the historically cached data, the smoothing delay parameter information corresponding to the first terminal can be increased. Otherwise, the smoothing delay parameter information corresponding to the first terminal may be reduced. The first terminal may obtain second data based on its corresponding smoothing delay parameter information, and then perform corresponding steps based on the second data.
The second electronic device determines a current data delay condition of the first service terminal based on second timestamp extreme difference information of the currently cached data of the first service terminal and/or second cache byte number information of the currently cached data of the first service terminal, and further determines whether to discard part of data of the second data based on the current data delay condition of the first service terminal. If the second timestamp range information of the data currently cached by the first server exceeds a third preset threshold and/or the second cache byte number information of the data currently cached by the first server exceeds a fourth preset threshold, representing that the delay condition of the current data of the first server is serious, determining to discard part of the data of the second data; on the contrary, if the second timestamp range information of the currently cached data of the first service end does not exceed the third preset threshold, and the second cache byte number information of the currently cached data of the first service end does not exceed the fourth preset threshold, which indicates that the current data delay condition of the first service end is not serious, it is determined that part of the second data is not discarded. And obtaining data transmission information corresponding to the first service terminal, wherein the data transmission information at least comprises information such as second link allocation information, a retransmission data interval, smooth delay parameter information corresponding to the first terminal, whether partial data of the second data is discarded and the like.
In one implementation, the second electronic device may further determine to set the first server data caching information according to second timestamp range information of the currently cached data of the first server and/or second caching byte number information of the currently cached data of the first server, or third network speed information. When the third network speed information is lower than the second preset network speed, or the second timestamp extreme difference information of the data currently cached by the first server and/or the second cache byte number information of the data currently cached by the first server characterize that the data delay condition of the first server is serious, the setting of the data cache information of the first server may include controlling the first server to set a data cache space, so that the first server may cache the second data required to be sent by the first server.
In another embodiment of the present invention, the method may further include: and the first terminal determines the second terminal from the terminals which can be accessed by the first terminal and connects with the second terminal. The first terminal can determine the second terminal from the terminals accessible by the first terminal in a broadcasting or multicasting mode or in a radio frequency signal capturing mode, and is connected with the second terminal.
In one implementation, in order to improve the capability of the first terminal to transmit data, when the transmission capability of the first transmission link of the first terminal is not good, that is, the data transmission condition and the network condition are not good, the first terminal can still transmit data, and the first terminal needs to be connected to a second terminal, which has a transmission link different from the first transmission link of the first terminal accessing the network, that is, a transmission link of a different type, in the included transmission links. Accordingly, the step of connecting the first terminal with the second terminal may include the following sub-steps 021-:
021: and judging whether a second transmission link different from the first transmission link of the first terminal access network exists in the transmission links of the second terminal access network.
The method for judging whether a second transmission link different from a first transmission link of a first terminal access network exists in the transmission links of the second terminal access network comprises the following steps: and detecting whether a second transmission link with a public network outlet different from the public network outlet of the first transmission link exists in the transmission links of the second terminal accessed to the network, and if so, determining that the second transmission link different from the first transmission link of the first terminal accessed to the network exists.
022: and if so, connecting with the second terminal.
And the first terminal is directly connected with the second terminal under the condition that a second transmission link with a public network outlet different from the public network outlet of the first transmission link exists in the transmission links for accessing the second terminal into the network. Otherwise, the step of determining the second terminal from among the terminals accessible to it is continued.
In another embodiment of the present invention, the second terminal is installed with a designated application program, is connected to the first terminal through the designated application program, and provides a data forwarding function, where the data forwarding function is: and receiving the data sent by the first server and forwarding the received data to the first terminal.
Under the condition that the designated application installed on the second terminal is in a background state or an inactive state, the designated application of the second terminal keeps the designated application from being suspended or ended by at least one of refreshing a background task, starting positioning service, playing audio, sending VOIP connection data, improving the priority of the application process, starting keep-alive service, residing in a notification bar, reducing a display interface, replacing a screen locking interface and setting a resident memory of the designated application so as to connect the second terminal with the first terminal and provide a data forwarding function.
In another embodiment of the invention, the second terminal may be connected to at least the first terminal. Under the condition that a second terminal is connected with a plurality of first terminals, the second terminal forwards data for the plurality of first terminals in a time-sharing mode; or the second terminal may forward data for the plurality of first terminals according to the respective data forwarding priorities of the plurality of first terminals.
In another embodiment of the present invention, a terminal may be simultaneously connected to at least one second terminal, and accordingly, the first electronic device may determine data transmission information corresponding to the first terminal based on a first data transmission condition and a first network condition corresponding to the first transmission link of the first terminal and/or a second data transmission condition and a second network condition corresponding to the second transmission link of each second terminal, where the data transmission information corresponding to the first terminal may include information indicating the first transmission link of the first terminal and/or the second transmission link of which second terminal or second transmission links the first terminal is connected to, and may further include respective transmission data ratios of the first transmission link and/or the second transmission link of the at least one second terminal.
Corresponding to the foregoing method embodiment, an embodiment of the present invention provides a data transmission system, as shown in fig. 3, where the system includes: the system comprises a first processing terminal 310, a first terminal 320, a second terminal 330 and a first service terminal 340 corresponding to the first terminal 320, wherein the first terminal 320 is connected with the second terminal 330, and a second transmission link different from a first transmission link of the first terminal 320 accessing the network exists in a transmission link of an access network included in the second terminal 330;
a first processing terminal 310, configured to, if it is detected that a first terminal 320 needs to send data, obtain a first data transmission condition and a first network condition corresponding to a first transmission link of the first terminal 320, and/or a second data transmission condition and a second network condition corresponding to a second transmission link of a second terminal 330; determining data transmission information corresponding to the first terminal 320 based on a first data transmission condition and a first network condition corresponding to a first transmission link of the first terminal 320 and/or a second data transmission condition and a second network condition corresponding to a second transmission link of the second terminal 330, and sending the data transmission information to the first terminal 320;
the first terminal 320 is configured to send, based on the data transmission information, first data that needs to be sent to a first server 340 corresponding to the first terminal through a first transmission link of an access network of the first terminal 320 and/or a second transmission link of an access network of the second terminal 330;
the first service end 340 is configured to receive first data transmitted via a first transmission link of the access network of the first terminal 320 and/or a second transmission link of the access network of the second terminal 330 connected thereto.
By applying the embodiment of the invention, the data transmission information corresponding to the first terminal can be determined based on the first data transmission condition and the first network condition, and/or the second data transmission condition and the second network condition, so that the first terminal can transmit the data required to be transmitted to the first service terminal through the first transmission link of the access network of the first terminal and/or the second transmission link of the access network of the connected second terminal based on the corresponding data transmission information, so that the first terminal does not need to transmit the data only by depending on the first transmission link of the access network of the first terminal, and under certain conditions, such as the condition of bad network, the data transmission capability of the first terminal can be improved based on the second transmission link of the second terminal which is connected with a transmission link different from the transmission link of the access network of the first terminal, thereby improving the data transmission capability of the equipment which can only access the network through the wireless network transmission link, the use experience of the user is improved.
In another embodiment of the present invention, as shown in fig. 3, a process of the first terminal 320 sending data to the first service end corresponding to the first terminal through the first transmission link of the access network of the first terminal and/or the second transmission link of the access network of the second terminal connected to the first terminal based on the data transmission information is implemented by any one of the following three implementation manners:
the first implementation mode comprises the following steps: and the data transmission information corresponding to the first terminal indicates that: in the case of transmitting data via a first transmission link of the first terminal and a second transmission link of the second terminal to which the first terminal is connected; the first terminal 320 is specifically configured to determine, based on the data transmission information, first sub data sent through a first transmission link of an access network of the first terminal 320 and second sub data sent through a second transmission link of an access network of the second terminal 330 connected to the first terminal, respectively; sending the first sub data to the first server 340 through the first transmission link; sending the second sub data to the second terminal 330; the first sub data and the second sub data constitute first data to be sent by the first terminal 320;
the second terminal 330 is specifically configured to send the second sub data to a second server 350 corresponding to the second terminal 330 through the second transmission link;
the second server 350 is specifically configured to send the second sub-data to the first server 340;
the first server 340 is specifically configured to, after obtaining the first sub-data and the second sub-data, aggregate the first sub-data and the second sub-data to obtain the first data;
the second implementation mode comprises the following steps: and the data transmission information corresponding to the first terminal indicates that: in case of sending data via a second transmission link of the second terminal to which the first terminal is connected; the first terminal 320 is specifically configured to send, to the second terminal 330, first data to be sent by the first terminal 320 based on the data transmission information; the second terminal 330 is specifically configured to send the first data to a second server 350 corresponding to the second terminal 330; the second server 350 is specifically configured to send the first data to the first server 340, so that the first server 340 obtains the first data;
the third implementation mode comprises the following steps: and the data transmission information corresponding to the first terminal indicates that: in the case of transmitting data via a first transmission link of the first terminal;
the first terminal 320 is specifically configured to send, based on the data transmission information, first data to be sent by the first terminal 320 to the first service end 340, so that the first service end 340 obtains the first data.
In another embodiment of the present invention, the data transmission information corresponding to the first terminal 320 includes: setting first terminal data buffer information, sending priority information, forward error correction processing enabling information, retransmission times information, retransmission time interval information, retransmission priority information of different types of data in the first data, relevant information for controlling a first service terminal corresponding to the first terminal to receive data, and at least one of link allocation information, wherein the link allocation information is information indicating data transmission through the first transmission link and/or the second transmission link.
In another embodiment of the present invention, the first data transmission condition corresponding to the first transmission link includes: a first packet loss rate of the first terminal currently transmitting data to the first service end and a second packet loss rate of the first terminal currently transmitting data to the second terminal; or comprises the following steps: a first data transmission success rate at which the first terminal transmits data to the first service terminal currently, and a second data transmission success rate at which the first terminal transmits data to the second terminal currently; the first network condition corresponding to the first transmission link comprises: the first terminal receives the first timestamp range information of the currently cached data of the first terminal, the first cache byte number information of the currently cached data of the first terminal and the first network speed information of the first transmission link;
the second data transmission condition corresponding to the second transmission link includes: a third packet loss rate at which the second terminal transmits data to the first service end currently, or a third data transmission success rate at which the second terminal transmits data to the first service end currently; the second network condition corresponding to the second transmission link includes: second network speed information of the second transmission link.
In another embodiment of the present invention, the first processing terminal 310, in the process of determining the data transmission information corresponding to the first terminal based on the first data transmission condition and the first network condition corresponding to the first transmission link of the first terminal and/or the second data transmission condition and the second network condition corresponding to the second transmission link of the second terminal, is specifically configured to: determining first transmission link allocation information based on a first data transmission condition and a first network condition corresponding to a first transmission link of the first terminal and a second data transmission condition and a second network condition corresponding to a second transmission link of the second terminal, wherein the first transmission link allocation information includes: transmitting first data to be sent by the first terminal by using the first transmission link, or transmitting the first data by using the second transmission link, or transmitting the first data by using the first transmission link and the second transmission link together; the allocation information at the first transmission link comprises: in a case where the first data is transmitted by using the first transmission link and the second transmission link together, the first transmission link allocation information further includes: a data transmission ratio at which the first transmission link and the second transmission link transmit the first data;
adjusting a retransmission data interval of the first terminal for retransmitting data based on first network speed information of a first transmission link of the first terminal, wherein the retransmission data interval of the first terminal for retransmitting data is increased if the first network speed information of the first transmission link of the first terminal is larger than the network speed information before the history of the first transmission link of the first terminal; otherwise, reducing the retransmission data interval of the first terminal retransmission data;
determining smoothing delay parameter information corresponding to the first service terminal based on first timestamp range information of the data currently cached by the first terminal and/or first cache byte number information of the data currently cached by the first terminal, so that the first service terminal forwards the first data based on the received smoothing delay parameter after obtaining the first data;
determining whether to discard part of the first data based on first timestamp range information of the currently cached data of the first terminal and/or first cache byte number information of the currently cached data of the first terminal, wherein if the first timestamp range information of the currently cached data of the first terminal exceeds a first preset threshold value and/or the first cache byte number information of the currently cached data of the first terminal exceeds a second preset threshold value, determining to discard the part of the first data so as to obtain data transmission information corresponding to the first terminal.
In another embodiment of the present invention, the first terminal 320 and the second terminal 330 are connected by at least one of a wireless local area network, a wifi-direct, a USB, an ethernet, a Zigbee, a radio frequency, and a bluetooth, and a point-to-point or multicast protocol is used for the connection.
In another embodiment of the present invention, the first transmission link of the first terminal 320 is: a wireless local area network transmission link, where the second transmission link of the second terminal 330 is: cellular mobile network transmission links.
In another embodiment of the present invention, the first terminal 320 is further configured to determine the second terminal 330 by broadcasting or multicasting or by capturing radio frequency signals, and connect with the second terminal 330.
In another embodiment of the present invention, the manner that the first terminal 320, during the connection with the second terminal, is specifically configured to determine whether a second transmission link different from the first transmission link of the first terminal 320 accessing the network exists in the transmission link of the second terminal 330 accessing the network, wherein determining whether a second transmission link different from the first transmission link of the first terminal accessing the network exists in the transmission link of the second terminal accessing the network includes: detecting whether a second transmission link with a public network outlet different from the public network outlet of the first transmission link exists in the transmission links of the second terminal access network, and if so, determining that a second transmission link different from the first transmission link of the first terminal access network exists; and if the second terminal exists, connecting with the second terminal.
In another embodiment of the present invention, the second terminal is installed with a designated application program, is connected to the first terminal through the designated application program, and provides a data forwarding function, where the data forwarding function is: receiving data sent by the first terminal and forwarding the received data to the first service terminal;
under the condition that the designated application installed on the second terminal is in a background state or an inactive state, the designated application of the second terminal keeps the designated application from being suspended or ended by at least one of refreshing a background task, starting positioning service, playing audio, sending VOIP connection data, improving the process priority of the application, starting keep-alive service, resident notification bar, reducing display interface, replacing lock screen interface and setting the resident memory of the designated application so as to connect the second terminal with the first terminal and provide a data forwarding function.
Corresponding to the foregoing method embodiment, an embodiment of the present invention provides a data transmission system, as shown in fig. 4, where the system includes: a second processing terminal 410, a first terminal 420, a second terminal 430, and a first service terminal 440 corresponding to the first terminal 420, wherein the first terminal 420 is connected to the second terminal 430, and a second transmission link different from a first transmission link of the first terminal 420 accessing the network exists in transmission links of the access network included in the second terminal 430;
the second processing end 410 is configured to, if it is detected that the first service end 440 needs to send data, obtain a third data transmission condition and a third network condition corresponding to a first transmission link between the first service end 440 and the first terminal 420, and/or a fourth data transmission condition and a fourth network condition corresponding to a second transmission link between the first service end 440 and the second terminal 430; determining data transmission information corresponding to the first server 440 based on the third data transmission condition and the third network condition, and/or the fourth data transmission condition and the fourth network condition, and sending the data transmission information to the first server 440; the first service end 440 is configured to send, to the first terminal 420, second data that the first service end 440 needs to send, based on data transmission information corresponding to the first service end 440, through a first transmission link of an access network of the first terminal 420 and/or a second transmission link of an access network of a second terminal 430 connected to the first terminal 420; the first terminal 420 is configured to receive second data transmitted over a first transmission link of the access network of the first terminal 420 and/or a second transmission link of the access network of the second terminal 430 connected thereto.
By applying the embodiment of the present invention, based on the third data transmission situation and the third network situation, and/or the fourth data transmission situation and the fourth network situation, the data transmission information corresponding to the first service end can be determined, so that the first service end sends the data to be sent to the first terminal through the first transmission link and/or the second transmission link of the second terminal connected to the first terminal based on the corresponding data transmission information, so that the first service end does not need to rely on only a single first transmission link to transmit data, and under some conditions, for example, under the condition that the first transmission link is poor, the first service end transmits data based on the second transmission link of the second terminal connected to a transmission link different from the transmission link connected to the first service end, so as to improve the data transmission capability of the first service end, that is, improve the data receiving capability of the first terminal, and then realize improving the data transmission ability of the equipment that can only insert the network through the wireless network transmission link, improve user's use and experience.
In another embodiment of the present invention, the process that the first service end 440 sends the second data that the first service end needs to send to the first terminal through the first transmission link of the access network of the first terminal and/or the second transmission link of the access network of the second terminal that the first terminal is connected to based on the data transmission information corresponding to the first service end may be implemented by any one of the following three implementation manners:
the first implementation mode comprises the following steps: and the data transmission information corresponding to the first service end indicates that: in the case of transmitting data via a first transmission link of the first terminal and a second transmission link of the second terminal to which the first terminal is connected; the first server 440 is specifically configured to determine, based on the data transmission information, third sub data sent through a first transmission link of an access network of the first terminal 420 and fourth sub data sent through a second transmission link of an access network of the second terminal 430 connected to the first terminal 420, respectively; transmitting the third sub data to the first terminal 420 through the first transmission link; sending the fourth sub-data to a second server 450 corresponding to the second terminal 430, where the third sub-data and the fourth sub-data constitute second data to be sent by the first server; the second server 450 is specifically configured to send the received fourth sub data to the second terminal 430 through the second transmission link; the second terminal 430 is specifically configured to send the received fourth sub-data to the first terminal 420; the first terminal 420 is specifically configured to, after obtaining the third sub-data and the fourth sub-data, aggregate the third sub-data and the fourth sub-data to obtain the second data;
the second implementation mode comprises the following steps: and the data transmission information corresponding to the first service end indicates that: in case of sending data via a second transmission link of the second terminal to which the first terminal is connected; the first server 440 is specifically configured to send, based on the data transmission information, second data to be sent to a second server 450 corresponding to the second terminal 430; the second server 450 is configured to transmit the second data to the second terminal 430 via the second transmission link; the second terminal 430 is configured to send the second data to the first terminal 420, so that the first terminal obtains the second data;
the third implementation mode comprises the following steps: and the data transmission information corresponding to the first service end indicates that: in the case of transmitting data via a first transmission link of the first terminal; the first server 440 is specifically configured to send, based on the data transmission information, second data to be sent to the first terminal 420, so that the first terminal 420 obtains the second data.
In another embodiment of the present invention, the data transmission information corresponding to the first service end includes: setting first server data buffer information, sending priority information, forward error correction processing enabling information, retransmission times information, retransmission time interval information and retransmission priority information of different types of data in the second data, and controlling at least one of relevant information of data received by a first terminal and link allocation information, wherein the link allocation information is information indicating data transmission through the first transmission link and/or the second transmission link.
In another embodiment of the present invention, the third data transmission scenario includes: a fourth packet loss rate at which the first service terminal transmits data to the first terminal currently; or comprises the following steps: a fourth data transmission success rate of the first service end for currently transmitting data to the first terminal; the third network condition comprises: second timestamp range information of the currently cached data of the first server, second cache byte number information of the currently cached data of the first server, and third network speed information of the first transmission link;
the fourth data transmission scenario includes: a fifth packet loss rate of the first service end currently transmitting data to the second terminal, a sixth packet loss rate of the second terminal currently transmitting data to the first terminal, or a fifth data transmission success rate of the first service end currently transmitting data to the second terminal and a sixth data transmission success rate of the second terminal currently transmitting data to the first terminal; the fourth network condition comprises: fourth network speed information of the second transmission link.
In another embodiment of the present invention, in the process of determining the data transmission information corresponding to the first service end based on the third data transmission condition and the third network condition, and/or the fourth data transmission condition and the fourth network condition, the second processing end 410 is specifically configured to: determining second transmission link allocation information based on the third data transmission condition and the third network condition, and the fourth data transmission condition and the fourth network condition, wherein the second transmission link allocation information includes: transmitting the second data by using the first transmission link, or transmitting the second data by using the second transmission link, or transmitting the second data by using the first transmission link and the second transmission link together; the second transmission link allocation information comprises: in a case where the first transmission link and the second transmission link are used to jointly transmit the second data, the second transmission link allocation information further includes: a data transmission ratio at which the first transmission link and the second transmission link transmit the second data;
adjusting a retransmission data interval of the first server side for retransmitting data based on third network speed information of the first transmission link, wherein if the current network speed information of the first transmission link is larger than the historical network speed information of the first transmission link, the retransmission data interval of the first server side for retransmitting data is increased; otherwise, reducing the retransmission data interval of the first server retransmission data;
determining smoothing delay parameter information corresponding to the first terminal based on second timestamp range information of the data currently cached by the first server and/or second cache byte number information of the data currently cached by the first server;
determining whether to discard part of the second data currently required to be sent by the first server based on second timestamp range information of the currently cached data of the first server and/or second cache byte number information of the currently cached data of the first server, wherein if the second timestamp range information of the currently cached data of the first server exceeds a third preset threshold or the second cache byte number information of the currently cached data of the first server exceeds a fourth preset threshold, determining to discard part of the second data currently required to be sent by the first server, so as to obtain data transmission information corresponding to the first server.
In another embodiment of the present invention, the first terminal 420 and the second terminal 430 are connected by using a point-to-point or multicast protocol through at least one of a wireless local area network, a wifi-direct, a USB, an ethernet, a Zigbee, a radio frequency, and a bluetooth connection.
In another embodiment of the present invention, the first transmission link of the first terminal 420 is: the wireless local area network transmission link, the second transmission link of the second terminal 430 is: cellular mobile network transmission links.
In another embodiment of the present invention, the first terminal 420 determines the second terminal through broadcasting or multicasting or through rf signal capturing, and connects with the second terminal.
In another embodiment of the present invention, in the process of connecting the first terminal 420 and the second terminal, the method is specifically configured to: determining whether a second transmission link different from the first transmission link of the first terminal 420 accessing the network exists in the transmission links of the second terminal 430 accessing the network, wherein determining whether a second transmission link different from the first transmission link of the first terminal accessing the network exists in the transmission links of the second terminal accessing the network includes: detecting whether a second transmission link with a public network outlet different from the public network outlet of the first transmission link exists in the transmission links of the second terminal access network, and if so, determining that a second transmission link different from the first transmission link of the first terminal access network exists; if so, is connected to the second terminal 430.
In another embodiment of the present invention, the second terminal is installed with a designated application program, is connected to the first terminal through the designated application program, and provides a data forwarding function, where the data forwarding function is: receiving data sent by the first service terminal and forwarding the received data to the first terminal;
under the condition that the designated application installed on the second terminal is in a background state or an inactive state, the designated application of the second terminal keeps the designated application from being suspended or ended by at least one of refreshing a background task, starting positioning service, playing audio, sending VOIP connection data, improving the process priority of the application, starting keep-alive service, resident notification bar, reducing display interface, replacing lock screen interface and setting the resident memory of the designated application so as to connect the second terminal with the first terminal and provide a data forwarding function.
In one implementation, the data transmission system can be applied to scenes such as online class or meeting. The data transmission system is explained as being applied to an online lesson scene. Fig. 5 is a schematic diagram of a data transmission system applied to an online class scene. The first terminal shown in fig. 5 may be a terminal that accesses the network using a wireless local area network transmission link, i.e. a first transmission link, such as: tablet, desktop, or all-in-one. The second terminal shown in fig. 5 may be a terminal that accesses the network at least with a cellular mobile network transmission link, i.e. the second transmission link, such as: the system comprises a smart phone and the like, wherein a first terminal and a second terminal are connected through a wireless local area network. The first terminal and the first processing terminal are taken as the same physical terminal for explanation.
In one implementation, when a first terminal needs to transmit data, a first terminal may obtain a first data transmission condition and a first network condition corresponding to a first transmission link of the first terminal and/or a second data transmission condition and a second network condition corresponding to a second transmission link of a second terminal, and determine data transmission information corresponding to the first terminal based on the information.
The following description will be given by taking as an example a case where the data transmission information corresponding to the first terminal indicates the first data to be transmitted through the first transmission link and the second transmission link, and the first data needs to be transmitted: the first terminal divides the first data into first subdata sent through a first transmission link and second subdata sent through a second transmission link, and sends the first subdata to a corresponding first server side through the first transmission link, such as a link including a router and a first terminal uplink sub-path 1 shown in fig. 5; and send the second subdata to the second terminal through a link between the first terminal and the second terminal, such as a link including an uplink subpath 2 of the router and the first terminal shown in fig. 5, and the second terminal sends the second subdata to a second server corresponding to the second terminal through a second transmission link, such as a link including a base station providing a cellular mobile network shown in fig. 5; the second server side forwards the obtained second subdata to the first server side, and the first server side gathers the first subdata and the second subdata to obtain first data. Subsequently, the first server may continue to send the first data to other servers, so as to perform corresponding processing on the first data through other servers. The transmission of the first data is realized.
In another implementation, when the first service end needs to send data to the first terminal, the third data transmission condition and the third network condition corresponding to the first transmission link between the first service end and the first terminal and/or the fourth data transmission condition and the fourth network condition corresponding to the second transmission link between the second service end and the second terminal may be obtained, and the data transmission information corresponding to the first service end may be determined based on the information.
The following description will be given by taking as an example a case where the data transmission information corresponding to the first service end indicates the second data to be transmitted, which is transmitted through the first transmission link and the second transmission link: the first server divides the second data into third sub data sent by the first transmission link and fourth sub data sent by the second transmission link, and sends the third sub data to the corresponding first terminal through the first transmission link, such as a link including a first terminal downlink sub path 1 and a router shown in fig. 5; sending the fourth sub-data to a second server corresponding to the second terminal, where the second server sends the obtained fourth sub-data to the second terminal through a second transmission link, such as a link including a base station corresponding to a cellular mobile network provided in fig. 5; the second terminal forwards the obtained second sub-data to the first terminal through a link between the second terminal and the first terminal, such as a link including the first terminal downlink sub-path 2 and the router shown in fig. 5, and the first terminal obtains the third sub-data and the fourth sub-data, and then converges the third sub-data and the fourth sub-data to obtain the second data. Subsequently, the first terminal may continue to process the second data accordingly.
The first Data and the second Data may include Audio Data, Video Data, and control Data, such as "Video Audio Data" shown in fig. 5, the first terminal implements determination of Data transmission information and division and transmission of Data through the "PTCP SDK" module shown in fig. 5, and subsequent receiving and aggregation operations of Data transmitted by the first service end through the first transmission link and/or the second transmission link. The second terminal implements a data forwarding function for data through the "PTCP Proxy SDK" module shown in fig. 5. The second Server implements a data forwarding function for data through the "PTCP Server" module shown in fig. 5. The first Server side determines data transmission information and divides and sends data through a "PTCP Server" module shown in fig. 5, and then receives and aggregates data transmitted by the first terminal through the first transmission link and/or the second transmission link.
The system embodiment corresponds to the method embodiment, and has the same technical effect as the method embodiment, and for the specific description, reference is made to the method embodiment. The device embodiment is obtained based on the method embodiment, and for specific description, reference may be made to the method embodiment section, which is not described herein again. Those of ordinary skill in the art will understand that: the figures are merely schematic representations of one embodiment, and the blocks or flow diagrams in the figures are not necessarily required to practice the present invention.
Those of ordinary skill in the art will understand that: modules in the devices in the embodiments may be distributed in the devices in the embodiments according to the description of the embodiments, or may be located in one or more devices different from the embodiments with corresponding changes. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (15)
1. A data transmission method is characterized in that a first terminal is connected with a second terminal, and a second transmission link different from a first transmission link of the first terminal accessing a network exists in transmission links of the second terminal accessing the network; the method comprises the following steps:
if detecting that a first terminal needs to send data, acquiring a first data transmission condition and a first network condition corresponding to a first transmission link of the first terminal and/or a second data transmission condition and a second network condition corresponding to a second transmission link of a second terminal;
determining data transmission information corresponding to the first terminal based on a first data transmission condition and a first network condition corresponding to a first transmission link of the first terminal and/or a second data transmission condition and a second network condition corresponding to a second transmission link of the second terminal, and sending the data transmission information to the first terminal; and the first terminal sends the first data required to be sent to the first service end corresponding to the first terminal through the first transmission link of the access network of the first terminal and/or the second transmission link of the access network of the second terminal.
2. The method according to claim 1, wherein the process of the first terminal sending data to the first server corresponding to the first terminal through the first transmission link of the access network of the first terminal and/or the second transmission link of the access network of the second terminal connected to the first terminal based on the data transmission information is implemented by any one of the following three implementation manners:
the first implementation mode comprises the following steps:
and the data transmission information corresponding to the first terminal indicates that: in the case of transmitting data via a first transmission link of the first terminal and a second transmission link of the second terminal to which the first terminal is connected;
the first terminal determines first subdata sent through a first transmission link of an access network of the first terminal and second subdata sent through a second transmission link of an access network of a second terminal connected with the first terminal respectively based on the data transmission information, wherein the first subdata and the second subdata form first data to be sent by the first terminal;
the first terminal sends the first subdata to the first service end through the first transmission link;
the first terminal sends the second subdata to the second terminal, so that the second terminal sends the second subdata to a second service end corresponding to the second terminal through the second transmission link, and the second service end sends the second subdata to the first service end, so that after the first service end obtains the first subdata and the second subdata, the first subdata and the second subdata are converged to obtain the first data;
the second implementation mode comprises the following steps:
and the data transmission information corresponding to the first terminal indicates that: in case of sending data via a second transmission link of the second terminal to which the first terminal is connected;
the first terminal sends first data to be sent by the first terminal to the second terminal based on the data transmission information, so that the second terminal sends the first data to a second service end corresponding to the second terminal, and the second service end sends the first data to the first service end, so that the first service end obtains the first data;
the third implementation mode comprises the following steps:
and the data transmission information corresponding to the first terminal indicates that: in the case of transmitting data via a first transmission link of the first terminal;
and the first terminal sends the first data to be sent by the first terminal to the first service end based on the data transmission information, so that the first service end obtains the first data.
3. The method of claim 1, wherein the data transmission information corresponding to the first terminal comprises: setting first terminal data buffer information, sending priority information, forward error correction processing enabling information, retransmission times information, retransmission time interval information, retransmission priority information of different types of data in the first data, relevant information for controlling a first service terminal corresponding to the first terminal to receive data, and at least one of link allocation information, wherein the link allocation information is information indicating data transmission through the first transmission link and/or the second transmission link.
4. The method of claim 1, wherein the first data transmission scenario for the first transmission link comprises: a first packet loss rate of the first terminal currently transmitting data to the first service end and a second packet loss rate of the first terminal currently transmitting data to the second terminal; or comprises the following steps: a first data transmission success rate at which the first terminal transmits data to the first service terminal currently, and a second data transmission success rate at which the first terminal transmits data to the second terminal currently;
the first network condition corresponding to the first transmission link comprises: the first terminal receives the first timestamp range information of the currently cached data of the first terminal, the first cache byte number information of the currently cached data of the first terminal and the first network speed information of the first transmission link;
the second data transmission condition corresponding to the second transmission link includes: a third packet loss rate at which the second terminal transmits data to the first service end currently, or a third data transmission success rate at which the second terminal transmits data to the first service end currently;
the second network condition corresponding to the second transmission link includes: second network speed information of the second transmission link.
5. The method according to claim 4, wherein the step of determining the data transmission information corresponding to the first terminal based on the first data transmission condition and the first network condition corresponding to the first transmission link of the first terminal and/or the second data transmission condition and the second network condition corresponding to the second transmission link of the second terminal comprises:
determining first transmission link allocation information based on a first data transmission condition and a first network condition corresponding to a first transmission link of the first terminal and a second data transmission condition and a second network condition corresponding to a second transmission link of the second terminal, wherein the first transmission link allocation information includes: transmitting first data to be sent by the first terminal by using the first transmission link, or transmitting the first data by using the second transmission link, or transmitting the first data by using the first transmission link and the second transmission link together; the allocation information at the first transmission link comprises: in a case where the first data is transmitted by using the first transmission link and the second transmission link together, the first transmission link allocation information further includes: a data transmission ratio at which the first transmission link and the second transmission link transmit the first data;
adjusting a retransmission data interval of the first terminal for retransmitting data based on first network speed information of a first transmission link of the first terminal, wherein the retransmission data interval of the first terminal for retransmitting data is increased if the first network speed information of the first transmission link of the first terminal is larger than the network speed information before the history of the first transmission link of the first terminal; otherwise, reducing the retransmission data interval of the first terminal retransmission data;
determining smoothing delay parameter information corresponding to the first service terminal based on first timestamp range information of the data currently cached by the first terminal and/or first cache byte number information of the data currently cached by the first terminal, so that the first service terminal forwards the first data based on the received smoothing delay parameter after obtaining the first data;
determining whether to discard part of the first data based on first timestamp range information of the currently cached data of the first terminal and/or first cache byte number information of the currently cached data of the first terminal, wherein if the first timestamp range information of the currently cached data of the first terminal exceeds a first preset threshold value and/or the first cache byte number information of the currently cached data of the first terminal exceeds a second preset threshold value, determining to discard the part of the first data so as to obtain data transmission information corresponding to the first terminal.
6. The method according to any one of claims 1 to 5, wherein the first terminal and the second terminal are connected by at least one of a wireless local area network, wifi-direct, USB, Ethernet, Zigbee, radio frequency and Bluetooth connection, and a point-to-point or multicast protocol is used.
7. The method according to any of claims 1-5, wherein the first transmission link of the first terminal is: a wireless local area network transmission link, wherein a second transmission link of the second terminal is: cellular mobile network transmission links.
8. The method of any one of claims 1-5, further comprising:
and the first terminal determines the second terminal in a broadcasting or multicasting mode or a radio frequency signal capturing mode and is connected with the second terminal.
9. The method of claim 8, wherein the step of connecting with the second terminal comprises:
judging whether a second transmission link different from the first transmission link of the first terminal access network exists in the transmission link of the second terminal access network, wherein judging whether a second transmission link different from the first transmission link of the first terminal access network exists in the transmission link of the second terminal access network comprises: detecting whether a second transmission link with a public network outlet different from the public network outlet of the first transmission link exists in the transmission links of the second terminal access network, and if so, determining that a second transmission link different from the first transmission link of the first terminal access network exists;
and if the second terminal exists, connecting with the second terminal.
10. The method according to any one of claims 1 to 5, wherein the second terminal is installed with a specified application, connects with the first terminal through the specified application, and provides a data forwarding function, wherein the data forwarding function is: receiving data sent by the first terminal and forwarding the received data to the first service terminal;
under the condition that the designated application installed on the second terminal is in a background state or an inactive state, the designated application of the second terminal keeps the designated application from being suspended or ended by at least one of refreshing a background task, starting positioning service, playing audio, sending VOIP connection data, improving the process priority of the application, starting keep-alive service, resident notification bar, reducing display interface, replacing lock screen interface and setting the resident memory of the designated application so as to connect the second terminal with the first terminal and provide a data forwarding function.
11. A data transmission method is characterized in that a second terminal is connected with a first terminal corresponding to a first service end, and a second transmission link different from a first transmission link of the first terminal accessing a network exists in transmission links of an access network included in the second terminal; the method comprises the following steps:
if the first service end needs to send data, acquiring a third data transmission condition and a third network condition corresponding to a first transmission link between the first service end and the first terminal, and/or a fourth data transmission condition and a fourth network condition corresponding to a second transmission link between the first service end and the second terminal;
and determining data transmission information corresponding to the first service end based on the third data transmission condition and the third network condition, and/or the fourth data transmission condition and the fourth network condition, and sending the data transmission information to the first service end, so that the first service end sends second data required to be sent by the first service end to the first terminal through a first transmission link of an access network of the first terminal, and/or a second transmission link of an access network of a second terminal connected with the first terminal, based on the data transmission information corresponding to the first service end.
12. The method according to claim 11, wherein the first service end sends the second data that the first service end needs to send to the first terminal through a first transmission link of an access network of the first terminal and/or a second transmission link of an access network of a second terminal that the first terminal is connected to, based on the data transmission information corresponding to the first service end, and is implemented by any one of the following three implementation manners:
the first implementation mode comprises the following steps:
and the data transmission information corresponding to the first service end indicates that: in the case of transmitting data via a first transmission link of the first terminal and a second transmission link of the second terminal to which the first terminal is connected;
the first service end respectively determines third subdata sent by a first transmission link of an access network of the first terminal and fourth subdata sent by a second transmission link of an access network of a second terminal connected with the first terminal based on the data transmission information, wherein the third subdata and the fourth subdata form second data to be sent by the first service end;
the first server side sends the third subdata to the first terminal through the first transmission link;
the first server sends the fourth sub-data to a second server corresponding to the second terminal, so that the second server sends the received fourth sub-data to the second terminal through the second transmission link, the second terminal sends the received fourth sub-data to the first terminal, and the first terminal converges the third sub-data and the fourth sub-data after obtaining the third sub-data and the fourth sub-data, so as to obtain the second data;
the second implementation mode comprises the following steps:
and the data transmission information corresponding to the first service end indicates that: in case of sending data via a second transmission link of the second terminal to which the first terminal is connected;
the first service end sends second data to be sent to a second service end corresponding to the second terminal based on the data transmission information, so that the second service end sends the second data to the second terminal through the second transmission link, and the second terminal sends the second data to the first terminal, so that the first terminal obtains the second data;
the third implementation mode comprises the following steps:
and the data transmission information corresponding to the first service end indicates that: in the case of transmitting data via a first transmission link of the first terminal;
and the first service end sends second data to be sent to the first terminal based on the data transmission information so as to enable the first terminal to obtain the second data.
13. The method of claim 11, wherein the data transmission information corresponding to the first service end comprises: setting first server data buffer information, sending priority information, forward error correction processing enabling information, retransmission times information, retransmission time interval information and retransmission priority information of different types of data in the second data, and controlling at least one of relevant information of data received by a first terminal and link allocation information, wherein the link allocation information is information indicating data transmission through the first transmission link and/or the second transmission link.
14. A data transmission system, the system comprising: the system comprises a first processing end, a first terminal, a second terminal and a first service end corresponding to the first terminal, wherein the first terminal is connected with the second terminal, and a second transmission link different from a first transmission link of the first terminal accessing a network exists in transmission links of the second terminal accessing the network;
the first processing terminal is configured to obtain a first data transmission condition and a first network condition corresponding to a first transmission link of a first terminal and/or a second data transmission condition and a second network condition corresponding to a second transmission link of a second terminal if the first terminal is detected to need to send data; determining data transmission information corresponding to the first terminal based on a first data transmission condition and a first network condition corresponding to a first transmission link of the first terminal and/or a second data transmission condition and a second network condition corresponding to a second transmission link of the second terminal, and sending the data transmission information to the first terminal;
the first terminal is configured to send first data required to be sent to a first service end corresponding to the first terminal through a first transmission link of an access network of the first terminal and/or a second transmission link of an access network of the second terminal, wherein the first transmission link is connected with the first transmission link of the access network of the second terminal;
the first service end is configured to receive first data transmitted through a first transmission link of an access network of the first terminal and/or a second transmission link of an access network of the second terminal connected thereto.
15. A data transmission system, the system comprising: the first terminal is connected with the second terminal, and a second transmission link different from a first transmission link of the first terminal accessing the network exists in transmission links of the access network included in the second terminal;
the second processing terminal is configured to, if it is detected that the first service terminal needs to send data, obtain a third data transmission condition and a third network condition corresponding to a first transmission link between the first service terminal and the first terminal, and/or obtain a fourth data transmission condition and a fourth network condition corresponding to a second transmission link between the first service terminal and the second terminal; determining data transmission information corresponding to the first service terminal based on the third data transmission condition and the third network condition and/or the fourth data transmission condition and the fourth network condition, and sending the data transmission information to the first service terminal;
the first service end is configured to send, to the first terminal, second data that the first service end needs to send, based on data transmission information corresponding to the first service end, through a first transmission link of an access network of the first terminal and/or a second transmission link of an access network of a second terminal connected to the first terminal;
the first terminal is configured to receive second data transmitted over a first transmission link of the access network of the first terminal and/or a second transmission link of the access network of the second terminal connected thereto.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010417153.1A CN111615170B (en) | 2020-05-18 | 2020-05-18 | Data transmission method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010417153.1A CN111615170B (en) | 2020-05-18 | 2020-05-18 | Data transmission method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111615170A true CN111615170A (en) | 2020-09-01 |
CN111615170B CN111615170B (en) | 2021-03-12 |
Family
ID=72198511
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010417153.1A Active CN111615170B (en) | 2020-05-18 | 2020-05-18 | Data transmission method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111615170B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115632897A (en) * | 2022-10-14 | 2023-01-20 | 深圳市凯迪仕智能科技股份有限公司 | Communication control method and related device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103718514A (en) * | 2011-06-01 | 2014-04-09 | 株式会社Ntt都科摩 | Enhanced local access in mobile communications |
CN105722142A (en) * | 2016-02-26 | 2016-06-29 | 努比亚技术有限公司 | Mobile terminal and multilink-based data streaming method |
CN110071977A (en) * | 2019-04-25 | 2019-07-30 | 北京风行极客科技有限公司 | A kind of data transmission method and device |
US20190274176A1 (en) * | 2012-11-08 | 2019-09-05 | Apple Inc. | Extending Use of a Cellular Communication Capabilities in a Wireless Device to Another Device |
CN110583096A (en) * | 2017-03-30 | 2019-12-17 | 意大利电信股份公司 | Configurable wireless device network |
-
2020
- 2020-05-18 CN CN202010417153.1A patent/CN111615170B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103718514A (en) * | 2011-06-01 | 2014-04-09 | 株式会社Ntt都科摩 | Enhanced local access in mobile communications |
US20190274176A1 (en) * | 2012-11-08 | 2019-09-05 | Apple Inc. | Extending Use of a Cellular Communication Capabilities in a Wireless Device to Another Device |
CN105722142A (en) * | 2016-02-26 | 2016-06-29 | 努比亚技术有限公司 | Mobile terminal and multilink-based data streaming method |
CN110583096A (en) * | 2017-03-30 | 2019-12-17 | 意大利电信股份公司 | Configurable wireless device network |
CN110071977A (en) * | 2019-04-25 | 2019-07-30 | 北京风行极客科技有限公司 | A kind of data transmission method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115632897A (en) * | 2022-10-14 | 2023-01-20 | 深圳市凯迪仕智能科技股份有限公司 | Communication control method and related device |
Also Published As
Publication number | Publication date |
---|---|
CN111615170B (en) | 2021-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108141443B (en) | User equipment, media stream transmission network auxiliary node and media stream transmission method | |
US20200358886A1 (en) | Data Transmission Method, Apparatus, And System | |
EP3311534B1 (en) | Method and apparatus for multipath media delivery | |
JP6977090B2 (en) | Redundant links for reliable communication | |
US9854472B2 (en) | Cooperative communication method, cloud server, and core network server | |
US20140155043A1 (en) | Application quality management in a communication system | |
US20140153392A1 (en) | Application quality management in a cooperative communication system | |
JP7063985B2 (en) | Network support for uplink streaming | |
US20210329528A1 (en) | Connection establishment method and related device | |
CN108023758A (en) | The method and the network equipment of message are handled in a kind of mixed insertion network | |
CN108566286B (en) | Method for realizing service quality of intelligent router, router and electronic equipment | |
US10080231B2 (en) | Channel bandwidth optimization for dynamic network conditions | |
US12010747B2 (en) | Method for link connection, electronic device and storage medium | |
US20230139633A1 (en) | Data Packet Sending Method and Apparatus | |
JP5485543B2 (en) | Communication method in network including primary network and secondary network | |
WO2023000894A1 (en) | Data transmission method and apparatus, and server, storage medium and program product | |
CN101989902A (en) | Data retransmission method and device | |
CN105262836A (en) | Information push method of server and push information reception method of client | |
CN107251634A (en) | The method and apparatus for controlling schedules message | |
CN105900481B (en) | bandwidth selection method of wireless fidelity technology and access point AP | |
WO2016161594A1 (en) | Data transmission method and apparatus | |
WO2011056738A1 (en) | Streaming content delivery management for a wireless communication device | |
EP4228309A1 (en) | Call method and device | |
CN111615170B (en) | Data transmission method and system | |
CN102802200A (en) | Data message sending method and equipment |
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 |