Transmission resource allocation method, device, equipment and storage medium

By predicting the traffic share and dynamically adjusting the priority, the problem of transmission resource preemption during traffic peaks is solved, efficient resource utilization and normal operation of different applications are achieved, and wasteful expansion is avoided.

CN116208568BActive Publication Date: 2025-09-19ALIBABA (CHINA) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310176400.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-16
Publication Date
2025-09-19
Estimated Expiration
2043-02-16

AI Technical Summary

Technical Problem

During traffic peaks, the transmission traffic of certain applications occupies a large proportion of the transmission link, resulting in the preemption of transmission resources for other applications, affecting normal operations. Existing capacity expansion solutions cause waste of resources and are difficult to match the rapidly growing traffic demand.

Method used

By predicting the traffic share, the application priority is dynamically adjusted, the priority of the high-proportion application is reduced to the third priority, and transmission resources are allocated based on the new priority to reduce the impact on other applications.

Benefits of technology

Effectively reduce the impact of high-proportion applications on the transmission traffic of other applications during traffic peaks, improve resource utilization, avoid wasteful expansion, and meet the transmission needs of applications of different priorities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116208568B_ABST
    Figure CN116208568B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a transmission resource allocation method, apparatus, device, and storage medium. In the embodiments of the present application, a first application and a second application that need to transmit traffic in a transmission channel can be determined, the first application having a first priority, the second application having a second priority, and the second application being an application other than the first application; when it is predicted that the first transmission traffic of the first application in a future preset time period accounts for a proportion of transmission resources in the transmission channel that is greater than or equal to a preset threshold, the first priority of the first application is reduced to a third priority; based on the third priority, the first transmission traffic, the second priority, and the second transmission traffic of the second application in the future preset time period, transmission resources are allocated to the first application and the second application from the available transmission resources of the transmission channel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a transmission resource allocation method, apparatus, device, and storage medium. Background Art

[0002] At present, the traffic that can be transmitted through transmission channels usually comes from various types of applications. The fluctuation range of the transmission traffic of some applications is small, and even during the peak traffic period, it will not affect the transmission traffic of other applications in the transmission link. However, the transmission traffic of some applications will occupy a large proportion of the traffic in the transmission link during their peak traffic period, such as occupying a preset proportion of the traffic of the entire transmission link. When the traffic of such applications reaches its peak traffic, it will seize the transmission resources of other applications with the same transmission priority, thereby affecting the normal operation of such applications. In particular, for some backbone long-distance transmission resources, when the traffic peaks of some applications that they transmit and occupy a preset proportion of the traffic of the entire transmission channel during their peak traffic period, they will face a greater challenge.

[0003] One solution to this problem is to expand existing transmission resources. However, blindly expanding capacity will result in idle and wasted transmission resources after the peak traffic of these applications ends. Furthermore, due to the long construction cycle of backbone long-distance transmission resources, it is difficult to meet the data transmission needs of applications with rapid traffic bursts in the short term. Therefore, a transmission resource allocation method is urgently needed to reduce the impact of these applications on the transmission traffic of other applications during peak traffic periods. Summary of the Invention

[0004] Multiple aspects of the present application provide a transmission resource allocation method, device, equipment and storage medium to solve the problem that when an application that will occupy a large proportion of the transmission traffic of the entire transmission channel reaches a traffic peak during a traffic peak, it will have a significant impact on the transmission traffic of other applications in the transmission channel.

[0005] An embodiment of the present application provides a method for allocating transmission resources, including: determining a first application and a second application that need to transmit traffic in a transmission channel, the first application having a first priority, the second application having a second priority, and the second application being an application other than the first application; when it is predicted that the first transmission traffic of the first application in a future preset time period accounts for a proportion of transmission resources in the transmission channel that is greater than or equal to a preset threshold, reducing the first priority of the first application to a third priority; based on the third priority, the first transmission traffic, the second priority, and the second transmission traffic of the second application in the future preset time period, allocating transmission resources to the first application and the second application from available transmission resources of the transmission channel.

[0006] An embodiment of the present application also provides a transmission resource allocation device, including: a determination module, used to determine a first application and a second application that need to transmit traffic in a transmission channel, the first application has a first priority, the second application has a second priority, and the second application is an application other than the first application; an update module, used to reduce the first priority of the first application to a third priority when it is predicted that the first transmission traffic of the first application in a future preset time period accounts for a proportion of transmission resources in the transmission channel that is greater than or equal to a preset threshold; an allocation module, used to allocate transmission resources to the first application and the second application from the available transmission resources of the transmission channel based on the third priority, the first transmission traffic, the second priority and the second transmission traffic of the second application in the future preset time period.

[0007] An embodiment of the present application also provides an electronic device, comprising: a memory and a processor; the memory is used to store a computer program; the processor is coupled to the memory and is used to execute the computer program to: determine a first application and a second application that need to transmit traffic in a transmission channel, the first application has a first priority, the second application has a second priority, and the second application is an application other than the first application; when it is predicted that the first transmission traffic of the first application in a future preset time period accounts for a proportion of transmission resources in the transmission channel that is greater than or equal to a preset threshold, the first priority of the first application is reduced to a third priority; based on the third priority, the first transmission traffic, the second priority and the second transmission traffic of the second application in the future preset time period, transmission resources are allocated to the first application and the second application from the available transmission resources of the transmission channel.

[0008] An embodiment of the present application further provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor implements the steps in the transmission resource allocation method provided in the embodiment of the present application.

[0009] In an embodiment of the present application, it is possible to determine the first application and the second application that need to transmit traffic in the transmission channel, as well as the first priority of the first application and the second priority of the second application, and when it is predicted that the proportion of the first transmission traffic of the first application in the transmission channel in a preset time period in the future is greater than or equal to a preset threshold, the first priority of the first application is reduced to the third priority, and finally, based on the third priority, the first transmission traffic, the second priority, and the second transmission traffic of the second application in the preset time period in the future, transmission resources are allocated to the first application and the second application from the available transmission resources of the transmission channel. Thus, when an application that will occupy a large proportion of the transmission traffic of the entire transmission channel during a traffic peak reaches a traffic peak, the impact of the application on the transmission traffic of other applications with higher priorities than the third priority in the transmission channel is effectively reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0011] Figure 1 A flow chart of a transmission resource allocation method provided by an exemplary embodiment of the present application;

[0012] Figure 2 A schematic diagram of resource allocation in a first practical scenario using the transmission resource allocation method provided in an exemplary embodiment of the present application;

[0013] Figure 3 A schematic diagram of resource allocation in a second practical scenario using the transmission resource allocation method provided in an exemplary embodiment of the present application;

[0014] Figure 4 A schematic diagram of resource allocation in a third practical scenario where the transmission resource allocation method provided in the exemplary embodiment of the present application is applied;

[0015] Figure 5 A schematic diagram of applying the transmission resource allocation method provided in an exemplary embodiment of the present application to a scheduling system;

[0016] Figure 6 A schematic structural diagram of a transmission resource allocation device provided by an exemplary embodiment of the present application;

[0017] Figure 7 A schematic structural diagram of an electronic device provided as an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0018] To make the purpose, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the specific embodiments of this application and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0019] First, the terms involved in one or more embodiments of the present application are explained.

[0020] Tidal phenomenon: Tidal phenomenon refers to the periodic movement of seawater under the influence of the tidal force of celestial bodies (mainly the moon and the sun). It is customary to call the vertical rise and fall of the sea surface tide, and the horizontal flow of seawater tidal current. Generally, the tidal force is greater in places facing the moon, while the tidal force on the seawater facing away from the moon becomes smaller. Because the centrifugal force becomes larger, the seawater runs to the side facing away from the moon under the influence of centrifugal force, thus causing high tide. The flow tidal phenomenon derived from this refers to the periodic flow peaks in the flow data of applications. Taking travel service applications as an example, the flow data of such applications usually has a travel flow peak during the morning and evening commuting peaks on weekdays.

[0021] Differentiated Services Code Point (DSCP): This indicates the service category classification standard in the IP header. It uses the six used bits and two unused bits in the service category TOS byte in each packet's IP header to encode a value that can be used to distinguish priorities, such as data transmission priority. DSCP uses six bits and typically ranges from 0 to 63.

[0022] Gold, Silver, and Bronze: Different service levels can be distinguished based on the DSCP value carried by the application, where gold, silver, and bronze can correspond to different service level agreements (SLAs). SLA generally refers to a mutually recognized agreement or contract reached between the enterprise providing the service and the customer regarding the quality, level, performance, etc. of the service. Table 1 is an application definition of gold, silver, and bronze service levels provided in an embodiment of the present application. It should be understood that the application definition of different service levels described in Table 1 is only an implementation method and does not constitute a limitation on the application definition of gold, silver, and bronze service levels. Among them, applications with a service level of gold have the highest priority, and their DSCP values ​​may include 6, 10, 18, 22, 26, and 34. Such applications are defined as high-priority applications / real-time control traffic / critical application traffic. Applications with a service level of silver have a priority between gold and bronze, and their DSCP values ​​may include DSCP values ​​other than those for service levels of gold and copper. Such applications are defined as real-time online application traffic and have high requirements for transmission network stability, and no packet loss when the bandwidth loss is less than 2 / 3. Applications in the bronze service level have the lowest priority and can have DSCP values ​​of 4, 8, 16, 20, 24, and 32. These applications are considered offline traffic and do not have guaranteed bandwidth. Applications in the gold, silver, and bronze service levels preempt transmission resources based on their pre-defined weights.

[0023] Table 1 Application definitions of Gold / Silver / Bronze service levels

[0024]

[0025] At present, for some applications whose transmission traffic accounts for a greater than preset proportion in the transmission link during traffic peaks, they usually need to occupy backbone long-distance transmission resources when transmitting traffic. If such applications are directly connected to the existing backbone long-distance transmission channels, such applications will preempt the transmission resources of the transmission traffic of other applications in the transmission channel during their traffic peaks, thereby affecting the normal operation of other applications. In response to this, one solution is to expand the capacity of the long-distance transmission channels. However, although this method can cope with the traffic of such applications during their traffic peaks after the transmission channels are expanded, this method will cause the idleness and waste of the expanded transmission channels after the traffic peak period of such applications has passed. In addition, the long construction period of long-distance transmission channels is seriously mismatched with the transmission needs of such applications for the rapidly growing traffic data during traffic peaks. However, if such applications are prioritized according to the existing gold / silver / bronze priority classification standards, they may be classified into the higher-priority silver category based on their transmission needs. If the transmission channel has traffic data of such applications and other silver-level applications that need to be transmitted at the same time, the data transmission of other silver-level applications will be directly affected during the traffic peak period of such applications. That is, when transmission resources are insufficient, the transmission resources of other silver applications will be squeezed out, thereby affecting the normal operation of other silver-level applications.

[0026] To address this, an embodiment of the present application provides a method for allocating transmission resources. The method determines a first application and a second application that need to transmit traffic in a transmission channel, as well as the first priority of the first application and the second priority of the second application. When it is predicted that the proportion of the first transmission traffic of the first application in the transmission channel in a future preset time period is greater than or equal to a preset threshold, the first priority of the first application is reduced to a third priority. Finally, based on the third priority, the first transmission traffic, the second priority, and the second transmission traffic of the second application in the future preset time period, transmission resources are allocated to the first application and the second application from the available transmission resources of the transmission channel. Thus, when an application that will occupy a large proportion of the transmission traffic of the entire transmission channel during a traffic peak reaches a traffic peak, the impact of the application on the transmission traffic of other applications with higher priorities than the third priority in the transmission channel is effectively reduced.

[0027] It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the embodiments of this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0028] The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0029] Figure 1 A flow chart of a transmission resource allocation method provided by an exemplary embodiment of the present application. Figure 1 As shown, the method may include:

[0030] Step 110 : Determine a first application and a second application that need to transmit traffic in a transmission channel, wherein the first application has a first priority, the second application has a second priority, and the second application is an application other than the first application.

[0031] Among them, the applications in the embodiments of the present application may include large-traffic real-time online applications, high-priority applications, real-time management and control applications, security service applications, real-time online applications with high requirements for the stability of the transmission network, and offline applications. Among them, the application type can be determined based on information in the traffic transmission parameters such as the source and destination addresses of the application, the traffic transmission plan within a preset time period in the future, the type and level of the application party (the requesting party that initiates the traffic transmission request for the application). Different types of applications may correspond to different data transmission requirements, which may include not allowing packet loss, no packet loss when the bandwidth loss is less than 2 / 3, no packet loss guarantee, and a small amount of packet loss in the case of bandwidth loss.

[0032] In some exemplary embodiments, the application type of the first application may include a high-traffic real-time online application, and the data traffic of such applications increases rapidly during traffic peaks, which easily generates "elephant flows" that occupy the transmission bandwidth of the transmission channel and thus damage the transmission traffic of other applications. The second application may be an application other than the first application. Compared with the first application, the traffic of such applications is relatively stable, and even during traffic peaks, the degree of traffic burst is lower than the traffic burst of the first application during traffic peaks. In one embodiment, the first priority and the second priority may include the priorities corresponding to applications of the gold / silver / bronze service levels shown in Table 1. The priority is used to indicate the allocation priority of transmission resources in the transmission channel.

[0033] In some exemplary embodiments, to facilitate determining the priorities of the first and second applications, a table of preset mappings between DSCP values ​​and application priorities may be maintained. Each IP packet of traffic data of the first and second applications may carry a DSCP value indicating its priority. Specifically, the process of determining the priorities of the first and second applications may include:

[0034] Obtaining DSCP values ​​of the first application and the second application;

[0035] A first priority of the first application and a second priority of the second application are determined based on the DSCP values ​​of the first application and the second application, and a preset mapping relationship between the DSCP value and the priority.

[0036] Step 120 : when it is predicted that the first transmission traffic of the first application in a future preset time period accounts for a transmission resource proportion in the transmission channel greater than or equal to a preset threshold, the first priority of the first application is reduced to a third priority.

[0037] In one embodiment, the first application may include a high-traffic real-time online application, and the transmission requirements of such applications may include allowing a small amount of packet loss in the event of bandwidth loss. The second application may be any of the gold / silver / bronze service level applications shown in Table 1. As shown in Table 1, the transmission requirements of the silver service level application include no packet loss when the bandwidth loss of the transmission channel is less than 2 / 3. To meet this transmission requirement, the bandwidth occupancy rate of the gold + silver service level application can be guaranteed to be less than 1 / 3 of the total transmission resources. In actual applications, the transmission traffic to transmission resource occupancy rate of the gold + silver service level application can be less than 35% of the total transmission resources. For the first application, since this type of application has a high demand for transmission resources during its peak traffic, if it is classified as the Silver service level shown in Table 1, it will cause a large amount of packet loss in the transmission traffic of other Silver service-level applications during its traffic burst period. Moreover, since the traffic data of Silver service-level applications transmitted in the transmission channel accounts for a large proportion, if the first application is also classified as Silver service level and then distinguished from other applications based on a certain characteristic of this type of application, it will result in the reclassification of the traffic data of all Silver service-level applications, thereby increasing unnecessary workload. On the other hand, if it is classified as the Bronze service level shown in Table 1, due to the high packet loss rate of the Bronze service level, it cannot meet the transmission requirements of this type of application, that is, only a small amount of packet loss is allowed in the case of bandwidth loss.

[0038] To address this issue, the present embodiment adds a new service level, Silver 2, between the Silver and Bronze service levels shown in Table 1. The application definitions corresponding to the existing Silver service level remain unchanged, and to facilitate differentiation from the existing Silver service level, it can be denoted as Silver 1. Applications assigned to this service level are defined as high-traffic, real-time online applications. These applications are characterized by a transmission traffic ratio in the transmission channel during peak traffic periods that is greater than or equal to a preset threshold. Furthermore, the transmission requirements of these applications can be defined as allowing for a small amount of packet loss in the event of bandwidth loss.

[0039] The third priority level can be a newly added priority level based on the priority levels corresponding to existing service levels. This third priority level can be used to distinguish between high-traffic real-time online applications whose transmission traffic during peak traffic periods accounts for a transmission resource ratio greater than or equal to a preset threshold in the transmission channel, and other applications. In one embodiment, this third priority level can be a priority level corresponding to a new service level, Silver 2, added between the Silver and Bronze service levels shown in Table 1.

[0040] Optionally, the first application may be a newly connected application, i.e., the application does not carry identification information indicating its priority. Based on this, the embodiment of the present application can parse the traffic transmission parameters of such applications to obtain the transmission traffic of the application in the transmission channel within a future preset time period, and set its priority to the third priority when it is determined that the application meets the preset conditions. Specifically, the method provided by the embodiment of the present application also includes: obtaining the traffic transmission parameters of the first application, the traffic transmission parameters including the transmission traffic of the first application in the transmission channel within the future preset time period;

[0041] When it is determined based on the traffic transmission parameters of the first application that the transmission traffic of the first application in a future preset time period accounts for a proportion of transmission resources in the transmission channel that is greater than or equal to a preset threshold, a specified DSCP value is assigned to the first application, and a mapping relationship exists between the DSCP value and the third priority.

[0042] In some exemplary embodiments, to facilitate determining the priority of the first application during subsequent resource scheduling, after determining that the priority of the first application is the third priority, a designated DSCP value may be assigned to the first application, with a mapping relationship between the designated DSCP value and the third priority. This mapping relationship may be included in the table of mapping relationships between preset DSCP values ​​and application priorities described above. Similarly, updating the first priority of the first application to the third priority includes: updating the DSCP value of the first application to the designated DSCP value, thereby updating the first priority of the first application to the third priority.

[0043] In one embodiment, the DSCP values ​​for applications with a service level of Silver 2 may include 12 and 23. After a specified DSCP value is assigned to a first application, when subsequently optimizing transmission resources for the traffic data of the application transmitted in the transmission channel, i.e., rescheduling and allocating transmission resources, the priority of the first application can be determined directly based on the DSCP value carried in the traffic data of the first application.

[0044] Among them, the traffic transmission parameters may also include address information indicating the source and destination of the traffic to be transmitted of the first application, the type and level of the requester who initiates the traffic transmission request of the first application, and other information required to transmit the transmission traffic of the first application.

[0045] Step 130 , allocating transmission resources from available transmission resources of the transmission channel to the first application and the second application based on the third priority, the first transmission flow, the second priority, and the second transmission flow of the second application in a future preset time period.

[0046] Optionally, to improve the utilization of transmission resources in the transmission channel, after the traffic peak period of the first application has passed, the priority of the first application may be reset to the first priority. Specifically, based on the third priority, the second priority, the first transmission traffic, the second transmission traffic of the second application in a future preset time period, and the available transmission resources of the transmission channel, after allocating transmission resources to the first application and the second application, the method provided in the embodiment of the present application further includes:

[0047] When it is re-predicted that the proportion of the first transmission traffic of the first application in the transmission channel in the future preset time period is less than the preset threshold, the third priority of the first application is updated to the first priority.

[0048] The available transmission resources of a transmission channel can be represented by the available transmission flow of the transmission channel. For example, the initial available transmission resources of a transmission channel, that is, when it is not occupied by other applications and there is no bandwidth loss, are 1T. Then, when the bandwidth loss of the transmission channel is 1 / 3, the available transmission resources of the transmission channel are 2 / 3T ≈ 666G, and when the bandwidth loss of the transmission channel is 1 / 2, the available transmission resources of the transmission channel are 1 / 2T = 500G.

[0049] In some exemplary embodiments, allocating transmission resources to the first application and the second application based on the third priority, the second priority, the first transmission traffic, the second transmission traffic of the second application in a future preset time period, and the available transmission resources of the transmission channel includes:

[0050] Determining whether congestion occurs in the transmission channel based on the first transmission flow, the second transmission flow, and available transmission resources of the transmission channel;

[0051] If the transmission channel is not congested, allocating transmission resources to the first application and the second application from available transmission resources of the transmission channel according to the first transmission flow and the second transmission flow;

[0052] If the transmission channel is congested, transmission resources are allocated to the first application and the second application from available transmission resources of the transmission channel according to resource allocation weights corresponding to the second priority and the third priority.

[0053] The determination of whether the transmission channel is congested is based on the first transmission flow rate, the second transmission flow rate, and the available transmission resources. Specifically, the determination can be based on the relationship between the sum of the flow rates of the first transmission flow rate and the second transmission flow rate, and the available transmission resources. If the sum of the flow rates of the first transmission flow rate and the second transmission flow rate is greater than the flow rate in the available transmission resources, then congestion is determined in the transmission channel. If the sum of the flow rates of the first transmission flow rate and the second transmission flow rate is less than or equal to the flow rate in the available transmission resources, then no congestion is determined in the transmission channel.

[0054] Optionally, if there is no congestion in the transmission channel, transmission resources are allocated to the first application and the second application according to the third priority and the second priority. Specifically, transmission resources may be allocated preferentially to the application corresponding to the target priority with a higher priority among the third priority and the second priority. Figure 2 This is a schematic diagram of the resource allocation situation in the first practical scenario where the transmission resource allocation method provided by the exemplary embodiment of the present application is applied. Figure 2 In the current transmission channel, the transmission traffic size of the second application (the application with service level of gold + silver 1) waiting for transmission is 350G, and the transmission traffic size of the first application (the application with service level of silver 2) is 250G. The size of the available transmission resources of the current transmission channel is 1T. Since 350G+250G=600G<1T, the transmission traffic of the first application and the transmission traffic of the second application waiting for transmission in the current transmission channel can both pass through the transmission channel normally.

[0055] Figure 3 This is a schematic diagram of the resource allocation situation in which the transmission resource allocation method provided by the exemplary embodiment of the present application is applied to the second actual scenario. Figure 3 In the current transmission channel, the transmission traffic of the second application (the application with service level of gold + silver 1) waiting for transmission is 350G, and the transmission traffic of the first application (the application with service level of silver 2) is 250G. The current transmission channel has a bandwidth loss rate of 1 / 3. At this time, the size of the available transmission resources of the transmission channel is 666G. Since 350G+250G=600G<666G, the transmission traffic of the second application waiting for transmission in the current transmission channel and the transmission traffic of the first application can still pass through the transmission channel normally.

[0056] In some exemplary embodiments, the available transmission resources of a transmission channel include available bandwidth transmission resources. In the event of congestion in the transmission channel, to ensure that the transmission traffic of higher-priority applications can be properly transmitted while also meeting the transmission requirements of the transmission traffic of applications with different priorities, transmission resources may be allocated to the transmission traffic of higher-priority applications according to the resource allocation weights corresponding to each priority level. Specifically, allocating transmission resources to the first application and the second application from the available transmission resources of the transmission channel according to the resource allocation weights corresponding to the second and third priorities includes:

[0057] If the second priority is higher than the third priority, determining the ratio of the first bandwidth transmission resources that can be allocated to the second application to the available bandwidth transmission resources of the transmission channel according to the resource allocation weights corresponding to the second priority and the third priority;

[0058] When the ratio of the first bandwidth transmission resource to the available bandwidth transmission resource of the transmission channel is within a preset ratio range, allocating the first bandwidth transmission resource to the second application from the available bandwidth transmission resources of the transmission channel based on the ratio of the first bandwidth transmission resource to the available bandwidth transmission resource of the transmission channel;

[0059] Allocate the remaining bandwidth transmission resources of the available bandwidth transmission resources of the transmission channel except the first bandwidth transmission resource to the first application.

[0060] Similarly, when the second priority is lower than the third priority, if the transmission channel is congested, transmission resources are allocated to the first application and the second application based on the resource allocation weights corresponding to the second priority and the third priority, and the available transmission resources of the transmission channel, including:

[0061] If the second priority is lower than the third priority, determining the ratio of the second bandwidth transmission resources that can be allocated to the first application to the available bandwidth transmission resources according to the resource allocation weights corresponding to the second priority and the third priority;

[0062] When the ratio of the second bandwidth transmission resource to the available bandwidth transmission resource is within a preset ratio range, allocating the second bandwidth transmission resource to the first application from the available bandwidth transmission resources of the transmission channel based on the ratio of the second bandwidth transmission resource to the available bandwidth transmission resource;

[0063] Allocate the remaining transmission resources of the available bandwidth transmission resources of the transmission channel except the second bandwidth transmission resources to the second application.

[0064] In some exemplary embodiments, on the basis of the gold, silver and bronze service levels shown in Table 1, after introducing the third priority corresponding to Silver 2, in order to ensure that the transmission resources allocated by the transmission channel to each priority level meet the transmission requirements of the traffic data of the applications corresponding to each priority level, the embodiment of the present application can set the resource allocation weights of the traffic data of the applications corresponding to each priority level based on the historical transmission data and data transmission situation. In one embodiment, the resource allocation weights for the transmission traffic of applications corresponding to the gold, silver 1, silver 2 and bronze service levels can be set to 80:40:8:1. In addition, in order to meet the packet loss rate in the transmission requirements of the traffic data of applications corresponding to the service levels of gold, silver 1 and silver 2, it can be additionally set that the sum of the bandwidth occupancy rates of applications with the service levels of gold + silver 1 can be less than 35% of the total transmission bandwidth, and the sum of the bandwidth occupancy rates of applications with the service levels of gold + silver 1 + silver 2 can be less than 60% of the total transmission bandwidth, that is, the preset ratio range mentioned above.

[0065] Figure 4 This is a schematic diagram of the resource allocation situation in which the transmission resource allocation method provided in the exemplary embodiment of the present application is applied to the third actual scenario. Figure 4 In the current transmission channel, the transmission traffic of the second application (application with service level Silver 1) waiting to be transmitted is 350G, and the transmission traffic of the first application (application with service level Silver 2) is 250G. The current transmission channel has a bandwidth loss rate of 1 / 2. At this time, the size of the available transmission resources of the transmission channel is 500G. Since 350G+250G=600G>500G, the current transmission channel is congested, that is, the transmission traffic of the second application waiting to be transmitted and the transmission traffic of the first application cannot pass through the transmission channel normally. In this case, the transmission resources that can be allocated to the transmission traffic of the second application and the transmission traffic of the first application can be determined according to the following conditions 1 to 3. Among them, condition 1, the traffic data of applications corresponding to the gold, silver 1, silver 2 and bronze service levels are set to a resource allocation weight of 80:40:8:1; condition 2, the ratio of the sum of the transmission traffic of applications with the gold + silver 1 service levels to the total available transmission resources can be less than 35%; condition 3: the ratio of the sum of the transmission traffic of applications with the gold + silver 1 + silver 2 service levels to the total available transmission resources can be less than 60%.

[0066] According to condition 1, the ratio of transmission resources available for Silver 1 is 40 / 48, resulting in a total of (40 / 48) × 500 = 416 transmission resources. The ratio of transmission resources available for Silver 2 to available transmission resources is 8 / 48, resulting in a total of (8 / 48) × 500 = 83 transmission resources available for Silver 2. According to condition 2, the upper limit of transmission resources available for Silver 1 is 1T × 35% = 350G. Therefore, the total transmission resources available for Silver 1 is 350G, and the total transmission resources available for Silver 2 is 500G - 350G = 150G. Since Silver 1 + Silver 2 = 500G is less than the total transmission bandwidth of 1T × 60% = 600G, condition 3 is met. Therefore, the total transmission resources available for Silver 1 is 350G, and the total transmission resources available for Silver 2 is 150G. Obviously, Silver 1 will not lose packets even if the bandwidth of the transmission channel loses 1 / 2, which meets the transmission needs of Silver 1, while Silver 2 will lose 100G packets when the bandwidth loses 1 / 2.

[0067] comprehensive Figures 2 to 4 As can be seen, using the transmission resource allocation method provided in the embodiments of this application, Silver 2 achieves no packet loss when the transmission channel's bandwidth is reduced by 1 / 3, and Silver 1 achieves no packet loss when the transmission channel's bandwidth is reduced by 1 / 2, thereby meeting the SLA requirements of applications at different service levels. Furthermore, the traffic bursts associated with Silver 2 applications during peak traffic periods have minimal impact on the transmission traffic of applications at service levels Gold and Silver 1, ensuring that the packet loss ratio requirements for the transmission traffic of the applications transmitted by the transmission channel are met.

[0068] In some exemplary embodiments, the available transmission resources of the transmission channel further include multiple transmission links. When selecting a transmission link, a transmission link with a lower link overhead is typically preferentially selected and allocated to a higher-priority application. Specifically, allocating the first bandwidth transmission resource to the second application based on the ratio of the first bandwidth transmission resource to the available bandwidth transmission resource of the transmission channel and the available bandwidth transmission resource of the transmission channel includes:

[0069] determining a first transmission link from the plurality of transmission links based on link costs of the plurality of transmission links, wherein the link cost of the first transmission link is less than the link costs of other transmission links in the plurality of transmission links;

[0070] The first bandwidth transmission resource is allocated to the second application based on a ratio of the first bandwidth transmission resource to the available bandwidth transmission resource of the transmission channel, the available transmission resource of the transmission channel, and the available bandwidth transmission resource of the first transmission link.

[0071] In some exemplary embodiments, to fully utilize the idle transmission resources of other transmission links to meet the transmission requirements of the transmission traffic of higher-priority applications, if the transmission resources of the first transmission link cannot meet the transmission requirements of the second application, a portion of the transmission traffic of the second application can be transferred to other transmission links with idle transmission resources for transmission. Specifically, based on the ratio of the first bandwidth transmission resources to the available bandwidth transmission resources of the transmission channel, the available transmission resources of the transmission channel, and the available bandwidth transmission resources of the first transmission link, allocating the first bandwidth transmission resources to the second application includes:

[0072] Allocating the first transmission link to the second application;

[0073] If the available bandwidth transmission resources in the first transmission link are greater than the first bandwidth transmission resources, allocating the first transmission bandwidth resources to the second application from the available bandwidth transmission resources in the first transmission link;

[0074] If the available bandwidth transmission resource in the first transmission link is less than the first bandwidth transmission resource, adjusting other transmission traffic of the second application to be transmitted in the second transmission link;

[0075] The second transmission link is a transmission link with idle bandwidth transmission resources among other transmission links, and other transmission traffic is traffic in the second transmission traffic except traffic transmitted by the first transmission link.

[0076] The other transmission links are transmission links other than the first transmission link among the multiple transmission links.

[0077] Figure 5 A schematic diagram of the transmission resource allocation method provided in the exemplary embodiment of the present application applied to a scheduling system. The scheduling system may include a scheduling platform, a policy controller, a marking platform, and a device layer of a transmission channel. Among them, the scheduling platform can perform scheduling input based on the data transmission plan and traffic size of the application, and send it to the policy controller, which creates a scheduling tunnel and diverts the execution. The platform is divided into three submodules, including pre-scheduling analysis, mid-scheduling execution, and post-scheduling monitoring. Pre-scheduling analysis is used to analyze the traffic data to be transmitted for each application based on traffic parameter information such as the source and destination address, IP address segment, application type, priority, traffic attributes, and traffic size of each application, and to build a global map of the latency, bandwidth, and utilization of each application in the transmission channel. Mid-scheduling execution is used for the issuance of resource scheduling policies and the flow of work orders. Post-scheduling monitoring is used to allocate transmission links with lower link overhead to the transmission of traffic data of applications with higher priority based on the comparison of bandwidth occupancy before and after resource allocation.

[0078] The policy controller can directly interact with the devices at the transmission channel device layer to implement resource scheduling policies. The resource scheduling policies can be issued to the devices at the transmission channel device layer based on failure / congestion scenarios, and can also be converted into device configuration scheduling policies based on the policies issued by the scheduling platform and issued to the devices at the transmission channel device layer. The labeling platform can issue policies to the server based on the granularity required by the application (such as source IP address segment + application, etc.) to implement priority encapsulation of traffic data packets for different applications. The device layer of the transmission channel includes CSR and BSR, where CSR is the source node (DC1 and DC2) of resource transmission, the execution point of tunnel and diversion, and BSR is the intermediate node in the resource transmission process, which can forward traffic data according to the forwarding list carried by CSR.

[0079] by Figure 5 For example, if there is currently a transmission traffic of the first application that needs to be transmitted, BSR1-BSR3 is a direct link with a link cost value of 100. Its currently used bandwidth transmission resources have reached the preset bandwidth utilization rate, that is, it can no longer meet the transmission needs of applications with larger transmission traffic. BSR1-BSR2-BSR3 is a detour link, and the link cost values ​​of its two branch links are 60 respectively. The link cost value of the detour link composed of these two branch links is 120, and its remaining available bandwidth transmission resources is greater than or equal to the peak value of the transmission traffic of the first application in the future preset time period. At this time, if the first application is connected in the future preset time period, the proportion of transmission resources in the transmission channel of the transmission traffic is greater than or equal to the preset threshold, the scheduling platform obtains the traffic transmission parameters of the first application. According to the traffic transmission parameters, it can be determined that when the first application meets the preset conditions, its priority is marked as the priority corresponding to the service level of Silver 2 through the marking platform. When it is determined that the direct link BSR1-BSR3 cannot meet the peak transmission traffic of the first application within a preset time period in the future, the detour link BSR1-BSR2-BSR3 with larger remaining available bandwidth transmission resources can be selected as its transmission link, thereby utilizing idle resources to meet the large traffic volume demand of the first application and improving the utilization rate of the bandwidth transmission resources of the transmission link.

[0080] In addition, the method provided in this embodiment can be applied to any application scenario where resource transmission exists. When the application currently having traffic transmission requirements meets the condition that the proportion of transmission resources in the transmission channel of the transmission traffic in a future preset time period is greater than or equal to a preset threshold, the priority of the application can be adjusted to the third priority in real time, and transmission resources can be allocated preferentially to other applications with higher priority than the third priority, effectively reducing the impact of such applications on traffic transmission and normal operations during their traffic peak periods compared to applications with higher priorities.

[0081] In the transmission resource allocation method provided in some embodiments of the present application, it is possible to determine the first application and the second application that need to transmit traffic in the transmission channel, as well as the first priority of the first application and the second priority of the second application. When it is predicted that the proportion of the first transmission traffic of the first application in the transmission channel in a preset time period in the future is greater than or equal to a preset threshold, the first priority of the first application is reduced to the third priority. Finally, based on the third priority, the first transmission traffic, the second priority, and the second transmission traffic of the second application in the preset time period in the future, transmission resources are allocated to the first application and the second application from the available transmission resources of the transmission channel. Thus, when an application that will occupy a large proportion of the transmission traffic of the entire transmission channel during a traffic peak reaches a traffic peak, the impact of the application on the transmission traffic of other applications with higher priorities than the third priority in the transmission channel is effectively reduced.

[0082] It should be noted that the execution entity of each step of the method provided in the above embodiment can be the same device, or the method can be executed by different devices. For example, the execution entity of steps 110 to 130 can be device A; for another example, the execution entity of steps 110 to 120 can be device A, and the execution entity of step 130 can be device B; and so on.

[0083] In addition, some of the processes described in the above embodiments and the accompanying drawings include multiple operations that appear in a specific order, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or may be executed in parallel. The serial numbers of the operations, such as 110, 120, etc., are only used to distinguish between different operations, and the serial numbers themselves do not represent any order of execution. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., and do not represent a sequential order, nor do they limit "first" and "second" to different types.

[0084] Figure 6 This is a schematic diagram of the structure of a transmission resource allocation device provided by an exemplary embodiment of the present application. Figure 6 As shown, the apparatus includes: a determination module 610, an update module 620 and an allocation module 630, wherein:

[0085] A determination module 610 is configured to determine a first application and a second application that need to transmit traffic in a transmission channel, wherein the first application has a first priority, the second application has a second priority, and the second application is an application other than the first application;

[0086] An updating module 620 is configured to lower the first priority of the first application to a third priority when it is predicted that the first transmission traffic of the first application in a future preset time period accounts for a transmission resource proportion in the transmission channel that is greater than or equal to a preset threshold;

[0087] Allocation module 630 is used to allocate transmission resources to the first application and the second application from the available transmission resources of the transmission channel based on the third priority, the first transmission traffic, the second priority and the second transmission traffic of the second application in the future preset time period.

[0088] The transmission resource allocation device provided in the embodiment of the present application is capable of determining the first application and the second application that need to transmit traffic in the transmission channel, as well as the first priority of the first application and the second priority of the second application, and when it is predicted that the proportion of the first transmission traffic of the first application in the transmission resources of the transmission channel in a future preset time period is greater than or equal to a preset threshold, the first priority of the first application is reduced to the third priority, and finally, based on the third priority, the first transmission traffic, the second priority, and the second transmission traffic of the second application in the future preset time period, transmission resources are allocated to the first application and the second application from the available transmission resources of the transmission channel. Thus, when an application that will occupy a large proportion of the transmission traffic of the entire transmission channel during a traffic peak reaches a traffic peak, the impact of the application on the transmission traffic of other applications with higher priorities than the third priority in the transmission channel is effectively reduced.

[0089] Further optionally, the updating module 620 is further configured to:

[0090] When it is re-predicted that the proportion of the first transmission traffic of the first application in the future preset time period in the transmission resource of the transmission channel is less than a preset threshold, the third priority of the first application is updated to the first priority.

[0091] Further optionally, when allocating transmission resources to the first application and the second application based on the third priority, the second priority, the first transmission traffic, the second transmission traffic of the second application in the future preset time period, and the available transmission resources of the transmission channel, the allocation module 630 is specifically configured to:

[0092] Determining whether congestion occurs on the transmission channel based on the first transmission flow, the second transmission flow, and available transmission resources of the transmission channel;

[0093] If the transmission channel is not congested, allocating transmission resources to the first application and the second application from available transmission resources of the transmission channel according to the first transmission flow and the second transmission flow;

[0094] If the transmission channel is congested, transmission resources are allocated to the first application and the second application from available transmission resources of the transmission channel according to resource allocation weights corresponding to the second priority and the third priority.

[0095] Further optionally, the available transmission resources of the transmission channel include available bandwidth transmission resources, and the allocation module 630 allocates transmission resources to the first application and the second application from the available transmission resources of the transmission channel according to the resource allocation weights corresponding to the second priority and the third priority, specifically for:

[0096] If the second priority is higher than the third priority, determining, according to the resource allocation weights corresponding to the second priority and the third priority, a ratio of the first bandwidth transmission resources that can be allocated to the second application to the available bandwidth transmission resources of the transmission channel;

[0097] When the ratio of the first bandwidth transmission resource to the available bandwidth transmission resource of the transmission channel is within a preset ratio range, allocating the first bandwidth transmission resource to the second application from the available bandwidth transmission resources of the transmission channel based on the ratio of the first bandwidth transmission resource to the available bandwidth transmission resource of the transmission channel;

[0098] Allocate remaining bandwidth transmission resources of the available bandwidth transmission resources of the transmission channel except the first bandwidth transmission resource to the first application.

[0099] Further optionally, the available transmission resources of the transmission channel further include multiple transmission links, and the allocation module 630 allocates the first bandwidth transmission resource to the second application based on the ratio of the first bandwidth transmission resource to the available bandwidth transmission resource of the transmission channel and the available bandwidth transmission resource of the transmission channel, specifically for:

[0100] determining a first transmission link from the plurality of transmission links based on link costs of the plurality of transmission links, wherein the link cost of the first transmission link is less than the link costs of other transmission links in the plurality of transmission links;

[0101] The first bandwidth transmission resource is allocated to the second application based on a ratio of the first bandwidth transmission resource to the available bandwidth transmission resource of the transmission channel, the available transmission resource of the transmission channel, and the available bandwidth transmission resource of the first transmission link.

[0102] Further optionally, when allocating the first bandwidth transmission resource to the second application based on the ratio of the first bandwidth transmission resource to the available bandwidth transmission resource of the transmission channel, the available transmission resource of the transmission channel, and the available bandwidth transmission resource of the first transmission link, the allocation module 630 is specifically configured to:

[0103] allocating the first transmission link to the second application;

[0104] If the available bandwidth transmission resources in the first transmission link are greater than the first bandwidth transmission resources, allocating the first transmission bandwidth resources to the second application from the available bandwidth transmission resources in the first transmission link;

[0105] If the available bandwidth transmission resource in the first transmission link is less than the first bandwidth transmission resource, adjusting other transmission traffic of the second application to be transmitted in the second transmission link;

[0106] The second transmission link is a transmission link with idle bandwidth transmission resources among the other transmission links, and the other transmission traffic is the traffic in the second transmission traffic except the traffic transmitted by the first transmission link.

[0107] Further optionally, the determining module 610 is further configured to:

[0108] Obtaining Differentiated Services Code Point (DSCP) values ​​of the first application and the second application;

[0109] Based on the DSCP values ​​of the first application and the second application, and a preset mapping relationship between the DSCP value and the priority, a first priority of the first application and a second priority of the second application are determined.

[0110] Further optionally, the allocation module 630 is further configured to:

[0111] Acquire a traffic transmission parameter of the first application, where the traffic transmission parameter includes a transmission traffic of the first application in the transmission channel within a future preset time period;

[0112] When it is determined based on the traffic transmission parameters of the first application that the transmission traffic of the first application in a future preset time period accounts for a proportion of transmission resources in the transmission channel that is greater than or equal to a preset threshold, a specified DSCP value is assigned to the first application, and a mapping relationship exists between the DSCP value and the third priority.

[0113] The transmission resource allocation device can realize Figures 1 to 5 For details, please refer to the method of the embodiment of the method. Figures 1 to 5 The transmission resource allocation method of the illustrated embodiment will not be described in detail.

[0114] Figure 7 This is a schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present application. Figure 7 As shown, the device includes: a memory 71 and a processor 72.

[0115] The memory 71 is used to store computer programs and may be configured to store various other data to support operations on the computing device. Examples of such data include instructions for any application or method operating on the computing device, contact data, phone book data, messages, images, videos, etc.

[0116] The processor 72 is coupled to the memory 71 and is used to execute a computer program in the memory 71 to: determine a first application and a second application that need to transmit traffic in a transmission channel, the first application having a first priority, the second application having a second priority, and the second application being an application other than the first application; when it is predicted that the first transmission traffic of the first application in a future preset time period accounts for a proportion of transmission resources in the transmission channel that is greater than or equal to a preset threshold, the first priority of the first application is reduced to a third priority; based on the third priority, the first transmission traffic, the second priority and the second transmission traffic of the second application in the future preset time period, transmission resources are allocated to the first application and the second application from the available transmission resources of the transmission channel.

[0117] Further optionally, the processor 72 is further configured to:

[0118] When it is re-predicted that the proportion of the first transmission traffic of the first application in the future preset time period in the transmission resource of the transmission channel is less than a preset threshold, the third priority of the first application is updated to the first priority.

[0119] Further optionally, when allocating transmission resources to the first application and the second application based on the third priority, the second priority, the first transmission traffic, the second transmission traffic of the second application in the future preset time period, and the available transmission resources of the transmission channel, the processor 72 is specifically configured to:

[0120] Determining whether congestion occurs on the transmission channel based on the first transmission flow, the second transmission flow, and available transmission resources of the transmission channel;

[0121] If the transmission channel is not congested, allocating transmission resources to the first application and the second application from available transmission resources of the transmission channel according to the first transmission flow and the second transmission flow;

[0122] If the transmission channel is congested, transmission resources are allocated to the first application and the second application from available transmission resources of the transmission channel according to resource allocation weights corresponding to the second priority and the third priority.

[0123] Further optionally, the available transmission resources of the transmission channel include available bandwidth transmission resources, and the processor 72 allocates transmission resources to the first application and the second application from the available transmission resources of the transmission channel according to the resource allocation weights corresponding to the second priority and the third priority, specifically configured to:

[0124] If the second priority is higher than the third priority, determining, according to the resource allocation weights corresponding to the second priority and the third priority, a ratio of the first bandwidth transmission resources that can be allocated to the second application to the available bandwidth transmission resources of the transmission channel;

[0125] When the ratio of the first bandwidth transmission resource to the available bandwidth transmission resource of the transmission channel is within a preset ratio range, allocating the first bandwidth transmission resource to the second application from the available bandwidth transmission resources of the transmission channel based on the ratio of the first bandwidth transmission resource to the available bandwidth transmission resource of the transmission channel;

[0126] Allocate remaining bandwidth transmission resources of the available bandwidth transmission resources of the transmission channel except the first bandwidth transmission resource to the first application.

[0127] Further optionally, the available transmission resources of the transmission channel further include multiple transmission links, and the processor 72 allocates the first bandwidth transmission resource to the second application based on the ratio of the first bandwidth transmission resource to the available bandwidth transmission resource of the transmission channel and the available bandwidth transmission resource of the transmission channel, specifically configured to:

[0128] determining a first transmission link from the plurality of transmission links based on link costs of the plurality of transmission links, wherein the link cost of the first transmission link is less than the link costs of other transmission links in the plurality of transmission links;

[0129] The first bandwidth transmission resource is allocated to the second application based on a ratio of the first bandwidth transmission resource to the available bandwidth transmission resource of the transmission channel, the available transmission resource of the transmission channel, and the available bandwidth transmission resource of the first transmission link.

[0130] Further optionally, when allocating the first bandwidth transmission resource to the second application based on the ratio of the first bandwidth transmission resource to the available bandwidth transmission resource of the transmission channel, the available transmission resource of the transmission channel, and the available bandwidth transmission resource of the first transmission link, the processor 72 is specifically configured to:

[0131] allocating the first transmission link to the second application;

[0132] If the available bandwidth transmission resources in the first transmission link are greater than the first bandwidth transmission resources, allocating the first transmission bandwidth resources to the second application from the available bandwidth transmission resources in the first transmission link;

[0133] If the available bandwidth transmission resource in the first transmission link is less than the first bandwidth transmission resource, adjusting other transmission traffic of the second application to be transmitted in the second transmission link;

[0134] The second transmission link is a transmission link with idle bandwidth transmission resources among the other transmission links, and the other transmission traffic is the traffic in the second transmission traffic except the traffic transmitted by the first transmission link.

[0135] Further optionally, the processor 72 is further configured to:

[0136] Obtaining Differentiated Services Code Point (DSCP) values ​​of the first application and the second application;

[0137] Based on the DSCP values ​​of the first application and the second application, and a preset mapping relationship between the DSCP value and the priority, a first priority of the first application and a second priority of the second application are determined.

[0138] Further optionally, the processor 72 is further configured to:

[0139] Acquire a traffic transmission parameter of the first application, where the traffic transmission parameter includes a transmission traffic of the first application in the transmission channel within a future preset time period;

[0140] When it is determined based on the traffic transmission parameters of the first application that the transmission traffic of the first application in a future preset time period accounts for a proportion of transmission resources in the transmission channel that is greater than or equal to a preset threshold, a specified DSCP value is assigned to the first application, and a mapping relationship exists between the DSCP value and the third priority.

[0141] Further, if Figure 7 As shown, the electronic device also includes: a communication component 73, a display 74, a power component 75, an audio component 76 and other components. Figure 7Only some components are shown schematically, which does not mean that the electronic device only includes Figure 7 In addition, depending on the implementation form of the traffic playback device, Figure 7 The components in the dotted box are optional components, not mandatory components. For example, when the electronic device is implemented as a terminal device such as a smartphone, tablet computer or desktop computer, it may include Figure 7 Components in the dotted box; when the electronic device is implemented as a conventional server, cloud server, data center or server array and other server-side devices, it may not include Figure 7 Components within the dotted box.

[0142] Accordingly, an embodiment of the present application further provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor is enabled to implement the steps in the above-mentioned embodiment of the transmission resource allocation method.

[0143] above Figure 7 The communication component is configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component may also include a near field communication (NFC) module, radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra wideband (Ultra WideBand, UWB) technology, Bluetooth (BT) technology, etc.

[0144] above Figure 7The memory in the memory can be implemented by any type of volatile or non-volatile memory device or their combination, such as static random-access memory (SRAM), electrically erasable programmable read only memory (EEPROM), electrically erasable programmable read only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0145] above Figure 7 The display in the embodiment includes a screen, which may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0146] above Figure 7 The power supply component in a device provides power to various components of the device in which the power supply component is located. The power supply component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device in which the power supply component is located.

[0147] above Figure 7 The audio component in the device may be configured to output and / or input audio signals. For example, the audio component includes a microphone (MIC), and when the device where the audio component is located is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal may be further stored in a memory or sent via a communication component. In some embodiments, the audio component further includes a speaker for outputting audio signals.

[0148] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0149] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0150] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0151] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0152] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0153] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0154] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0155] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0156] The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.

Claims

1. A transmission resource allocation method, characterized in that: include: Determine a first application and a second application that need to transmit traffic in a transmission channel, where the first application has a first priority, the second application has a second priority, and the second application is an application other than the first application; When it is predicted that the first transmission traffic of the first application in a future preset time period accounts for a transmission resource proportion in the transmission channel that is greater than or equal to a preset threshold, lowering the first priority of the first application to a third priority; determining whether congestion occurs on the transmission channel based on the first transmission traffic, the second transmission traffic of the second application in the future preset time period, and the available transmission resources of the transmission channel; In the event that the transmission channel is congested, the available transmission resources of the transmission channel include available bandwidth transmission resources. If the second priority is higher than the third priority, the ratio of the first bandwidth transmission resources that can be allocated to the second application to the available bandwidth transmission resources of the transmission channel is determined based on the resource allocation weights corresponding to the second priority and the third priority. When the ratio of the first bandwidth transmission resources to the available bandwidth transmission resources of the transmission channel is within a preset ratio range, the first bandwidth transmission resources are allocated to the second application from the available bandwidth transmission resources of the transmission channel based on the ratio of the first bandwidth transmission resources to the available bandwidth transmission resources of the transmission channel. The remaining bandwidth transmission resources of the available bandwidth transmission resources of the transmission channel, excluding the first bandwidth transmission resources, are allocated to the first application.

2. The method according to claim 1, wherein Also includes: When it is re-predicted that the proportion of the first transmission traffic of the first application in the future preset time period in the transmission resource of the transmission channel is less than a preset threshold, the third priority of the first application is updated to the first priority.

3. The method according to claim 1, wherein Also includes: If the transmission channel is not congested, transmission resources are allocated to the first application and the second application from available transmission resources of the transmission channel according to the first transmission flow and the second transmission flow.

4. The method according to claim 1, wherein The available transmission resources of the transmission channel further include multiple transmission links, and allocating the first bandwidth transmission resource to the second application based on the ratio of the first bandwidth transmission resource to the available bandwidth transmission resource of the transmission channel and the available bandwidth transmission resource of the transmission channel includes: determining a first transmission link from the plurality of transmission links based on link costs of the plurality of transmission links, wherein the link cost of the first transmission link is less than the link costs of other transmission links in the plurality of transmission links; The first bandwidth transmission resource is allocated to the second application based on a ratio of the first bandwidth transmission resource to the available bandwidth transmission resource of the transmission channel, the available transmission resource of the transmission channel, and the available bandwidth transmission resource of the first transmission link.

5. The method according to claim 4, wherein The allocating the first bandwidth transmission resource to the second application based on the ratio of the first bandwidth transmission resource to the available bandwidth transmission resource of the transmission channel, the available transmission resource of the transmission channel, and the available bandwidth transmission resource of the first transmission link includes: allocating the first transmission link to the second application; If the available bandwidth transmission resources in the first transmission link are greater than the first bandwidth transmission resources, allocating the first bandwidth transmission resources to the second application from the available bandwidth transmission resources in the first transmission link; If the available bandwidth transmission resource in the first transmission link is less than the first bandwidth transmission resource, adjusting other transmission traffic of the second application to be transmitted in the second transmission link; The second transmission link is a transmission link with idle bandwidth transmission resources among the other transmission links, and the other transmission traffic is the traffic in the second transmission traffic except the traffic transmitted by the first transmission link.

6. The method according to claim 1, wherein The method further comprises: Obtaining Differentiated Services Code Point (DSCP) values ​​of the first application and the second application; Based on the DSCP values ​​of the first application and the second application, and a preset mapping relationship between the DSCP value and the priority, a first priority of the first application and a second priority of the second application are determined.

7. The method according to claim 6, wherein The method further comprises: Acquire a traffic transmission parameter of the first application, where the traffic transmission parameter includes a transmission traffic of the first application in the transmission channel within a future preset time period; When it is determined based on the traffic transmission parameters of the first application that the transmission traffic of the first application in a future preset time period accounts for a proportion of transmission resources in the transmission channel that is greater than or equal to a preset threshold, a specified DSCP value is assigned to the first application, and a mapping relationship exists between the DSCP value and the third priority.

8. A transmission resource allocation device, characterized in that: include: a determining module, configured to determine a first application and a second application that need to transmit traffic in a transmission channel, wherein the first application has a first priority, the second application has a second priority, and the second application is an application other than the first application; An updating module, configured to lower the first priority of the first application to a third priority when it is predicted that the first transmission traffic of the first application in a future preset time period accounts for a transmission resource proportion in the transmission channel that is greater than or equal to a preset threshold; an allocation module, configured to determine whether congestion occurs on the transmission channel based on the first transmission traffic, the second transmission traffic of the second application in the future preset time period, and the available transmission resources of the transmission channel; In the event that the transmission channel is congested, the available transmission resources of the transmission channel include available bandwidth transmission resources. If the second priority is higher than the third priority, the ratio of the first bandwidth transmission resources that can be allocated to the second application to the available bandwidth transmission resources of the transmission channel is determined based on the resource allocation weights corresponding to the second priority and the third priority. When the ratio of the first bandwidth transmission resources to the available bandwidth transmission resources of the transmission channel is within a preset ratio range, the first bandwidth transmission resources are allocated to the second application from the available bandwidth transmission resources of the transmission channel based on the ratio of the first bandwidth transmission resources to the available bandwidth transmission resources of the transmission channel. The remaining bandwidth transmission resources of the available bandwidth transmission resources of the transmission channel, excluding the first bandwidth transmission resources, are allocated to the first application.

9. An electronic device, characterized in that: include: memory and processor; The memory is used to store computer programs; The processor, coupled to the memory, is configured to execute the computer program to: Determine a first application and a second application that need to transmit traffic in a transmission channel, where the first application has a first priority, the second application has a second priority, and the second application is an application other than the first application; When it is predicted that the first transmission traffic of the first application in a future preset time period accounts for a transmission resource proportion in the transmission channel that is greater than or equal to a preset threshold, lowering the first priority of the first application to a third priority; determining whether congestion occurs on the transmission channel based on the first transmission traffic, the second transmission traffic of the second application in the future preset time period, and the available transmission resources of the transmission channel; In the event that the transmission channel is congested, the available transmission resources of the transmission channel include available bandwidth transmission resources. If the second priority is higher than the third priority, the ratio of the first bandwidth transmission resources that can be allocated to the second application to the available bandwidth transmission resources of the transmission channel is determined based on the resource allocation weights corresponding to the second priority and the third priority. When the ratio of the first bandwidth transmission resources to the available bandwidth transmission resources of the transmission channel is within a preset ratio range, the first bandwidth transmission resources are allocated to the second application from the available bandwidth transmission resources of the transmission channel based on the ratio of the first bandwidth transmission resources to the available bandwidth transmission resources of the transmission channel. The remaining bandwidth transmission resources of the available bandwidth transmission resources of the transmission channel, excluding the first bandwidth transmission resources, are allocated to the first application.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the processor is caused to implement the steps in the transmission resource allocation method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Service access control method, wireless access system and access control device

    CN101582837A

  • Multi-level resource dynamic allocation method in VPN environment

    CN112491689A