CN108668323B - Transmission rate adjustment method and related device - Google Patents

Transmission rate adjustment method and related device Download PDF

Info

Publication number
CN108668323B
CN108668323B CN201810431903.3A CN201810431903A CN108668323B CN 108668323 B CN108668323 B CN 108668323B CN 201810431903 A CN201810431903 A CN 201810431903A CN 108668323 B CN108668323 B CN 108668323B
Authority
CN
China
Prior art keywords
transmission rate
mobile terminal
rate adjustment
adjustment strategy
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810431903.3A
Other languages
Chinese (zh)
Other versions
CN108668323A (en
Inventor
林进全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810431903.3A priority Critical patent/CN108668323B/en
Publication of CN108668323A publication Critical patent/CN108668323A/en
Application granted granted Critical
Publication of CN108668323B publication Critical patent/CN108668323B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • H04W28/22Negotiating communication rate

Abstract

The application discloses a transmission rate adjusting method and a related device, wherein the method comprises the following steps: acquiring the quantity of TCP (transmission control protocol) repeated confirmation messages received by the mobile terminal in a target time period; determining a transmission rate adjustment strategy under the condition that the quantity of the TCP repeated confirmation messages is larger than a first threshold value, wherein the transmission rate adjustment strategy is used for adjusting the uplink transmission rate of the mobile terminal; and adjusting the uplink transmission rate of the mobile terminal by using a transmission rate adjustment strategy, wherein the rate difference between the first uplink transmission rate actually transmitted by the adjusted mobile terminal and the transmission rate actually transmitted by the data forwarding equipment is less than or equal to a second threshold value. By adopting the embodiment of the application, the problem of data packet loss is solved, and the transmission efficiency of the uplink transmission data of the mobile terminal is improved.

Description

Transmission rate adjustment method and related device
Technical Field
The present application relates to the field of mobile communications technologies, and in particular, to a transmission rate adjustment method and a related apparatus.
Background
With the increasing popularity of mobile terminals (such as smart phones, tablet computers, etc.), mobile terminals have become an integral part of the life of users. The user can surf the internet for chatting, browse the webpage, play the video and the like through the smart phone. In a Wireless Local Area Network (WLAN), a mobile terminal sends data to the outside, and the data needs to pass through a Wireless router and a modem, and if the transmission rate of the mobile terminal is not matched with the transmission rate of the modem, a data packet loss problem may occur in the Wireless router and the modem.
Disclosure of Invention
The embodiment of the application provides a transmission rate adjustment method and a related device, which are used for solving the problem of data packet loss and improving the transmission efficiency of uplink transmission data of a mobile terminal.
In a first aspect, an embodiment of the present application provides a method for adjusting a transmission rate, including:
acquiring the quantity of TCP repeated confirmation messages received by the mobile terminal in a target time period;
determining a transmission rate adjustment strategy under the condition that the number of the TCP repeated confirmation messages is larger than a first threshold value, wherein the transmission rate adjustment strategy is used for adjusting the uplink transmission rate of the mobile terminal;
and adjusting the uplink transmission rate of the mobile terminal by using the transmission rate adjustment strategy, wherein the rate difference between the first uplink transmission rate actually transmitted by the adjusted mobile terminal and the transmission rate actually transmitted by the data forwarding equipment is less than or equal to a second threshold.
In a second aspect, an embodiment of the present application provides a transmission rate adjustment apparatus, including:
the device comprises an acquisition unit, a sending unit and a receiving unit, wherein the acquisition unit is used for acquiring the number of TCP repeated confirmation messages received by the mobile terminal in a target time period;
a determining unit, configured to determine a transmission rate adjustment policy when the number of the TCP duplicate acknowledgement packets is greater than a first threshold, where the transmission rate adjustment policy is used to adjust an uplink transmission rate of the mobile terminal;
and the adjusting unit is used for adjusting the uplink transmission rate of the mobile terminal by using the transmission rate adjusting strategy, and the rate difference value between the first uplink transmission rate actually transmitted by the adjusted mobile terminal and the transmission rate actually transmitted by the data forwarding equipment is smaller than or equal to a second threshold value.
In a third aspect, an embodiment of the present application provides a mobile terminal, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps of any method in the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods of the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, if the number of TCP duplicate acknowledgement packets received by the mobile terminal within a certain period of time exceeds a certain value, it indicates that the actual uplink transmission rate of the mobile terminal is far greater than the actual transmission rate of the data forwarding device, that is, the transmission rate is not matched, and in this case, the actual uplink transmission rate of the mobile terminal is adjusted to be close to the actual transmission rate of the data forwarding device through the transmission rate adjustment policy. Therefore, the speed of the mobile terminal sending data upwards after adjustment is close to the speed of the data transmission equipment transmitting data, the problem that the data transmission equipment and the wireless router discard some data due to the fact that the data transmission equipment cannot process the data sent by the mobile terminal and transmitted by the wireless router in time is solved, and the transmission efficiency of uplink transmission data of the mobile terminal is improved.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present application, the drawings required to be used in the embodiments or the background art of the present application will be described below.
Fig. 1 is a schematic structural diagram of a transmission rate adjustment system according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a transmission rate adjustment method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another transmission rate adjustment method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another transmission rate adjustment method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a transmission rate adjustment apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application.
Detailed description of the invention
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort shall fall within the protection scope of the present application.
The following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, 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.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The following describes embodiments of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a transmission rate adjustment system according to an embodiment of the present application, where the transmission rate adjustment system includes: the system comprises a mobile terminal, a wireless router, a data forwarding device and a network device. The data forwarding device is connected to the network device through a network, the network device may include an access network device and a core network device, the access network device includes a base station and the like, and the core network device includes a gateway and the like. The mobile terminal is connected with the wireless router through the wireless local area network, and the wireless router is connected with the data forwarding device through the wired port. In one embodiment, a Mobile terminal may include various handheld devices, vehicle mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication capabilities, as well as various forms of User Equipment (UE), Mobile Station (MS), terminal Equipment (terminal device), and the like. In one embodiment, the data forwarding device may be a modem (colloquially referred to as a light cat).
Under the transmission rate adjusting system, the principle that the mobile terminal sends data to the outside is as follows: the mobile terminal sends data to the wireless router; after receiving the data sent by the mobile terminal, the wireless router sends the received data to the data forwarding equipment; after the data forwarding device receives the data sent by the wireless router, the data forwarding device processes the received data and then sends the processed data to the network device through the network.
At present, both a mobile terminal and a wireless router can support high-speed internet access, and the transmission rate of a data forwarding device is limited, so that the problem that the transmission rate of the data forwarding device is not matched with the uplink transmission rate of the mobile terminal may exist, the problem that the data forwarding device cannot timely process data transmitted by the mobile terminal forwarded by the wireless router exists, the data forwarding device loses data packets, the wireless router reduces the rate of transmitting data to the data forwarding device, and the problem that the wireless router loses data packets also exists.
In view of the above problem, in this embodiment of the present application, if the number of Transmission Control Protocol (TCP) duplicate acknowledgement messages received by the mobile terminal within a certain period of time exceeds a certain value, it indicates that the actual uplink Transmission rate of the mobile terminal is far greater than the actual Transmission rate of the data forwarding device, that is, the Transmission rates are not matched, and in this case, the actual uplink Transmission rate of the mobile terminal is adjusted to be close to the actual Transmission rate of the data forwarding device through a Transmission rate adjustment policy. Therefore, the speed of the mobile terminal sending data upwards after adjustment is close to the speed of the data forwarding equipment transmitting data, the problem that the data forwarding equipment and the wireless router discard some data due to the fact that the data forwarding equipment cannot process the data sent by the mobile terminal forwarded by the wireless router in time is solved, and the transmission efficiency of uplink transmission data of the mobile terminal is improved.
Referring to fig. 2, fig. 2 is a schematic flow chart of a transmission rate adjustment method according to an embodiment of the present application, where an execution subject is a mobile terminal, and the method includes:
step 201: and acquiring the quantity of TCP repeated confirmation messages received by the mobile terminal in a target time period.
The TCP duplicate acknowledgement message is a TCP message sent by the network device to the mobile terminal when the currently running application of the mobile terminal is stuck.
The TCP receiver receives a first confirmation message sent by the TCP sender, and if the confirmation number in the first confirmation message is the same as the confirmation number in a second confirmation message, and the second confirmation message is the confirmation message received by the TCP receiver before receiving the first confirmation message, the first confirmation message is determined to be a TCP repeated confirmation message. The TCP transmitter is used for the network equipment to transmit a TCP repeated confirmation message to the mobile terminal, and the TCP receiver is used for the mobile terminal to receive the TCP repeated confirmation message transmitted by the network equipment.
The mobile terminal receives a large amount of TCP duplicate acknowledgement messages sent by the network device under the condition that the data forwarding device cannot process the data sent by the mobile terminal forwarded by the wireless router in time.
When the mobile terminal receives a large number of TCP duplicate acknowledgement messages, it indicates that the data forwarding device cannot process data sent by the mobile terminal through the data forwarding device in time, that is, the actual transmission rate of the data forwarding device is less than the actual uplink transmission rate of the mobile terminal, at this time, the data forwarding device discards some data that cannot be processed in time, and the data forwarding device has a data packet loss problem, which further causes the wireless router to reduce the rate of transmitting data to the data forwarding device, and the wireless router also has a data packet loss problem.
When the average value of the uplink transmission rates of the mobile terminal in the second period is smaller than the average value of the uplink transmission rates of the mobile terminal in the first period, it indicates that the currently running application of the mobile terminal is stuck, and step 201 is triggered; the duration of the first time interval is the same as the duration of the second time interval, and the ending moment of the first time interval is the starting moment of the second time interval. The second time interval is a target time interval, the termination time of the target time interval is the current system time of the mobile terminal, and the duration of the target time interval can be user-defined or self-defined by the mobile terminal.
When the uplink transmission rate actually transmitted by the mobile terminal is close to the transmission rate actually transmitted by the data forwarding equipment, the number of the TCP repeated confirmation messages received by the mobile terminal is far smaller than the number of the TCP repeated confirmation messages received when the uplink transmission rate actually transmitted by the mobile terminal is far larger than the transmission rate actually transmitted by the data forwarding equipment in the same time length.
Step 202: and determining a transmission rate adjustment strategy under the condition that the number of the TCP repeated confirmation messages is larger than a first threshold, wherein the transmission rate adjustment strategy is used for adjusting the uplink transmission rate of the mobile terminal.
When the number of the TCP duplicate acknowledgement messages is greater than the first threshold, it indicates that the uplink transmission rate actually transmitted by the mobile terminal is far greater than the transmission rate actually transmitted by the data forwarding device, at this time, the data sent by the mobile terminal to the data forwarding device through the wireless router exceeds the current processing capability of the data forwarding device, the data forwarding device discards some data which cannot be processed in time, the data forwarding device has a data packet loss problem, and thus the wireless router reduces the rate of transmitting data to the data forwarding device, and the wireless router also has a data packet loss problem.
When the number of the TCP duplicate acknowledgement messages is less than or equal to the first threshold, it indicates that the uplink transmission rate actually transmitted by the mobile terminal is close to the transmission rate actually transmitted by the data forwarding device, at this time, the data forwarding device can process the data sent by the mobile terminal through the wireless router in time, and the discarded data of the data forwarding device is significantly reduced when compared with the number of the TCP duplicate acknowledgement messages is greater than the first threshold.
The transmission rate adjustment strategy comprises a first transmission rate adjustment strategy and a second transmission rate adjustment strategy.
The first threshold represents a maximum value corresponding to the number of the TCP duplicate acknowledgement messages received by the mobile terminal in the target time period when the uplink transmission rate actually transmitted by the mobile terminal is close to the transmission rate actually transmitted by the data forwarding device, that is, when the number of the TCP duplicate acknowledgement messages received by the mobile terminal in the target time period is greater than the first threshold, the uplink transmission rate actually transmitted by the mobile terminal is not matched with the transmission rate actually transmitted by the data forwarding device.
The first threshold may be user-defined, or may be user-defined by the mobile terminal, and is not limited herein.
Further, the specific implementation manner of the mobile terminal determining the first threshold value is as follows: the mobile terminal acquires a history record of TCP repeated confirmation messages, wherein the history record comprises the total number of the TCP repeated confirmation messages received by the mobile terminal in a set time period, the set time period comprises a plurality of sub-time periods, and the time length of each sub-time period is the same as that of a target time period; the mobile terminal determines the ratio of the total number of the TCP repeated confirmation messages to the number of the sub-periods of the set period, and the ratio is the first threshold.
Step 203: and adjusting the uplink transmission rate of the mobile terminal by using the transmission rate adjustment strategy, wherein the rate difference between the first uplink transmission rate actually transmitted by the adjusted mobile terminal and the transmission rate actually transmitted by the data forwarding equipment is less than or equal to a second threshold.
Under the condition that the speed difference value between the first uplink transmission speed actually transmitted by the mobile terminal and the transmission speed actually transmitted by the data forwarding equipment is smaller than or equal to a second threshold value, the first uplink transmission speed actually transmitted by the mobile terminal is matched with the transmission speed actually transmitted by the data forwarding equipment; and under the condition that the speed difference value between the first uplink transmission speed actually transmitted by the mobile terminal and the transmission speed actually transmitted by the data forwarding equipment is greater than the second threshold, indicating that the first uplink transmission speed actually transmitted by the mobile terminal is not matched with the transmission speed actually transmitted by the data forwarding equipment.
The second threshold may be user-defined, or may be user-defined by the mobile terminal, which is not limited herein.
The number of times of adjusting the uplink transmission rate of the mobile terminal by using the first transmission rate adjustment strategy and/or the second transmission rate adjustment strategy in the transmission rate adjustment strategies may be one time, two times, or multiple times.
It can be seen that, in the embodiment of the present application, if the number of TCP duplicate acknowledgement packets received by the mobile terminal within a certain period of time exceeds a certain value, it indicates that the actual uplink transmission rate of the mobile terminal is far greater than the actual transmission rate of the data forwarding device, that is, the transmission rates are not matched, and in this case, the actual uplink transmission rate of the mobile terminal is adjusted to be close to the actual transmission rate of the data forwarding device through the transmission rate adjustment policy. Therefore, the speed of the mobile terminal sending data upwards after adjustment is close to the speed of the data transmission equipment transmitting data, the problem that the data transmission equipment and the wireless router discard some data due to the fact that the data transmission equipment cannot process the data sent by the mobile terminal and transmitted by the wireless router in time is solved, and the transmission efficiency of uplink transmission data of the mobile terminal is improved.
Referring to fig. 3, fig. 3 is a schematic flow chart of a transmission rate adjustment method according to an embodiment of the present application, where an execution subject is a mobile terminal, and the method includes:
step 301: and acquiring the quantity of TCP repeated confirmation messages received by the mobile terminal in a target time period.
See the relevant description of step 201, which will not be described here.
Step 302: judging whether the number of the TCP repeated confirmation messages is larger than a first threshold value or not;
if yes, go to step 303.
If not, go to step 301.
See step 202 for a description related thereto, and will not be described here.
Step 303: and determining the message difference value between the number of the TCP repeated confirmation messages and the first threshold value.
The larger the difference of the messages is, the larger the difference of the uplink transmission rate actually transmitted by the mobile terminal and the transmission rate actually transmitted by the data forwarding device is.
Step 304: judging whether the message difference value is greater than or equal to a third threshold value;
if yes, go to step 305-step 306.
If not, go to step 307-step 308.
The number change of the TCP repeated confirmation messages is the same when the first transmission rate adjustment strategy is used for adjusting the uplink transmission rate of the mobile terminal each time, and the number change of the TCP repeated confirmation messages is the same when the second transmission rate adjustment strategy is used for adjusting the uplink transmission rate of the mobile terminal each time.
And when the third threshold value represents that the rate difference between the actual transmission rate of the uplink transmission of the mobile terminal and the actual transmission rate of the data forwarding equipment meets the requirement of using the first transmission rate adjustment strategy and the second transmission rate adjustment strategy, or the minimum value corresponding to the message difference when the first transmission rate adjustment strategy is used, namely the message difference is greater than or equal to the third threshold value, the mobile terminal determines that the transmission rate adjustment strategy is the first transmission rate adjustment strategy and the second transmission rate adjustment strategy, or the first transmission rate adjustment strategy.
The third threshold may be user-defined, or may be user-defined by the mobile terminal, which is not limited herein.
Step 305: determining a transmission rate adjustment strategy to be the first transmission rate adjustment strategy and the second transmission rate adjustment strategy or the first transmission rate adjustment strategy; the first transmission rate adjustment strategy and the second transmission rate adjustment strategy are used for reducing the uplink transmission rate of the mobile terminal, and the adjustment range of the second transmission rate adjustment strategy is smaller than that of the first transmission rate adjustment strategy.
The first transmission rate adjustment strategy may be to reduce the transmission speed of TCP packets of the mobile terminal, and the second transmission rate adjustment strategy may be to reduce the Wi-Fi frame aggregation number of the mobile terminal.
The rate value of each adjustment is the same when the first transmission rate adjustment strategy is used for adjusting the uplink transmission rate of the mobile terminal, and the rate value of each adjustment is the same when the second transmission rate adjustment strategy is used for adjusting the uplink transmission rate of the mobile terminal.
The transmission data unit of the network layer of the open communication system interconnection reference model OSI is a data packet, the transmission data unit of the data link layer of the OSI is a frame, and data of the network layer is transmitted by the data link layer, so that the adjustment range of the adjustment strategy for reducing the transmission speed of the TCP data packet of the mobile terminal is larger than that of the adjustment strategy for reducing the aggregation number of Wi-Fi frames of the mobile terminal.
In the process of adjusting the uplink transmission rate of the mobile terminal by using the transmission rate adjustment strategy, the transmission rate actually transmitted by the data forwarding device is kept unchanged.
If the message difference is equal to a first target value, determining that the transmission rate adjustment strategy is a first transmission rate adjustment strategy, wherein the first target value is the sum of a second target value and a third target value, the second target value is an integral multiple of the number of TCP repeated confirmation messages corresponding to the first transmission rate adjustment strategy, and the third target value is the number of TCP repeated confirmation messages corresponding to a certain value smaller than or equal to a second threshold value; and if the message difference is equal to a fourth target value, determining that the transmission rate adjustment strategy is a first transmission rate adjustment strategy and a second transmission rate adjustment strategy, wherein the fourth target value is the sum of a fifth target value and a third target value, and the fifth target value is the sum of integral multiples of the number of TCP repeated confirmation messages corresponding to the first transmission rate adjustment strategy and integral multiples of the number of TCP repeated confirmation messages corresponding to the second transmission rate adjustment strategy.
Step 306: adjusting the uplink transmission rate of the mobile terminal at least once by using the first transmission rate adjustment strategy and the second transmission rate adjustment strategy; or, the uplink transmission rate of the mobile terminal is adjusted at least once by using the first transmission rate adjustment strategy; and the speed difference value between the first uplink transmission speed actually transmitted by the mobile terminal and the transmission speed actually transmitted by the data forwarding equipment after adjustment is smaller than or equal to a second threshold value.
Specifically, the specific implementation manner of using the first transmission rate adjustment policy at least once to adjust the uplink transmission rate of the mobile terminal includes:
a1: adjusting the uplink transmission rate of the mobile terminal by using a first transmission rate adjustment strategy;
a2: acquiring a third uplink transmission rate actually transmitted by the mobile terminal, wherein the third uplink transmission rate is the uplink transmission rate actually transmitted by the mobile terminal after being adjusted for the first time by using the first transmission rate adjustment strategy;
a3: determining a second rate difference value between the third uplink transmission rate and the actual transmission rate of the data forwarding equipment;
a4: if the second speed difference is greater than the second threshold, repeating steps A1-A3 until the second speed difference is less than or equal to the second threshold.
Specifically, the specific implementation manner of using the first transmission rate adjustment policy and the second transmission rate adjustment policy at least once to adjust the uplink transmission rate of the mobile terminal includes:
b1: adjusting the uplink transmission rate of the mobile terminal by using a first transmission rate adjustment strategy;
b2: acquiring a fourth uplink transmission rate actually transmitted by the mobile terminal, wherein the fourth uplink transmission rate is the uplink transmission rate actually transmitted by the mobile terminal after being adjusted for the first time by using the first transmission rate adjustment strategy;
b3: determining a third rate difference value between the fourth uplink transmission rate and the actual transmission rate of the data forwarding equipment;
b4: if the third rate difference is greater than or equal to the fourth threshold, using the first transmission rate adjustment strategy to adjust a fourth uplink transmission rate actually transmitted by the mobile terminal, wherein a fifth uplink transmission rate actually transmitted by the adjusted mobile terminal is smaller than the fourth uplink transmission rate, the fifth uplink transmission rate is the uplink transmission rate actually transmitted by the mobile terminal which is adjusted for the second time by using the first transmission rate adjustment strategy, and repeating the steps B1-B3 until the third rate difference is smaller than the fourth threshold;
b5: under the condition that the third rate difference is smaller than the fourth threshold, a second transmission rate adjustment strategy is used for adjusting the uplink transmission rate actually transmitted by the mobile terminal, the adjusted sixth uplink transmission rate actually transmitted by the mobile terminal is smaller than the uplink transmission rate actually transmitted by the mobile terminal adjusted in the step B4, and the sixth uplink transmission rate is the uplink transmission rate actually transmitted by the mobile terminal adjusted for the first time by using the second transmission rate adjustment strategy;
b6: determining a fourth rate difference value between the sixth uplink transmission rate and the actual transmission rate of the data forwarding equipment;
b7: if the fourth rate difference is greater than the second threshold, step B5 is repeated until the fourth rate difference is less than the second threshold.
Step 307: determining that the transmission rate adjustment policy is the second transmission rate adjustment policy.
Step 308: adjusting the uplink transmission rate of the mobile terminal at least once by using the second transmission rate adjustment strategy; and the speed difference value between the first uplink transmission speed actually transmitted by the mobile terminal and the transmission speed actually transmitted by the data forwarding equipment after adjustment is smaller than or equal to a second threshold value.
Specifically, the specific implementation manner of using the second transmission rate adjustment policy at least once to adjust the uplink transmission rate of the mobile terminal includes:
s1: adjusting the uplink transmission rate of the mobile terminal by using a second transmission rate adjustment strategy;
s2: acquiring a seventh uplink transmission rate actually transmitted by the mobile terminal, wherein the seventh uplink transmission rate is the uplink transmission rate actually transmitted by the mobile terminal after being adjusted for the first time by using a second transmission rate adjustment strategy;
s3: determining a fifth rate difference value between the seventh uplink transmission rate and the actual transmission rate of the data forwarding equipment;
s4: if the fifth speed difference is greater than the second threshold, repeating the steps S1-S3 until the fifth speed difference is less than the second threshold.
It can be seen that, in the embodiment of the present application, if the number of TCP duplicate acknowledgement packets received by the mobile terminal within a certain period of time exceeds a certain value, it indicates that the actual uplink transmission rate of the mobile terminal is far greater than the actual transmission rate of the data forwarding device, that is, the transmission rate is not matched, in this case, the transmission rate adjustment policy is determined by the packet difference between the number of TCP duplicate acknowledgement packets and the first threshold, and the actual uplink transmission rate of the mobile terminal is adjusted to be close to the actual transmission rate of the data forwarding device by using the transmission rate adjustment policy. Therefore, the speed of the mobile terminal sending data upwards after adjustment is close to the speed of the data transmission equipment transmitting data, the problem that the data transmission equipment and the wireless router discard some data due to the fact that the data transmission equipment cannot process the data sent by the mobile terminal and transmitted by the wireless router in time is solved, and the transmission efficiency of uplink transmission data of the mobile terminal is improved.
Referring to fig. 4, fig. 4 is a schematic flow chart of a transmission rate adjustment method according to an embodiment of the present application, where an execution subject is a mobile terminal, and the method includes:
step 401: and acquiring the quantity of TCP repeated confirmation messages received by the mobile terminal in a target time period.
See the relevant description of step 201, which will not be described here.
Step 402: judging whether the number of the TCP repeated confirmation messages is larger than a first threshold value or not;
if yes, go to step 403.
If not, go to step 401.
See the description related to step 302, which will not be described here.
Step 403: and acquiring a second uplink transmission rate actually transmitted by the mobile terminal, wherein the mobile terminal currently supports a target uplink transmission rate, and the target uplink transmission rate is the maximum transmission rate of uplink transmission allowed by the mobile terminal.
And the second uplink transmission rate is the uplink transmission rate actually transmitted by the mobile terminal when the mobile terminal works at the maximum transmission rate of the uplink transmission rate currently allowed by the mobile terminal.
Step 404: and determining the message difference value between the number of the TCP repeated confirmation messages and the first threshold value.
See the description related to step 303, which will not be described here.
Step 405: and determining the actual transmission rate of the data forwarding equipment according to the second uplink transmission rate and the message difference value.
Specifically, the transmission rate actually transmitted by the data forwarding device is determined according to the second uplink transmission rate, the message difference value and the transmission rate formula.
Wherein, the transmission rate formula is:
Figure BDA0001653630260000091
where V is the transmission rate of actual transmission of the data forwarding device, V1A second uplink transmission rate actually transmitted by the mobile terminal, C is a message difference value, P is a fixed value, and V is2And repeating the transmission rate corresponding to the confirmation messages for the P TCPs.
The fixed value P may be user-defined, or may be user-defined by the mobile terminal, and is not limited herein.
For example, suppose P-5, V24Mbps, the second uplink transmission rate V of the actual transmission of the mobile terminal1For 120Mbps, the mobile terminal determines the message difference value to be 25, and the mobile terminal determines the message difference value according to a transmission rate formula
Figure BDA0001653630260000092
And determining that the transmission rate V actually transmitted by the data forwarding equipment is 100 Mbps.
In some embodiments, determining the transmission rate actually transmitted by the data forwarding device may also be implemented by: under the condition that the number of the TCP repeated confirmation messages is larger than a first threshold value, sending a transmission rate acquisition request to the data forwarding equipment through a wireless router, wherein the transmission rate acquisition request is used for indicating to acquire the actual transmission rate of the data forwarding equipment; and receiving, by the wireless router, the transmission rate actually transmitted by the data forwarding device, where the transmission rate is sent by the data forwarding device.
Step 406: and determining a first rate difference value between the second uplink transmission rate and the transmission rate actually transmitted by the data forwarding equipment.
Step 407: judging whether the first speed difference value is larger than or equal to a fourth threshold value;
if yes, steps 408-409 are performed.
If not, step 410-step 411 are executed.
And when the fourth threshold value represents that the difference between the uplink transmission rate actually transmitted by the mobile terminal and the transmission rate actually transmitted by the data forwarding device meets the requirement of using the first transmission rate adjustment strategy and the second transmission rate adjustment strategy, or the minimum value corresponding to the first rate difference when the first transmission rate adjustment strategy is used, namely the first rate difference is greater than or equal to the fourth threshold value, the mobile terminal determines that the transmission rate adjustment strategy is the first transmission rate adjustment strategy and the second transmission rate adjustment strategy, or the first transmission rate adjustment strategy.
Step 408: determining a transmission rate adjustment strategy to be the first transmission rate adjustment strategy and the second transmission rate adjustment strategy or the first transmission rate adjustment strategy; the first transmission rate adjustment strategy and the second transmission rate adjustment strategy are used for reducing the uplink transmission rate of the mobile terminal, and the adjustment range of the second transmission rate adjustment strategy is smaller than that of the first transmission rate adjustment strategy.
If the first rate difference is equal to a sixth target value, determining that the transmission rate adjustment strategy is the first transmission rate adjustment strategy, wherein the sixth target value is the sum of a seventh target value and an eighth target value, the seventh target value is an integral multiple of a rate value corresponding to the first transmission rate adjustment strategy at one time, and the eighth target value is a rate value corresponding to a certain value smaller than or equal to a second threshold value; if the second difference is equal to a ninth target value, determining that the transmission rate adjustment strategy is a first transmission rate adjustment strategy and a second transmission rate adjustment strategy, the ninth target value is a sum of a tenth target value and an eighth target value, and the tenth target value is a sum of an integer multiple of a rate value corresponding to the first transmission rate adjustment strategy and an integer multiple of a rate value corresponding to the second transmission rate adjustment strategy.
See step 305 for further description, which will not be described herein.
Step 409: adjusting the uplink transmission rate of the mobile terminal at least once by using the first transmission rate adjustment strategy and the second transmission rate adjustment strategy; or the mobile terminal uses the first transmission rate adjustment strategy at least once to adjust the uplink transmission rate of the mobile terminal; and the speed difference value between the first uplink transmission speed actually transmitted by the mobile terminal and the transmission speed actually transmitted by the data forwarding equipment after adjustment is smaller than or equal to a second threshold value.
See step 306 for a description related thereto, and will not be described here.
Step 410: determining that the transmission rate adjustment policy is the second transmission rate adjustment policy.
Step 411: adjusting the uplink transmission rate of the mobile terminal at least once by using the second transmission rate adjustment strategy; and the speed difference value between the first uplink transmission speed actually transmitted by the mobile terminal and the transmission speed actually transmitted by the data forwarding equipment after adjustment is smaller than or equal to a second threshold value.
See the description related to step 308, which will not be described here.
It can be seen that, in this embodiment of the present application, if the number of TCP duplicate acknowledgement packets received by the mobile terminal within a certain period of time exceeds a certain value, it indicates that the actual uplink transmission rate of the mobile terminal is far greater than the actual transmission rate of the data forwarding device, that is, the transmission rates are not matched, in this case, a transmission rate adjustment policy is determined by a first rate difference value between a second uplink transmission rate actually transmitted by the mobile terminal and the actual transmission rate of the data forwarding device, and the actual uplink transmission rate of the mobile terminal is adjusted to be close to the actual transmission rate of the data forwarding device by using the transmission rate adjustment policy. Therefore, the speed of the mobile terminal sending data upwards after adjustment is close to the speed of the data transmission equipment transmitting data, the problem that the data transmission equipment and the wireless router discard some data due to the fact that the data transmission equipment cannot process the data sent by the mobile terminal and transmitted by the wireless router in time is solved, and the transmission efficiency of uplink transmission data of the mobile terminal is improved.
Consistent with the embodiments shown in fig. 2 to 4, please refer to fig. 5, where fig. 5 is a schematic structural diagram of a mobile terminal provided in an embodiment of the present application, the mobile terminal includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for performing the following steps:
acquiring the quantity of TCP repeated confirmation messages received by the mobile terminal in a target time period;
determining a transmission rate adjustment strategy under the condition that the number of the TCP repeated confirmation messages is larger than a first threshold value, wherein the transmission rate adjustment strategy is used for adjusting the uplink transmission rate of the mobile terminal;
and adjusting the uplink transmission rate of the mobile terminal by using the transmission rate adjustment strategy, wherein the rate difference between the first uplink transmission rate actually transmitted by the adjusted mobile terminal and the transmission rate actually transmitted by the data forwarding equipment is less than or equal to a second threshold.
In an embodiment of the present application, in determining the transmission rate adjustment policy, the program includes instructions specifically configured to perform the following steps:
determining a message difference value between the number of the TCP repeated confirmation messages and the first threshold value;
and determining the transmission rate adjustment strategy according to the message difference value.
In an embodiment of the present application, in determining the transmission rate adjustment policy according to the packet difference, the program includes instructions specifically configured to:
determining the transmission rate adjustment strategy to be the first transmission rate adjustment strategy and the second transmission rate adjustment strategy when the message difference is greater than or equal to a third threshold, wherein the first transmission rate adjustment strategy and the second transmission rate adjustment strategy are used for reducing the uplink transmission rate of the mobile terminal, and the adjustment amplitude of the second transmission rate adjustment strategy is smaller than that of the first transmission rate adjustment strategy;
and determining the transmission rate adjustment strategy as the second transmission rate adjustment strategy under the condition that the message difference value is smaller than the third threshold value.
In an embodiment of the application, the program further includes instructions for performing the following steps:
acquiring a second uplink transmission rate actually transmitted by the mobile terminal, wherein the mobile terminal currently supports a target uplink transmission rate, and the target uplink transmission rate is the maximum transmission rate of uplink transmission allowed by the mobile terminal;
determining the message difference value between the number of the TCP repeated confirmation messages and the first threshold value;
and determining the actual transmission rate of the data forwarding equipment according to the second uplink transmission rate and the message difference value.
In an embodiment of the present application, in determining the transmission rate adjustment policy, the program includes instructions specifically configured to perform the following steps:
determining a first rate difference value between the second uplink transmission rate and the actual transmission rate of the data forwarding equipment;
and determining the transmission rate adjustment strategy according to the first rate difference value.
In an embodiment of the application, in determining the transmission rate adjustment policy according to the first rate difference, the program includes instructions specifically configured to:
when the first rate difference is greater than or equal to a fourth threshold, determining that the transmission rate adjustment strategy is the first transmission rate adjustment strategy and the second transmission rate adjustment strategy, where the first transmission rate adjustment strategy and the second transmission rate adjustment strategy are used to reduce the uplink transmission rate of the mobile terminal, and an adjustment amplitude of the second transmission rate adjustment strategy is smaller than an adjustment amplitude of the first transmission rate adjustment strategy;
determining that the transmission rate adjustment policy is the second transmission rate adjustment policy if the first rate difference is less than the fourth threshold.
In an embodiment of the application, in terms of using the transmission rate adjustment policy to adjust the uplink transmission rate of the mobile terminal, the program includes instructions specifically configured to perform the following steps:
adjusting the uplink transmission rate of the mobile terminal at least once by using the first transmission rate adjustment strategy and the second transmission rate adjustment strategy; alternatively, the first and second electrodes may be,
and adjusting the uplink transmission rate of the mobile terminal at least once by using the second transmission rate adjustment strategy.
It should be noted that, for the specific implementation process of the present embodiment, reference may be made to the specific implementation process described in the above method embodiment, and a description thereof is omitted here.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the mobile terminal includes hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the transmission rate adjustment apparatus may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In the case of an integrated unit, fig. 6 shows a block diagram of a possible functional unit of the transmission rate adjustment apparatus according to the above embodiment. The transmission rate adjustment apparatus 600 includes a processing unit 601, a storage unit 602, and a communication unit 603, where the processing unit 601 includes an obtaining unit, a determining unit, and an adjusting unit, where:
the device comprises an acquisition unit, a sending unit and a receiving unit, wherein the acquisition unit is used for acquiring the number of TCP repeated confirmation messages received by the mobile terminal in a target time period;
a determining unit, configured to determine a transmission rate adjustment policy when the number of the TCP duplicate acknowledgement packets is greater than a first threshold, where the transmission rate adjustment policy is used to adjust an uplink transmission rate of the mobile terminal;
and the adjusting unit is used for adjusting the uplink transmission rate of the mobile terminal by using the transmission rate adjusting strategy, and the rate difference value between the first uplink transmission rate actually transmitted by the adjusted mobile terminal and the transmission rate actually transmitted by the data forwarding equipment is smaller than or equal to a second threshold value.
In an embodiment of the present application, in determining the transmission rate adjustment policy, the determining unit is specifically configured to:
determining a message difference value between the number of the TCP repeated confirmation messages and the first threshold value;
and determining the transmission rate adjustment strategy according to the message difference value.
In an embodiment of the present application, in determining the transmission rate adjustment policy according to the packet difference, the determining unit is specifically configured to:
determining the transmission rate adjustment strategy to be the first transmission rate adjustment strategy and the second transmission rate adjustment strategy when the message difference is greater than or equal to a third threshold, wherein the first transmission rate adjustment strategy and the second transmission rate adjustment strategy are used for reducing the uplink transmission rate of the mobile terminal, and the adjustment amplitude of the second transmission rate adjustment strategy is smaller than that of the first transmission rate adjustment strategy;
and determining the transmission rate adjustment strategy as the second transmission rate adjustment strategy under the condition that the message difference value is smaller than the third threshold value.
In one embodiment of the present application,
the obtaining unit is further configured to obtain a second uplink transmission rate actually transmitted by the mobile terminal, where the mobile terminal currently supports a target uplink transmission rate, and the target uplink transmission rate is a maximum transmission rate at which the mobile terminal allows uplink transmission;
the determining unit is further configured to determine the packet difference between the number of TCP duplicate acknowledgement packets and the first threshold; and determining the actual transmission rate of the data forwarding equipment according to the second uplink transmission rate and the message difference value.
In an embodiment of the present application, in determining the transmission rate adjustment policy, the determining unit is specifically configured to:
determining a first rate difference value between the second uplink transmission rate and the transmission rate actually transmitted by the data forwarding equipment;
and determining the transmission rate adjustment strategy according to the first rate difference value.
In an embodiment of the application, in determining the transmission rate adjustment policy according to the first rate difference, the determining unit is specifically configured to:
when the first rate difference is greater than or equal to a fourth threshold, determining that the transmission rate adjustment strategy is the first transmission rate adjustment strategy and the second transmission rate adjustment strategy, where the first transmission rate adjustment strategy and the second transmission rate adjustment strategy are used to reduce the uplink transmission rate of the mobile terminal, and an adjustment amplitude of the second transmission rate adjustment strategy is smaller than an adjustment amplitude of the first transmission rate adjustment strategy;
determining that the transmission rate adjustment policy is the second transmission rate adjustment policy if the first rate difference is less than the fourth threshold.
In an embodiment of the application, in terms of using the transmission rate adjustment policy to adjust the uplink transmission rate of the mobile terminal, the adjusting unit is specifically configured to:
adjusting the uplink transmission rate of the mobile terminal at least once by using the first transmission rate adjustment strategy and the second transmission rate adjustment strategy; alternatively, the first and second electrodes may be,
and adjusting the uplink transmission rate of the mobile terminal at least once by using the second transmission rate adjustment strategy.
The Processing Unit 601 may be a Processor or a controller (e.g., a Central Processing Unit (CPU), a general purpose Processor, a Digital Signal Processor (DSP), an Application-Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof), the storage Unit 602 may be a memory, and the communication Unit 603 may be a transceiver, a transceiver controller, a radio frequency chip, a communication interface, or the like.
When the processing unit 601 is a processor, the storage unit 602 is a memory, and the communication unit 603 is a communication interface, the transmission rate adjustment apparatus according to the embodiment of the present application may be a mobile terminal shown in fig. 5.
An embodiment of the present application further provides a schematic structural diagram of a mobile terminal, as shown in fig. 7, the mobile terminal 700 includes: the device comprises a shell 10, a circuit board 20, a camera 30, a display screen 40, and a controller 50 for controlling the camera 30 and the display screen 40; the camera 30 and the controller 50 are disposed on the circuit board 20, and the display screen 40 is connected to the controller 50, wherein:
the controller is used for acquiring the number of TCP repeated confirmation messages received by the mobile terminal in a target time period;
determining a transmission rate adjustment strategy under the condition that the number of the TCP repeated confirmation messages is larger than a first threshold value, wherein the transmission rate adjustment strategy is used for adjusting the uplink transmission rate of the mobile terminal;
and adjusting the uplink transmission rate of the mobile terminal by using the transmission rate adjustment strategy, wherein the rate difference between the first uplink transmission rate actually transmitted by the adjusted mobile terminal and the transmission rate actually transmitted by the data forwarding equipment is less than or equal to a second threshold.
Wherein, the mobile terminal 700 further comprises at least one functional component 60, the controller 50 is connected with the at least one functional component 60, and the at least one functional component 60 comprises at least one of the following: speaker, microphone, face identification device, proximity sensor, ambient light sensor.
The display screen 40 includes a touch screen and a display screen, and the display screen includes an organic light emitting diode display screen OLED.
The controller 50 may include a processor, which is a control center of the mobile terminal, and a memory, which is connected to various parts of the entire mobile terminal through various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory and calling data stored in the memory, thereby integrally monitoring the mobile terminal. Optionally, the processor may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor may not be integrated into the processor.
The memory may be used for storing software programs and modules, and the processor may execute various functional applications and data processing of the mobile terminal by operating the software programs and modules stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile terminal, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
In an embodiment of the present application, in determining the transmission rate adjustment policy, the controller is specifically configured to:
determining a message difference value between the number of the TCP repeated confirmation messages and the first threshold value;
and determining the transmission rate adjustment strategy according to the message difference value.
In an embodiment of the present application, in determining the transmission rate adjustment policy according to the packet difference, the controller is specifically configured to:
determining the transmission rate adjustment strategy to be the first transmission rate adjustment strategy and the second transmission rate adjustment strategy when the message difference is greater than or equal to a third threshold, wherein the first transmission rate adjustment strategy and the second transmission rate adjustment strategy are used for reducing the uplink transmission rate of the mobile terminal, and the adjustment amplitude of the second transmission rate adjustment strategy is smaller than that of the first transmission rate adjustment strategy;
and determining the transmission rate adjustment strategy as the second transmission rate adjustment strategy under the condition that the message difference value is smaller than the third threshold value.
In an embodiment of the present application, the controller is further configured to:
acquiring a second uplink transmission rate actually transmitted by the mobile terminal, wherein the mobile terminal currently supports a target uplink transmission rate, and the target uplink transmission rate is the maximum transmission rate of uplink transmission allowed by the mobile terminal;
determining the message difference value between the number of the TCP repeated confirmation messages and the first threshold value;
and determining the actual transmission rate of the data forwarding equipment according to the second uplink transmission rate and the message difference value.
In an embodiment of the application, in determining the transmission rate adjustment policy, the controller is specifically configured to:
determining a first rate difference value between the second uplink transmission rate and the transmission rate actually transmitted by the data forwarding equipment;
and determining the transmission rate adjustment strategy according to the first rate difference value.
In an embodiment of the application, in determining the transmission rate adjustment policy according to the first rate difference, the controller is specifically configured to:
when the first rate difference is greater than or equal to a fourth threshold, determining that the transmission rate adjustment strategy is the first transmission rate adjustment strategy and the second transmission rate adjustment strategy, where the first transmission rate adjustment strategy and the second transmission rate adjustment strategy are used to reduce the uplink transmission rate of the mobile terminal, and an adjustment amplitude of the second transmission rate adjustment strategy is smaller than an adjustment amplitude of the first transmission rate adjustment strategy;
determining that the transmission rate adjustment policy is the second transmission rate adjustment policy if the first rate difference is less than the fourth threshold.
In an embodiment of the application, in terms of using the transmission rate adjustment policy to adjust the uplink transmission rate of the mobile terminal, the controller is specifically configured to:
adjusting the uplink transmission rate of the mobile terminal at least once by using the first transmission rate adjustment strategy and the second transmission rate adjustment strategy; alternatively, the first and second electrodes may be,
and adjusting the uplink transmission rate of the mobile terminal at least once by using the second transmission rate adjustment strategy.
It should be noted that, the specific implementation process of the present embodiment may refer to the specific implementation process described in the above method, and will not be described here.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes a mobile terminal.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing embodiments have been described in detail, and specific examples are used herein to explain the principles and implementations of the present application, where the above description of the embodiments is only intended to help understand the method and its core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, the specific implementation manner and the application range may be changed, and in view of the above, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A method for adjusting a transmission rate, comprising:
acquiring the quantity of TCP (transmission control protocol) repeated confirmation messages received by the mobile terminal in a target time period;
determining a transmission rate adjustment strategy under the condition that the number of the TCP repeated confirmation messages is larger than a first threshold value, wherein the transmission rate adjustment strategy is used for adjusting the uplink transmission rate of the mobile terminal;
adjusting the uplink transmission rate of the mobile terminal by using the transmission rate adjustment strategy, wherein the rate difference value between the first uplink transmission rate actually transmitted by the adjusted mobile terminal and the transmission rate actually transmitted by the data forwarding equipment is less than or equal to a second threshold value;
before the determining the transmission rate adjustment policy, the method further includes: acquiring a second uplink transmission rate actually transmitted by the mobile terminal, wherein the mobile terminal currently supports a target uplink transmission rate, and the target uplink transmission rate is the maximum transmission rate of uplink transmission allowed by the mobile terminal;
determining a message difference value between the number of the TCP repeated confirmation messages and the first threshold value;
and determining the actual transmission rate of the data forwarding equipment according to the second uplink transmission rate and the message difference value.
2. The method of claim 1, wherein determining the transmission rate adjustment policy comprises:
determining a message difference value between the number of the TCP repeated confirmation messages and the first threshold value;
and determining the transmission rate adjustment strategy according to the message difference value.
3. The method of claim 2, wherein the transmission rate adjustment policy comprises a first transmission rate adjustment policy and a second transmission rate adjustment policy, and wherein determining the transmission rate adjustment policy based on the packet difference value comprises:
determining the transmission rate adjustment strategy to be the first transmission rate adjustment strategy and the second transmission rate adjustment strategy when the message difference is greater than or equal to a third threshold, wherein the first transmission rate adjustment strategy and the second transmission rate adjustment strategy are used for reducing the uplink transmission rate of the mobile terminal, and the adjustment amplitude of the second transmission rate adjustment strategy is smaller than that of the first transmission rate adjustment strategy;
and determining the transmission rate adjustment strategy as the second transmission rate adjustment strategy under the condition that the message difference value is smaller than the third threshold value.
4. The method of claim 1, wherein determining the transmission rate adjustment policy comprises:
determining a first rate difference value between the second uplink transmission rate and the transmission rate actually transmitted by the data forwarding equipment;
and determining the transmission rate adjustment strategy according to the first rate difference value.
5. The method of claim 4, wherein the transmission rate adjustment policy comprises a first transmission rate adjustment policy and a second transmission rate adjustment policy, and wherein determining the transmission rate adjustment policy based on the first rate difference comprises:
when the first rate difference is greater than or equal to a fourth threshold, determining that the transmission rate adjustment strategy is the first transmission rate adjustment strategy and the second transmission rate adjustment strategy, where the first transmission rate adjustment strategy and the second transmission rate adjustment strategy are used to reduce the uplink transmission rate of the mobile terminal, and an adjustment amplitude of the second transmission rate adjustment strategy is smaller than an adjustment amplitude of the first transmission rate adjustment strategy;
determining that the transmission rate adjustment policy is the second transmission rate adjustment policy if the first rate difference is less than the fourth threshold.
6. The method according to claim 3 or 5, wherein the adjusting the uplink transmission rate of the mobile terminal using the transmission rate adjustment policy comprises:
adjusting the uplink transmission rate of the mobile terminal at least once by using the first transmission rate adjustment strategy and the second transmission rate adjustment strategy; alternatively, the first and second electrodes may be,
and adjusting the uplink transmission rate of the mobile terminal at least once by using the second transmission rate adjustment strategy.
7. A transmission rate adjustment apparatus, comprising:
the device comprises an acquisition unit, a sending unit and a receiving unit, wherein the acquisition unit is used for acquiring the number of TCP repeated confirmation messages received by the mobile terminal in a target time period;
a determining unit, configured to determine a transmission rate adjustment policy when the number of the TCP duplicate acknowledgement packets is greater than a first threshold, where the transmission rate adjustment policy is used to adjust an uplink transmission rate of the mobile terminal; wherein the determining unit is further configured to: acquiring a second uplink transmission rate actually transmitted by the mobile terminal, wherein the mobile terminal currently supports a target uplink transmission rate, and the target uplink transmission rate is the maximum transmission rate of uplink transmission allowed by the mobile terminal; determining a message difference value between the number of the TCP repeated confirmation messages and the first threshold value; determining the actual transmission rate of the data forwarding equipment according to the second uplink transmission rate and the message difference value;
and the adjusting unit is used for adjusting the uplink transmission rate of the mobile terminal by using the transmission rate adjusting strategy, and the rate difference value between the first uplink transmission rate actually transmitted by the adjusted mobile terminal and the transmission rate actually transmitted by the data forwarding equipment is smaller than or equal to a second threshold value.
8. A mobile terminal comprising a processor, memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps in the method of any of claims 1-6.
9. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-6.
CN201810431903.3A 2018-05-08 2018-05-08 Transmission rate adjustment method and related device Active CN108668323B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810431903.3A CN108668323B (en) 2018-05-08 2018-05-08 Transmission rate adjustment method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810431903.3A CN108668323B (en) 2018-05-08 2018-05-08 Transmission rate adjustment method and related device

Publications (2)

Publication Number Publication Date
CN108668323A CN108668323A (en) 2018-10-16
CN108668323B true CN108668323B (en) 2022-05-13

Family

ID=63778861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810431903.3A Active CN108668323B (en) 2018-05-08 2018-05-08 Transmission rate adjustment method and related device

Country Status (1)

Country Link
CN (1) CN108668323B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110601793B (en) * 2019-08-16 2022-04-29 海尔优家智能科技(北京)有限公司 Method and device for determining data transmission rate, assembly and storage medium
CN111526607B (en) 2020-04-14 2022-07-08 北京小米移动软件有限公司 Communication data processing method and device, terminal equipment and storage medium
CN111884757B (en) * 2020-07-06 2023-06-02 广州海格通信集团股份有限公司 Message transmission method, device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011150651A1 (en) * 2010-12-29 2011-12-08 华为技术有限公司 Congestion control method and device for data transmission
CN102404187A (en) * 2010-09-13 2012-04-04 华为技术有限公司 Congestion control method and system as well as network equipment
CN103139088A (en) * 2011-11-28 2013-06-05 华为技术有限公司 Method for controlling transmission rate of communication interface and network equipment
CN104243090A (en) * 2013-06-19 2014-12-24 中国移动通信集团公司 Sending rate adjustment method and device based on wireless channel feedback

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102210738B1 (en) * 2015-01-28 2021-02-02 삼성전자주식회사 Method and apparatus for controlling congestion in a communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404187A (en) * 2010-09-13 2012-04-04 华为技术有限公司 Congestion control method and system as well as network equipment
WO2011150651A1 (en) * 2010-12-29 2011-12-08 华为技术有限公司 Congestion control method and device for data transmission
CN103139088A (en) * 2011-11-28 2013-06-05 华为技术有限公司 Method for controlling transmission rate of communication interface and network equipment
CN104243090A (en) * 2013-06-19 2014-12-24 中国移动通信集团公司 Sending rate adjustment method and device based on wireless channel feedback

Also Published As

Publication number Publication date
CN108668323A (en) 2018-10-16

Similar Documents

Publication Publication Date Title
US20210360650A1 (en) Packet offloading method, mobile terminal, and storage medium
EP3955487B1 (en) Adapting communication parameters to link conditions, traffic types, and/or priorities
US10945285B2 (en) Wireless network communication system and method
CN108668323B (en) Transmission rate adjustment method and related device
CN109274596B (en) Data transmission method and related device
US9407734B2 (en) System and method for efficient frame aggregation based on aggregation limits or parameters
CN102201997A (en) Data transmission control method and equipment
CN102860094A (en) Mobile device for selectively suppressing a video function of a packet-based video call
CN101924625A (en) Data packet retransmission control method and network side equipment
TWI580226B (en) Method for determining maximum segment size
JP4215055B2 (en) Wireless communication system, reception confirmation signal transmission control method, and wireless station used therefor
JP2013535131A (en) Data transmission over several different networks
US11528345B2 (en) Data transmission method and system, and apparatus
CN106471847B (en) Method and apparatus for communicating data communication sessions between radio access networks
Cheng et al. Congestion control with dynamic threshold adaptation and cross‐layer response for TCP Vegas over IEEE 802.11 wireless networks
US10122438B2 (en) Systems, methods and devices for modifying relay operation of a wireless device
US8818264B2 (en) Data transmitting method, data controlling module and mobile device using the same
US20150295841A1 (en) Efficient packet aggregation using dynamic wait time
JP2007097124A (en) Method and apparatus for initializing storage window in wireless communication system for periodically retransmitting packets in um (unacknowledgement) mode
CN109644083B (en) Data transmission method and related product
WO2020211061A1 (en) Data transmission method and device, and storage medium
US20130156039A1 (en) Method of performing ip fragmentation and related wireless network system
CN104320815B (en) A kind of data transmission policies for being used to improve WLAN handling capacity
WO2013185682A1 (en) Method and system for sending and receiving multimedia message
TWI503037B (en) Mobile communication devices and data transmission methods

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