Method, system, device, medium and communication terminal for collaboratively controlling TCP layer

By generating preset notifications in the L2 layer to adjust the data transmission status of the TCP layer, the problem that the TCP layer cannot sense changes in the underlying link quality in a timely manner is solved, and the throughput and resource utilization of the communication terminal are improved.

CN115967757BActive Publication Date: 2024-11-15SPREADTRUM COMMUNICATION (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211627405.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-08
Publication Date
2024-11-15
Estimated Expiration
2040-05-08

AI Technical Summary

Technical Problem

The TCP layer cannot sense the transmission status of the underlying wireless network in time, resulting in the inability to adjust the data transmission status in time when link quality changes, resulting in invalid retransmission of data packets and resource waste.

Method used

By generating corresponding preset notifications when the current data transmission status parameters of L2 layer meet the preset conditions, adjusting the data transmission status of TCP layer to adapt to the data transmission quality of L2 layer, including reducing or increasing the data volume and adjusting the timer and The window size of ACK data.

Benefits of technology

It realizes timely perception and adjustment of the underlying data transmission quality by TCP layer, and improves the upload and download throughput rate and wireless resource utilization rate of communication terminals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115967757B_ABST
    Figure CN115967757B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system, device, medium and communication terminal for collaboratively controlling a TCP layer. The method is applied to a communication terminal, and includes: generating a preset notification corresponding to the preset condition when the current data transmission state parameter of the L2 layer meets the preset condition, wherein the L2 layer includes the RLC layer and the MAC layer, and the data transmission state parameter is used to characterize the data transmission quality of the L2 layer; adjusting the current data transmission state of the TCP layer to match the current data transmission quality of the L2 layer according to the preset notification. The present invention generates a corresponding preset notification when the current data transmission state parameter of the L2 layer meets the preset condition and transmits it to the TCP layer, thereby, the TCP layer can timely perceive the current data transmission quality of the L2 layer and adjust the current data transmission state according to the preset notification, and improves the upload and download throughput of the communication terminal and the utilization rate of wireless resources based on the collaboration between the L2 layer and the TCP layer.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention patent with application date of May 8, 2020, application number "202010383878.3", and name "Method, system, device, medium and communication terminal for collaborative control of TCP layer". Technical Field

[0002] The present invention relates to the field of wireless communication technology, and in particular to a method, system, device, medium and communication terminal for collaboratively controlling a TCP layer. Background Art

[0003] TCP (Transmission Control Protocol, a connection-oriented, reliable, byte-stream-based transport layer communication protocol) was originally designed for wired networks, so it has certain limitations in adaptability to underlying wireless networks such as LTE (Long Term Evolution, a wireless data communication technology standard). For example, when using LTE for dynamic uploading or downloading, the TCP layer cannot perceive the underlying transmission status in time, and cannot adjust data transmission and reception in time according to the underlying transmission status.

[0004] Specifically, in the application scenario where the communication terminal is used to dynamically upload or download, the quality of the underlying link deteriorates when the communication terminal passes through a site with poor signal quality. The deterioration of the underlying uplink transmission or downlink reception quality will cause the RTT (Round-Trip Time) to increase. However, since the TCP layer cannot perceive these link abnormalities in time, the TCP layer still works according to its own timer and retransmission mechanism, resulting in a large number of invalid retransmitted data packets in the uplink when the communication terminal uploads or in the downlink when downloading. These retransmitted data packets not only do not contribute to the throughput, but also cause link burden and waste of air interface resources.

[0005] In addition, the quality of the underlying link is restored when the communication terminal moves from a site with poor signal quality to a site with better signal quality. However, since the TCP layer has already considered the network congested at the site with poor signal quality, even though the quality of the underlying link has been restored, the TCP layer still starts slowly due to failure to perceive the recovery of the underlying link quality in time, and cannot restore the rapid sending and receiving of data in time, which has a significant impact on the uplink and downlink rates and throughput. Summary of the invention

[0006] The technical problem to be solved by the present invention is to overcome the defect in the prior art that the TCP layer cannot timely perceive the underlying transmission situation, and to provide a method, system, device, medium and communication terminal for collaboratively controlling the TCP layer.

[0007] The present invention solves the above technical problems through the following technical solutions:

[0008] A method for collaboratively controlling a TCP layer, the method being applied to a communication terminal, the method comprising:

[0009] generating a preset notification corresponding to the preset condition when a current data transmission state parameter of an L2 (Layer 2) layer meets a preset condition, wherein the L2 layer includes an RLC (Radio Link Control) layer and a MAC (Medium Access Control) layer, and the data transmission state parameter is used to characterize the data transmission quality of the L2 layer;

[0010] According to the preset notification, the current data transmission state of the TCP layer is adjusted to match the current data transmission quality of the L2 layer.

[0011] Preferably, the preset condition includes a first preset condition for characterizing that the data transmission quality of the L2 layer is poor and a second preset condition for characterizing that the data transmission quality of the L2 layer is good;

[0012] The step of generating a preset notification corresponding to the preset condition when the current data transmission state parameter of the L2 layer meets the preset condition comprises:

[0013] generating a first preset notification corresponding to the first preset condition when a current data transmission state parameter of the L2 layer satisfies the first preset condition;

[0014] generating a second preset notification corresponding to the second preset condition when the current data transmission state parameter of the L2 layer meets the second preset condition;

[0015] The step of adjusting the current data transmission state of the TCP layer to match the current data transmission quality of the L2 layer according to the preset notification includes:

[0016] adjusting the current data transmission state of the TCP layer according to the first preset notification to reduce the amount of data currently transmitted by the TCP layer;

[0017] The current data transmission state of the TCP layer is adjusted according to the second preset notification to increase the amount of data currently transmitted by the TCP layer.

[0018] Preferably, when the RLC layer is in AM (Acknowledge Mode) mode, before the step of generating a preset notification corresponding to the preset condition when the current data transmission state parameter of the L2 layer meets the preset condition, the method further includes:

[0019] Determine whether the TCP layer is currently used to upload or download data;

[0020] If it is used to upload data, it is determined whether the current buffered data amount of the RLC layer is greater than a first threshold and whether the HARQ (Hybrid Automatic Repeat Request) failure rate of the MAC layer is greater than a second threshold;

[0021] If it is greater than the first threshold and greater than the second threshold, it is determined that the current data transmission state parameter of the L2 layer meets the first preset condition;

[0022] If it is not greater than the first threshold or not greater than the second threshold, determining whether the current buffered data amount of the RLC layer is less than a third threshold and whether the HARQ failure rate of the MAC layer is less than a fourth threshold;

[0023] If it is less than the third threshold and less than the fourth threshold, it is determined that the current data transmission state parameter of the L2 layer meets the second preset condition;

[0024] If used for downloading data, determining whether the current buffered 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;

[0025] If it is greater than the fifth threshold and greater than the sixth threshold, it is determined that the current data transmission state parameter of the L2 layer meets the first preset condition;

[0026] If it is not greater than the fifth threshold or not greater than the sixth threshold, determining whether the current buffered data amount of the RLC layer is less than the seventh threshold and whether the HARQ failure rate of the MAC layer is less than the eighth threshold;

[0027] If it is less than the seventh threshold and less than the eighth threshold, it is determined that the current data transmission state parameter of the L2 layer meets the second preset condition;

[0028] or,

[0029] When the RLC layer is in UM (Un-acknowledge Mode, unacknowledged mode), before the step of generating a preset notification corresponding to the preset condition when the current data transmission state parameter of the L2 layer meets the preset condition, the step further includes:

[0030] Determine whether the RLC layer is currently used to upload data or download data;

[0031] If used for uploading data, determining whether the HARQ failure rate of the MAC layer is greater than a ninth threshold;

[0032] If it is greater than the ninth threshold, it is determined that the current data transmission state parameter of the L2 layer meets the first preset condition;

[0033] If it is not greater than the ninth threshold, determining whether the HARQ failure rate of the MAC layer is less than the tenth threshold;

[0034] If it is less than the tenth threshold, determining that the current data transmission state parameter of the L2 layer meets the second preset condition;

[0035] If used for downloading data, determining whether the HARQ failure rate of the MAC layer is greater than an eleventh threshold;

[0036] If it is greater than the eleventh threshold, it is determined that the current data transmission state parameter of the L2 layer meets the first preset condition;

[0037] If it is not greater than the eleventh threshold, determining whether the HARQ failure rate of the MAC layer is less than the twelfth threshold;

[0038] If it is less than the twelfth threshold, it is determined that the current data transmission state parameter of the L2 layer meets the second preset condition.

[0039] Preferably, the step of adjusting the current data transmission state of the TCP layer according to the first preset notification to reduce the amount of data currently transmitted by the TCP layer includes:

[0040] Determine whether the TCP layer is currently used to upload or download data;

[0041] If uploading data, the TCP layer is controlled to stop sending data and the RTO (Retransmission Timeout, TCP timeout retransmission mechanism) timer is stopped;

[0042] If downloading data, controlling the TCP layer to send first ACK (Acknowledge) data to the base station server, wherein the first ACK data includes a window whose window size is smaller than the first window value;

[0043] 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 comprises:

[0044] Determine whether the TCP layer is currently used to upload or download data;

[0045] If uploading data, control the TCP layer to send data and start the RTO timer;

[0046] If data is downloaded, the TCP layer is controlled to send second ACK data to the base station server, where the second ACK data includes a window whose window size is greater than the second window value.

[0047] A system for collaboratively controlling a TCP layer, the system being applied to a communication terminal, the system comprising:

[0048] A generating module, configured to generate a preset notification corresponding to a preset condition when a current data transmission state parameter of the L2 layer meets a preset condition, wherein the L2 layer includes an RLC layer and a MAC layer, and the data transmission state parameter is used to characterize the data transmission quality of the L2 layer;

[0049] The adjustment module is used to adjust the current data transmission state of the TCP layer to match the current data transmission quality of the L2 layer according to the preset notification.

[0050] Preferably, the preset condition includes a first preset condition for characterizing that the data transmission quality of the L2 layer is poor and a second preset condition for characterizing that the data transmission quality of the L2 layer is good;

[0051] The generation module comprises:

[0052] A first generating unit, 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;

[0053] A second generating unit, configured to generate a second preset notification corresponding to the second preset condition when the current data transmission state parameter of the L2 layer meets the second preset condition;

[0054] The adjustment module comprises:

[0055] A first adjusting unit, configured to adjust a current data transmission state of the TCP layer according to the first preset notification to reduce an amount of data currently transmitted by the TCP layer;

[0056] The second adjusting unit is used to adjust 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.

[0057] Preferably,

[0058] When the RLC layer is in the AM mode, the system further comprises:

[0059] The first judgment module is used to judge whether the TCP layer is currently used to upload data or download data;

[0060] If it is used to upload data, calling a second judgment module, the second judgment module is used to judge whether the current cache data amount of the RLC layer is greater than the first threshold and whether the HARQ failure rate of the MAC layer is greater than the second threshold;

[0061] If it is greater than the first threshold and greater than the second threshold, calling a first determination module, the first determination module is used to determine that the current data transmission state parameter of the L2 layer meets a first preset condition;

[0062] If it is not greater than the first threshold or not greater than the second threshold, calling a third judgment module, the third judgment module is used to judge whether the current cache data amount of the RLC layer is less than the third threshold and whether the HARQ failure rate of the MAC layer is less than the fourth threshold;

[0063] If it is less than the third threshold and less than the fourth threshold, calling a second determination module, the second determination module is used to determine that the current data transmission state parameter of the L2 layer meets the second preset condition;

[0064] If it is used to download data, calling a fourth judgment module, the fourth judgment module is used to judge whether the current cache data amount of the RLC layer is greater than the fifth threshold and whether the HARQ failure rate of the MAC layer is greater than the sixth threshold;

[0065] If it is greater than the fifth threshold and greater than the sixth threshold, calling a third determination module, the third determination module is used to determine that the current data transmission state parameter of the L2 layer meets the first preset condition;

[0066] If it is not greater than the fifth threshold or not greater than the sixth threshold, calling a fifth judgment module, wherein the fifth judgment module is used to judge whether the current cache data amount of the RLC layer is less than the seventh threshold and whether the HARQ failure rate of the MAC layer is less than the eighth threshold;

[0067] If it is less than the seventh threshold and less than the eighth threshold, calling a fourth determination module, the fourth determination module is used to determine that the current data transmission state parameter of the L2 layer meets the second preset condition;

[0068] or,

[0069] When the RLC layer is in UM mode, the system further includes:

[0070] A sixth determination module, used to determine whether the RLC layer is currently used to upload data or download data;

[0071] If it is used to upload data, calling the seventh judgment module, the seventh judgment module is used to judge whether the HARQ failure rate of the MAC layer is greater than the ninth threshold;

[0072] If it is greater than the ninth threshold, calling a fifth determination module, the fifth determination module is used to determine that the current data transmission state parameter of the L2 layer meets the first preset condition;

[0073] If it is not greater than the ninth threshold, calling the eighth judgment module, the eighth judgment module is used to judge whether the HARQ failure rate of the MAC layer is less than the tenth threshold;

[0074] If it is less than the tenth threshold, calling a sixth determination module, the sixth determination module is used to determine that the current data transmission state parameter of the L2 layer meets the second preset condition;

[0075] If it is used to download data, calling the ninth judgment module, the ninth judgment module is used to judge whether the HARQ failure rate of the MAC layer is greater than the eleventh threshold;

[0076] If it is greater than the eleventh threshold, calling the seventh determination module, the seventh determination module is used to determine that the current data transmission state parameter of the L2 layer meets the first preset condition;

[0077] If it is not greater than the eleventh threshold, calling the tenth judgment module, the tenth judgment module is used to judge whether the HARQ failure rate of the MAC layer is less than the twelfth threshold;

[0078] If it is less than the twelfth threshold, an eighth determination module is called, and the eighth determination module is used to determine whether the current data transmission state parameter of the L2 layer meets the second preset condition.

[0079] Preferably, the first adjustment unit includes:

[0080] A first judgment subunit is used to judge whether the TCP layer is currently used to upload data or download data;

[0081] If data is uploaded, the first control subunit is called, and the first control subunit is used to control the TCP layer to stop sending data and stop the RTO timer;

[0082] If downloading data, calling a second control subunit, the second control subunit is used to control the TCP layer to send first ACK data to the base station server, the first ACK data including a window with a window size smaller than the first window value;

[0083] The second adjustment unit includes:

[0084] The second judgment subunit is used to judge whether the TCP layer is currently used to upload data or download data;

[0085] If data is uploaded, the third control subunit is called, and the third control subunit is used to control the TCP layer to send data and start the RTO timer;

[0086] If data is downloaded, the fourth control subunit is called, and the fourth control subunit is used to control the TCP layer to send second ACK data to the base station server, and the second ACK data includes a window whose window size is larger than the second window value.

[0087] A method for collaboratively controlling a TCP layer, characterized in that it is applied to a communication terminal, and the method for collaboratively controlling a TCP layer comprises:

[0088] When the RLC layer is in UM mode, determining whether the RLC layer is currently used to upload data or download data;

[0089] If used for uploading data, determining whether the HARQ failure rate of the MAC layer is greater than a ninth threshold;

[0090] If it is greater than the ninth threshold, it is determined that the current data transmission state parameter of the L2 layer meets the first preset condition;

[0091] If it is not greater than the ninth threshold, determining whether the HARQ failure rate of the MAC layer is less than the tenth threshold;

[0092] If it is less than the tenth threshold, determining that the current data transmission state parameter of the L2 layer meets the second preset condition;

[0093] If used for downloading data, determining whether the HARQ failure rate of the MAC layer is greater than an eleventh threshold;

[0094] If it is greater than the eleventh threshold, it is determined that the current data transmission state parameter of the L2 layer meets the first preset condition;

[0095] If it is not greater than the eleventh threshold, determining whether the HARQ failure rate of the MAC layer is less than the twelfth threshold;

[0096] If it is less than the twelfth threshold, determining that the current data transmission state parameter of the L2 layer meets the second preset condition;

[0097] generating a first preset notification corresponding to the first preset condition when the current data transmission state parameter of the L2 layer meets the first preset condition;

[0098] generating a second preset notification corresponding to the second preset condition when the current data transmission state parameter of the L2 layer meets the second preset condition;

[0099] The L2 layer includes an RLC layer and a MAC layer, the data transmission state parameter is used to characterize the data transmission quality of the L2 layer, the first preset condition is used to characterize that the data transmission quality of the L2 layer is poor, and the second preset condition is used to characterize that the data transmission quality of the L2 layer is good;

[0100] adjusting the current data transmission state of the TCP layer according to the first preset notification to reduce the amount of data currently transmitted by the TCP layer;

[0101] The current data transmission state of the TCP layer is adjusted according to the second preset notification to increase the amount of data currently transmitted by the TCP layer.

[0102] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, any one of the above-mentioned methods for collaboratively controlling a TCP layer is implemented.

[0103] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of any of the above-mentioned methods for collaboratively controlling a TCP layer.

[0104] A communication terminal comprises any one of the above-mentioned systems for collaboratively controlling the TCP layer.

[0105] Preferably, the communication terminal supports LTE communication mode and / or WCDMA (Wideband Code Division Multiple Access) communication mode.

[0106] The positive progressive effect of the present invention is that when the current data transmission state parameters of the L2 layer meet the preset conditions, the present invention generates a corresponding preset notification and transmits it to the TCP layer. As a result, the TCP layer can timely perceive the current data transmission quality of the L2 layer, and can also 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 timely adjust the current data transmission state according to the data transmission quality of the underlying layer to adjust the data transmission and reception. As a result, the upload and download throughput of the communication terminal is improved based on the collaboration between the L2 layer and the TCP layer, and the utilization rate of wireless resources is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0107] Figure 1 This is a flowchart of a method for collaboratively controlling a TCP layer according to Embodiment 1 of the present invention.

[0108] Figure 2 This is a specific flow chart of the method for collaboratively controlling the TCP layer according to Example 1 of the present invention.

[0109] Figure 3 This is a flowchart of step S121 in the method for collaboratively controlling the TCP layer according to embodiment 1 of the present invention.

[0110] Figure 4 This is a flowchart of step S122 in the method for collaboratively controlling the TCP layer according to embodiment 1 of the present invention.

[0111] Figure 5 This is a partial flow chart of the method for collaboratively controlling the TCP layer according to embodiment 2 of the present invention.

[0112] Figure 6 This is a partial flow chart of the method for collaboratively controlling the TCP layer according to embodiment 3 of the present invention.

[0113] Figure 7 This is a module diagram of a system for collaboratively controlling a TCP layer according to Embodiment 4 of the present invention.

[0114] Figure 8 Schematic diagram of the modules of the collaborative control TCP layer according to Embodiment 5 of the present invention.

[0115] Fig. 9 Schematic diagram of the modules of the collaborative control TCP layer according to Example 6 of the present invention.

[0116] Fig.10 Schematic diagram of the structure of an electronic device according to Embodiment 7 of the present invention. DETAILED DESCRIPTION

[0117] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.

[0118] Example 1

[0119] This embodiment provides a method for collaboratively controlling a TCP layer applied to a communication terminal, wherein the communication terminal may support communication modes such as LTE and WCDMA, and refer to Figure 1 , the method of this embodiment includes:

[0120] S11. When the current data transmission state parameter of the L2 layer meets the preset condition, a preset notification corresponding to the preset condition is generated;

[0121] S12. According to the preset notification, adjust the current data transmission state of the TCP layer to match the current data transmission quality of the L2 layer.

[0122] In this embodiment, the L2 layer includes the RLC layer and the MAC layer, and the data transmission state parameter is used to characterize the data transmission quality of the L2 layer. For example, the data transmission state parameter may include but is not limited to the working mode of the RLC layer, the amount of cached data of the RLC layer, the HARQ failure rate of the MAC layer, etc. In addition, in this embodiment, the data transmission state parameter may also include the working mode of the RLC layer (for example, AM mode and UM mode). In this embodiment, the preset conditions can be customized according to the actual application.

[0123] Specifically, in this embodiment, the preset condition may include a first preset condition for characterizing that the data transmission quality of the L2 layer is poor and a second preset condition for characterizing that the data transmission quality of the L2 layer is good. For example, when the communication terminal is located at a site with poor signal quality, its data transmission quality is poor, and the first preset condition can 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 site with good signal quality, its data transmission quality is good, and the second preset condition can be set according to the current data transmission state parameter of the L2 layer.

[0124] Reference Figure 2 In this embodiment, step S11 specifically includes:

[0125] S111. When a current data transmission state parameter of the L2 layer satisfies a first preset condition, generating a first preset notification corresponding to the first preset condition;

[0126] S112, generating a second preset notification corresponding to the second preset condition when the current data transmission state parameter of the L2 layer meets the second preset condition;

[0127] Step S12 specifically includes:

[0128] S121, adjusting the current data transmission state of the TCP layer according to the first preset notification to reduce the amount of data currently transmitted by the TCP layer;

[0129] S122. Adjust 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.

[0130] In this embodiment, when the communication terminal moves from a site with better signal quality to a site with worse signal quality, the current data transmission state of the TCP layer is adjusted to match the current poor data transmission quality of L2 according to the first preset notification. Specifically, since the signal quality of the current site is poor, the underlying data transmission quality of the communication terminal is poor, and the amount of data transmitted by the TCP layer can be reduced, that is, the amount of data transmitted by the TCP layer in the current data transmission state is less than the amount of data transmitted by the TCP layer in the previous data transmission state, so as to match the current poor data transmission quality of the L2 layer, thereby reducing 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 retransmission data packets generated by the TCP layer, etc.

[0131] Reference Figure 3 , step S121 specifically includes:

[0132] S1211, determining whether the TCP layer is currently used to upload data or download data;

[0133] If data is uploaded, step S1212 is executed; if data is downloaded, step S1213 is executed;

[0134] S1212, control the TCP layer to stop sending data and stop the RTO timer;

[0135] S1213. Control the TCP layer to send the first ACK data to the base station server.

[0136] In this embodiment, the first ACK data includes a window whose window size is smaller than a first window value, wherein the first window value can be customized according to actual application. In this embodiment, the first window value is preferably a very small value.

[0137] In this embodiment, when the communication terminal moves from a site with poor signal quality to a site with good signal quality, the current data transmission state of the TCP layer is adjusted to match the current good data transmission quality of L2 according to the second preset notification. Specifically, since the signal quality of the current site is good, the underlying data transmission quality of the communication terminal is good, and the adaptation to the current good data transmission quality of the L2 layer can be achieved by increasing the amount of data transmitted by the TCP layer, that is, making the amount of data transmitted by the TCP layer in the current data transmission state greater than the amount of data transmitted by the TCP layer in the previous data transmission state, so that the TCP layer can timely perceive the recovery of the underlying link quality and based on this perception, restore the rapid transmission and reception of data, so as to timely restore the uplink and downlink rates and throughput of the TCP layer.

[0138] Reference Figure 4 , step S122 specifically includes:

[0139] S1221, determining whether the TCP layer is currently used to upload data or download data;

[0140] If data is uploaded, step S1222 is executed; if data is downloaded, step S1223 is executed;

[0141] S1222, control the TCP layer to send data and start the RTO timer;

[0142] S1223. Control the TCP layer to send second ACK data to the base station server.

[0143] In this embodiment, the second ACK data includes a window whose window size is larger than a second window value, wherein the second window value can be customized according to actual application. In this embodiment, the second window value is preferably a larger value.

[0144] In this embodiment, when the current data transmission state parameters of the L2 layer meet the preset conditions, the corresponding preset notification is generated and transmitted to the TCP layer. As a result, the TCP layer can timely perceive the current data transmission quality of the L2 layer, and can also 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 timely adjust the current data transmission state according to the data transmission quality of the underlying layer to adjust the data transmission and reception. As a result, the upload and download throughput of the communication terminal is improved based on the collaboration between the L2 layer and the TCP layer, and the utilization rate of wireless resources is improved.

[0145] Example 2

[0146] Based on Example 1, this embodiment provides a method for collaboratively controlling the TCP layer. Figure 5 When the RLC layer is in the AM mode, this embodiment further includes before step S11:

[0147] S21, determining whether the TCP layer is currently used to upload data or download data;

[0148] If data is uploaded, step S22 is executed; if data is downloaded, step S26 is executed;

[0149] S22, determining whether the current buffered data amount of the RLC layer is greater than a first threshold and whether the HARQ failure rate of the MAC layer is greater than a second threshold;

[0150] If yes, execute step S23; if no, execute step S24;

[0151] S23, determining that the current data transmission state parameter of the L2 layer meets the first preset condition;

[0152] S24, determining whether the current buffered data amount of the RLC layer is less than a third threshold and whether the HARQ failure rate of the MAC layer is less than a fourth threshold;

[0153] If yes, execute step S25;

[0154] S25, determining that the current data transmission state parameter of the L2 layer meets the second preset condition;

[0155] S26, determining whether the current buffered data amount of the RLC layer is greater than the fifth threshold and whether the HARQ failure rate of the MAC layer is greater than the sixth threshold;

[0156] If yes, execute step S27; if no, execute step S28;

[0157] S27, determining that the current data transmission state parameter of the L2 layer meets the first preset condition;

[0158] S28. Determine whether the current buffered data amount of the RLC layer is less than the seventh threshold and whether the HARQ failure rate of the MAC layer is less than the eighth threshold;

[0159] If yes, execute step S29;

[0160] S29: Determine whether a current data transmission state parameter of the L2 layer satisfies a second preset condition.

[0161] In this embodiment, the first threshold to the eighth threshold can be customized according to actual applications, wherein 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.

[0162] In this embodiment, step S1212 is executed after step S23, and step S1213 is executed after step S27, so that the current data transmission state of the TCP layer is adjusted to match the current poor data transmission quality of L2, thereby reducing the link burden and waste of air interface resources by reducing the amount of data transmitted by the TCP layer.

[0163] In this embodiment, step S1222 is executed after step S25, and step S1223 is executed after step S29, so that the current data transmission state of the TCP layer is adjusted to match the current good data transmission quality of L2, and the amount of data transmitted by the TCP layer is increased so that the TCP layer can promptly restore the rapid sending and receiving of data, and promptly restore the uplink and downlink rates and throughput of the TCP layer.

[0164] Based on Example 1, this embodiment provides a specific implementation method for determining the preset conditions satisfied by the data transmission status parameters of the L2 layer when the RLC layer is in AM mode, which is conducive to adjusting the data transmission status of the TCP layer, and further conducive to the TCP layer to adjust the data transmission and reception in time according to the data transmission quality of the underlying layer, and is conducive to improving the upload and download throughput of the communication terminal and the utilization of wireless resources based on the collaboration between the L2 layer and the TCP layer.

[0165] Example 3

[0166] Based on Example 1, this embodiment provides a method for collaboratively controlling the TCP layer. Figure 6 When the RLC layer is in UM mode, this embodiment further includes before step S11:

[0167] S31, determining whether the TCP layer is currently used to upload data or download data;

[0168] If data is uploaded, step S32 is executed; if data is downloaded, step S36 is executed;

[0169] S32, determining whether the HARQ failure rate of the MAC layer is greater than a ninth threshold;

[0170] If yes, execute step S33; if no, execute step S34;

[0171] S33, determining that the current data transmission state parameter of L2 meets the first preset condition;

[0172] S34, determining whether the HARQ failure rate of the MAC layer is less than a tenth threshold;

[0173] If yes, execute step S35;

[0174] S35, determining that the current data transmission state parameter of the L2 layer meets the second preset condition;

[0175] S36, determining whether the HARQ failure rate of the MAC layer is greater than an eleventh threshold;

[0176] If yes, execute step S37; if no, execute step S38;

[0177] S37, determining that the current data transmission state parameter of the L2 layer meets the first preset condition;

[0178] S38, determining whether the HARQ failure rate of the MAC layer is less than a twelfth threshold;

[0179] If yes, execute step S39;

[0180] S39: Determine whether the current data transmission state parameter of the L2 layer meets the second preset condition.

[0181] In this embodiment, the ninth threshold to the twelfth threshold can be customized according to actual applications, wherein the ninth threshold is greater than the tenth threshold, and the eleventh threshold is greater than the twelfth threshold.

[0182] In this embodiment, step S1212 is executed after step S33, and step S1213 is executed after step S37, so that the current data transmission state of the TCP layer is adjusted to match the current poor data transmission quality of L2, thereby reducing the link burden and waste of air interface resources by reducing the amount of data transmitted by the TCP layer.

[0183] In this embodiment, step S1222 is executed after step S35, and step S1223 is executed after step S39, so that the current data transmission state of the TCP layer is adjusted to match the current good data transmission quality of L2, and the amount of data transmitted by the TCP layer is increased so that the TCP layer can promptly restore the rapid sending and receiving of data, and promptly restore the uplink and downlink rates and throughput of the TCP layer.

[0184] On the basis of Example 1, this embodiment provides a specific implementation method for determining the preset conditions satisfied by the data transmission state parameters of the L2 layer when the RLC layer is in UM mode, which is conducive to adjusting the data transmission state of the TCP layer, and then facilitating the TCP layer to adjust the data transmission and reception in time according to the data transmission quality of the underlying layer, and is conducive to improving the upload and download throughput of the communication terminal and the utilization of wireless resources based on the collaboration between the L2 layer and the TCP layer.

[0185] Example 4

[0186] This embodiment provides a system for collaboratively controlling a TCP layer applied to a communication terminal, wherein the communication terminal may support communication modes such as LTE and WCDMA, etc. Figure 7 , the system of this embodiment includes:

[0187] 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 satisfies a preset condition;

[0188] The adjustment module 42 is used to adjust the current data transmission state of the TCP layer to match the current data transmission quality of the L2 layer according to the preset notification.

[0189] In this embodiment, the L2 layer includes the RLC layer and the MAC layer, and the data transmission state parameter is used to characterize the data transmission quality of the L2 layer. For example, the data transmission state parameter may include but is not limited to the working mode of the RLC layer, the amount of cached data of the RLC layer, the HARQ failure rate of the MAC layer, etc. In addition, in this embodiment, the data transmission state parameter may also include the working mode of the RLC layer (for example, AM mode and UM mode). In this embodiment, the preset conditions can be customized according to the actual application.

[0190] Specifically, in this embodiment, the preset condition may include a first preset condition for characterizing that the data transmission quality of the L2 layer is poor and a second preset condition for characterizing that the data transmission quality of the L2 layer is good. For example, when the communication terminal is located at a site with poor signal quality, its data transmission quality is poor, and the first preset condition can 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 site with good signal quality, its data transmission quality is good, and the second preset condition can be set according to the current data transmission state parameter of the L2 layer.

[0191] In this embodiment, the generation module 41 specifically includes:

[0192] A first generating unit 411 is configured to generate a first preset notification corresponding to the first preset condition when the current data transmission state parameter of the L2 layer meets the first preset condition;

[0193] The second generating unit 412 is configured to generate a second preset notification corresponding to the second preset condition when the current data transmission state parameter of the L2 layer meets the second preset condition;

[0194] The adjustment module 42 specifically includes:

[0195] 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 an amount of data currently transmitted by the TCP layer;

[0196] The second adjusting unit 422 is configured to adjust 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.

[0197] In this embodiment, when the communication terminal moves from a site with better signal quality to a site with worse signal quality, the current data transmission state of the TCP layer is adjusted to match the current poor data transmission quality of L2 according to the first preset notification. Specifically, since the signal quality of the current site is poor, the underlying data transmission quality of the communication terminal is poor, and the amount of data transmitted by the TCP layer can be reduced, that is, the amount of data transmitted by the TCP layer in the current data transmission state is less than the amount of data transmitted by the TCP layer in the previous data transmission state, so as to match the current poor data transmission quality of the L2 layer, thereby reducing 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 retransmission data packets generated by the TCP layer, etc.

[0198] In this embodiment, the first adjustment unit 421 specifically includes:

[0199] The first determination subunit 4211 is used to determine whether the TCP layer is currently used to upload data or download data;

[0200] If data is uploaded, the first control subunit 4212 is called to control the TCP layer to stop sending data and stop the RTO timer;

[0201] If data is downloaded, the second control subunit 4213 is called to control the TCP layer to send the first ACK data to the base station server.

[0202] In this embodiment, the first ACK data includes a window whose window size is smaller than a first window value, wherein the first window value can be customized according to actual application. In this embodiment, the first window value is preferably a very small value.

[0203] In this embodiment, when the communication terminal moves from a site with poor signal quality to a site with good signal quality, the current data transmission state of the TCP layer is adjusted to match the current good data transmission quality of L2 according to the second preset notification. Specifically, since the signal quality of the current site is good, the underlying data transmission quality of the communication terminal is good, and the adaptation to the current good data transmission quality of the L2 layer can be achieved by increasing the amount of data transmitted by the TCP layer, that is, making the amount of data transmitted by the TCP layer in the current data transmission state greater than the amount of data transmitted by the TCP layer in the previous data transmission state, so that the TCP layer can timely perceive the recovery of the underlying link quality and based on this perception, restore the rapid transmission and reception of data, so as to timely restore the uplink and downlink rates and throughput of the TCP layer.

[0204] In this embodiment, the second adjustment unit 422 specifically includes:

[0205] The second determination subunit 4221 is used to determine whether the TCP layer is currently used to upload data or download data;

[0206] If data is uploaded, the third control subunit 4222 is called to control the TCP layer to send data and start the RTO timer;

[0207] If data is downloaded, the fourth control subunit 4223 is called to control the TCP layer to send the second ACK data to the base station server.

[0208] In this embodiment, the second ACK data includes a window whose window size is larger than a second window value, wherein the second window value can be customized according to actual application. In this embodiment, the second window value is preferably a larger value.

[0209] In this embodiment, when the current data transmission state parameters of the L2 layer meet the preset conditions, the corresponding preset notification is generated and transmitted to the TCP layer. As a result, the TCP layer can timely perceive the current data transmission quality of the L2 layer, and can also 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 timely adjust the current data transmission state according to the data transmission quality of the underlying layer to adjust the data transmission and reception. As a result, the upload and download throughput of the communication terminal is improved based on the collaboration between the L2 layer and the TCP layer, and the utilization rate of wireless resources is improved.

[0210] Example 5

[0211] Based on Example 4, this embodiment provides a system for collaboratively controlling the TCP layer. Figure 8 , when the RLC layer is in the AM mode, the system of this embodiment further includes:

[0212] The first judgment module 51 is used to judge whether the TCP layer is currently used to upload data or download data; if uploading data, the second judgment module 52 is called; if downloading data, the fourth judgment module 56 is called;

[0213] The second judgment module 52 is used to judge whether the current buffered data amount of the RLC layer is greater than the first threshold and whether the HARQ failure rate of the MAC layer is greater than the second threshold; if so, call the first determination module 53; if not, call the third judgment module 54;

[0214] A first determination module 53, configured to determine whether a current data transmission state parameter of the L2 layer satisfies a first preset condition;

[0215] The third judgment module 54 is used to judge whether the current buffered data amount of the RLC layer is less than the third threshold and whether the HARQ failure rate of the MAC layer is less than the fourth threshold; if so, calling the second determination module 55;

[0216] A second determination module 55, configured to determine whether a current data transmission state parameter of the L2 layer satisfies a second preset condition;

[0217] The fourth judgment module 56 is used to judge whether the current buffered data amount of the RLC layer is greater than the fifth threshold and whether the HARQ failure rate of the MAC layer is greater than the sixth threshold; if so, call the third determination module 57; if not, call the fifth judgment module 58;

[0218] A third determination module 57, configured to determine whether a current data transmission state parameter of the L2 layer satisfies a first preset condition;

[0219] A fifth judgment module 58 is used to judge whether the current buffered data amount of the RLC layer is less than the seventh threshold and whether the HARQ failure rate of the MAC layer is less than the eighth threshold; if so, calling the fourth determination module 59;

[0220] The fourth determining module 59 is configured to determine whether the current data transmission state parameter of the L2 layer satisfies a second preset condition.

[0221] In this embodiment, the first threshold to the eighth threshold can be customized according to actual applications, wherein 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.

[0222] In this embodiment, the first control subunit 4212 is called after calling the first determination module 53, and the second control subunit 4213 is called after calling the third determination module 57, so as to adjust the current data transmission state of the TCP layer to match the current poor data transmission quality of L2, thereby reducing the link burden and waste of air interface resources by reducing the amount of data transmitted by the TCP layer.

[0223] In this embodiment, the third control subunit 4222 is called after calling the second determination module 55, and the fourth control subunit 4223 is called after calling the fourth determination module 59, so as to adjust the current data transmission state of the TCP layer to match the current good data transmission quality of L2, and increase the amount of data transmitted by the TCP layer so that the TCP layer can promptly restore the rapid sending and receiving of data, and promptly restore the upstream and downstream rates and throughput of the TCP layer.

[0224] Based on Example 4, this embodiment provides a specific implementation method for determining the preset conditions satisfied by the data transmission status parameters of the L2 layer when the RLC layer is in AM mode, which is conducive to adjusting the data transmission status of the TCP layer, and further conducive to the TCP layer to adjust the data transmission and reception in time according to the data transmission quality of the underlying layer, and is conducive to improving the upload and download throughput of the communication terminal and the utilization of wireless resources based on the collaboration between the L2 layer and the TCP layer.

[0225] Example 6

[0226] Based on Example 4, this embodiment provides a system for collaboratively controlling the TCP layer. Fig. 9 When the RLC layer is in UM mode, the system of this embodiment further includes:

[0227] The sixth judgment module 61 is used to judge whether the TCP layer is currently used to upload data or download data; if uploading data, the seventh judgment module 62 is called; if downloading data, the ninth judgment module 66 is called;

[0228] The seventh judgment module 62 is used to judge whether the HARQ failure rate of the MAC layer is greater than the ninth threshold; if so, the fifth determination module 63 is called; if not, the eighth judgment module 64;

[0229] A fifth determination module 63, configured to determine whether the current data transmission state parameter of L2 satisfies a first preset condition;

[0230] An eighth judging module 64 is used to judge whether the HARQ failure rate of the MAC layer is less than a tenth threshold; if so, calling a sixth determining module 65;

[0231] A sixth determination module 65, configured to determine whether a current data transmission state parameter of the L2 layer satisfies a second preset condition;

[0232] The ninth judgment module 66 is used to judge whether the HARQ failure rate of the MAC layer is greater than the eleventh threshold; if so, the seventh determination module 67 is called; if not, the tenth judgment module 68 is called;

[0233] A seventh determination module 67, configured to determine whether a current data transmission state parameter of the L2 layer satisfies a first preset condition;

[0234] The tenth judging module 68 judges whether the HARQ failure rate of the MAC layer is less than the twelfth threshold; if so, the eighth determining module 69 is called;

[0235] The eighth determination module 69 is configured to determine whether the current data transmission state parameter of the L2 layer satisfies a second preset condition.

[0236] In this embodiment, the ninth threshold to the twelfth threshold can be customized according to actual applications, wherein the ninth threshold is greater than the tenth threshold, and the eleventh threshold is greater than the twelfth threshold.

[0237] In this embodiment, the first control subunit 4212 is called after calling the fifth determination module 63, and the second control subunit 4213 is called after calling the seventh determination module 67 to adjust the current data transmission state of the TCP layer to match the current poor data transmission quality of L2, thereby reducing the link burden and waste of air interface resources by reducing the amount of data transmitted by the TCP layer.

[0238] In this embodiment, the third control subunit 4222 is called after calling the sixth determination module 65, and the fourth control subunit 4223 is called after calling the eighth determination module 69, so as to adjust the current data transmission state of the TCP layer to match the current good data transmission quality of L2, and increase the amount of data transmitted by the TCP layer so that the TCP layer can promptly restore the rapid sending and receiving of data, and promptly restore the uplink and downlink rates and throughput of the TCP layer.

[0239] On the basis of Example 4, this embodiment provides a specific implementation method for determining the preset conditions satisfied by the data transmission state parameters of the L2 layer when the RLC layer is in UM mode, which is conducive to adjusting the data transmission state of the TCP layer, and then facilitating the TCP layer to adjust the data transmission and reception in time according to the data transmission quality of the underlying layer, and is conducive to improving the upload and download throughput of the communication terminal and the utilization of wireless resources based on the collaboration between the L2 layer and the TCP layer.

[0240] Example 7

[0241] This embodiment provides an electronic device, which can be expressed in the form of a computing device (for example, a server device), including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it can implement the method for collaboratively controlling the TCP layer provided in any one of Embodiments 1-3.

[0242] Fig.10 FIG. 4 shows a schematic diagram of the hardware structure of this embodiment. Fig.10 As shown, the electronic device 9 specifically includes:

[0243] At least one processor 91, at least one memory 92, and a bus 93 for connecting different system components (including the processor 91 and the memory 92), wherein:

[0244] The bus 93 includes a data bus, an address bus, and a control bus.

[0245] The memory 92 includes a volatile memory, such as a random access memory (RAM) 921 and / or a cache memory 922 , and may further include a read-only memory (ROM) 923 .

[0246] 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 may include an implementation of a network environment.

[0247] The processor 91 executes various functional applications and data processing by running the computer program stored in the memory 92, such as the method for collaboratively controlling the TCP layer provided in any one of Embodiments 1-3 of the present invention.

[0248] The electronic device 9 can further communicate with one or more external devices 94 (e.g., keyboards, pointing devices, etc.). Such communication can be performed through an input / output (I / O) interface 95. In addition, the electronic device 9 can also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) through a network adapter 96. The network adapter 96 communicates with other modules of the electronic device 9 through a bus 93. It should be understood that, although not shown in the figure, other hardware and / or software modules can 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.

[0249] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.

[0250] Example 8

[0251] This embodiment provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the steps of the method for collaboratively controlling the TCP layer provided in any one of Embodiments 1-3 are implemented.

[0252] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.

[0253] In a possible implementation, the present invention can also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to enable the terminal device to execute the steps of the method for collaboratively controlling the TCP layer described in any one of embodiments 1-3.

[0254] The program code for executing the present invention may be written in any combination of one or more programming languages, and may be executed entirely on a user device, partially on a user device, as an independent software package, partially on a user device and partially on a remote device, or entirely on a remote device.

[0255] Example 9

[0256] This embodiment provides a communication terminal. Specifically, the communication terminal provided by this embodiment includes the system for collaboratively controlling the TCP layer provided by any one of Embodiments 4-6. In addition, the communication terminal of this embodiment preferably supports communication modes such as LTE and WCDMA. The communication terminal provided by this embodiment improves the upload and download throughput and wireless resource utilization based on the collaboration between the L2 layer and the TCP layer.

[0257] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that this is only for illustration and the protection scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.

Claims

1. A method for collaboratively controlling a TCP layer, characterized in that: Applied to a communication terminal, the method for collaboratively controlling a TCP layer includes: When the RLC layer is in AM mode, it determines whether the TCP layer is currently used to upload or download data; If used for uploading data, determining whether the current buffered data amount of the RLC layer is greater than a first threshold and whether the HARQ failure rate of the MAC layer is greater than a second threshold; If the current buffered data amount of the RLC layer is greater than the first threshold and the HARQ failure rate of the MAC layer is greater than the second threshold, determining that the current data transmission state parameter of the L2 layer meets the first preset condition; If the current cache data amount of the RLC layer is not greater than the first threshold or the HARQ failure rate of the MAC layer is not greater than the second threshold, determining whether the current cache data amount of the RLC layer is less than a third threshold and whether the HARQ failure rate of the MAC layer is less than a fourth threshold; If the current buffered data amount of the RLC layer is less than the third threshold and the HARQ failure rate of the MAC layer is less than the fourth threshold, determining that the current data transmission state parameter of the L2 layer meets the second preset condition; If used for downloading data, determining whether the current buffered 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 the current buffered data amount of the RLC layer is greater than the fifth threshold and the HARQ failure rate of the MAC layer is greater than the sixth threshold, determining that the current data transmission state parameter of the L2 layer meets the first preset condition; If the current cache data amount of the RLC layer is not greater than the fifth threshold or the HARQ failure rate of the MAC layer is not greater than the sixth threshold, determining whether the current cache data amount of the RLC layer is less than the seventh threshold and whether the HARQ failure rate of the MAC layer is less than the eighth threshold; If the current buffered data amount of the RLC layer is less than the seventh threshold and the HARQ failure rate of the MAC layer is less than the eighth threshold, determining that the current data transmission state parameter of the L2 layer meets the second preset condition; generating a first preset notification corresponding to the 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 the second preset condition when the current data transmission state parameter of the L2 layer meets the second preset condition; The L2 layer includes an RLC layer and a MAC layer, the data transmission state parameter is used to characterize the data transmission quality of the L2 layer, the first preset condition is used to characterize that the data transmission quality of the L2 layer is poor, and the second preset condition is used to characterize that the data transmission quality of the L2 layer is good; adjusting the current data transmission state of the TCP layer according to the first preset notification to reduce the amount of data currently transmitted by the TCP layer; The current data transmission state of the TCP layer is adjusted according to the second preset notification to increase the amount of data currently transmitted by the TCP layer.

2. The method for collaboratively controlling the TCP layer according to claim 1, characterized in that: Before the step of generating a first preset notification corresponding to the first preset condition when the current data transmission state parameter of the L2 layer satisfies the first preset condition, and before the step of generating a second preset notification corresponding to the second preset condition when the current data transmission state parameter of the L2 layer satisfies the second preset condition, the step includes: When the RLC layer is in UM mode, determining whether the RLC layer is currently used to upload data or download data; If used for uploading data, determining whether the HARQ failure rate of the MAC layer is greater than a ninth threshold; If the HARQ failure rate of the MAC layer is greater than the ninth threshold, determining that the current data transmission state parameter of the L2 layer meets the first preset condition; If the HARQ failure rate of the MAC layer is not greater than the ninth threshold, determining whether the HARQ failure rate of the MAC layer is less than a tenth threshold; If the HARQ failure rate of the MAC layer is less than the tenth threshold, determining that the current data transmission state parameter of the L2 layer meets the second preset condition; If used for downloading data, determining whether the HARQ failure rate of the MAC layer is greater than an eleventh threshold; If the HARQ failure rate of the MAC layer is greater than the eleventh threshold, determining that the current data transmission state parameter of the L2 layer meets the first preset condition; If the HARQ failure rate of the MAC layer is not greater than the eleventh threshold, determining whether the HARQ failure rate of the MAC layer is less than a twelfth threshold; If the HARQ failure rate of the MAC layer is less than the twelfth threshold, it is determined that the current data transmission state parameter of the L2 layer meets the second preset condition.

3. The method for collaboratively controlling the TCP layer according to claim 1, characterized in that: The step of adjusting the current data transmission state of the TCP layer according to the first preset notification to reduce the amount of data currently transmitted by the TCP layer comprises: Determine whether the TCP layer is currently used to upload or download data; If uploading data, the TCP layer is controlled to stop sending data and stop the RTO timer; If downloading data, controlling the TCP layer to send first ACK data to the base station server, wherein the first ACK data includes a window whose window size is smaller than the 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 comprises: Determine whether the TCP layer is currently used to upload or download data; If uploading data, control the TCP layer to send data and start the RTO timer; If downloading data, controlling the TCP layer to send second ACK data to the base station server, wherein the second ACK data includes a window whose window size is greater than the second window value; The first window value is smaller than the second window value.

4. A system for collaboratively controlling a TCP layer, characterized in that: Applied to a communication terminal, the system for collaboratively controlling a TCP layer includes: A first judgment module is used to judge whether the TCP layer is currently used to upload data or download data when the RLC layer is in the AM mode; If it is used to upload data, calling a second judgment module, the second judgment module is used to judge whether the current cache data amount of the RLC layer is greater than the first threshold and whether the HARQ failure rate of the MAC layer is greater than the second threshold; If the current cache data amount of the RLC layer is greater than the first threshold and the HARQ failure rate of the MAC layer is greater than the second threshold, calling a first determination module, the first determination module is used to determine that the current data transmission state parameter of the L2 layer meets the first preset condition; If the current cache data amount of the RLC layer is not greater than the first threshold or the HARQ failure rate of the MAC layer is not greater than the second threshold, calling a third judgment module, wherein the third judgment module is used to judge whether the current cache data amount of the RLC layer is less than the third threshold and whether the HARQ failure rate of the MAC layer is less than the fourth threshold; If the current cache data amount of the RLC layer is less than the third threshold and the HARQ failure rate of the MAC layer is less than the fourth threshold, calling a second determination module, wherein the second determination module is used to determine that the current data transmission state parameter of the L2 layer meets the second preset condition; If it is used to download data, calling a fourth judgment module, the fourth judgment module is used to judge whether the current cache data amount of the RLC layer is greater than the fifth threshold and whether the HARQ failure rate of the MAC layer is greater than the sixth threshold; If the current cache data amount of the RLC layer is greater than the fifth threshold and the HARQ failure rate of the MAC layer is greater than the sixth threshold, calling a third determination module, the third determination module is used to determine that the current data transmission state parameter of the L2 layer meets the first preset condition; If the current cache data amount of the RLC layer is not greater than the fifth threshold or the HARQ failure rate of the MAC layer is not greater than the sixth threshold, calling a fifth judgment module, wherein the fifth judgment module is used to judge whether the current cache data amount of the RLC layer is less than the seventh threshold and whether the HARQ failure rate of the MAC layer is less than the eighth threshold; If the current cache data amount of the RLC layer is less than the seventh threshold and the HARQ failure rate of the MAC layer is less than the eighth threshold, calling a fourth determination module, the fourth determination module is used to determine that the current data transmission state parameter of the L2 layer meets the second preset condition; A first generating unit, 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, 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 a second preset condition; The L2 layer includes an RLC layer and a MAC layer, the data transmission state parameter is used to characterize the data transmission quality of the L2 layer, the first preset condition is used to characterize that the data transmission quality of the L2 layer is poor, and the second preset condition is used to characterize that the data transmission quality of the L2 layer is good; A first adjusting unit, configured to adjust a current data transmission state of the TCP layer according to the first preset notification to reduce an amount of data currently transmitted by the TCP layer; The second adjusting unit is used to adjust 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.

5. The system for collaboratively controlling the TCP layer according to claim 4, characterized in that: The system for collaboratively controlling the TCP layer also includes: A sixth determination module, configured to determine whether the RLC layer is currently used to upload data or download data when the RLC layer is in UM mode; If it is used to upload data, calling the seventh judgment module, the seventh judgment module is used to judge whether the HARQ failure rate of the MAC layer is greater than the ninth threshold; If the HARQ failure rate of the MAC layer is greater than the ninth threshold, calling a fifth determination module, wherein the fifth determination module is used to determine that a current data transmission state parameter of the L2 layer satisfies a first preset condition; If the HARQ failure rate of the MAC layer is not greater than the ninth threshold, calling an eighth judgment module, wherein the eighth judgment module is used to judge whether the HARQ failure rate of the MAC layer is less than a tenth threshold; If the HARQ failure rate of the MAC layer is less than the tenth threshold, calling a sixth determination module, wherein the sixth determination module is used to determine that a current data transmission state parameter of the L2 layer meets a second preset condition; If it is used to download data, calling the ninth judgment module, the ninth judgment module is used to judge whether the HARQ failure rate of the MAC layer is greater than the eleventh threshold; If the HARQ failure rate of the MAC layer is greater than the eleventh threshold, calling a seventh determination module, the seventh determination module is used to determine whether the current data transmission state parameter of the L2 layer meets the first preset condition; If the HARQ failure rate of the MAC layer is not greater than the eleventh threshold, calling a tenth judgment module, wherein the tenth judgment module is used to judge whether the HARQ failure rate of the MAC layer is less than a twelfth threshold; If the HARQ failure rate of the MAC layer is less than the twelfth threshold, an eighth determination module is called, and the eighth determination module is used to determine whether the current data transmission state parameter of the L2 layer meets the second preset condition.

6. The system for collaboratively controlling the TCP layer according to claim 4, characterized in that: The first adjustment unit comprises: A first judgment subunit is used to judge whether the TCP layer is currently used to upload data or download data; If data is uploaded, the first control subunit is called, and the first control subunit is used to control the TCP layer to stop sending data and stop the RTO timer; If downloading data, calling a second control subunit, the second control subunit is used to control the TCP layer to send first ACK data to the base station server, the first ACK data including a window with a window size smaller than the first window value; The second adjustment unit includes: The second judgment subunit is used to judge whether the TCP layer is currently used to upload data or download data; If data is uploaded, the third control subunit is called, and the third control subunit is used to control the TCP layer to send data and start the RTO timer; If downloading data, calling a fourth control subunit, the fourth control subunit is used to control the TCP layer to send second ACK data to the base station server, the second ACK data including a window with a window size greater than the second window value; The first window value is smaller than the second window value.

7. A method for collaboratively controlling a TCP layer, characterized in that: Applied to a communication terminal, the method for collaboratively controlling a TCP layer includes: When the RLC layer is in UM mode, determining whether the RLC layer is currently used to upload data or download data; If used for uploading data, determining whether the HARQ failure rate of the MAC layer is greater than a ninth threshold; If the HARQ failure rate of the MAC layer is greater than the ninth threshold, determining that the current data transmission state parameter of the L2 layer meets the first preset condition; If the HARQ failure rate of the MAC layer is not greater than the ninth threshold, determining whether the HARQ failure rate of the MAC layer is less than a tenth threshold; If the HARQ failure rate of the MAC layer is less than the tenth threshold, determining that the current data transmission state parameter of the L2 layer meets the second preset condition; If used for downloading data, determining whether the HARQ failure rate of the MAC layer is greater than an eleventh threshold; If the HARQ failure rate of the MAC layer is greater than the eleventh threshold, determining that the current data transmission state parameter of the L2 layer meets the first preset condition; If the HARQ failure rate of the MAC layer is not greater than the eleventh threshold, determining whether the HARQ failure rate of the MAC layer is less than a twelfth threshold; If the HARQ failure rate of the MAC layer is less than the twelfth threshold, determining that the current data transmission state parameter of the L2 layer meets the second preset condition; generating a first preset notification corresponding to the 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 the second preset condition when the current data transmission state parameter of the L2 layer meets the second preset condition; The L2 layer includes an RLC layer and a MAC layer, the data transmission state parameter is used to characterize the data transmission quality of the L2 layer, the first preset condition is used to characterize that the data transmission quality of the L2 layer is poor, and the second preset condition is used to characterize that the data transmission quality of the L2 layer is good; adjusting the current data transmission state of the TCP layer according to the first preset notification to reduce the amount of data currently transmitted by the TCP layer; The current data transmission state of the TCP layer is adjusted according to the second preset notification to increase the amount of data currently transmitted by the TCP layer.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for collaboratively controlling the TCP layer according to any one of claims 1 to 3 and 7 is implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for collaboratively controlling a TCP layer according to any one of claims 1 to 3 and 7 is implemented.

10. A communication terminal, characterized in that: A system comprising collaboratively controlling a TCP layer as described in any one of claims 4-6.