CN111586755A - Method, system, device, medium and communication terminal for cooperatively controlling TCP layer - Google Patents

Method, system, device, medium and communication terminal for cooperatively controlling TCP layer Download PDF

Info

Publication number
CN111586755A
CN111586755A CN202010383878.3A CN202010383878A CN111586755A CN 111586755 A CN111586755 A CN 111586755A CN 202010383878 A CN202010383878 A CN 202010383878A CN 111586755 A CN111586755 A CN 111586755A
Authority
CN
China
Prior art keywords
layer
data transmission
threshold
transmission state
state parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010383878.3A
Other languages
Chinese (zh)
Other versions
CN111586755B (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.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN202211627405.9A priority Critical patent/CN115967757A/en
Priority to CN202010383878.3A priority patent/CN111586755B/en
Publication of CN111586755A publication Critical patent/CN111586755A/en
Application granted granted Critical
Publication of CN111586755B publication Critical patent/CN111586755B/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/02Traffic management, e.g. flow control or congestion control
    • H04W28/0231Traffic management, e.g. flow control or congestion control based on communication conditions
    • H04W28/0236Traffic management, e.g. flow control or congestion control based on communication conditions radio quality, e.g. interference, losses or delay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1812Hybrid protocols; Hybrid automatic repeat request [HARQ]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1867Arrangements specially adapted for the transmitter end
    • H04L1/188Time-out mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/04Error control
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a method, a system, equipment, a medium and a communication terminal for cooperatively controlling a TCP layer. The method is applied to the communication terminal and comprises the following steps: generating a preset notification corresponding to a preset condition when a current data transmission state parameter of an L2 layer meets the preset condition, wherein the L2 layer comprises an RLC layer and an MAC layer, and the data transmission state parameter is used for representing the data transmission quality of the L2 layer; and adjusting the current data transmission state of the TCP layer to be matched with the current data transmission quality of the L2 layer according to the preset notice. According to the invention, when the current data transmission state parameter of the L2 layer meets the preset condition, the corresponding preset notice is generated and transmitted to the TCP layer, so that the TCP layer can sense the current data transmission quality of the L2 layer in time and adjust the current data transmission state according to the preset notice, and the uploading and downloading throughput rate and the wireless resource utilization rate of the communication terminal are improved based on the cooperation of the L2 layer and the TCP layer.

Description

Method, system, device, medium and communication terminal for cooperatively controlling TCP layer
Technical Field
The present invention relates to the field of wireless communication technologies, and in particular, to a method, a system, a device, a medium, and a communication terminal for cooperatively controlling a TCP layer.
Background
Since TCP (Transmission Control Protocol, a connection-oriented, reliable transport layer communication Protocol based on byte stream) is originally designed for a wired network, there is a certain limitation on the adaptability of a wireless network whose bottom layer is, for example, LTE (Long term evolution, wireless data communication technology standard), for example, in the process of using LTE for dynamic uploading or downloading, the TCP layer cannot timely sense the Transmission condition of the bottom layer, and cannot timely adjust data transceiving according to the Transmission condition of the bottom layer.
Specifically, in an application scenario of using a communication terminal to dynamically upload or download, quality of a bottom link is degraded when the communication terminal passes through a station with poor signal quality, and degradation of quality of bottom uplink transmission or downlink reception may cause a lengthening of RTT (Round-Trip Time), but since a TCP layer cannot timely sense these link abnormalities, the TCP layer still operates according to its own timer and retransmission mechanism, resulting in a large number of invalid retransmission packets existing in uplink or downlink during uploading or downloading of the communication terminal, and these retransmission packets not only do not contribute to throughput, but also cause link burden and air interface resource waste.
The quality of the underlying link is recovered when the communication terminal moves from a station with poor signal quality to a station with good signal quality, but the station with poor signal quality at the previous time of the TCP layer considers that the network is congested, so that although the quality of the underlying link is recovered, the TCP layer still starts slowly because the TCP layer cannot timely sense the recovery of the quality of the underlying link, and cannot timely recover the rapid transceiving of data, thereby greatly affecting the uplink and downlink rates and the throughput rate.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method, a system, a device, a medium and a communication terminal for cooperatively controlling a TCP layer, in order to overcome the defect that the TCP layer cannot timely sense the transmission condition of a bottom layer in the prior art.
The invention solves the technical problems through the following technical scheme:
a method for cooperatively controlling a TCP layer, the method being applied to a communication terminal, the method comprising:
generating a preset notification corresponding to a preset condition when a current data transmission state parameter of an L2(Layer 2) Layer meets the preset condition, wherein the L2 Layer includes an RLC (Radio Link Control, Radio Link Control protocol) Layer and an MAC (Medium Access Control, media Access Control) Layer, and the data transmission state parameter is used for representing data transmission quality of the L2 Layer;
and adjusting the current data transmission state of the TCP layer to be matched with the current data transmission quality of the L2 layer according to the preset notice.
Preferably, the preset conditions comprise a first preset condition for indicating that the data transmission quality of the L2 layer is poor and a second preset condition for indicating that the data transmission quality of the L2 layer is good;
the step of generating a preset notification corresponding to a preset condition when the current data transmission state parameter of the L2 layer satisfies the preset condition includes:
generating a first preset notification corresponding to a first preset condition when the current data transmission state parameter of the L2 layer meets the first preset condition;
generating a second preset notification corresponding to a second preset condition when the current data transmission state parameter of the L2 layer meets the second preset condition;
the step of adjusting the current data transmission state of the TCP layer to be adapted to the current data transmission quality of the L2 layer according to the preset notification includes:
adjusting the current data transmission state of the TCP layer according to the first preset notice to reduce the data volume transmitted by the TCP layer;
and adjusting the current data transmission state of the TCP layer according to the second preset notice to increase the data volume transmitted by the TCP layer currently.
Preferably, when the RLC layer is in an AM (acknowledged Mode), before the step of generating the preset notification corresponding to a preset condition when the current data transmission state parameter of the L2 layer satisfies the preset condition, the method further includes:
judging whether the TCP layer is currently used for uploading data or downloading data;
if the buffer is used for uploading data, judging whether the current buffer data volume of the RLC layer is larger than a first threshold value and whether the HARQ (Hybrid Automatic Repeat Request) failure rate of the MAC layer is larger than a second threshold value;
if the current data transmission state parameter is greater than the first threshold and greater than the second threshold, determining that the current data transmission state parameter of the L2 layer meets a first preset condition;
if the current buffer data size of the RLC layer is not larger than the first threshold or the second threshold, judging whether the current buffer data size of the RLC layer is smaller than a third threshold and the HARQ failure rate of the MAC layer is smaller than a fourth threshold;
if the current data transmission state parameter is smaller than the third threshold and smaller than the fourth threshold, determining that the current data transmission state parameter of the L2 layer meets a second preset condition;
if the data is used for downloading the data, judging whether the current cache data volume of the RLC layer is larger than a fifth threshold value or not and whether the HARQ failure rate of the MAC layer is larger than a sixth threshold value or not;
if the current data transmission state parameter is greater than the fifth threshold and greater than the sixth threshold, determining that the current data transmission state parameter of the L2 layer meets a first preset condition;
if the current buffer data size of the RLC layer is not larger than the fifth threshold or not larger than the sixth threshold, judging whether the current buffer data size of the RLC layer is smaller than a seventh threshold and the HARQ failure rate of the MAC layer is smaller than an eighth threshold;
if the current data transmission state parameter is smaller than the seventh threshold and smaller than the eighth threshold, determining that the current data transmission state parameter of the L2 layer meets a second preset condition;
or the like, or, alternatively,
when the RLC layer is in an UM (Un-acknowledged Mode), before the step of generating the preset notification corresponding to the preset condition when the current data transmission state parameter of the L2 layer satisfies the preset condition, the method further includes:
judging whether the RLC layer is currently used for uploading data or downloading data;
if the HARQ failure rate of the MAC layer is larger than a ninth threshold value, judging whether the HARQ failure rate of the MAC layer is larger than the ninth threshold value;
if the current data transmission state parameter is larger than the ninth threshold, determining that the current data transmission state parameter of the L2 layer meets a first preset condition;
if the HARQ failure rate of the MAC layer is not greater than the ninth threshold, judging whether the HARQ failure rate of the MAC layer is less than a tenth threshold;
if the current data transmission state parameter is smaller than the tenth threshold, determining that the current data transmission state parameter of the L2 layer meets a second preset condition;
if the HARQ failure rate of the MAC layer is greater than an eleventh threshold, judging whether the HARQ failure rate of the MAC layer is greater than the eleventh threshold;
if the current data transmission state parameter is larger than the eleventh threshold, determining that the current data transmission state parameter of the L2 layer meets a first preset condition;
if the HARQ failure rate of the MAC layer is not greater than the eleventh threshold, judging whether the HARQ failure rate of the MAC layer is less than a twelfth threshold;
if the current data transmission state parameter is smaller than the twelfth threshold, determining that the current data transmission state parameter of the L2 layer meets a second preset condition.
Preferably, the step of adjusting the current data transmission state of the TCP layer according to the first preset notification to reduce the data amount currently transmitted by the TCP layer includes:
judging whether the TCP layer is currently used for uploading data or downloading data;
if the data is uploaded, controlling the TCP layer to stop sending the data and stopping an RTO (Transmission time out, TCP time-out Retransmission mechanism) timer;
if the data is downloaded, controlling the TCP layer to send first ACK (acknowledgement) data to the base station server, wherein the first ACK data comprises a window with the window size smaller than a first window value;
the step of adjusting the current data transmission state of the TCP layer according to the second preset notification to increase the amount of data currently transmitted by the TCP layer includes:
judging whether the TCP layer is currently used for uploading data or downloading data;
if the data are uploaded, controlling a TCP layer to send the data and starting an RTO timer;
and if the data are downloaded, controlling the TCP layer to send second ACK data to the base station server, wherein the second ACK data comprise a window with the window size larger than a second window value.
A system for cooperatively controlling a TCP layer, the system being applied to a communication terminal, the system comprising:
the device comprises a generating module, a sending module and a receiving module, wherein the generating module is used for generating a preset notice corresponding to a preset condition when a current data transmission state parameter of an L2 layer meets the preset condition, the L2 layer comprises an RLC layer and an MAC layer, and the data transmission state parameter is used for representing the data transmission quality of an L2 layer;
and the adjusting module is used for adjusting the current data transmission state of the TCP layer to be matched with the current data transmission quality of the L2 layer according to the preset notice.
Preferably, the preset conditions comprise a first preset condition for indicating that the data transmission quality of the L2 layer is poor and a second preset condition for indicating that the data transmission quality of the L2 layer is good;
the generation module comprises:
the device comprises a first generating unit, a second generating unit and a control unit, wherein the first generating unit is used for generating a first preset notification corresponding to a first preset condition when a current data transmission state parameter of an L2 layer meets the first preset condition;
a second generating unit, configured to generate a second preset notification corresponding to a second preset condition when a current data transmission state parameter of the L2 layer satisfies the second preset condition;
the adjustment module includes:
the first adjusting unit is used for adjusting the current data transmission state of the TCP layer according to the first preset notice so as to reduce the data volume transmitted by the TCP layer;
and the second adjusting unit is used for adjusting the current data transmission state of the TCP layer according to the second preset notice so as to increase the data volume transmitted by the TCP layer currently.
Preferably, the first and second liquid crystal films are made of a polymer,
when the RLC layer is in the AM mode, the system further includes:
the first judgment module is used for judging whether the TCP layer is currently used for uploading data or downloading data;
if the cache is used for uploading data, a second judgment module is called, and the second judgment module is used for judging whether the current cache data volume of the RLC layer is larger than a first threshold value or not and whether the HARQ failure rate of the MAC layer is larger than a second threshold value or not;
if the current data transmission state parameter is greater than the first threshold and greater than the second threshold, calling a first determining module, wherein the first determining module is used for determining that the current data transmission state parameter of the L2 layer meets a first preset condition;
if the current cache data volume is not larger than the first threshold or the second threshold, calling a third judging module, wherein the third judging module is used for judging whether the current cache data volume of the RLC layer is smaller than a third threshold and the HARQ failure rate of the MAC layer is smaller than a fourth threshold;
if the current data transmission state parameter is smaller than the third threshold and smaller than the fourth threshold, calling a second determining module, wherein the second determining module is used for determining that the current data transmission state parameter of the L2 layer meets a second preset condition;
if the buffer is used for downloading data, calling a fourth judging module, wherein the fourth judging module is used for judging whether the current buffer data volume of the RLC layer is larger than a fifth threshold value or not and whether the HARQ failure rate of the MAC layer is larger than a sixth threshold value or not;
if the current data transmission state parameter is greater than the fifth threshold and greater than the sixth threshold, calling a third determining module, where the third determining module is configured to determine that the current data transmission state parameter of the L2 layer meets a first preset condition;
if the current cache data amount is not greater than the fifth threshold or not greater than the sixth threshold, calling a fifth judging module, wherein the fifth judging module is used for judging whether the current cache data amount of the RLC layer is less than a seventh threshold and the HARQ failure rate of the MAC layer is less than an eighth threshold;
if the current data transmission state parameter is smaller than the seventh threshold and smaller than the eighth threshold, calling a fourth determination module, where the fourth determination module is used to determine that the current data transmission state parameter of the L2 layer meets a second preset condition;
or the like, or, alternatively,
when the RLC layer is in the UM mode, the system further includes:
a sixth judging module, configured to judge whether the RLC layer is currently used for uploading data or downloading data;
if the HARQ failure rate of the MAC layer is larger than a ninth threshold, calling a seventh judging module;
if the current data transmission state parameter is greater than the ninth threshold, calling a fifth determining module, where the fifth determining module is used to determine that the current data transmission state parameter of the L2 layer meets a first preset condition;
if the HARQ failure rate of the MAC layer is not greater than the ninth threshold, calling an eighth judging module, wherein the eighth judging module is used for judging whether the HARQ failure rate of the MAC layer is less than a tenth threshold;
if the current data transmission state parameter is smaller than the tenth threshold, calling a sixth determining module, wherein the sixth determining module is used for determining that the current data transmission state parameter of the L2 layer meets a second preset condition;
if the HARQ failure rate of the MAC layer is greater than an eleventh threshold, calling a ninth judging module;
if the current data transmission state parameter is greater than the eleventh threshold, calling a seventh determining module, where the seventh determining module is configured to determine that the current data transmission state parameter of the L2 layer meets a first preset condition;
if the HARQ failure rate of the MAC layer is not greater than the eleventh threshold, calling a tenth judging module, wherein the tenth judging module is used for judging whether the HARQ failure rate of the MAC layer is less than a twelfth threshold or not;
if the current data transmission state parameter is smaller than the twelfth threshold, an eighth determining module is called, and the eighth determining module is used for determining that the current data transmission state parameter of the L2 layer meets a second preset condition.
Preferably, the first adjusting unit includes:
the first judgment subunit is used for judging whether the TCP layer is currently used for uploading data or downloading data;
if the data are uploaded, calling a first control subunit, wherein the first control subunit is used for controlling a TCP layer to stop sending the data and stopping an RTO timer;
if the data are downloaded, a second control subunit is called, the second control subunit is used for controlling the TCP layer to send first ACK data to the base station server, and the first ACK data comprise a window with the window size smaller than a first window value;
the second adjusting unit includes:
the second judgment subunit is used for judging whether the TCP layer is currently used for uploading data or downloading data;
if the data are uploaded, calling a third control subunit, wherein the third control subunit is used for controlling a TCP layer to send the data and starting an RTO timer;
and if the data are downloaded, calling a fourth control subunit, wherein the fourth control subunit is used for controlling the TCP layer to send second ACK data to the base station server, and the second ACK data comprises a window with the window size larger than the second window value.
An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements any one of the above methods for cooperatively controlling a TCP layer when executing the computer program.
A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, carries out the steps of any of the above-mentioned methods of cooperatively controlling a TCP layer.
A communication terminal comprising any one of the above systems for cooperatively controlling a TCP layer.
Preferably, the communication terminal supports an LTE communication mode and/or a WCDMA (Wideband Code division multiple Access) communication mode.
The positive progress effects of the invention are as follows: according to the invention, when the current data transmission state parameter of the L2 layer meets the preset condition, the corresponding preset notice is generated and transmitted to the TCP layer, so that the TCP layer can sense the current data transmission quality of the L2 layer in time, and can adjust the current data transmission state according to the generated preset notice to be matched with the current data transmission quality of the L2 layer, namely, the TCP layer can adjust the current data transmission state according to the data transmission quality of the bottom layer in time to realize adjustment of data receiving and transmitting, therefore, the throughput rate of uploading and downloading of the communication terminal is improved based on the cooperation of the L2 layer and the TCP layer, and the utilization rate of wireless resources is improved.
Drawings
Fig. 1 is a flowchart of a method for cooperatively controlling a TCP layer according to embodiment 1 of the present invention.
Fig. 2 is a specific flowchart of a method for cooperatively controlling a TCP layer according to embodiment 1 of the present invention.
Fig. 3 is a flowchart of step S121 in the method for cooperatively controlling the TCP layer according to embodiment 1 of the present invention.
Fig. 4 is a flowchart of step S122 in the method for cooperatively controlling the TCP layer according to embodiment 1 of the present invention.
Fig. 5 is a partial flowchart of a method for cooperatively controlling a TCP layer according to embodiment 2 of the present invention.
Fig. 6 is a partial flowchart of a method for cooperatively controlling a TCP layer according to embodiment 3 of the present invention.
Fig. 7 is a block diagram of a system for cooperatively controlling a TCP layer according to embodiment 4 of the present invention.
Fig. 8 is a block diagram of a cooperative control TCP layer according to embodiment 5 of the present invention.
Fig. 9 is a block diagram of a cooperative control TCP layer according to embodiment 6 of the present invention.
Fig. 10 is a schematic structural diagram of an electronic device according to embodiment 7 of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
Example 1
The present embodiment provides a method for cooperatively controlling a TCP layer applied to a communication terminal, where the communication terminal may support communication modes such as LTE, WCDMA, and the like, and referring to fig. 1, the method of the present embodiment includes:
s11, generating a preset notice corresponding to the preset condition when the current data transmission state parameter of the L2 layer meets the preset condition;
and S12, adjusting the current data transmission state of the TCP layer to be matched with the current data transmission quality of the L2 layer according to the preset notice.
In this embodiment, the L2 layer includes an RLC layer and a MAC layer, and the data transmission status parameters are used to characterize the data transmission quality of the L2 layer, for example, the data transmission status parameters may include, but are not limited to, an operation mode of the RLC layer, a buffer data amount of the RLC layer, an HARQ failure rate of the MAC layer, and the like. In this embodiment, the preset condition may be set by a user according to actual application.
Specifically, in the present embodiment, the preset conditions may include a first preset condition for indicating that the data transmission quality of the L2 layer is poor and a second preset condition for indicating that the data transmission quality of the L2 layer is good. For example, when the communication terminal is located at a station with poor signal quality whose data transmission quality is poor, the first preset condition may be set according to the current data transmission state parameter of the L2 layer. For another example, when the communication terminal is located at a station with a better signal quality and the data transmission quality thereof is better, the second preset condition may be set according to the current data transmission state parameter of the L2 layer.
Referring to fig. 2, step S11 in this embodiment specifically includes:
s111, generating a first preset notification corresponding to a first preset condition when the current data transmission state parameter of the L2 layer meets the first preset condition;
s112, generating a second preset notification corresponding to a second preset condition when the current data transmission state parameter of the L2 layer meets the second preset condition;
step S12 specifically includes:
s121, adjusting the current data transmission state of the TCP layer according to the first preset notification to reduce the data volume transmitted by the TCP layer;
and S122, adjusting the current data transmission state of the TCP layer according to the second preset notice to increase the data volume transmitted by the TCP layer.
In this embodiment, when the communication terminal moves from the station with better signal quality to the station with poorer signal quality, the current data transmission state of the TCP layer is adjusted to be matched with the current poorer data transmission quality of L2 according to the first preset notification. Specifically, because the signal quality of the current station is poor and the transmission quality of the bottom layer data of the communication terminal is poor, the adaptation to the current poor data transmission quality of the L2 layer can be realized by reducing the data amount transmitted by the TCP layer, that is, by making the data amount transmitted by the TCP layer in the current data transmission state less than the data amount transmitted by the TCP layer in the last data transmission state, so as to reduce the link burden and the waste of air interface resources. The data generated by the TCP layer may include, for example: the amount of data uploaded/downloaded by the TCP layer, the retransmitted data packets generated by the TCP layer, etc.
Referring to fig. 3, step S121 specifically includes:
s1211, judging whether the TCP layer is currently used for uploading data or downloading data;
if the data is uploaded, step S1212 is executed; if the data is downloaded, go to step S1213;
s1212, controlling the TCP layer to stop sending data and stopping the RTO timer;
s1213, the TCP layer is controlled to send the first ACK data to the base station server.
In this embodiment, the first ACK data includes a window with a window size smaller than a first window value, where the first window value may be set in a self-defined manner according to an actual application, and in this embodiment, the first window value is preferably a very small value.
In this embodiment, when the communication terminal moves from the station with poor signal quality to the station with better signal quality, the current data transmission state of the TCP layer is adjusted to be adapted to the current data transmission quality of L2 according to the second preset notification. Specifically, because the signal quality of the current station is better, the transmission quality of the bottom data of the communication terminal is better, and the adaptation to the current better data transmission quality of the L2 layer can be realized by increasing the data volume transmitted by the TCP layer, that is, by making the data volume transmitted by the TCP layer in the current data transmission state more than the data volume transmitted by the TCP layer in the last data transmission state, so that the TCP layer timely senses the recovery of the bottom link quality and recovers the fast transceiving of the data based on the sensing, and recovers the uplink and downlink rates and throughput rates of the TCP layer.
Referring to fig. 4, step S122 specifically includes:
s1221, judging whether the TCP layer is currently used for uploading data or downloading data;
if the data is uploaded, go to step S1222; if the data is downloaded, go to step S1223;
s1222, controlling the TCP layer to send data and starting an RTO timer;
and S1223, controlling the TCP layer to send second ACK data to the base station server.
In this embodiment, the second ACK data includes a window whose window size is larger than a second window value, where the second window value may be set in a self-defined manner according to an actual application, and in this embodiment, the second window value is preferably a larger value.
In this embodiment, when the current data transmission state parameter of the L2 layer meets the preset condition, a corresponding preset notification is generated and transmitted to the TCP layer, and thus the TCP layer can sense the current data transmission quality of the L2 layer in time, and can adjust the current data transmission state according to the generated preset notification to adapt to the current data transmission quality of the L2 layer, that is, the TCP layer can adjust the current data transmission state according to the data transmission quality of the bottom layer in time to implement adjustment of data transceiving, and thus, the throughput rate of uploading and downloading of the communication terminal is improved based on cooperation of the L2 layer and the TCP layer, and the utilization rate of wireless resources is improved.
Example 2
On the basis of embodiment 1, this embodiment provides a method for cooperatively controlling a TCP layer, and referring to fig. 5, when the RLC layer is in the AM mode, this embodiment further includes, before step S11:
s21, judging whether the TCP layer is currently used for uploading data or downloading data;
if the data is uploaded, go to step S22; if the data is downloaded, go to step S26;
s22, judging whether the current buffer data volume of the RLC layer is larger than a first threshold value and whether the HARQ failure rate of the MAC layer is larger than a second threshold value;
if yes, go to step S23; if not, go to step S24;
s23, determining that the current data transmission state parameter of the L2 layer meets a first preset condition;
s24, judging whether the current buffer data volume of the RLC layer is smaller than a third threshold value and whether the HARQ failure rate of the MAC layer is smaller than a fourth threshold value;
if yes, go to step S25;
s25, determining that the current data transmission state parameter of the L2 layer meets a second preset condition;
s26, judging whether the current buffer data volume of the RLC layer is larger than a fifth threshold value and whether the HARQ failure rate of the MAC layer is larger than a sixth threshold value;
if yes, go to step S27; if not, go to step S28;
s27, determining that the current data transmission state parameter of the L2 layer meets a first preset condition;
s28, judging whether the current buffer data volume of the RLC layer is smaller than a seventh threshold value and whether the HARQ failure rate of the MAC layer is smaller than an eighth threshold value;
if yes, go to step S29;
and S29, determining that the current data transmission state parameter of the L2 layer meets a second preset condition.
In this embodiment, the first threshold to the eighth threshold may be set in a self-defined manner according to actual applications, where the first threshold is greater than the third threshold, the second threshold is greater than the fourth threshold, the fifth threshold is greater than the seventh threshold, and the sixth threshold is greater than the eighth threshold.
In this embodiment, step S1212 is executed after step S23, and step S1213 is executed after step S27, so as to adjust the current data transmission status of the TCP layer to be adapted to the current poor data transmission quality of L2, thereby reducing the link burden and air interface resource waste by reducing the data amount transmitted by the TCP layer.
In the present embodiment, step S1222 is executed after step S25, step S1223 is executed after step S29, the current data transmission status of the TCP layer is adjusted to match the currently better data transmission quality of L2, the TCP layer recovers the fast transceiving of data in time and the uplink and downlink rate and throughput rate of the TCP layer by increasing the data amount transmitted by the TCP layer.
On the basis of embodiment 1, this embodiment provides a specific implementation manner for determining a preset condition that a data transmission state parameter of the L2 layer satisfies when the RLC layer is in the AM mode, which is beneficial to implementing adjustment of a data transmission state of the TCP layer, and further beneficial to the TCP layer to adjust data transceiving in time according to data transmission quality of a bottom layer, and beneficial to improving throughput rate of uploading and downloading of a communication terminal and radio resource utilization rate based on cooperation of the L2 layer and the TCP layer.
Example 3
On the basis of embodiment 1, this embodiment provides a method for cooperatively controlling a TCP layer, and referring to fig. 6, when the RLC layer is in the UM mode, this embodiment further includes, before step S11:
s31, judging whether the TCP layer is currently used for uploading data or downloading data;
if the data is uploaded, go to step S32; if the data is downloaded, go to step S36;
s32, judging whether the HARQ failure rate of the MAC layer is larger than a ninth threshold value;
if yes, go to step S33; if not, go to step S34;
s33, determining that the current data transmission state parameter of the L2 meets a first preset condition;
s34, judging whether the HARQ failure rate of the MAC layer is smaller than a tenth threshold value;
if yes, go to step S35;
s35, determining that the current data transmission state parameter of the L2 layer meets a second preset condition;
s36, judging whether the HARQ failure rate of the MAC layer is larger than an eleventh threshold;
if yes, go to step S37; if not, go to step S38;
s37, determining that the current data transmission state parameter of the L2 layer meets a first preset condition;
s38, judging whether the HARQ failure rate of the MAC layer is smaller than a twelfth threshold value;
if yes, go to step S39;
and S39, determining that the current data transmission state parameter of the L2 layer meets a second preset condition.
In this embodiment, the ninth threshold to the twelfth threshold may be set in a self-defined manner according to practical applications, where the ninth threshold is greater than the tenth threshold, and the eleventh threshold is greater than the twelfth threshold.
In this embodiment, step S1212 is executed after step S33, and step S1213 is executed after step S37, so as to adjust the current data transmission status of the TCP layer to be adapted to the current poor data transmission quality of L2, thereby reducing the link burden and air interface resource waste by reducing the data amount transmitted by the TCP layer.
In the present embodiment, step S1222 is executed after step S35, step S1223 is executed after step S39, the current data transmission status of the TCP layer is adjusted to match the currently better data transmission quality of L2, the TCP layer recovers the fast transceiving of data in time and the uplink and downlink rate and throughput rate of the TCP layer by increasing the data amount transmitted by the TCP layer.
On the basis of embodiment 1, this embodiment provides a specific implementation manner for determining a preset condition that a data transmission state parameter of the L2 layer satisfies when the RLC layer is in the UM mode, which is beneficial to implementing adjustment of a data transmission state of the TCP layer, and further beneficial to the TCP layer to adjust data transceiving in time according to data transmission quality of a bottom layer, and beneficial to improving throughput rate of uploading and downloading of a communication terminal and radio resource utilization rate based on cooperation of the L2 layer and the TCP layer.
Example 4
The present embodiment provides a system for cooperatively controlling a TCP layer applied to a communication terminal, wherein the communication terminal can support communication modes such as LTE, WCDMA, and the like, and referring to fig. 7, the system of the present embodiment includes:
a generating module 41, configured to generate a preset notification corresponding to a preset condition when a current data transmission state parameter of the L2 layer meets the preset condition;
and an adjusting module 42, configured to adjust the current data transmission state of the TCP layer to be adapted to the current data transmission quality of the L2 layer according to the preset notification.
In this embodiment, the L2 layer includes an RLC layer and a MAC layer, and the data transmission status parameters are used to characterize the data transmission quality of the L2 layer, for example, the data transmission status parameters may include, but are not limited to, an operation mode of the RLC layer, a buffer data amount of the RLC layer, an HARQ failure rate of the MAC layer, and the like. In this embodiment, the preset condition may be set by a user according to actual application.
Specifically, in the present embodiment, the preset conditions may include a first preset condition for indicating that the data transmission quality of the L2 layer is poor and a second preset condition for indicating that the data transmission quality of the L2 layer is good. For example, when the communication terminal is located at a station with poor signal quality whose data transmission quality is poor, the first preset condition may be set according to the current data transmission state parameter of the L2 layer. For another example, when the communication terminal is located at a station with a better signal quality and the data transmission quality thereof is better, the second preset condition may be set according to the current data transmission state parameter of the L2 layer.
The generating module 41 in this embodiment specifically includes:
a first generating unit 411, configured to generate a first preset notification corresponding to a first preset condition when a current data transmission state parameter of the L2 layer satisfies the first preset condition;
a second generating unit 412, configured to generate a second preset notification corresponding to a second preset condition when the current data transmission state parameter of the L2 layer satisfies the second preset condition;
the adjusting module 42 specifically includes:
a first adjusting unit 421, configured to adjust a current data transmission state of the TCP layer according to a first preset notification to reduce a data amount currently transmitted by the TCP layer;
a second adjusting unit 422, configured to adjust a current data transmission state of the TCP layer according to a second preset notification to increase the amount of data currently transmitted by the TCP layer.
In this embodiment, when the communication terminal moves from the station with better signal quality to the station with poorer signal quality, the current data transmission state of the TCP layer is adjusted to be matched with the current poorer data transmission quality of L2 according to the first preset notification. Specifically, because the signal quality of the current station is poor and the transmission quality of the bottom layer data of the communication terminal is poor, the adaptation to the current poor data transmission quality of the L2 layer can be realized by reducing the data amount transmitted by the TCP layer, that is, by making the data amount transmitted by the TCP layer in the current data transmission state less than the data amount transmitted by the TCP layer in the last data transmission state, so as to reduce the link burden and the waste of air interface resources. The data generated by the TCP layer may include, for example: the amount of data uploaded/downloaded by the TCP layer, the retransmitted data packets generated by the TCP layer, etc.
In this embodiment, the first adjusting unit 421 specifically includes:
a first determining subunit 4211, configured to determine whether the TCP layer is currently used to upload data or download data;
if the data is uploaded, the first control subunit 4212 is called to control the TCP layer to stop sending the data and stop the RTO timer;
if the data is downloaded, the second control subunit 4213 is invoked, configured to control the TCP layer to send the first ACK data to the base station server.
In this embodiment, the first ACK data includes a window with a window size smaller than a first window value, where the first window value may be set in a self-defined manner according to an actual application, and in this embodiment, the first window value is preferably a very small value.
In this embodiment, when the communication terminal moves from the station with poor signal quality to the station with better signal quality, the current data transmission state of the TCP layer is adjusted to be adapted to the current data transmission quality of L2 according to the second preset notification. Specifically, because the signal quality of the current station is better, the transmission quality of the bottom data of the communication terminal is better, and the adaptation to the current better data transmission quality of the L2 layer can be realized by increasing the data volume transmitted by the TCP layer, that is, by making the data volume transmitted by the TCP layer in the current data transmission state more than the data volume transmitted by the TCP layer in the last data transmission state, so that the TCP layer timely senses the recovery of the bottom link quality and recovers the fast transceiving of the data based on the sensing, and recovers the uplink and downlink rates and throughput rates of the TCP layer.
The second adjusting unit 422 in this embodiment specifically includes:
a second determining subunit 4221, configured to determine whether the TCP layer is currently used to upload data or download data;
if the data is uploaded, a third control subunit 4222 is called, and is used for controlling a TCP layer to send the data and starting an RTO timer;
if the data is downloaded, the fourth control subunit 4223 is invoked, configured to control the TCP layer to send the second ACK data to the base station server.
In this embodiment, the second ACK data includes a window whose window size is larger than a second window value, where the second window value may be set in a self-defined manner according to an actual application, and in this embodiment, the second window value is preferably a larger value.
In this embodiment, when the current data transmission state parameter of the L2 layer meets the preset condition, a corresponding preset notification is generated and transmitted to the TCP layer, and thus the TCP layer can sense the current data transmission quality of the L2 layer in time, and can adjust the current data transmission state according to the generated preset notification to adapt to the current data transmission quality of the L2 layer, that is, the TCP layer can adjust the current data transmission state according to the data transmission quality of the bottom layer in time to implement adjustment of data transceiving, and thus, the throughput rate of uploading and downloading of the communication terminal is improved based on cooperation of the L2 layer and the TCP layer, and the utilization rate of wireless resources is improved.
Example 5
On the basis of embodiment 4, this embodiment provides a system for cooperatively controlling a TCP layer, and referring to fig. 8, when an RLC layer is in an AM mode, the system of this embodiment further includes:
a first judging module 51, configured to judge whether the TCP layer is currently used for uploading data or downloading data; if the data is uploaded, the second judgment module 52 is called; if the data is downloaded, the fourth judgment module 56 is called;
a second determining module 52, configured to determine whether a current buffer data amount of the RLC layer is greater than a first threshold and whether an HARQ failure rate of the MAC layer is greater than a second threshold; if yes, the first determination module 53 is called; if not, the third judgment module 54 is called;
a first determining module 53, configured to determine that a current data transmission status parameter of the L2 layer meets a first preset condition;
a third determining module 54, configured to determine whether the current buffer data amount of the RLC layer is smaller than a third threshold and whether the HARQ failure rate of the MAC layer is smaller than a fourth threshold; if so, the second determination module 55 is invoked;
a second determining module 55, configured to determine that the current data transmission status parameter of the L2 layer meets a second preset condition;
a fourth determining module 56, configured to determine whether the current buffer data amount of the RLC layer is greater than a fifth threshold and whether the HARQ failure rate of the MAC layer is greater than a sixth threshold; if yes, a third determination module 57 is invoked; if not, a fifth judgment module 58 is called;
a third determining module 57, configured to determine that the current data transmission status parameter of the L2 layer meets the first preset condition;
a fifth determining module 58, configured to determine whether the current buffer data amount of the RLC layer is smaller than a seventh threshold and the HARQ failure rate of the MAC layer is smaller than an eighth threshold; if yes, a fourth determination module 59 is invoked;
and the fourth determining module 59 is configured to determine that the current data transmission status parameter of the L2 layer satisfies the second preset condition.
In this embodiment, the first threshold to the eighth threshold may be set in a self-defined manner according to actual applications, where the first threshold is greater than the third threshold, the second threshold is greater than the fourth threshold, the fifth threshold is greater than the seventh threshold, and the sixth threshold is greater than the eighth threshold.
In this embodiment, the first control subunit 4212 is invoked after the first determining module 53 is invoked, the second control subunit 4213 is invoked after the third determining module 57 is invoked, the current data transmission state of the TCP layer is adjusted to be adapted to the current poor data transmission quality of the L2, and the link burden and the waste of air interface resources are reduced by reducing the amount of data transmitted by the TCP layer.
In this embodiment, the third control subunit 4222 is invoked after the second determination module 55 is invoked, the fourth control subunit 4223 is invoked after the fourth determination module 59 is invoked, the current data transmission state of the TCP layer is adjusted to be adapted to the current better data transmission quality of the L2, and the TCP layer timely resumes fast transceiving of data and the uplink and downlink rates and throughput rates of the TCP layer by increasing the data amount transmitted by the TCP layer.
On the basis of embodiment 4, this embodiment provides a specific implementation manner for determining a preset condition that a data transmission state parameter of the L2 layer satisfies when the RLC layer is in the AM mode, which is beneficial to implementing adjustment of a data transmission state of the TCP layer, and further beneficial to the TCP layer to adjust data transceiving in time according to data transmission quality of the bottom layer, and beneficial to improving throughput rate of uploading and downloading of the communication terminal and radio resource utilization rate based on cooperation of the L2 layer and the TCP layer.
Example 6
On the basis of embodiment 4, this embodiment provides a system for cooperatively controlling a TCP layer, and referring to fig. 9, when the RLC layer is in the UM mode, the system of this embodiment further includes:
a sixth determining module 61, configured to determine whether the TCP layer is currently used for uploading data or downloading data; if the data is uploaded, the seventh judging module 62 is called; if the data is downloaded, the ninth judgment module 66 is called;
a seventh determining module 62, configured to determine whether the HARQ failure rate of the MAC layer is greater than a ninth threshold; if yes, a fifth determining module 63 is called; if not, an eighth judging module 64;
a fifth determining module 63, configured to determine that the current data transmission status parameter of L2 satisfies the first preset condition;
an eighth determining module 64, configured to determine whether the HARQ failure rate of the MAC layer is smaller than a tenth threshold; if yes, a sixth determining module 65 is called;
a sixth determining module 65, configured to determine that the current data transmission status parameter of the L2 layer meets a second preset condition;
a ninth determining module 66, configured to determine whether the HARQ failure rate of the MAC layer is greater than an eleventh threshold; if yes, the seventh determining module 67 is called; if not, the tenth judging module 68 is called;
a seventh determining module 67, configured to determine that the current data transmission status parameter of the L2 layer meets the first preset condition;
a tenth determining module 68, configured to determine whether the HARQ failure rate of the MAC layer is smaller than a twelfth threshold; if so, the eighth determination module 69 is invoked;
an eighth determining module 69, configured to determine that the current data transmission status parameter of the L2 layer satisfies the second preset condition.
In this embodiment, the ninth threshold to the twelfth threshold may be set in a self-defined manner according to practical applications, where the ninth threshold is greater than the tenth threshold, and the eleventh threshold is greater than the twelfth threshold.
In this embodiment, after the fifth determining module 63 is invoked, the first control subunit 4212 is invoked, after the seventh determining module 67 is invoked, the second control subunit 4213 is invoked, the current data transmission state of the TCP layer is adjusted to be adapted to the current poor data transmission quality of L2, and the amount of data transmitted by the TCP layer is reduced to reduce the link burden and waste of air interface resources.
In this embodiment, after the sixth determining module 65 is invoked, the third controlling subunit 4222 is invoked, after the eighth determining module 69 is invoked, the fourth controlling subunit 4223 is invoked, the current data transmission state of the TCP layer is adjusted to be adapted to the current better data transmission quality of L2, and by increasing the data amount transmitted by the TCP layer, the TCP layer timely resumes the fast transceiving of data, and timely resumes the uplink and downlink rates and throughput rates of the TCP layer.
On the basis of embodiment 4, this embodiment provides a specific implementation manner for determining a preset condition that a data transmission state parameter of the L2 layer satisfies when the RLC layer is in the UM mode, which is beneficial to implementing adjustment of the data transmission state of the TCP layer, and further beneficial to the TCP layer to adjust data transceiving in time according to the data transmission quality of the bottom layer, and beneficial to improving the throughput rate of uploading and downloading of the communication terminal and the utilization rate of wireless resources based on cooperation of the L2 layer and the TCP layer.
Example 7
The present embodiment provides an electronic device, which may be represented in the form of a computing device (for example, may be a server device), and includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor may implement the method for cooperatively controlling the TCP layer provided in any one of embodiments 1 to 3 when executing the computer program.
Fig. 10 shows a schematic diagram of a hardware structure of the present embodiment, and as shown in fig. 10, the electronic device 9 specifically includes:
at least one processor 91, at least one memory 92, and a bus 93 for connecting the various system components (including the processor 91 and the memory 92), wherein:
the bus 93 includes a data bus, an address bus, and a control bus.
Memory 92 includes volatile memory, such as Random Access Memory (RAM)921 and/or cache memory 922, and can further include Read Only Memory (ROM) 923.
Memory 92 also includes a program/utility 925 having a set (at least one) of program modules 924, such program modules 924 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 thereof, may comprise an implementation of a network environment.
The processor 91 executes various functional applications and data processing, such as the method for cooperatively controlling the TCP layer provided in any one of embodiments 1 to 3 of the present invention, by executing the computer program stored in the memory 92.
The electronic device 9 may further communicate with one or more external devices 94 (e.g., a keyboard, a pointing device, etc.). Such communication may be through an input/output (I/O) interface 95. Also, the electronic device 9 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 96. The network adapter 96 communicates with the other modules of the electronic device 9 via the bus 93. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 9, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the electronic device are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module, according to embodiments of the application. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Example 8
The present embodiment provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the steps of the method of cooperatively controlling the TCP layer provided in any one of embodiments 1 to 3.
More specific examples, among others, that the readable storage medium may employ may include, but are not limited to: a portable disk, a hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes program code for causing a terminal device to execute the steps of implementing the method for cooperatively controlling a TCP layer according to any one of embodiments 1 to 3, when the program product is run on the terminal device.
Where program code for carrying out the invention is written in any combination of one or more programming languages, the program code may be executed entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device and partly on a remote device or entirely on the remote device.
Example 9
The present embodiment provides a communication terminal, and in particular, the communication terminal provided in this embodiment includes the system for cooperatively controlling the TCP layer provided in any one of embodiments 4 to 6, and furthermore, the communication terminal of this embodiment preferably supports communication modes such as LTE and WCDMA. The communication terminal provided by this embodiment realizes the improvement of the upload and download throughput and the radio resource utilization rate based on the cooperation of the L2 layer and the TCP layer.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (12)

1. A method for cooperatively controlling a TCP layer, the method being applied to a communication terminal, the method comprising:
generating a preset notification corresponding to a preset condition when a current data transmission state parameter of an L2 layer meets the preset condition, wherein the L2 layer comprises an RLC layer and an MAC layer, and the data transmission state parameter is used for representing the data transmission quality of the L2 layer;
and adjusting the current data transmission state of the TCP layer to be matched with the current data transmission quality of the L2 layer according to the preset notice.
2. The method of cooperatively controlling a TCP layer according to claim 1, wherein the preset conditions include a first preset condition for indicating that a data transmission quality of an L2 layer is poor and a second preset condition for indicating that a data transmission quality of an L2 layer is good;
the step of generating a preset notification corresponding to a preset condition when the current data transmission state parameter of the L2 layer satisfies the preset condition includes:
generating a first preset notification corresponding to a first preset condition when the current data transmission state parameter of the L2 layer meets the first preset condition;
generating a second preset notification corresponding to a second preset condition when the current data transmission state parameter of the L2 layer meets the second preset condition;
the step of adjusting the current data transmission state of the TCP layer to be adapted to the current data transmission quality of the L2 layer according to the preset notification includes:
adjusting the current data transmission state of the TCP layer according to the first preset notice to reduce the data volume transmitted by the TCP layer;
and adjusting the current data transmission state of the TCP layer according to the second preset notice to increase the data volume transmitted by the TCP layer currently.
3. The method of cooperatively controlling a TCP layer according to claim 2, wherein the step of generating a preset notification corresponding to a preset condition when the current data transmission state parameter at the L2 layer satisfies the preset condition when the RLC layer is in the AM mode further comprises:
judging whether the TCP layer is currently used for uploading data or downloading data;
if the buffer is used for uploading data, judging whether the current buffer data volume of the RLC layer is larger than a first threshold value or not and whether the HARQ failure rate of the MAC layer is larger than a second threshold value or not;
if the current data transmission state parameter is greater than the first threshold and greater than the second threshold, determining that the current data transmission state parameter of the L2 layer meets a first preset condition;
if the current buffer data size of the RLC layer is not larger than the first threshold or the second threshold, judging whether the current buffer data size of the RLC layer is smaller than a third threshold and the HARQ failure rate of the MAC layer is smaller than a fourth threshold;
if the current data transmission state parameter is smaller than the third threshold and smaller than the fourth threshold, determining that the current data transmission state parameter of the L2 layer meets a second preset condition;
if the data is used for downloading the data, judging whether the current cache data volume of the RLC layer is larger than a fifth threshold value or not and whether the HARQ failure rate of the MAC layer is larger than a sixth threshold value or not;
if the current data transmission state parameter is greater than the fifth threshold and greater than the sixth threshold, determining that the current data transmission state parameter of the L2 layer meets a first preset condition;
if the current buffer data size of the RLC layer is not larger than the fifth threshold or not larger than the sixth threshold, judging whether the current buffer data size of the RLC layer is smaller than a seventh threshold and the HARQ failure rate of the MAC layer is smaller than an eighth threshold;
if the current data transmission state parameter is smaller than the seventh threshold and smaller than the eighth threshold, determining that the current data transmission state parameter of the L2 layer meets a second preset condition;
or the like, or, alternatively,
when the RLC layer is in the UM mode, before the step of generating the preset notification corresponding to the preset condition when the current data transmission state parameter of the L2 layer satisfies the preset condition, the method further includes:
judging whether the RLC layer is currently used for uploading data or downloading data;
if the HARQ failure rate of the MAC layer is larger than a ninth threshold value, judging whether the HARQ failure rate of the MAC layer is larger than the ninth threshold value;
if the current data transmission state parameter is larger than the ninth threshold, determining that the current data transmission state parameter of the L2 layer meets a first preset condition;
if the HARQ failure rate of the MAC layer is not greater than the ninth threshold, judging whether the HARQ failure rate of the MAC layer is less than a tenth threshold;
if the current data transmission state parameter is smaller than the tenth threshold, determining that the current data transmission state parameter of the L2 layer meets a second preset condition;
if the HARQ failure rate of the MAC layer is greater than an eleventh threshold, judging whether the HARQ failure rate of the MAC layer is greater than the eleventh threshold;
if the current data transmission state parameter is larger than the eleventh threshold, determining that the current data transmission state parameter of the L2 layer meets a first preset condition;
if the HARQ failure rate of the MAC layer is not greater than the eleventh threshold, judging whether the HARQ failure rate of the MAC layer is less than a twelfth threshold;
if the current data transmission state parameter is smaller than the twelfth threshold, determining that the current data transmission state parameter of the L2 layer meets a second preset condition.
4. The method of cooperatively controlling a TCP layer according to claim 2, wherein said step of adjusting a current data transmission state of the TCP layer according to said first preset notification to reduce an amount of data currently transmitted by the TCP layer comprises:
judging whether the TCP layer is currently used for uploading data or downloading data;
if the data is uploaded, controlling the TCP layer to stop sending the data and stopping the RTO timer;
if the data are downloaded, controlling the TCP layer to send first ACK data to the base station server, wherein the first ACK data comprise a window with the window size smaller than a first window value;
the step of adjusting the current data transmission state of the TCP layer according to the second preset notification to increase the amount of data currently transmitted by the TCP layer includes:
judging whether the TCP layer is currently used for uploading data or downloading data;
if the data are uploaded, controlling a TCP layer to send the data and starting an RTO timer;
and if the data are downloaded, controlling the TCP layer to send second ACK data to the base station server, wherein the second ACK data comprise a window with the window size larger than a second window value.
5. A system for cooperatively controlling a TCP layer, the system being applied to a communication terminal, the system comprising:
the device comprises a generating module, a sending module and a receiving module, wherein the generating module is used for generating a preset notice corresponding to a preset condition when a current data transmission state parameter of an L2 layer meets the preset condition, the L2 layer comprises an RLC layer and an MAC layer, and the data transmission state parameter is used for representing the data transmission quality of an L2 layer;
and the adjusting module is used for adjusting the current data transmission state of the TCP layer to be matched with the current data transmission quality of the L2 layer according to the preset notice.
6. The system for cooperatively controlling a TCP layer according to claim 5, wherein the preset conditions include a first preset condition for indicating that a data transmission quality of an L2 layer is poor and a second preset condition for indicating that a data transmission quality of an L2 layer is good;
the generation module comprises:
the device comprises a first generating unit, a second generating unit and a control unit, wherein the first generating unit is used for generating a first preset notification corresponding to a first preset condition when a current data transmission state parameter of an L2 layer meets the first preset condition;
a second generating unit, configured to generate a second preset notification corresponding to a second preset condition when a current data transmission state parameter of the L2 layer satisfies the second preset condition;
the adjustment module includes:
the first adjusting unit is used for adjusting the current data transmission state of the TCP layer according to the first preset notice so as to reduce the data volume transmitted by the TCP layer;
and the second adjusting unit is used for adjusting the current data transmission state of the TCP layer according to the second preset notice so as to increase the data volume transmitted by the TCP layer currently.
7. The system for cooperative control of the TCP layer as in claim 6, wherein when the RLC layer is in AM mode, the system further comprises:
the first judgment module is used for judging whether the TCP layer is currently used for uploading data or downloading data;
if the cache is used for uploading data, a second judgment module is called, and the second judgment module is used for judging whether the current cache data volume of the RLC layer is larger than a first threshold value or not and whether the HARQ failure rate of the MAC layer is larger than a second threshold value or not;
if the current data transmission state parameter is greater than the first threshold and greater than the second threshold, calling a first determining module, wherein the first determining module is used for determining that the current data transmission state parameter of the L2 layer meets a first preset condition;
if the current cache data volume is not larger than the first threshold or the second threshold, calling a third judging module, wherein the third judging module is used for judging whether the current cache data volume of the RLC layer is smaller than a third threshold and the HARQ failure rate of the MAC layer is smaller than a fourth threshold;
if the current data transmission state parameter is smaller than the third threshold and smaller than the fourth threshold, calling a second determining module, wherein the second determining module is used for determining that the current data transmission state parameter of the L2 layer meets a second preset condition;
if the buffer is used for downloading data, calling a fourth judging module, wherein the fourth judging module is used for judging whether the current buffer data volume of the RLC layer is larger than a fifth threshold value or not and whether the HARQ failure rate of the MAC layer is larger than a sixth threshold value or not;
if the current data transmission state parameter is greater than the fifth threshold and greater than the sixth threshold, calling a third determining module, where the third determining module is configured to determine that the current data transmission state parameter of the L2 layer meets a first preset condition;
if the current cache data amount is not greater than the fifth threshold or not greater than the sixth threshold, calling a fifth judging module, wherein the fifth judging module is used for judging whether the current cache data amount of the RLC layer is less than a seventh threshold and the HARQ failure rate of the MAC layer is less than an eighth threshold;
if the current data transmission state parameter is smaller than the seventh threshold and smaller than the eighth threshold, calling a fourth determination module, where the fourth determination module is used to determine that the current data transmission state parameter of the L2 layer meets a second preset condition;
or the like, or, alternatively,
when the RLC layer is in the UM mode, the system further includes:
a sixth judging module, configured to judge whether the RLC layer is currently used for uploading data or downloading data;
if the HARQ failure rate of the MAC layer is larger than a ninth threshold, calling a seventh judging module;
if the current data transmission state parameter is greater than the ninth threshold, calling a fifth determining module, where the fifth determining module is used to determine that the current data transmission state parameter of the L2 layer meets a first preset condition;
if the HARQ failure rate of the MAC layer is not greater than the ninth threshold, calling an eighth judging module, wherein the eighth judging module is used for judging whether the HARQ failure rate of the MAC layer is less than a tenth threshold;
if the current data transmission state parameter is smaller than the tenth threshold, calling a sixth determining module, wherein the sixth determining module is used for determining that the current data transmission state parameter of the L2 layer meets a second preset condition;
if the HARQ failure rate of the MAC layer is greater than an eleventh threshold, calling a ninth judging module;
if the current data transmission state parameter is greater than the eleventh threshold, calling a seventh determining module, where the seventh determining module is configured to determine that the current data transmission state parameter of the L2 layer meets a first preset condition;
if the HARQ failure rate of the MAC layer is not greater than the eleventh threshold, calling a tenth judging module, wherein the tenth judging module is used for judging whether the HARQ failure rate of the MAC layer is less than a twelfth threshold or not;
if the current data transmission state parameter is smaller than the twelfth threshold, an eighth determining module is called, and the eighth determining module is used for determining that the current data transmission state parameter of the L2 layer meets a second preset condition.
8. The system for cooperative control of a TCP layer of claim 6, wherein said first adjustment unit comprises:
the first judgment subunit is used for judging whether the TCP layer is currently used for uploading data or downloading data;
if the data are uploaded, calling a first control subunit, wherein the first control subunit is used for controlling a TCP layer to stop sending the data and stopping an RTO timer;
if the data are downloaded, a second control subunit is called, the second control subunit is used for controlling the TCP layer to send first ACK data to the base station server, and the first ACK data comprise a window with the window size smaller than a first window value;
the second adjusting unit includes:
the second judgment subunit is used for judging whether the TCP layer is currently used for uploading data or downloading data;
if the data are uploaded, calling a third control subunit, wherein the third control subunit is used for controlling a TCP layer to send the data and starting an RTO timer;
and if the data are downloaded, calling a fourth control subunit, wherein the fourth control subunit is used for controlling the TCP layer to send second ACK data to the base station server, and the second ACK data comprises a window with the window size larger than the second window value.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of cooperatively controlling the TCP layer according to any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of cooperative control of a TCP layer according to any one of claims 1 to 4.
11. A communication terminal, characterized in that it comprises a system for cooperative control of the TCP layer according to any of claims 5-8.
12. The communication terminal according to claim 11, wherein the communication terminal supports an LTE communication mode and/or a WCDMA communication mode.
CN202010383878.3A 2020-05-08 2020-05-08 Method, system, device, medium and communication terminal for cooperatively controlling TCP layer Active CN111586755B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211627405.9A CN115967757A (en) 2020-05-08 2020-05-08 Method, system, device, medium and communication terminal for cooperatively controlling TCP layer
CN202010383878.3A CN111586755B (en) 2020-05-08 2020-05-08 Method, system, device, medium and communication terminal for cooperatively controlling TCP layer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010383878.3A CN111586755B (en) 2020-05-08 2020-05-08 Method, system, device, medium and communication terminal for cooperatively controlling TCP layer

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202211627405.9A Division CN115967757A (en) 2020-05-08 2020-05-08 Method, system, device, medium and communication terminal for cooperatively controlling TCP layer

Publications (2)

Publication Number Publication Date
CN111586755A true CN111586755A (en) 2020-08-25
CN111586755B CN111586755B (en) 2022-11-22

Family

ID=72125732

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202211627405.9A Pending CN115967757A (en) 2020-05-08 2020-05-08 Method, system, device, medium and communication terminal for cooperatively controlling TCP layer
CN202010383878.3A Active CN111586755B (en) 2020-05-08 2020-05-08 Method, system, device, medium and communication terminal for cooperatively controlling TCP layer

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202211627405.9A Pending CN115967757A (en) 2020-05-08 2020-05-08 Method, system, device, medium and communication terminal for cooperatively controlling TCP layer

Country Status (1)

Country Link
CN (2) CN115967757A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103001727A (en) * 2011-09-09 2013-03-27 中兴通讯股份有限公司 Method and system for controlling data transmission of radio network
US20170034735A1 (en) * 2015-07-31 2017-02-02 Samsung Electronics Co., Ltd. Apparatus and method for controlling data transmission speed in wireless communication system
CN109314608A (en) * 2016-09-28 2019-02-05 华为技术有限公司 A kind of data transmission method, the network equipment and terminal device
CN109451524A (en) * 2018-09-26 2019-03-08 中兴通讯股份有限公司 A kind of data processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103001727A (en) * 2011-09-09 2013-03-27 中兴通讯股份有限公司 Method and system for controlling data transmission of radio network
US20170034735A1 (en) * 2015-07-31 2017-02-02 Samsung Electronics Co., Ltd. Apparatus and method for controlling data transmission speed in wireless communication system
CN109314608A (en) * 2016-09-28 2019-02-05 华为技术有限公司 A kind of data transmission method, the network equipment and terminal device
CN109451524A (en) * 2018-09-26 2019-03-08 中兴通讯股份有限公司 A kind of data processing method and device

Also Published As

Publication number Publication date
CN111586755B (en) 2022-11-22
CN115967757A (en) 2023-04-14

Similar Documents

Publication Publication Date Title
US6747993B2 (en) Method and apparatus for adjusting a communication timer in a communication network
KR101130479B1 (en) Response for spurious timeout
US7484120B2 (en) Dual protocol layer automatic retransmission request scheme for wireless air interface
US20080101290A1 (en) Apparatus for Arq Controlling in Wireless Portable Internet System and Method Thereof
JP2007089177A (en) Method and apparatus for improving transmission rate of state report signal in radio communication system
CN1677898A (en) Radio communication method and radio communication apparatus using adaptive modulation system
US10594445B2 (en) Method and system to improve link budget of a wireless system
CN108667560B (en) Method and device for adjusting data sending rate of terminal
CN111132358B (en) Data packet transmission method, terminal and storage medium
CN1114308C (en) Method for distributing radio resource in radio communication system
WO2015012936A1 (en) Network congestion control with awareness of random packet losses
CN111865828A (en) Data transmission method, system, electronic device and storage medium
CN101969372B (en) Frame loss prediction based cellular network uplink video communication QoS (Quality of Service) optimization method
CN111586755B (en) Method, system, device, medium and communication terminal for cooperatively controlling TCP layer
KR100684319B1 (en) ARQ control method for using wireless source effectively and apparatus thereof
JP2004080070A (en) Data transfer method, data transfer system and content distribution system
US9246638B2 (en) Method and apparatus for polling transmission status in a wireless communications system
CN111654355B (en) Data transmission method, system, electronic device and storage medium
US20220369151A1 (en) Method and system for channel quality assisted transport in wireless network
CN100438383C (en) Method for controlling sublayer in wireless link aiming at dynamic configuration of packet data service
WO2021212438A1 (en) Data transmission method, apparatus and system, terminal device, and storage medium
CN114020304A (en) LoRaWan-based OTA implementation method, terminal device and computer storage medium
JP2014216742A (en) Base station and communication system
CN114866207B (en) Feedback-based time slot aggregation processing method, system, equipment and medium
WO2020024107A1 (en) Status report sending method and device

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