Application layer rate adjustment method, device, equipment, storage medium and program product
By obtaining the amount of uplink PDCP layer cached data, calculating the ratio to determine the degree of congestion, and adjusting the application layer rate, the problem of the terminal being unable to obtain the maximum air interface rate was solved, and the smooth operation of application layer services was achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-11
- Publication Date
- 2026-04-07
AI Technical Summary
The terminal cannot obtain the maximum air interface rate based on the real-time air interface rate under 5G and 4G networks, which makes it impossible to adjust the application layer uplink rate, resulting in uplink air interface congestion and making it impossible to guarantee the smooth operation of application layer services.
By obtaining the amount of cached data in the uplink PDCP layer, calculating the ratio of cached data to buffer capacity, determining the congestion level of the uplink air interface, and adjusting the application layer uplink rate according to the congestion level.
To avoid uplink air interface congestion, make reasonable use of uplink resources and ensure smooth operation of application layer services.
Smart Images

Figure CN115967984B_ABST
Abstract
Description
Technical Field
[0001] This application relates to communication technology, and more particularly to an application layer rate adjustment method, apparatus, device, storage medium, and program product. Background Technology
[0002] Fifth-generation mobile communication technology (5G) is a new generation of wireless communication technology with features such as high speed, low latency, and large capacity. Currently, 5G is being rapidly deployed and applied globally, and it is playing an increasingly important role, especially in some enterprises and industries.
[0003] However, the terminal can only count the real-time air interface rate under 5G and 4G networks, and cannot obtain the maximum achievable air interface rate based on the wireless measurement information of the air interface. Therefore, it cannot adjust the uplink rate of the application layer based on the maximum air interface rate to ensure the smooth operation of application layer services. Summary of the Invention
[0004] This application provides an application layer rate adjustment method, apparatus, device, storage medium, and program product to solve the problem that the application layer cannot reduce or increase the uplink rate according to the maximum air interface rate.
[0005] On the one hand, this application provides an application layer rate adjustment method, including:
[0006] Get the current cached data volume of the uplink PDCP layer;
[0007] The current congestion level of the uplink air interface is determined based on the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer.
[0008] Adjust the application layer uplink rate based on the current congestion level of the uplink air interface.
[0009] On the other hand, this application provides an application layer rate adjustment device, comprising:
[0010] The cached data volume statistics module is used to obtain the current cached data volume of the uplink PDCP layer;
[0011] The congestion level determination module is used to determine the current congestion level of the uplink air interface based on the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer.
[0012] The application layer uplink rate adjustment module is used to adjust the application layer uplink rate according to the current congestion level of the uplink air interface.
[0013] On the other hand, this application provides an application layer rate adjustment device, comprising:
[0014] A processor, and a memory communicatively connected to the processor;
[0015] The memory stores computer-executed instructions;
[0016] The processor executes computer execution instructions stored in the memory to implement the application layer rate adjustment method described above.
[0017] On the other hand, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the application layer rate adjustment method described above.
[0018] On the other hand, this application provides a computer program product, including computer execution instructions, which, when executed by a processor, implement the application layer rate adjustment method described above.
[0019] The application layer rate adjustment method, apparatus, device, storage medium, and program product provided in this application obtain the current cached data volume of the uplink PDCP layer; determine the current congestion level of the uplink air interface based on the ratio of the cached data volume to the buffer capacity of the uplink PDCP layer; and adjust the application layer uplink rate based on the current congestion level of the uplink air interface, thereby avoiding uplink air interface congestion, making reasonable use of uplink resources, and ensuring smooth operation of application layer services. Attached Figure Description
[0020] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0021] Figure 1 This is a schematic diagram illustrating the application scenario of this application;
[0022] Figure 2 This is a flowchart of the application layer rate adjustment method provided in Embodiment 1 of this application;
[0023] Figure 3 This is a flowchart of the application layer rate adjustment method provided in Embodiment 2 of this application;
[0024] Figure 4 This is a flowchart of the application layer rate adjustment method provided in Embodiment 3 of this application;
[0025] Figure 5 This is a schematic diagram of the application layer rate adjustment device provided in Embodiment 4 of this application;
[0026] Figure 6This is a schematic diagram of the application layer rate adjustment device provided in Embodiment 5 of this application;
[0027] Figure 7 A schematic diagram of the application layer rate adjustment device provided for Implementation 6 of this application.
[0028] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0029] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0030] Furthermore, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. In the following descriptions of embodiments, "a plurality of" means two or more, unless otherwise explicitly defined.
[0031] For example, Figure 1 This is a schematic diagram illustrating the application scenario of this application, such as... Figure 1 As shown, the terminal and the base station are connected through a wireless air interface, also known as the air interface (air interface). The link established between the terminal's air interface and the base station's air interface is called a wireless link, which includes an uplink and a downlink.
[0032] The process by which a terminal sends uplink data to a base station via the uplink is the uplink process, and the process by which a base station sends downlink data to a terminal via the downlink is the downlink process.
[0033] During data uplink, data encapsulation is required, proceeding sequentially through the application layer, transport layer, network layer, data link layer, and physical layer. The network layer, data link layer, and physical layer belong to the wireless interface protocol stack. The wireless interface protocol is the standard and specification for the air interface, primarily used to handle data in the wireless link between the terminal and the base station, establishing, reconfiguring, and releasing various wireless bearer services. Within the wireless interface protocol stack, the data link layer includes the Packet Data Convergence Protocol (PDCP) layer.
[0034] Furthermore, during the data uplink process, the terminal needs to send a scheduling request (SR) to the base station. Upon receiving the scheduling request, the base station will send an uplink scheduling instruction to the terminal. For example, the uplink scheduling instruction can be: uplink scheduling grant (ULgrant), resource allocation notification, etc.
[0035] However, during data uplink, the terminal can only count the real-time air interface rate under 5G and 4G networks, and cannot obtain the maximum achievable air interface rate based on the wireless measurement information of the air interface. Therefore, it is impossible to adjust the application layer rate based on the maximum air interface rate and the real-time air interface rate, so as to avoid uplink air interface congestion, make reasonable use of uplink resources, and ensure the smooth operation of application layer services.
[0036] The application layer rate adjustment method provided in this application obtains the current cached data volume of the uplink PDCP layer; determines the current congestion level of the uplink air interface based on the ratio of the cached data volume to the buffer capacity of the uplink PDCP layer; and adjusts the application layer uplink rate based on the current congestion level of the uplink air interface, thereby avoiding uplink air interface congestion and making reasonable use of uplink resources to ensure the smooth operation of application layer services.
[0037] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0038] Example 1
[0039] Figure 2 This is a flowchart of an application layer rate adjustment method provided in Embodiment 1 of this application. This embodiment addresses the problem of being unable to adjust the application layer rate based on the maximum air interface rate and the real-time air interface rate, and provides an application layer rate adjustment method. The method in this embodiment is applied to an application layer rate adjustment device, which can be a mobile terminal. In other embodiments, the method can also be applied to other devices. This embodiment uses an application layer rate adjustment device as an example for illustrative explanation.
[0040] like Figure 2 As shown, the specific steps of this method are as follows:
[0041] Step S101: Obtain the current cached data volume of the uplink PDCP layer.
[0042] In this embodiment, the application layer rate adjustment method can be executed once every certain period of time. Based on the current cached data volume of the uplink PDCP layer, the current congestion level of the uplink air interface is determined, and the application layer uplink rate is adjusted according to the current congestion level of the uplink air interface to ensure the smooth operation of application layer services.
[0043] For example, the application layer speed adjustment method can be executed periodically or at regular intervals. The period or timing of executing the application layer speed adjustment method can be set and adjusted according to the needs of the actual application scenario, and no specific limitation is made here.
[0044] For example, the length of the period for executing the application layer rate adjustment method can be between 1 millisecond and 1000 milliseconds, such as 1 millisecond, 10 milliseconds, 400 milliseconds, 800 milliseconds, 1000 milliseconds, etc., and this application embodiment does not make specific limitations.
[0045] In this step, the current cached data volume of the uplink PDCP layer is first obtained. The time interval for obtaining the current cached data volume of the terminal's uplink PDCP layer can be configured by the terminal.
[0046] Step S102: Determine the current congestion level of the uplink air interface based on the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer.
[0047] After obtaining the current cached data volume of the uplink PDCP layer, divide the current cached data volume of the uplink PDCP layer by the buffer capacity of the uplink PDCP layer to obtain the ratio of the current cached data volume of the uplink PDCP layer to the buffer capacity of the uplink PDCP layer. Based on the magnitude of the ratio of the current cached data volume of the uplink PDCP layer to the buffer capacity of the uplink PDCP layer, determine the current congestion level of the uplink air interface.
[0048] The buffer capacity of the uplink PDCP layer can be obtained synchronously with the current cached data volume of the uplink PDCP layer; this embodiment does not impose specific limitations on this.
[0049] Optionally, at least one ratio threshold can be configured to compare the ratio of the current cached data volume of the uplink PDCP layer to the buffer capacity of the uplink PDCP layer with the ratio threshold, thereby determining the current congestion level of the uplink air interface. For example, if the ratio of the current cached data volume of the uplink PDCP layer to the buffer capacity of the uplink PDCP layer is greater than the ratio threshold, the current congestion level of the uplink air interface is considered severe congestion; if the ratio of the current cached data volume of the uplink PDCP layer to the buffer capacity of the uplink PDCP layer is less than the ratio threshold, the current congestion level of the uplink air interface is considered non-severe congestion.
[0050] Optionally, at least one ratio threshold can be configured, and a ratio range can be determined based on the ratio threshold. The current congestion level of the uplink air interface can be determined based on the ratio range in which the current cached data volume of the uplink PDCP layer accounts for the cache capacity of the uplink PDCP layer, and the specified mapping relationship between the ratio range and the congestion level.
[0051] For example, the range of values below a ratio threshold is defined as the first ratio range, and the range of values above the ratio threshold is defined as the second ratio range. The mapping relationship is specified as follows: the first ratio range corresponds to non-severe congestion, and the second ratio range corresponds to severe congestion. If the ratio of the current cached data volume of the uplink PDCP layer to the buffer capacity of the uplink PDCP layer is within the first ratio range, then the current congestion level of the uplink air interface is considered non-severe congestion; if the ratio of the current cached data volume of the uplink PDCP layer to the buffer capacity of the uplink PDCP layer is within the second ratio range, then the current congestion level of the uplink air interface is considered severe congestion. Furthermore, non-severe congestion can also include multiple different congestion levels such as no congestion and normal congestion.
[0052] For example, two ratio thresholds can be configured, including a first ratio threshold and a second ratio threshold, where the first ratio threshold is less than the second ratio threshold. The range of values less than or equal to the first ratio threshold is defined as the third ratio range; the range of values greater than the first ratio threshold and less than or equal to the second ratio threshold is defined as the fourth ratio range; and the range of values greater than the second ratio threshold is defined as the fifth ratio range. The mapping relationship is specified as follows: the third ratio range corresponds to non-congestion, the fourth ratio range corresponds to moderate congestion, and the fifth ratio range corresponds to severe congestion. If the ratio of the current cached data volume in the uplink PDCP layer to the buffer capacity of the uplink PDCP layer is within the third ratio range, then the current congestion level of the uplink air interface is considered non-congestion; if the ratio is within the fourth ratio range, then the current congestion level is considered moderate congestion; and if the ratio is within the fifth ratio range, then the current congestion level is considered severe congestion.
[0053] Step S103: Adjust the application layer uplink rate according to the current congestion level of the uplink air interface.
[0054] For example, the uplink rate of the application layer can be adjusted by adjusting the amount of data transmitted uplink at the application layer, depending on the current level of congestion at the uplink air interface.
[0055] For example, the application layer service can be a video backhaul service. By adjusting the bitrate and resolution of the video backhaul service in the application layer, the amount of data transmitted uplink in the application layer can be adjusted, thereby adjusting the application layer uplink rate.
[0056] Adjusting the application layer uplink rate can involve either increasing or decreasing the application layer uplink rate.
[0057] For example, if the current uplink air interface congestion level is determined to be severe congestion, then the amount of data transmitted uplink at the application layer is reduced, and the application layer uplink rate is decreased. If the current uplink air interface congestion level is determined to be non-congestion, then the amount of data transmitted uplink at the application layer is increased, and the application layer uplink rate is increased. If the current uplink air interface congestion level is determined to be moderate congestion, then the application layer uplink rate does not need to be adjusted.
[0058] In this embodiment, the current cached data volume of the uplink PDCP layer is obtained; the current congestion level of the uplink air interface is determined based on the ratio of the cached data volume to the buffer capacity of the uplink PDCP layer; and the uplink rate of the application layer is adjusted based on the current congestion level of the uplink air interface, thereby avoiding uplink air interface congestion and making reasonable use of uplink resources to ensure the smooth operation of application layer services.
[0059] Example 2
[0060] Figure 3 This application provides a flowchart of an application layer rate adjustment method for Embodiment 2. Based on Embodiment 1, this embodiment determines the current congestion level of the uplink air interface according to the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer. This includes: determining the current congestion level of the uplink air interface according to the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer, and the specified mapping relationship between the ratio range and the congestion level.
[0061] The current congestion level of the uplink air interface is determined based on the ratio of the cached data volume to the buffer capacity of the uplink PDCP layer, and the specified mapping relationship between the ratio range and the congestion level. This includes: determining the ratio range of the current cached data volume to the buffer capacity of the uplink PDCP layer based on the ratio of the cached data volume to the buffer capacity of the uplink PDCP layer, and at least one configured ratio threshold; determining the congestion level corresponding to the ratio range of the current cached data volume to the buffer capacity of the uplink PDCP layer based on the specified mapping relationship; and determining the congestion level corresponding to the ratio range of the current cached data volume to the buffer capacity of the uplink PDCP layer as the current congestion level of the uplink air interface.
[0062] like Figure 3 As shown, the specific steps of this method are as follows:
[0063] Step S201: Obtain the current cached data volume of the uplink PDCP layer.
[0064] In this embodiment, the application layer rate adjustment method can be executed once every certain period of time. Based on the current cached data volume of the uplink PDCP layer, the current congestion level of the uplink air interface is determined, and the application layer uplink rate is adjusted according to the current congestion level of the uplink air interface to ensure the smooth operation of application layer services.
[0065] For example, the application layer speed adjustment method can be executed periodically or at regular intervals. The period or timing of executing the application layer speed adjustment method can be set and adjusted according to the needs of the actual application scenario, and no specific limitation is made here.
[0066] For example, the length of the period for executing the application layer rate adjustment method can be between 1 millisecond and 1000 milliseconds, such as 1 millisecond, 10 milliseconds, 400 milliseconds, 800 milliseconds, 1000 milliseconds, etc., and this application embodiment does not make specific limitations.
[0067] In this step, the current cached data volume of the uplink PDCP layer is first obtained. The time interval for obtaining the current cached data volume of the terminal's uplink PDCP layer can be configured by the terminal.
[0068] After obtaining the current amount of cached data in the uplink PDCP layer, the current congestion level of the uplink air interface is determined by steps S202-S203 based on the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer.
[0069] Step S202: Calculate the ratio of the amount of cached data to the cache capacity of the uplink PDCP layer.
[0070] Specifically, after obtaining the current cached data volume of the uplink PDCP layer, the current cached data volume of the uplink PDCP layer is divided by the cache capacity of the uplink PDCP layer to obtain the ratio of the current cached data volume of the uplink PDCP layer to the cache capacity of the uplink PDCP layer.
[0071] In this embodiment, the buffer capacity of the uplink PDCP layer can be obtained synchronously with the current buffer data volume of the uplink PDCP layer. This embodiment does not impose specific limitations on this.
[0072] Step S203: Determine the current congestion level of the uplink air interface based on the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer, and the specified mapping relationship between the ratio range and the congestion level.
[0073] This step can be implemented in the following way:
[0074] Based on the ratio of the cached data volume to the buffer capacity of the uplink PDCP layer, and at least one configured ratio threshold, determine the ratio range of the current cached data volume to the buffer capacity of the uplink PDCP layer; based on the specified mapping relationship, determine the congestion level corresponding to the ratio range of the current cached data volume to the buffer capacity of the uplink PDCP layer; and determine the congestion level corresponding to the ratio range of the current cached data volume to the buffer capacity of the uplink PDCP layer as the current congestion level of the uplink air interface.
[0075] The ratio range can be divided according to the ratio threshold, which can be set and adjusted according to the needs of the actual application scenario. For example, it can be between 1% and 100%, such as 1%, 20%, 60%, 80%, 100%, etc.
[0076] In this embodiment, multiple ratio ranges can be determined based on at least one configured ratio threshold, and the number of ratio ranges is equal to the number of ratio thresholds plus 1.
[0077] The specified mapping relationship includes the correspondence between ratio ranges and congestion levels. Different ratio ranges correspond to different congestion levels, and different congestion levels correspond to different adjustments in the application layer uplink rate.
[0078] The ratio threshold and the specified mapping relationship can be set and adjusted according to the needs of the actual application scenario, and this embodiment does not impose specific limitations here.
[0079] For example, three ratio thresholds can be set according to actual needs, including a third, fourth, and fifth ratio threshold, with the third, fourth, and fifth ratio thresholds increasing sequentially. The range of values less than or equal to the third ratio threshold is defined as the sixth ratio range; the range of values greater than the third ratio threshold and less than or equal to the fourth ratio threshold is defined as the seventh ratio range; the range of values greater than the fourth ratio threshold and less than or equal to the fifth ratio threshold is defined as the eighth ratio range; and the range of values greater than the fifth ratio threshold is defined as the ninth ratio range. A specified mapping relationship can be set as follows: the sixth ratio range corresponds to no congestion, the seventh ratio range corresponds to moderate congestion, the eighth ratio range corresponds to level two congestion, and the ninth ratio range corresponds to level one congestion. Both level one and level two congestion are considered severe congestion.
[0080] For example, three ratio thresholds can be set according to actual needs: 20%, 60%, and 80%. The range of values less than or equal to 20% is defined as the sixth ratio range, the range greater than 20% and less than or equal to 60% as the seventh ratio range, the range greater than 60% and less than or equal to 80% as the eighth ratio range, and the range greater than 80% as the ninth ratio range. The specified mapping relationship is: the sixth ratio range corresponds to no congestion, the seventh ratio range corresponds to moderate congestion, the eighth ratio range corresponds to level two congestion, and the ninth ratio range corresponds to level one congestion. If the ratio of cached data to the buffer capacity of the uplink PDCP layer is within the sixth ratio range (less than or equal to 20%), the current congestion level of the uplink air interface is non-congested; if the ratio of cached data to the buffer capacity of the uplink PDCP layer is within the seventh ratio range (greater than 20% and less than or equal to 60%), the current congestion level of the uplink air interface is moderate congestion; if the ratio of cached data to the buffer capacity of the uplink PDCP layer is within the eighth ratio range (greater than 60% and less than or equal to 80%), the current congestion level of the uplink air interface is level two congestion; and if the ratio of cached data to the buffer capacity of the uplink PDCP layer is within the ninth ratio range (greater than 80%), the current congestion level of the uplink air interface is level one congestion.
[0081] For example, a sixth ratio threshold is set, the range of values less than or equal to the sixth ratio threshold is the tenth ratio range, and the range of values greater than the sixth ratio threshold is the eleventh ratio range. The mapping relationship is specified as follows: the tenth ratio range corresponds to non-severe congestion, and the eleventh ratio range corresponds to severe congestion. If the ratio of the cached data volume to the buffer capacity of the uplink PDCP layer is within the tenth ratio range, then the current congestion level of the uplink air interface is non-severe congestion, and the application layer uplink rate is increased or not adjusted. If the ratio of the cached data volume to the buffer capacity of the uplink PDCP layer is within the eleventh ratio range, then the current congestion level of the uplink air interface is severe congestion, and the application layer uplink rate is decreased.
[0082] Step S204: Based on the current congestion level of the uplink air interface, adjust the uplink rate of the application layer by adjusting the amount of data transmitted uplink at the application layer.
[0083] For example, this step can be implemented in the following way:
[0084] Based on the current congestion level of the uplink air interface, the uplink rate of the application layer is adjusted by adjusting the amount of data transmitted uplink at the application layer.
[0085] For example, the application layer service can be a video backhaul service. By adjusting the bitrate and resolution of the video backhaul service in the application layer, the amount of data transmitted uplink in the application layer can be adjusted, thereby adjusting the application layer uplink rate.
[0086] Adjusting the application layer uplink rate can involve either increasing or decreasing it. In this step, if the current congestion level of the uplink air interface is determined to be severe, the application layer uplink rate is decreased.
[0087] Optionally, severe congestion includes at least two preset congestion levels, and the reduction in application layer uplink rate differs depending on the current congestion level of the uplink air interface.
[0088] For example, severe congestion includes Level 1 congestion and Level 2 congestion. In this step, if the current congestion level of the uplink air interface is Level 1 congestion, the application layer uplink rate is reduced by a first increment; if the current congestion level of the uplink air interface is Level 2 congestion, the application layer uplink rate is reduced by a second increment.
[0089] The first increment is greater than the second increment. Both the first and second increments can be set and adjusted according to the actual application scenario; no specific limitations are made here.
[0090] For example, severe congestion can include Level 1 congestion, Level 2 congestion, and Level 3 congestion. In this step, if the current congestion level of the uplink air interface is Level 1 congestion, the application layer uplink rate is reduced by a third increment; if the current congestion level of the uplink air interface is Level 2 congestion, the application layer uplink rate is reduced by a fourth increment; and if the current congestion level of the uplink air interface is Level 3 congestion, the application layer uplink rate is reduced by a fifth increment.
[0091] The third increment is greater than the fourth increment, and the fourth increment is greater than the fifth increment. The third, fourth, and fifth increments can all be set and adjusted according to the actual application scenario; no specific limitations are set here.
[0092] In this step, if it is determined that the current congestion level of the uplink air interface is not congested, the application layer uplink rate can be increased.
[0093] For example, non-congestion may also include at least two levels of preset congestion levels, such as Level 1 non-congestion and Level 2 non-congestion. When the current congestion level of the uplink air interface belongs to different levels of preset congestion, the increase in the application layer uplink rate will be different.
[0094] Alternatively, if the current congestion level of the uplink air interface is determined to be normal congestion, the application layer uplink rate may not need to be adjusted.
[0095] For example, the uplink air interface congestion level can include severe congestion, moderate congestion, and no congestion, where severe congestion can include level 1 congestion and level 2 congestion. If the current uplink air interface congestion level is determined to be level 1 congestion, the application layer uplink rate is reduced by a sixth increment; if the current uplink air interface congestion level is determined to be level 2 congestion, the application layer uplink rate is reduced by a seventh increment; if the current uplink air interface congestion level is determined to be moderate congestion, the application layer uplink rate is maintained; if the current uplink air interface congestion level is determined to be no congestion, the application layer uplink rate is increased by an eighth increment. The sixth increment is greater than the seventh increment. For example, the sixth increment can be 4 Mbps and the seventh increment can be 2 Mbps; or, the sixth increment can be 5 Mbps and the seventh increment can be 1 Mbps. The sixth, seventh, and eighth increments can be set and adjusted according to the needs of the actual application scenario.
[0096] For example, based on the current congestion level of the uplink air interface, an adjustment instruction can be sent to the application layer application to instruct the application layer application to adjust the amount of data transmitted uplink.
[0097] Taking uplink air interface congestion levels (including Level 1 congestion, Level 2 congestion, normal congestion, and no congestion) as an example, if the current uplink air interface congestion level is determined to be Level 1 congestion, a first reduction instruction is sent to the application layer application. The first reduction instruction is used to reduce the application layer uplink rate by a sixth increment. If the application layer application receives the first reduction instruction, it reduces the application layer uplink rate by the sixth increment, thereby significantly reducing the application layer uplink rate. If the current uplink air interface congestion level is determined to be Level 2 congestion, a second reduction instruction is sent to the application layer application. The second reduction instruction is used to reduce the application layer uplink rate by a seventh increment. If the application layer application receives the second reduction instruction, it reduces the application layer uplink rate by the seventh increment, thereby reducing the application layer uplink rate by a normal magnitude. If the current uplink air interface congestion level is determined to be normal congestion, a maintain instruction is sent to the application layer application. The maintain instruction is used to instruct the application layer not to adjust the uplink rate. If the application layer application receives the maintain instruction, it does not adjust the application layer uplink rate. If it is determined that the current congestion level of the uplink air interface is not congested, an upscaling instruction is sent to the application layer application. The upscaling instruction is used to increase the application layer uplink rate by the eighth increment. If the application layer application receives the upscaling instruction, it will increase the application layer uplink rate by the eighth increment, thereby increasing the application layer uplink rate.
[0098] In this embodiment of the application, the current congestion level of the uplink air interface is determined based on the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer. This includes: determining the current congestion level of the uplink air interface based on the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer, and a specified mapping relationship between the ratio range and the congestion level; and adjusting the application layer uplink rate based on the current congestion level of the uplink air interface to avoid uplink air interface congestion and ensure smooth operation of application layer services.
[0099] Example 3
[0100] Figure 4 This application provides a flowchart of an application layer rate adjustment method for Embodiment 3. Based on Embodiment 1, this embodiment determines the current congestion level of the uplink air interface according to the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer. This includes: obtaining the interval between the current time and the last time the uplink scheduling instruction was received; if the interval is longer than a preset time, the current congestion level of the uplink air interface is determined according to the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer and a first mapping relationship between the ratio range and the congestion level; if the interval is less than or equal to the preset time, the current congestion level of the uplink air interface is determined according to the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer and a second mapping relationship between the ratio range and the congestion level.
[0101] Specifically, for the ratio of the current cached data volume of the same uplink PDCP layer to the cache capacity of the uplink PDCP layer, the current congestion level of the uplink air interface determined based on the ratio of the current cached data volume of the uplink PDCP layer to the cache capacity of the uplink PDCP layer and the first mapping relationship is higher than the current congestion level of the uplink air interface determined based on the ratio of the current cached data volume of the uplink PDCP layer to the cache capacity of the uplink PDCP layer and the second mapping relationship.
[0102] like Figure 4 As shown, the specific steps of this method are as follows:
[0103] Step S301: Obtain the current cached data volume of the uplink PDCP layer.
[0104] In this embodiment, the application layer rate adjustment method can be executed once every certain period of time. Based on the current cached data volume of the uplink PDCP layer, the current congestion level of the uplink air interface is determined, and the application layer uplink rate is adjusted according to the current congestion level of the uplink air interface to ensure the smooth operation of application layer services.
[0105] For example, the application layer speed adjustment method can be executed periodically or at regular intervals. The period or timing of executing the application layer speed adjustment method can be set and adjusted according to the needs of the actual application scenario, and no specific limitation is made here.
[0106] For example, the length of the period for executing the application layer rate adjustment method can be between 1 millisecond and 1000 milliseconds, such as 1 millisecond, 10 milliseconds, 400 milliseconds, 800 milliseconds, 1000 milliseconds, etc., and this application embodiment does not make specific limitations.
[0107] In this step, the current cached data volume of the uplink PDCP layer is first obtained. The time interval for obtaining the current cached data volume of the terminal's uplink PDCP layer can be configured by the terminal. After obtaining the current cached data volume of the uplink PDCP layer, through steps S302-S306, the current congestion level of the uplink air interface is determined based on the ratio of the cached data volume to the buffer capacity of the uplink PDCP layer, and whether the interval between the current time and the last time the uplink scheduling instruction was received is greater than a preset time.
[0108] Step S302: Calculate the ratio of the amount of cached data to the cache capacity of the uplink PDCP layer.
[0109] Specifically, after obtaining the current cached data volume of the uplink PDCP layer, the current cached data volume of the uplink PDCP layer is divided by the cache capacity of the uplink PDCP layer to obtain the ratio of the current cached data volume of the uplink PDCP layer to the cache capacity of the uplink PDCP layer.
[0110] In this embodiment, the buffer capacity of the uplink PDCP layer can be obtained after receiving the uplink scheduling instruction, or it can be obtained synchronously with the current buffer data volume of the uplink PDCP layer. This embodiment does not make specific limitations here.
[0111] Step S303: Obtain the interval between the current time and the last time the uplink scheduling instruction was received.
[0112] In this embodiment, uplink scheduling indication refers to the indication information sent by the base station to the terminal, such as uplink scheduling grant (UL grant), resource allocation notification, etc.
[0113] In this embodiment, obtaining the interval between the current time and the last time the uplink scheduling instruction was received needs to be done before determining whether the interval between the current time and the last time the uplink scheduling instruction was received is greater than a preset duration. It should be noted that step S303 can be performed in parallel with step S301, or step S303 can be performed before step S301.
[0114] Step S304: Determine whether the interval between the current time and the last time the uplink scheduling instruction was received is greater than the preset time.
[0115] The preset duration can be configured and adjusted according to the needs of the actual application scenario. For example, the preset duration can be between 1 millisecond and 1000 milliseconds, such as 1 millisecond, 10 milliseconds, 400 milliseconds, 800 milliseconds, 1000 milliseconds, etc. The preset duration can also be less than 1 millisecond, such as 300 microseconds, 500 microseconds, 800 microseconds, etc. The embodiments of this application do not make specific limitations.
[0116] In this step, if the interval between the current time and the last time the uplink scheduling instruction was received is greater than a preset time, then step S305 is executed to determine the current congestion level of the uplink air interface based on the first mapping relationship between the ratio range and the congestion level.
[0117] If it is determined that the interval between the current time and the last time the uplink scheduling instruction was received is less than or equal to a preset time, then step S306 is executed to determine the current congestion level of the uplink air interface according to the second mapping relationship between the ratio range and the congestion level.
[0118] In this embodiment, for the ratio of the current cached data volume of the same uplink PDCP layer to the cache capacity of the uplink PDCP layer, the current congestion level of the uplink air interface determined based on the ratio of the current cached data volume of the uplink PDCP layer to the cache capacity of the uplink PDCP layer and the first mapping relationship is higher than the current congestion level of the uplink air interface determined based on the ratio of the current cached data volume of the uplink PDCP layer to the cache capacity of the uplink PDCP layer and the second mapping relationship.
[0119] For example, for the first mapping relationship, two ratio thresholds can be set, including a seventh ratio threshold and an eighth ratio threshold, where the seventh ratio threshold is less than the eighth ratio threshold. The ratio range is determined according to the ratio thresholds, and is successively: the twelfth ratio range, the thirteenth ratio range, and the fourteenth ratio range. The first mapping relationship can be: the congestion level corresponding to the twelfth ratio range is non-severe congestion, the congestion level corresponding to the thirteenth ratio range is level two congestion, and the congestion level corresponding to the fourteenth ratio range is level one congestion. Among them, level one congestion and level two congestion are both considered severe congestion. If the ratio of the current cached data volume of the uplink PDCP layer to the cache capacity of the uplink PDCP layer is within the twelfth ratio range, then the current congestion level of the uplink air interface is non-severe congestion; if the ratio of the current cached data volume of the uplink PDCP layer to the cache capacity of the uplink PDCP layer is within the thirteenth ratio range, then the current congestion level of the uplink air interface is level two congestion; if the ratio of the current cached data volume of the uplink PDCP layer to the cache capacity of the uplink PDCP layer is within the fourteenth ratio range, then the current congestion level of the uplink air interface is level one congestion.
[0120] For example, for the second mapping relationship, three ratio thresholds can be set, including a ninth ratio threshold, a tenth ratio threshold, and an eleventh ratio threshold, with the ninth, tenth, and eleventh ratio thresholds increasing sequentially. The ratio range can be determined based on the ratio thresholds, and is successively the fifteenth ratio range, the sixteenth ratio range, the seventeenth ratio range, and the eighteenth ratio range. The second mapping relationship is as follows: the congestion level corresponding to the fifteenth ratio range is non-congestion, the congestion level corresponding to the sixteenth ratio range is moderate congestion, the congestion level corresponding to the seventeenth ratio range is level two congestion, and the congestion level corresponding to the eighteenth ratio range is level one congestion. If the ratio of the current cached data volume of the uplink PDCP layer to the cache capacity of the uplink PDCP layer is within the fifteenth ratio range, then the current congestion level of the uplink air interface is non-congested; if the ratio is within the sixteenth ratio range, then the current congestion level of the uplink air interface is moderate congestion; if the ratio is within the eleventh ratio range, then the current congestion level of the uplink air interface is level two congestion; if the ratio is within the eighteenth ratio range, then the current congestion level of the uplink air interface is level one congestion.
[0121] For example, the first mapping relationship can be: a ratio range of less than or equal to 20% corresponds to non-severe congestion; a ratio range of greater than 20% and less than or equal to 60% corresponds to level 2 congestion; and a ratio range of greater than 60% corresponds to level 1 congestion. The second mapping relationship can be: a ratio range of less than or equal to 20% corresponds to no congestion; a ratio range of greater than 20% and less than or equal to 60% corresponds to moderate congestion; a ratio range of greater than 60% and less than or equal to 80% corresponds to level 2 congestion; and a ratio range of greater than 80% corresponds to level 1 congestion. Taking the current cached data volume of the uplink PDCP layer as an example, if the ratio is 13% of the uplink PDCP layer's cache capacity, according to the first mapping relationship, 13% falls within the 12th ratio range (less than or equal to 20%), indicating non-severe congestion. If the ratio falls within the 15th ratio range (less than or equal to 20%), according to the second mapping relationship, indicating no congestion, then the congestion level is determined to be non-congestion. Taking a scenario where the current cached data volume of the uplink PDCP layer accounts for 76% of the uplink PDCP layer's cache capacity as an example, according to the first mapping relationship, 76% falls within the fourteenth ratio range (greater than 60%), thus determining the congestion level as Level 1 congestion. According to the second mapping relationship, 76% falls within the seventeenth ratio range (greater than 60% and less than or equal to 80%), thus determining the congestion level as Level 2 congestion.
[0122] Step S305: Determine the current congestion level of the uplink air interface based on the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer, and the first mapping relationship between the ratio range and the congestion level.
[0123] For example, this step can be implemented in the following way:
[0124] Based on the ratio of the cached data volume to the buffer capacity of the uplink PDCP layer, and at least one configured ratio threshold, determine the ratio range of the current cached data volume of the uplink PDCP layer to the buffer capacity of the uplink PDCP layer; based on the first mapping relationship, determine the congestion level corresponding to the ratio range of the current cached data volume of the uplink PDCP layer to the buffer capacity of the uplink PDCP layer; and determine the congestion level corresponding to the ratio range of the current cached data volume of the uplink PDCP layer to the buffer capacity of the uplink PDCP layer as the current congestion level of the uplink air interface.
[0125] The ratio range can be divided according to the ratio threshold, which can be set and adjusted according to the needs of the actual application scenario. For example, it can be between 1% and 100%, such as 1%, 20%, 60%, 80%, 100%, etc.
[0126] In this embodiment, multiple ratio ranges can be determined based on at least one configured ratio threshold, and the number of ratio ranges is equal to the number of ratio thresholds plus 1.
[0127] The first mapping relationship includes the correspondence between the ratio range and the congestion level. Different ratio ranges correspond to different congestion levels, and different congestion levels correspond to different adjustment methods for the application layer uplink rate.
[0128] The ratio threshold and the first mapping relationship can be set and adjusted according to the needs of the actual application scenario, and are not specifically limited in this embodiment.
[0129] For example, two ratio thresholds can be set according to actual needs, including a seventh ratio threshold and an eighth ratio threshold, where the seventh ratio threshold is less than the eighth ratio threshold. The range of values less than or equal to the seventh ratio threshold is defined as the twelfth ratio range, the range of values greater than the seventh ratio threshold and less than or equal to the eighth ratio threshold is defined as the thirteenth ratio range, and the range of values greater than the eighth ratio threshold is defined as the fourteenth ratio range. The first mapping relationship can be set as follows: the congestion level corresponding to the twelfth ratio range is non-severe congestion, the congestion level corresponding to the thirteenth ratio range is level two congestion, and the congestion level corresponding to the fourteenth ratio range is level one congestion.
[0130] For example, two ratio thresholds can be set according to actual needs: 20% and 60%. The range of values less than or equal to 20% is defined as the twelfth ratio range, the range greater than 20% and less than or equal to 60% as the thirteenth ratio range, and the range greater than 60% as the fourteenth ratio range. If the ratio of cached data to the uplink PDCP layer's buffer capacity is less than or equal to 20% within the twelfth ratio range, the current uplink air interface congestion level is considered non-severe congestion. If the ratio is greater than 20% and less than or equal to 60% within the thirteenth ratio range, the current uplink air interface congestion level is considered level two congestion. If the ratio is greater than 60% within the fourteenth ratio range, the current uplink air interface congestion level is considered level one congestion.
[0131] Step S306: Determine the current congestion level of the uplink air interface based on the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer, and the second mapping relationship between the ratio range and the congestion level.
[0132] This step can be implemented in the following way:
[0133] Based on the ratio of the cached data volume to the buffer capacity of the uplink PDCP layer, and at least one configured ratio threshold, determine the ratio range of the current cached data volume to the buffer capacity of the uplink PDCP layer; based on the second mapping relationship, determine the congestion level corresponding to the ratio range of the current cached data volume to the buffer capacity of the uplink PDCP layer; and determine the congestion level corresponding to the ratio range of the current cached data volume to the buffer capacity of the uplink PDCP layer as the current congestion level of the uplink air interface.
[0134] The ratio range can be divided according to the ratio threshold, which can be set and adjusted according to the needs of the actual application scenario. For example, it can be between 1% and 100%, such as 1%, 20%, 60%, 80%, 100%, etc.
[0135] In this embodiment, multiple ratio ranges can be determined based on at least one configured ratio threshold, and the number of ratio ranges is equal to the number of ratio thresholds plus 1.
[0136] The second mapping relationship includes the correspondence between the ratio range and the degree of congestion. Different ratio ranges correspond to different degrees of congestion, and different degrees of congestion correspond to different ways of adjusting the application layer uplink rate.
[0137] The ratio threshold and the second mapping relationship can be set and adjusted according to the needs of the actual application scenario, and no specific limitation is made here in this embodiment.
[0138] For example, three ratio thresholds can be set according to actual needs, including a ninth ratio threshold, a tenth ratio threshold, and an eleventh ratio threshold, with the ninth, tenth, and eleventh ratio thresholds increasing sequentially. The range of values less than or equal to the ninth ratio threshold is defined as the fifteenth ratio range; the range of values greater than the ninth ratio threshold and less than or equal to the tenth ratio threshold is defined as the sixteenth ratio range; the range of values greater than the tenth ratio threshold and less than or equal to the eleventh ratio threshold is defined as the seventeenth ratio range; and the range of values greater than the eleventh ratio threshold is defined as the eighteenth ratio range. A second mapping relationship can be set as follows: the congestion level corresponding to the fifteenth ratio range is non-congestion; the congestion level corresponding to the sixteenth ratio range is moderate congestion; the congestion level corresponding to the seventeenth ratio range is level two congestion; and the congestion level corresponding to the eighteenth ratio range is level one congestion.
[0139] For example, three ratio thresholds can be set according to actual needs: 20%, 60%, and 80%. The range of values less than or equal to 20% is defined as the fifteenth ratio range, the range of values greater than 20% and less than or equal to 60% is defined as the sixteenth ratio range, the range of values greater than 60% and less than or equal to 80% is defined as the seventeenth ratio range, and the range of values greater than 80% is defined as the eighteenth ratio range. If the ratio of cached data to the buffer capacity of the uplink PDCP layer is within the fifteenth ratio range (less than or equal to 20%), the current congestion level of the uplink air interface is non-congested; if the ratio of cached data to the buffer capacity of the uplink PDCP layer is within the sixteenth ratio range (greater than 20% and less than or equal to 60%), the current congestion level of the uplink air interface is moderate congestion; if the ratio of cached data to the buffer capacity of the uplink PDCP layer is within the seventeenth ratio range (greater than 60% and less than or equal to 80%), the current congestion level of the uplink air interface is level two congestion; and if the ratio of cached data to the buffer capacity of the uplink PDCP layer is within the eighteenth ratio range (greater than 80%), the current congestion level of the uplink air interface is level one congestion.
[0140] Step S307: Based on the current congestion level of the uplink air interface, adjust the uplink rate of the application layer by adjusting the amount of data transmitted uplink at the application layer.
[0141] This step can be implemented in the following way:
[0142] Based on the current congestion level of the uplink air interface, the uplink rate of the application layer is adjusted by adjusting the amount of data transmitted uplink at the application layer.
[0143] For example, the application layer service can be a video backhaul service. By adjusting the bitrate and resolution of the video backhaul service in the application layer, the amount of data transmitted uplink in the application layer can be adjusted, thereby adjusting the application layer uplink rate.
[0144] Adjusting the application layer uplink rate can involve either increasing or decreasing it. In this step, if the current congestion level of the uplink air interface is determined to be severe, the application layer uplink rate is decreased.
[0145] Optionally, severe congestion includes at least two preset congestion levels, and the reduction in application layer uplink rate differs depending on the current congestion level of the uplink air interface.
[0146] For example, severe congestion includes Level 1 congestion and Level 2 congestion. In this step, if the current congestion level of the uplink air interface is Level 1 congestion, the application layer uplink rate is reduced by a first increment; if the current congestion level of the uplink air interface is Level 2 congestion, the application layer uplink rate is reduced by a second increment.
[0147] The first increment is greater than the second increment. Both the first and second increments can be set and adjusted according to the actual application scenario; no specific limitations are made here.
[0148] For example, severe congestion can include Level 1 congestion, Level 2 congestion, and Level 3 congestion. In this step, if the current congestion level of the uplink air interface is Level 1 congestion, the application layer uplink rate is reduced by a third increment; if the current congestion level of the uplink air interface is Level 2 congestion, the application layer uplink rate is reduced by a fourth increment; and if the current congestion level of the uplink air interface is Level 3 congestion, the application layer uplink rate is reduced by a fifth increment.
[0149] The third increment is greater than the fourth increment, and the fourth increment is greater than the fifth increment. The third, fourth, and fifth increments can all be set and adjusted according to the actual application scenario; no specific limitations are set here.
[0150] In this step, if it is determined that the current congestion level of the uplink air interface is not congested, the application layer uplink rate can be increased.
[0151] For example, non-congestion may also include at least two levels of preset congestion levels, such as Level 1 non-congestion and Level 2 non-congestion. When the current congestion level of the uplink air interface belongs to different levels of preset congestion, the increase in the application layer uplink rate will be different.
[0152] Alternatively, if the current congestion level of the uplink air interface is determined to be moderate congestion, the application layer uplink rate may not need to be adjusted.
[0153] For example, the uplink air interface congestion level can include severe congestion, moderate congestion, and no congestion, where severe congestion can include level 1 congestion and level 2 congestion. If the current uplink air interface congestion level is determined to be level 1 congestion, the application layer uplink rate is reduced by a sixth increment; if the current uplink air interface congestion level is determined to be level 2 congestion, the application layer uplink rate is reduced by a seventh increment; if the current uplink air interface congestion level is determined to be moderate congestion, the application layer uplink rate is maintained; if the current uplink air interface congestion level is determined to be no congestion, the application layer uplink rate is increased by an eighth increment. The first increment is greater than the second increment. For example, the sixth increment can be 4 Mbps and the seventh increment can be 2 Mbps, or the sixth increment can be 5 Mbps and the seventh increment can be 1 Mbps. The sixth, seventh, and eighth increments can be set and adjusted according to the needs of the actual application scenario.
[0154] For example, based on the current congestion level of the uplink air interface, an adjustment instruction can be sent to the application layer application to instruct the application layer application to adjust the amount of data transmitted uplink.
[0155] Taking uplink air interface congestion levels (including Level 1 congestion, Level 2 congestion, normal congestion, and no congestion) as an example, if the current uplink air interface congestion level is determined to be Level 1 congestion, a first reduction instruction is sent to the application layer application. The first reduction instruction is used to reduce the application layer uplink rate by a first increment. If the application layer application receives the first reduction instruction, it reduces the application layer uplink rate by the first increment, thereby significantly reducing the application layer uplink rate. If the current uplink air interface congestion level is determined to be Level 2 congestion, a second reduction instruction is sent to the application layer application. The second reduction instruction is used to reduce the application layer uplink rate by a second increment. If the application layer application receives the second reduction instruction, it reduces the application layer uplink rate by the second increment, thereby reducing the application layer uplink rate by a normal magnitude. If the current uplink air interface congestion level is determined to be normal congestion, a maintain instruction is sent to the application layer application. The maintain instruction is used to instruct the application layer not to adjust the uplink rate. If the application layer application receives the maintain instruction, it does not adjust the application layer uplink rate. If it is determined that the current congestion level of the uplink air interface is not congested, an upscaling instruction is sent to the application layer application. The upscaling instruction is used to increase the application layer uplink rate by a third increment. If the application layer application receives the upscaling instruction, it increases the application layer uplink rate by the third increment, thereby increasing the application layer uplink rate.
[0156] In this embodiment, the current congestion level of the uplink air interface is determined based on the ratio of the cached data volume to the buffer capacity of the uplink PDCP layer. This includes: obtaining the interval between the current time and the last time an uplink scheduling instruction was received; if the interval is longer than a preset duration, the current congestion level of the uplink air interface is determined based on the ratio of the cached data volume to the buffer capacity of the uplink PDCP layer and a first mapping relationship between the ratio range and the congestion level; if the interval is less than or equal to the preset duration, the current congestion level of the uplink air interface is determined based on the ratio of the cached data volume to the buffer capacity of the uplink PDCP layer and a second mapping relationship between the ratio range and the congestion level. The current congestion level of the uplink air interface determined based on the first or second mapping relationship allows for better adjustment of the application layer uplink rate, thereby avoiding uplink air interface congestion and making reasonable use of uplink resources to ensure smooth operation of application layer services.
[0157] Example 4
[0158] Figure 5 This is a schematic diagram of the application layer rate adjustment device provided in Embodiment 4 of this application. The application layer rate adjustment device provided in this embodiment can execute the processing flow provided in the application layer rate adjustment method embodiment. For example... Figure 5 As shown, the application layer rate adjustment device 40 includes: a cached data volume statistics module 401, a congestion level determination module 402, and an application layer uplink rate adjustment module 403.
[0159] Specifically, the cached data volume statistics module 401 is used to obtain the current cached data volume of the uplink PDCP layer.
[0160] The congestion level determination module 402 is used to determine the current congestion level of the uplink air interface based on the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer.
[0161] The application layer uplink rate adjustment module 403 is used to adjust the application layer uplink rate according to the current congestion level of the uplink air interface.
[0162] The apparatus provided in this application embodiment can be specifically used to execute the method embodiment provided in Embodiment 1 above, and the specific functions will not be repeated here.
[0163] In this embodiment, the current cached data volume of the uplink PDCP layer is obtained; the current congestion level of the uplink air interface is determined based on the ratio of the cached data volume to the buffer capacity of the uplink PDCP layer; and the uplink rate of the application layer is adjusted based on the current congestion level of the uplink air interface, thereby avoiding uplink air interface congestion and making reasonable use of uplink resources to ensure the smooth operation of application layer services.
[0164] Example 5
[0165] Figure 6 This is a schematic diagram of the application layer rate adjustment device provided in Embodiment 5 of this application. Based on Embodiment 4 above, in this embodiment, optionally, as shown... Figure 6 As shown, the congestion level determination module 402 includes:
[0166] The interval duration acquisition unit 4021 is used to acquire the interval duration between the current time and the last time the uplink scheduling instruction was received.
[0167] The congestion level determination unit 4022 is used to determine the current congestion level of the uplink air interface if the interval length is longer than a preset length, based on the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer, and the first mapping relationship between the ratio range and the congestion level.
[0168] The congestion level determination unit 4022 is also used to determine the current congestion level of the uplink air interface based on the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer, and the second mapping relationship between the ratio range and the congestion level, if the interval duration is less than or equal to the preset duration.
[0169] Specifically, for the ratio of the current cached data volume of the same uplink PDCP layer to the cache capacity of the uplink PDCP layer, the current congestion level of the uplink air interface determined based on the ratio of the current cached data volume of the uplink PDCP layer to the cache capacity of the uplink PDCP layer and the first mapping relationship is higher than the current congestion level of the uplink air interface determined based on the ratio of the current cached data volume of the uplink PDCP layer to the cache capacity of the uplink PDCP layer and the second mapping relationship.
[0170] Optionally, the congestion level determination unit 4022 includes:
[0171] The ratio range determination subunit is used to determine the ratio range in which the current cached data volume of the uplink PDCP layer is relative to the cache capacity of the uplink PDCP layer, based on the ratio of the cached data volume to the cache capacity of the uplink PDCP layer and at least one configured ratio threshold.
[0172] The congestion level determination subunit is used to determine the congestion level corresponding to the ratio range of the current cached data volume of the uplink PDCP layer to the cache capacity of the uplink PDCP layer according to the specified mapping relationship; and to determine the congestion level corresponding to the ratio range of the current cached data volume of the uplink PDCP layer to the cache capacity of the uplink PDCP layer as the current congestion level of the uplink air interface.
[0173] The specified mapping relationship is either the first mapping relationship or the second mapping relationship.
[0174] Optional, such as Figure 6 As shown, the application layer uplink rate adjustment module 403 includes:
[0175] The application layer uplink rate reduction unit 4031 is used to reduce the application layer uplink rate if it is determined that the current congestion level of the uplink air interface is severe congestion. Severe congestion includes at least one preset congestion level.
[0176] Optionally, severe congestion may include at least two preset congestion levels, and the reduction in application layer uplink rate will vary depending on the current congestion level of the uplink air interface.
[0177] Optionally, severe congestion levels include Level 1 congestion and Level 2 congestion. If the current congestion level of the uplink air interface is determined to be severe, the application layer uplink rate is reduced, including:
[0178] The application layer uplink rate reduction unit 4031 is further configured to reduce the application layer uplink rate by a first increment if the current congestion level of the uplink air interface is level one congestion; and reduce the application layer uplink rate by a second increment if the current congestion level of the uplink air interface is level two congestion; wherein the first increment is greater than the second increment.
[0179] Optional, such as Figure 6 As shown, the application layer uplink rate adjustment module 403 also includes:
[0180] The application layer uplink rate increase unit 4032 is used to increase the application layer uplink rate if it is determined that the current congestion level of the uplink air interface is non-congested.
[0181] Optionally, the application layer uplink rate adjustment module 403 is also used to adjust the application layer uplink rate by adjusting the amount of data transmitted in the application layer uplink according to the current congestion level of the uplink air interface.
[0182] The apparatus provided in this application can be specifically used to execute the method embodiments provided in Embodiment 2 or Embodiment 3 above, and the specific functions will not be described in detail here.
[0183] In this embodiment, the current congestion level of the uplink air interface is determined based on the ratio of the cached data volume to the buffer capacity of the uplink PDCP layer. This includes: obtaining the interval between the current time and the last time an uplink scheduling instruction was received; if the interval is longer than a preset duration, the current congestion level of the uplink air interface is determined based on the ratio of the cached data volume to the buffer capacity of the uplink PDCP layer and a first mapping relationship between the ratio range and the congestion level; if the interval is less than or equal to the preset duration, the current congestion level of the uplink air interface is determined based on the ratio of the cached data volume to the buffer capacity of the uplink PDCP layer and a second mapping relationship between the ratio range and the congestion level. The current congestion level of the uplink air interface determined based on the first or second mapping relationship allows for better adjustment of the application layer uplink rate, thereby avoiding uplink air interface congestion and making reasonable use of uplink resources to ensure smooth operation of application layer services.
[0184] Example 6
[0185] Figure 7 This is a schematic diagram of the application layer rate adjustment device provided in Embodiment Six of this application. Figure 7 As shown, the application layer rate adjustment device 70 includes: a processor 701, a memory 702, and computer-executable instructions stored in the memory 702 and executable on the processor 701.
[0186] The processor 701 implements the application layer rate adjustment method provided in any of the above method embodiments when executing computer instructions.
[0187] In this embodiment, the current cached data volume of the uplink PDCP layer is obtained; the current congestion level of the uplink air interface is determined based on the ratio of the cached data volume to the buffer capacity of the uplink PDCP layer; and the uplink rate of the application layer is adjusted based on the current congestion level of the uplink air interface, thereby avoiding uplink air interface congestion and making reasonable use of uplink resources to ensure the smooth operation of application layer services.
[0188] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the method provided in any of the above-described method embodiments.
[0189] This application also provides a computer program product, which includes: computer execution instructions stored in a readable storage medium. At least one processor of the application layer rate adjustment device can read the computer execution instructions from the readable storage medium, and the at least one processor executes the computer execution instructions such that the application layer rate adjustment device performs the method provided in any of the above method embodiments.
[0190] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the determination of a unit is only for one logical function, and in actual implementation, there may be other determination methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0191] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0192] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0193] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0194] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described functional modules are used as examples. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be determined as different functional modules to complete all or part of the functions described above. The specific working process of the device described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0195] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0196] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. An application layer rate adjustment method, characterized in that, include: Get the current cached data volume of the uplink PDCP layer; The current congestion level of the uplink air interface is determined based on the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer. Adjust the application layer uplink rate based on the current congestion level of the uplink air interface; Determining the current congestion level of the uplink air interface based on the ratio of the cached data volume to the buffer capacity of the uplink PDCP layer includes: Get the time interval between the current time and the last time the uplink scheduling instruction was received; If the interval duration is longer than the preset duration, the current congestion level of the uplink air interface is determined based on the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer, and the first mapping relationship between the ratio range and the congestion level. If the interval duration is less than or equal to the preset duration, the current congestion level of the uplink air interface is determined based on the ratio of the cached data volume to the cache capacity of the uplink PDCP layer, and the second mapping relationship between the ratio range and the congestion level. Wherein, for the same ratio value, the current congestion level of the uplink air interface determined according to the ratio value and the first mapping relationship is higher than the current congestion level of the uplink air interface determined according to the ratio value and the second mapping relationship.
2. The method according to claim 1, characterized in that, Based on the ratio of the cached data volume to the buffer capacity of the uplink PDCP layer, and the specified mapping relationship between the ratio range and the congestion level, the current congestion level of the uplink air interface is determined, including: The ratio range of the ratio is determined based on the ratio of the cached data volume to the cache capacity of the uplink PDCP layer, and at least one configured ratio threshold. Based on the specified mapping relationship, determine the congestion level corresponding to the ratio range in which the ratio falls; The congestion level corresponding to the range of the ratio is determined as the current congestion level of the uplink air interface; The specified mapping relationship is either the first mapping relationship or the second mapping relationship.
3. The method according to claim 1 or 2, characterized in that, The step of adjusting the application layer uplink rate based on the current congestion level of the uplink air interface includes: If it is determined that the current congestion level of the uplink air interface is severe congestion, the application layer uplink rate is reduced. The severe congestion includes at least one preset congestion level.
4. The method according to claim 3, characterized in that, The severe congestion includes at least two preset congestion levels. When the current congestion level of the uplink air interface belongs to different preset congestion levels, the reduction in the application layer uplink rate is different.
5. The method according to claim 4, characterized in that, The severe congestion includes Level 1 congestion and Level 2 congestion. If it is determined that the current congestion level of the uplink air interface is severe congestion, then reducing the application layer uplink rate includes: If the current congestion level of the uplink air interface is Level 1 congestion, then the application layer uplink rate will be reduced by a first increment. If the current congestion level of the uplink air interface is level 2 congestion, then the application layer uplink rate will be reduced by a second increment. Wherein, the first increment is greater than the second increment.
6. The method according to claim 3, characterized in that, The step of adjusting the application layer uplink rate based on the current congestion level of the uplink air interface further includes: If it is determined that the current congestion level of the uplink air interface is non-congested, then the application layer uplink rate is increased.
7. The method according to claim 1, characterized in that, The step of adjusting the application layer uplink rate based on the current congestion level of the uplink air interface includes: Based on the current congestion level of the uplink air interface, the uplink rate of the application layer is adjusted by adjusting the amount of data transmitted uplink at the application layer.
8. An application layer rate adjustment device, characterized in that, include: The cached data volume statistics module is used to obtain the current cached data volume of the uplink PDCP layer; The congestion level determination module is used to determine the current congestion level of the uplink air interface based on the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer. The application layer uplink rate adjustment module is used to adjust the application layer uplink rate according to the current congestion level of the uplink air interface. The congestion level determination module includes: The interval duration acquisition unit is used to acquire the interval duration between the current time and the last time the uplink scheduling instruction was received; A congestion level determination unit is used to determine the current congestion level of the uplink air interface if the interval duration is greater than a preset duration, based on the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer, and the first mapping relationship between the ratio range and the congestion level. The congestion level determination unit is further configured to determine the current congestion level of the uplink air interface based on the ratio of the amount of cached data to the buffer capacity of the uplink PDCP layer, and the second mapping relationship between the ratio range and the congestion level, if the interval duration is less than or equal to a preset duration. Wherein, for the same ratio value, the current congestion level of the uplink air interface determined according to the ratio value and the first mapping relationship is higher than the current congestion level of the uplink air interface determined according to the ratio value and the second mapping relationship.
9. An application-layer rate adjustment device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-7.
11. A computer program product, characterized in that, It includes computer execution instructions that, when executed by a processor, implement the method of any one of claims 1-7.
Citation Information
Patent Citations
Adaptive video coding systemcwireless adaptive modulation and coding
CN103338412A
Method for determining coding rate of audio and video data, terminal, and storage medium
WO2018081937A1