Terminal data transmission method, device, electronic device and storage medium
By monitoring the data quality indicators of the terminal through the main transmission link and switching to the backup link when the threshold is reached, the problem of low data transmission efficiency when the main transmission link signal is weak is solved, and more efficient and high-quality data transmission is achieved.
Patent Information
- Application Number
- CN202310945567.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-28
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2043-07-28
Smart Images

Figure CN116996964B_ABST
Abstract
Description
Background Art
[0002] Multi-access technology allows terminals to access Wi-Fi (Wireless Fidelity) and cellular links at the same time, achieving seamless switching, traffic diversion and convergence between Wi-Fi and cellular, thereby achieving a smooth user experience, greater throughput and better robustness. The more commonly used traffic diversion mode is the primary-backup mode, which means setting one of the Wi-Fi and cellular links as the primary link and the other as the backup link. When the primary link is unavailable, the traffic is directed to the backup link.
[0003] However, in actual applications, when the signal of the main link is very weak but still connectable, a large amount of data has been lost and retransmitted, and the rate is very slow. However, the terminal will not switch to the backup link when transmitting data at this time, and will still use the main link to transmit data, resulting in very low data transmission efficiency.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The present disclosure provides a terminal data transmission method, device, electronic device and storage medium, which at least to a certain extent overcome the problem of low terminal data transmission efficiency during data split transmission in the main-standby mode in the related art.
[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0007] According to a first aspect of the present disclosure, a terminal data transmission method is provided, comprising:
[0008] Monitoring quality indicator information of data transmitted by the terminal through the first transmission link within a first preset time period;
[0009] When quality indicator information of data transmitted by the terminal through the first transmission link within the first preset time period meets a preset indicator threshold condition, the terminal is controlled to transmit data through the second transmission link.
[0010] In some embodiments of the present disclosure, the first transmission link is a main transmission link, and the second transmission link is a backup transmission link.
[0011] In some embodiments of the present disclosure, after controlling the terminal to transmit data through the second transmission link, the method further includes:
[0012] Monitoring quality indicator information of data transmitted by the terminal through the second transmission link within a second preset time period;
[0013] When the quality indicator information of data transmitted by the terminal through the second transmission link during the second preset time period meets the preset indicator threshold condition, monitoring the duration from the moment when the terminal starts transmitting data through the second transmission link to the current moment;
[0014] When the duration does not exceed a third preset duration, counting the cumulative number of link switching times of the terminal;
[0015] If the accumulated link switching times of the terminal do not exceed the preset switching times, controlling the terminal to transmit data through the first transmission link, and increasing the accumulated link switching times of the terminal;
[0016] Re-monitor the quality indicator information of data transmitted by the terminal through the first transmission link within a first preset time period, and when the quality indicator information of data transmitted by the terminal through the first transmission link within the first preset time period meets the preset indicator threshold condition, control the terminal to transmit data through the second transmission link; re-monitor the quality indicator information of data transmitted by the terminal through the second transmission link within a second preset time period; when the quality indicator information of data transmitted by the terminal through the second transmission link within the second preset time period meets the preset indicator threshold condition, control the terminal to transmit data through the first transmission link; switch multiple times, and re-count the cumulative number of link switching times of the terminal, until the cumulative number of link switching times of the terminal exceeds the preset number of switching times or the duration exceeds the third preset duration.
[0017] In some embodiments of the present disclosure, after counting the cumulative number of link switching times of the terminal, the method further includes:
[0018] If the accumulated link switching times of the terminal exceed the preset switching times, the terminal is controlled to transmit data through the existing transmission link for a fourth preset time period.
[0019] In some embodiments of the present disclosure, after monitoring the duration from the moment when the terminal starts transmitting data through the second transmission link to the current moment, the method further includes:
[0020] When the duration exceeds a third preset duration, the terminal is controlled to transmit data through the first transmission link, and the accumulated link switching times of the terminal are cleared.
[0021] In some embodiments of the present disclosure, after monitoring the quality indicator information of data transmitted by the terminal through the second transmission link within the second preset time period, the method further includes:
[0022] When the quality indicator information of data transmitted by the terminal through the second transmission link within the second preset time period does not meet the preset indicator threshold condition, monitoring the duration from the moment when the terminal starts transmitting data through the second transmission link to the current moment;
[0023] When the duration exceeds a fifth preset duration, controlling the terminal to transmit data through the first transmission link, and clearing the accumulated link switching times of the terminal to zero;
[0024] Among them, the fifth preset time length is greater than the third preset time length.
[0025] In some embodiments of the present disclosure, the quality indicator information includes at least one of the following: number of retransmissions and packet loss rate.
[0026] According to a second aspect of the present disclosure, there is also provided a terminal data transmission device, comprising:
[0027] A first monitoring module, configured to monitor quality indicator information of data transmitted by a terminal through a first transmission link within a first preset time period; and
[0028] The first switching module is used to control the terminal to transmit data through the second transmission link when the quality indicator information of the data transmitted by the terminal through the first transmission link within the first preset time period meets the preset indicator threshold condition.
[0029] According to the third aspect of the present disclosure, an electronic device is also provided, which includes: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the terminal data transmission method described in any one of the above-mentioned first aspects by executing the executable instructions.
[0030] According to a fourth aspect of the present disclosure, a computer-readable storage medium is further provided, on which a computer program is stored. When the computer program is executed by a processor, the terminal data transmission method described in any one of the first and second aspects above is implemented.
[0031] According to a fifth aspect of the present disclosure, a computer program product is also provided, including a computer program, and when the computer program is executed by a processor, the terminal data transmission method described in any one of the above first aspects is implemented.
[0032] The terminal data transmission method provided in the embodiment of the present disclosure monitors the quality index information of the data transmitted by the terminal through the first transmission link within the first preset time period, and controls the terminal to transmit through the second transmission link when the quality index information meets the preset index threshold condition. This avoids the problem of low data transmission quality and low transmission efficiency caused by the terminal still using the first transmission link when the signal of the first transmission link in the active-standby mode is very weak but still connectable, and controls the terminal to switch to a new transmission link to transmit data, thereby improving data transmission efficiency and transmission quality.
[0033] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0035] Figure 1 A schematic diagram showing a terminal data transmission system architecture in an embodiment of the present disclosure;
[0036] Figure 2 A schematic diagram of a terminal data transmission method flow in an embodiment of the present disclosure is shown;
[0037] Figure 3 A schematic diagram of a terminal data transmission method flow in some embodiments of the present disclosure is shown;
[0038] Figure 4 A schematic diagram showing another terminal data transmission method flow in some embodiments of the present disclosure is shown;
[0039] Figure 5 A schematic diagram showing a flow chart of another terminal data transmission method in some embodiments of the present disclosure is shown;
[0040] Figure 6 A schematic diagram showing the execution process of a primary-backup data diversion strategy in a specific example of the present disclosure is shown;
[0041] Figure 7 A schematic diagram of a terminal data transmission device in an embodiment of the present disclosure is shown; and
[0042] Figure 8 A structural block diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0043] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0044] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0045] The specific implementation of the embodiment of the present disclosure is described in detail below with reference to the accompanying drawings.
[0046] Figure 1 FIG. 1 shows a schematic diagram of a terminal data transmission system architecture that can be applied in the embodiments of the present disclosure. Figure 1 As shown, the system architecture may include: a terminal 10 and a data receiver 20. Two devices in the system are connected via a network, which may be a wireless network.
[0047] Optionally, the wireless network described above uses standard communication technologies and / or protocols. The network is typically the Internet, but may also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile or wireless network, a dedicated network, or any combination of a virtual private network). In some embodiments, technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent data exchanged over the network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPSec) may be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies may also be used to replace or supplement the above data communication technologies.
[0048] In some embodiments of the present disclosure, the terminal 10 transmits data to the data receiver 20 via Wi-Fi or a cellular network. The data receiver 20 may be a server or a network element device in a communication network, which is not limited in the embodiments of the present disclosure. The terminal 10 uses the data splitting transmission technology in the primary and backup mode for data transmission, that is, a transmission link with a higher priority level is selected. For example, when the user wants to use Wi-Fi as much as possible, Wi-Fi is set as the primary transmission link and the cellular network is set as the backup transmission link. When transmitting data, the terminal gives priority to transmitting through the primary transmission link.
[0049] In some embodiments of the present disclosure, the terminal 10 monitors the quality indicator information of the data transmitted by the terminal through the main transmission link within the first preset time period; when the quality indicator information of the data transmitted by the terminal through the main transmission link within the first preset time period meets the preset indicator threshold condition, the terminal is controlled to transmit data through the backup transmission link. It should be noted that the terminal 10 can start the first timer when transmitting data through the main transmission link, and the terminal 10 monitors the packet loss rate and retransmission times of the main transmission link at the MAC (Media Access Control, Media Access Control) sublayer of the main transmission link, wherein the packet loss rate can be the average packet loss rate from the start time of the first timer to the current monitoring time. When it is monitored that the average packet loss rate exceeds the predetermined packet loss rate threshold and / or the number of retransmissions exceeds the predetermined retransmission number threshold, it proves that the data transmission quality of the main transmission link is poor, and the terminal is controlled to transmit data through the backup transmission link. If the quality indicator information does not meet the preset indicator threshold condition until the first timer ends, it proves that the data transmission quality of the main transmission link is better, and data can continue to be transmitted on the main transmission link, then the first timer is resumed and restarted, and the quality indicator information of the data transmitted by the terminal through the main transmission link is continuously monitored.
[0050] like Figure 1 As shown, it also includes a method for terminal data transmission, including:
[0051] S102, the terminal 10 monitors quality indicator information of data transmitted by the terminal through the main transmission link within a first preset time period;
[0052] S104, when the quality indicator information of the data transmitted by the terminal through the main transmission link within the first preset time period meets the preset indicator threshold condition, control the terminal 10 to transmit data through the backup transmission link;
[0053] S106, the terminal 10 notifies the data receiving party 20 of the change of the transmission link through signaling.
[0054] Those skilled in the art will know that Figure 1The number of terminals 10 and data receivers 20 in the figure is only for illustration, and any number of terminals and data receivers may be provided according to actual needs. The embodiments of the present disclosure are not limited to this.
[0055] Under the above system architecture, a terminal data transmission method is provided in an embodiment of the present disclosure. In some embodiments, the terminal data transmission method provided in an embodiment of the present disclosure can be implemented by the terminal or by the interaction between the terminal and the data receiver.
[0056] like Figure 2 As shown, a terminal data transmission method provided in an embodiment of the present disclosure includes the steps of:
[0057] S202: Monitor quality indicator information of data transmitted by a terminal through a first transmission link within a first preset time period.
[0058] It should be noted that the first preset time period may be a preset duration, and the appropriate duration may be determined according to the actual transmission process, for example, it may be set to 2 seconds, 5 seconds or 10 seconds, etc. It may also be the duration between the preset start time and each monitoring time, and the monitoring may be performed at preset intervals, for example, every 0.05 seconds, to monitor the quality indicator information of the transmission data in the time period between the preset start time and each monitoring time.
[0059] S204: When the quality indicator information of data transmitted by the terminal through the first transmission link within the first preset time period meets the preset indicator threshold condition, control the terminal to transmit data through the second transmission link.
[0060] It can be seen from the above steps that the terminal data transmission method provided in the embodiment of the present disclosure monitors the quality index information of the data transmitted by the terminal through the first transmission link within the first preset time period, and when the quality index information meets the preset index threshold condition, controls the terminal to transmit through the second transmission link. This avoids the problem of low data transmission quality and low transmission efficiency caused by the terminal still using the first transmission link when the signal of the first transmission link in the master-slave mode is very weak but still connectable, and controls the terminal to switch to a new transmission link to transmit data, thereby improving data transmission efficiency and transmission quality.
[0061] It should be noted that in the embodiments of the present disclosure, the first transmission link may be the main transmission link, and correspondingly, the second transmission link may be the backup transmission link; or the first transmission link may be the backup transmission link, and the second transmission link may be the main transmission link. That is, when the link status is not good during transmission on the backup transmission link, the main transmission link may be switched back for transmission.
[0062] In some embodiments of the present disclosure, the quality indicator information includes at least one of the following: number of retransmissions and packet loss rate. The preset indicator threshold condition means that the number of retransmissions exceeds a preset retransmission number threshold and / or the packet loss rate exceeds a preset packet loss rate threshold.
[0063] In some embodiments of the present disclosure, when the first transmission link is the main transmission link and the second transmission link is the backup transmission link, it is necessary to switch to the main transmission link again when the backup transmission data link is in a poor state due to transmission on the backup transmission link for a period of time. Multiple switching may even occur. However, frequent switching in a short period of time will bring about a ping-pong effect, which may occupy more system resources of the terminal and cause a decrease in network performance. In order to avoid the ping-pong effect, after the control terminal transmits data through the second transmission link, such as Figure 3 As shown, the terminal data transmission method also includes the following steps:
[0064] S302, monitoring quality indicator information of data transmitted by the terminal through the second transmission link within a second preset time period;
[0065] S304, when the quality indicator information of the data transmitted by the terminal through the second transmission link within the second preset time period meets the preset indicator threshold condition, monitoring the duration from the moment when the terminal starts to transmit data through the second transmission link to the current moment;
[0066] It should be noted that the time when the terminal starts transmitting data through the second transmission link refers to the time when the first transmission link is switched to the second transmission link for the first time, and the cumulative number of link switching times of the terminal is 1 at this time.
[0067] S306, when the duration does not exceed the third preset duration, counting the cumulative number of link switching times of the terminal;
[0068] It should be noted that the cumulative number of link switching times of the terminal is counted starting from the time when the cumulative number of link switching times of the terminal is reset to zero, wherein the timing when the cumulative number of link switching times of the terminal is reset to zero may be the first time that the terminal transmits data through the first transmission link, or it may be the subsequent switch back to the first transmission link and restart a new round.
[0069] S308, if the cumulative link switching number of the terminal does not exceed the preset switching number, control the terminal to transmit data through the first transmission link, and increase the cumulative link switching number of the terminal;
[0070] S310, re-monitor the quality indicator information of data transmitted by the terminal through the first transmission link within the first preset time period, and when the quality indicator information of data transmitted by the terminal through the first transmission link within the first preset time period meets the preset indicator threshold condition, control the terminal to transmit data through the second transmission link; re-monitor the quality indicator information of data transmitted by the terminal through the second transmission link within the second preset time period; when the quality indicator information of data transmitted by the terminal through the second transmission link within the second preset time period meets the preset indicator threshold condition, control the terminal to transmit data through the first transmission link; switch multiple times, and re-count the cumulative number of link switching times of the terminal, until the cumulative number of link switching times of the terminal exceeds the preset number of switching times or the duration exceeds the third preset duration.
[0071] It should be noted that when the cumulative link switching times of the terminal does not exceed the preset switching times, the first transmission link can be switched back. At this time, the transmission quality of the first transmission link may still be poor, and the second transmission link can be switched again. The transmission quality of the second transmission link is poor, that is, when the quality index information of the terminal transmitting data through the second transmission link in the second preset time period meets the preset index threshold condition, it can be switched to the first transmission link. Based on the above judgment conditions, the transmission link can be switched back and forth, and the cumulative link switching times of the terminal are increased by one each time the terminal is switched, until the cumulative link switching times of the terminal exceed the preset switching times or the duration exceeds the third preset duration. However, if after switching back to the first transmission link, the quality index information of the terminal transmitting data through the first transmission link in the first preset time period has not met the preset index threshold condition, then continue to monitor until the duration exceeds the third preset duration, and still control the terminal to transmit data through the first transmission link, but clear the cumulative link switching times of the terminal, and set the moment when the duration exceeds the third preset duration as the start time of the next round, and repeat the steps starting from S202.
[0072] When the duration does not exceed the third preset duration, but the cumulative link switching times of the terminal have exceeded the preset switching times, the link switching times in a short period of time are too many and too frequent. In order to avoid the ping-pong effect, in some embodiments of the present disclosure, a terminal data transmission method is provided, after counting the cumulative link switching times of the terminal, such as Figure 4 As shown, the following steps are also included:
[0073] S402: If the accumulated link switching times of the terminal exceed the preset switching times, control the terminal to transmit data through the existing transmission link for a fourth preset time period.
[0074] It should be noted that when it is determined that the cumulative link switching times of the terminal exceeds the preset switching times, the transmission link currently in use is determined to be either the first transmission link or the second transmission link as the existing transmission link. In the process of controlling the terminal to transmit data through the existing transmission link for a fourth preset duration, it is no longer necessary to determine whether the duration exceeds the third preset duration. After the fourth preset duration, the cumulative link switching times of the terminal are set to zero. If the duration has not exceeded the third preset duration, it is re-determined whether the cumulative link switching times of the terminal exceeds the preset switching times, and the above S308, S310 and S402 are repeated.
[0075] In some embodiments of the present disclosure, if the duration exceeds the third preset duration, the period set to avoid frequent switching has passed, and at this time, the first transmission link (the primary transmission link used preferentially) may be switched back. Specifically, the provided terminal data transmission method, after monitoring the duration from the moment when the terminal starts transmitting data through the second transmission link to the current moment, further includes:
[0076] When the duration exceeds a third preset duration, the terminal is controlled to transmit data through the first transmission link, and the accumulated link switching times of the terminal are cleared.
[0077] It should be noted that at this time, the cumulative number of link switching times of the terminal is reset to zero, and the round ends at the same time. A new round needs to be started to re-monitor the quality indicator information of the terminal transmitting data through the first transmission link within the first preset time period to switch the transmission link.
[0078] In some embodiments of the present disclosure, when the control terminal transmits data through the second transmission link, the transmission quality of the second transmission link is always good, that is, the quality index information of the terminal transmitting data through the second transmission link has not met the preset index threshold condition within the second preset time period. In order to ensure the priority of the main transmission link (the first transmission link), after transmitting data through the second transmission link for a period of time, it is still necessary to switch back to the first transmission link. Figure 5 The terminal data transmission method shown in the figure further includes the following steps after monitoring the quality indicator information of the data transmitted by the terminal through the second transmission link within the second preset time period:
[0079] S502, when the quality indicator information of the data transmitted by the terminal through the second transmission link within the second preset time period does not meet the preset indicator threshold condition, monitor the duration from the moment when the terminal starts to transmit data through the second transmission link to the current moment;
[0080] S504: When the duration exceeds a fifth preset duration, control the terminal to transmit data through the first transmission link, and clear the accumulated link switching times of the terminal.
[0081] It should be noted that the fifth preset duration is greater than the third preset duration. The duration monitored from the moment the terminal starts transmitting data through the second transmission link to the current moment is consistent with the duration monitored by S304. When the duration exceeds the fifth preset duration, the terminal is controlled to transmit data through the first transmission link, and the cumulative number of link switching times of the terminal is cleared. At this time, the current round ends, and a new round begins. The quality indicator information of the terminal transmitting data through the first transmission link in the first preset time period is re-monitored, and subsequent steps are performed. And when the duration does not exceed the fifth preset duration, the quality indicator information of the terminal transmitting data through the second transmission link in the second preset time period is re-monitored, and then it is determined whether the quality indicator information of the terminal transmitting data through the second transmission link in the second preset time period meets the preset indicator threshold condition, and subsequent operations are performed until the end of this round.
[0082] In order to better illustrate the terminal data transmission method provided by the embodiment of the present disclosure, a specific example is now given for further explanation. Figure 6 The figure shows the execution process of the master-slave data diversion strategy of the terminal data transmission method provided in the embodiment of the present disclosure.
[0083] exist Figure 6 In the process shown, the meanings of the defined parameters are:
[0084] T1: The time window for the terminal to detect packet loss and retransmission on the primary transmission link.
[0085] T2: The time window for the terminal to detect packet loss and retransmission on the backup transmission link.
[0086] T3: The timing of the priority timer. When the terminal transmits data on the backup transmission link for more than the time set by T3, the terminal should switch back to the main transmission link and re-check whether the channel quality meets the data transmission requirements because the definition of the terminal's primary and backup priority is that the primary transmission link takes priority.
[0087] T4: A time window defined to avoid frequent ping-pong switching. When the T4 timer has not timed out and the number of switching times W exceeds the maximum number of switching times W1, the terminal will stop the transmission link switching and reset the number of switching times W. The value of T3 must be greater than T4.
[0088] T5: Ping-pong protection time window. This timer is enabled after deciding to stop link switching. Transmission is always maintained on the original link within T5. The link status is monitored again after T5 times out.
[0089] L1: The preset threshold of the average packet loss rate corresponding to the primary transmission link.
[0090] S1: The preset threshold of the number of retransmissions corresponding to the primary transmission link.
[0091] L2: preset threshold of the average packet loss rate corresponding to the backup transmission link.
[0092] S2: a preset threshold of the number of retransmissions corresponding to the backup transmission link.
[0093] The values of L1 and L2 may be the same or different, and the values of S1 and S2 may be the same or different.
[0094] The specific implementation process includes:
[0095] After the terminal is turned on, it connects to Wi-Fi and cellular networks at the same time and starts data transmission. The data diversion technology is adopted as the primary-backup mode, that is, the link with a higher set priority is selected as the main transmission link. When the main transmission link is available, data is transmitted on the main transmission link. When the main transmission link is unavailable, data transmission is switched to the backup transmission link.
[0096] When the terminal starts to transmit data on the primary transmission link, the T1 timer is started to continuously monitor the packet loss rate and the number of retransmissions at the MAC sublayer of the primary transmission link.
[0097] If within the T1 time window, the average packet loss rate of the terminal is greater than L1 and the number of retransmissions is greater than S1, it is determined that the primary transmission link has serious packet loss, the channel state is poor, the transmission efficiency is low, and it is necessary to switch to the backup transmission link.
[0098] The terminal directs the data traffic to the backup transmission link, activates the T3 priority timer and the T4 protection timer, and the number of switching times W=W+1, and at the same time informs the data receiver through signaling that the transmission link has changed. Specifically, if the offloading technology uses the MPTCP (Mutipath TCP) offloading technology, the permanent switching path priority uses the MP_PRIO signaling, that is, whether the current transmission link is used as a backup transmission link can be indicated by whether the identifier "B" is carried in the MP_PRIO signaling. "B" means backup. When the transmission link changes, the terminal can send MP_PRIO signaling to inform the other party that the data link has changed. For example, when the terminal directs the data traffic to the original backup transmission link, "B" can be removed in the transmitted MP_PRIO signaling to inform the data receiver that this data link is no longer a backup transmission link, but a transmission link currently in use.
[0099] When the terminal transmits data on the backup transmission link, if within T2, the average packet loss rate of the terminal is greater than L2 and the number of retransmissions is greater than S2, then if the T4 protection timer has not timed out and the number of switching times W is not greater than the maximum number of switching times W1, the terminal will redirect the data traffic to the main transmission link again, and continue to monitor the average packet loss rate and retransmission times on the main transmission link within T1, and increase the number of switching times W=W+1. If it is detected that the channel state of the main transmission link meets the requirements, the main transmission link is kept unchanged and the monitoring continues; if it is detected that the channel state of the main transmission link is poor, the data traffic is directed to the backup transmission link again, and the average packet loss rate and retransmission times on the backup transmission link within T2 are monitored. If the monitoring result shows that the channel state of the backup transmission link meets the requirements, the backup transmission link is kept and the monitoring continues; if it is detected that the channel state of the backup transmission link is poor, the data traffic is directed to the main transmission link, and so on. Each switching will increase W by one until the T4 protection timer times out or W is greater than W1.
[0100] If the T4 protection timer has not timed out and the number of switching times W is greater than the maximum number of switching times W1, the terminal will enable the T5 timer. Before the T5 timer times out, it will continue to transmit on the existing transmission link and will not switch the transmission link to prevent the ping-pong effect caused by frequent switching. If the T5 timer times out, W will be set to 0, and the T4 protection timer will be re-determined to see if it has timed out, and the subsequent steps will be continued.
[0101] If the T4 protection timer has timed out, the switching times W are reset to 0, and the data is switched back to the main transmission link, returning to the beginning of a new round.
[0102] When the terminal transmits data on the backup transmission link, if within T2, the average packet loss rate of the terminal is not detected to be greater than L2 and the number of retransmissions is not greater than S2, before the T3 priority timer expires, the average packet loss rate and the number of retransmissions within T2 are re-monitored and a new judgment is made. After the T3 priority timer expires, the switching times W are reset to 0, and the data is switched back to the main transmission link, returning to the beginning of a new round.
[0103] From the above process, it can be seen that this specific example can more flexibly adjust the transmission of data between the main transmission link and the backup transmission link, solving the problem of low transmission efficiency due to a large number of packet loss and retransmission when the signal of the main transmission link is very weak but still connectable. At the same time, multiple timers and jump logics are designed to ensure that after the quality of the main transmission link channel is restored, the data can be switched back to the main transmission link for transmission first, while also avoiding the ping-pong effect caused by frequent switching of transmission links in a short period of time.
[0104] It should be noted that the acquisition, storage, use, and processing of data in the technical solution disclosed in this disclosure are in compliance with the relevant provisions of national laws and regulations.
[0105] Based on the same inventive concept, the present disclosure also provides a terminal data transmission device, as described in the following embodiments. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.
[0106] Figure 7 A schematic diagram of a terminal data transmission device in an embodiment of the present disclosure is shown. Figure 7 As shown, the device comprises:
[0107] A first monitoring module 701 is configured to monitor quality indicator information of data transmitted by a terminal through a first transmission link within a first preset time period; and
[0108] The first switching module 702 is configured to control the terminal to transmit data through the second transmission link when quality indicator information of data transmitted by the terminal through the first transmission link within a first preset time period meets a preset indicator threshold condition.
[0109] It should be noted that the first monitoring module 701 and the first switching module 702 correspond to S202 to S204 in the method embodiment, and the examples and application scenarios implemented by the modules and the corresponding steps are the same, but are not limited to the contents disclosed in the method embodiment. It should be noted that the modules as part of the device can be executed in a computer system such as a set of computer executable instructions.
[0110] It should be noted that the quality indicator information includes at least one of the following: the number of retransmissions and the packet loss rate.
[0111] In some embodiments of the present disclosure, when the first transmission link is a main transmission link and the second transmission link is a backup transmission link, the method further includes:
[0112] A second monitoring module, used to monitor quality indicator information of data transmitted by the terminal through the second transmission link within a second preset time period;
[0113] A first duration monitoring module, configured to monitor the duration from the moment when the terminal starts transmitting data through the second transmission link to the current moment when the quality indicator information of the terminal transmitting data through the second transmission link within the second preset time period meets the preset indicator threshold condition;
[0114] A switching times statistics module, used for counting the cumulative link switching times of the terminal when the duration does not exceed a third preset duration;
[0115] A second switching module, configured to control the terminal to transmit data through the first transmission link if the cumulative link switching number of the terminal does not exceed the preset switching number, and increase the cumulative link switching number of the terminal;
[0116] The third switching module is used to re-monitor the quality indicator information of data transmitted by the terminal through the first transmission link within the first preset time period, and when the quality indicator information of data transmitted by the terminal through the first transmission link within the first preset time period meets the preset indicator threshold condition, control the terminal to transmit data through the second transmission link; re-monitor the quality indicator information of data transmitted by the terminal through the second transmission link within the second preset time period; when the quality indicator information of data transmitted by the terminal through the second transmission link within the second preset time period meets the preset indicator threshold condition, control the terminal to transmit data through the first transmission link; switch multiple times, and re-count the cumulative number of link switching times of the terminal until the cumulative number of link switching times of the terminal exceeds the preset number of switching times or the duration exceeds the third preset duration.
[0117] In some embodiments of the present disclosure, it further includes: a switching stop module, which is used to: if the cumulative link switching times of the terminal exceeds the preset switching times, control the terminal to transmit data through the existing transmission link for a fourth preset time period.
[0118] In some embodiments of the present disclosure, it further includes: a fourth switching module, which is used to: when the duration exceeds a third preset duration, control the terminal to transmit data through the first transmission link and clear the accumulated link switching times of the terminal.
[0119] In some embodiments of the present disclosure, it further includes:
[0120] A second duration monitoring module, configured to monitor the duration from the moment when the terminal starts transmitting data through the second transmission link to the current moment when the quality indicator information of the terminal transmitting data through the second transmission link within the second preset time period does not meet the preset indicator threshold condition;
[0121] a fifth switching module, configured to control the terminal to transmit data through the first transmission link and clear the accumulated link switching times of the terminal to zero when the duration exceeds a fifth preset duration;
[0122] Among them, the fifth preset time length is greater than the third preset time length.
[0123] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0124] Refer to the following Figure 8 The electronic device 800 according to this embodiment of the present disclosure is described. Figure 8 The electronic device 800 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0125] like Figure 8 As shown, the electronic device 800 is in the form of a general computing device. The components of the electronic device 800 may include but are not limited to: at least one processing unit 810, at least one storage unit 820, and a bus 830 connecting different system components (including the storage unit 820 and the processing unit 810).
[0126] The storage unit stores a program code, which can be executed by the processing unit 810, so that the processing unit 810 performs the steps of various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification. For example, the processing unit 810 can perform the following steps of the above method embodiment:
[0127] Monitoring quality indicator information of data transmitted by the terminal through the first transmission link within a first preset time period;
[0128] When quality indicator information of data transmitted by the terminal through the first transmission link within the first preset time period meets a preset indicator threshold condition, the terminal is controlled to transmit data through the second transmission link.
[0129] The storage unit 820 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 8201 and / or a cache storage unit 8202 , and may further include a read-only storage unit (ROM) 8203 .
[0130] The storage unit 820 may also include a program / utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0131] Bus 830 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0132] The electronic device 800 may also communicate with one or more external devices 840 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 800, and / or communicate with any device that enables the electronic device 800 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 850. Furthermore, the electronic device 800 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 860. As shown, the network adapter 860 communicates with other modules of the electronic device 800 via a bus 830. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0133] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0134] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart may be implemented as a computer program product, which includes: a computer program, which implements the above terminal data transmission method when executed by a processor.
[0135] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, which may be a readable signal medium or a readable storage medium. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above “Exemplary Method” section of this specification.
[0136] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0137] In the present disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0138] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0139] In a specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0140] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0141] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0142] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0143] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
Claims
1. A terminal data transmission method, characterized in that: include: Monitoring quality indicator information of data transmitted by the terminal through the first transmission link within a first preset time period; When the quality indicator information of data transmitted by the terminal through the first transmission link within the first preset time period meets the preset indicator threshold condition, controlling the terminal to transmit data through the second transmission link; Monitoring quality indicator information of data transmitted by the terminal through the second transmission link within a second preset time period; When the quality indicator information of data transmitted by the terminal through the second transmission link during the second preset time period meets the preset indicator threshold condition, monitoring the duration from the moment when the terminal starts transmitting data through the second transmission link to the current moment; When the duration does not exceed a third preset duration, counting the cumulative number of link switching times of the terminal; If the accumulated link switching times of the terminal do not exceed the preset switching times, controlling the terminal to transmit data through the first transmission link, and increasing the accumulated link switching times of the terminal; Re-monitoring the quality indicator information of data transmitted by the terminal through the first transmission link within the first preset time period, and when the quality indicator information of data transmitted by the terminal through the first transmission link within the first preset time period meets the preset indicator threshold condition, controlling the terminal to transmit data through the second transmission link; re-monitoring the quality indicator information of data transmitted by the terminal through the second transmission link within the second preset time period; when the quality indicator information of data transmitted by the terminal through the second transmission link within the second preset time period meets the preset indicator threshold condition, controlling the terminal to transmit data through the first transmission link; switching multiple times, and re-counting the cumulative number of link switching times of the terminal, until the cumulative number of link switching times of the terminal exceeds the preset number of switching times or the duration exceeds the third preset duration; If the accumulated link switching times of the terminal exceed the preset switching times, the terminal is controlled to transmit data through the existing transmission link for a fourth preset time period, and after the fourth preset time period, the accumulated link switching times of the terminal are cleared.
2. The terminal data transmission method according to claim 1, characterized in that: The first transmission link is a main transmission link, and the second transmission link is a backup transmission link.
3. The terminal data transmission method according to claim 1, characterized in that: After monitoring the duration from the moment when the terminal starts transmitting data through the second transmission link to the current moment, the method further includes: When the duration exceeds a third preset duration, the terminal is controlled to transmit data through the first transmission link, and the accumulated link switching times of the terminal are cleared.
4. The terminal data transmission method according to claim 1, characterized in that: After monitoring the quality indicator information of data transmitted by the terminal through the second transmission link within the second preset time period, the method further includes: When the quality indicator information of data transmitted by the terminal through the second transmission link within the second preset time period does not meet the preset indicator threshold condition, monitoring the duration from the moment when the terminal starts transmitting data through the second transmission link to the current moment; When the duration exceeds a fifth preset duration, controlling the terminal to transmit data through the first transmission link, and clearing the accumulated link switching times of the terminal to zero; Among them, the fifth preset time length is greater than the third preset time length.
5. The terminal data transmission method according to any one of claims 1 to 4, characterized in that: The quality indicator information includes at least one of the following: number of retransmissions and packet loss rate.
6. A terminal data transmission device, characterized in that: include: A first monitoring module, used to monitor quality indicator information of data transmitted by the terminal through the first transmission link within a first preset time period; and A first switching module, configured to control the terminal to transmit data through a second transmission link when quality indicator information of data transmitted by the terminal through the first transmission link within the first preset time period meets a preset indicator threshold condition; A second monitoring module, used to monitor quality indicator information of data transmitted by the terminal through the second transmission link within a second preset time period; A first duration monitoring module, configured to monitor the duration from the moment when the terminal starts transmitting data through the second transmission link to the current moment when the quality indicator information of the terminal transmitting data through the second transmission link within the second preset time period meets the preset indicator threshold condition; A switching times statistics module, used for counting the cumulative link switching times of the terminal when the duration does not exceed a third preset duration; A second switching module, configured to control the terminal to transmit data through the first transmission link if the cumulative link switching number of the terminal does not exceed the preset switching number, and increase the cumulative link switching number of the terminal; A third switching module is used to re-monitor the quality indicator information of data transmitted by the terminal through the first transmission link within the first preset time period, and when the quality indicator information of data transmitted by the terminal through the first transmission link within the first preset time period meets the preset indicator threshold condition, control the terminal to transmit data through the second transmission link; re-monitor the quality indicator information of data transmitted by the terminal through the second transmission link within the second preset time period; when the quality indicator information of data transmitted by the terminal through the second transmission link within the second preset time period meets the preset indicator threshold condition, control the terminal to transmit data through the first transmission link; switch multiple times, and re-count the cumulative link switching times of the terminal until the cumulative link switching times of the terminal exceed the preset switching times or the duration exceeds the third preset duration; The switching stop module is used to: if the cumulative link switching times of the terminal exceed the preset switching times, control the terminal to transmit data through the existing transmission link for a fourth preset time period, and after the fourth preset time period, clear the cumulative link switching times of the terminal.
7. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the terminal data transmission method according to any one of claims 1 to 5 by executing the executable instructions.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the terminal data transmission method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Method and device capable of judging whether terminal is switched between two wireless networks
CN103067997A
Selective multi-link operation in WLAN
CN112867071A