Network resource configuration method and device, equipment and storage medium

By dividing service flows into two categories: main and non-main categories, and determining resource allocation priorities based on business types, the resource waste problem caused by unreasonable network resource allocation in the existing technology is solved, and the priority guarantee for the transmission of main business data under limited resources is achieved.

CN119966919APending Publication Date: 2025-05-09GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202510123850.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-24
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

The existing network resource configuration strategy is configured in units of application, resulting in excessive network resources occupied by unimportant data, resulting in waste of resources, and when resources are insufficient, the network resources of important services are seized by non-important services.

Method used

By dividing multiple service flows into the first type of service flow and the second type of service flow, resource configuration priority is determined according to the business type, network resources are prioritized for the main service flow, and residual resources are configured for non-main service flows.

Benefits of technology

When network resources are limited, priority is given to ensuring the transmission of main service data, reducing resource waste, and improving the utilization rate of network resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119966919A_ABST
    Figure CN119966919A_ABST
Patent Text Reader

Abstract

The invention discloses a network resource configuration method and device, equipment and a storage medium, and the method comprises the steps: dividing a plurality of service flows into a first type of service flows and a second type of service flows based on the service types of applications to which the plurality of service flows run by at least one foreground application belong; wherein the resource configuration priority of the first type of service flow is higher than the resource configuration priority of the second type of service flow, and the service types comprise main services and non-main services; configuring a first network resource for the first type of service flow based on the resource demand of the first type of service flow; configuring a second network resource for the second type of service flow based on the resource demand of the second type of service flow; wherein the total network resource comprises a first network resource and a second network resource.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to network resource configuration technology, and in particular to a network resource configuration method and apparatus, device, and storage medium. Background Art

[0002] Existing network resource configuration strategies usually configure network resources based on applications. Usually, the network data generated by an application at the same time point serves multiple businesses. Some of these businesses are closely related to the main business that the user is currently doing, while some are not highly correlated, such as embedded point data, functional plug-in data, or advertising data. There are two obvious disadvantages to configuring network resources based on applications: one is that not all network data of an application is important, especially in multi-application scenarios. If unimportant data occupies too many network resources, it will lead to resource waste; the other is that in a single application scenario, when network resources cannot meet all network requests of the application, unimportant data will occupy the network resources of important businesses, which will also lead to resource waste. Summary of the invention

[0003] The present application provides a network resource configuration method, device, equipment, and storage medium.

[0004] The technical solution of this application is implemented as follows:

[0005] In a first aspect, a network resource configuration method is provided, the method comprising:

[0006] Based on the service types of applications to which multiple service flows running by at least one foreground application belong, the multiple service flows are divided into a first type of service flow and a second type of service flow; wherein the resource configuration priority of the first type of service flow is higher than the resource configuration priority of the second type of service flow, and the service types include primary services and non-primary services;

[0007] Based on the resource demand of the first type of service flow, configure a first network resource for the first type of service flow;

[0008] Based on the resource requirements of the second type of business flow, second network resources are configured for the second type of business flow; wherein the total network resources include the first network resources and the second network resources.

[0009] In a second aspect, a network resource configuration device is provided, the device comprising:

[0010] a classification unit, configured to classify the multiple business flows into a first business flow and a second business flow based on the business type of the application to which the multiple business flows running in the at least one foreground application belong; wherein the resource configuration priority of the first business flow is higher than the resource configuration priority of the second business flow, and the business type includes a primary business and a non-primary business;

[0011] A configuration unit, configured to configure a first network resource for the first type of service flow based on the resource demand of the first type of service flow;

[0012] The configuration unit is further used to configure second network resources for the second type of business flow based on the resource requirements of the second type of business flow; wherein the total network resources include the first network resources and the second network resources.

[0013] According to a third aspect, an electronic device is provided, comprising: a processor and a memory configured to store a computer program that can be run on the processor, wherein the processor is configured to execute the steps of the method of the first aspect when running the computer program.

[0014] According to a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program implements the steps of the method according to the first aspect when executed by a processor.

[0015] According to a fifth aspect, a computer program product is provided, comprising a computer program, wherein the computer program implements the steps of the method according to the first aspect when executed by a processor.

[0016] The present application provides a network resource configuration method and apparatus, device, and storage medium, the method comprising: dividing multiple business flows into a first type of business flow and a second type of business flow based on the business type to which multiple business flows running at least one foreground application belong; wherein the resource configuration priority of the first type of business flow is higher than the resource configuration priority of the second type of business flow, and the business types include main business and non-main business; based on the resource requirements of the first type of business flow, configuring the first network resource for the first type of business flow; based on the resource requirements of the second type of business flow, configuring the second network resource for the second type of business flow; wherein the first network resource and the second network resource constitute the total network resource. In this way, the first network resource is preferentially configured for the first type of business flow of the main business, and the remaining second network resources are secondarily configured for the second type of business flow of the non-main business, so that the transmission of the main business data can be preferentially guaranteed when the network resources are limited. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 The process diagram of the network resource configuration method in the embodiment of the present application is as follows Figure 1 ;

[0018] Figure 2 The process diagram of the network resource configuration method in the embodiment of the present application is as follows Figure 2 ;

[0019] Figure 3 The process diagram of the network resource configuration method in the embodiment of the present application is as follows Figure 3 ;

[0020] Figure 4 The process diagram of the network resource configuration method in the embodiment of the present application is as follows Figure 4 ;

[0021] Figure 5 The process diagram of the network resource configuration method in the embodiment of the present application is as follows Figure 5 ;

[0022] Figure 6 The process diagram of the network resource configuration method in the embodiment of the present application is as follows Figure 6 ;

[0023] Figure 7 This is a schematic diagram of the structure of the network resource configuration device in the embodiment of the present application;

[0024] Figure 8 It is a schematic diagram of the structure of the electronic device in the embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.

[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing this embodiment and are not intended to limit this application.

[0027] In the following description, references to “some embodiments,” “this embodiment,” “this embodiment,” and examples, etc., describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.

[0028] If similar descriptions of "first / second" appear in the application documents, the following instructions are added. In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the present embodiment described here can be implemented in an order other than that illustrated or described here.

[0029] In this embodiment, the term "and / or" is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, object A and / or object B may represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0030] The present application provides a method for configuring network resources. Figure 1 The process diagram of the network resource configuration method in the embodiment of the present application is as follows Figure 1 , applied to electronic devices, including but not limited to smart tablets and desktop computers. Figure 1 As shown, the network resource configuration method includes the following steps:

[0031] S101: Based on the business types of applications to which multiple business flows running in at least one foreground application belong, multiple business flows are divided into first-category business flows and second-category business flows; wherein the resource configuration priority of the first-category business flows is higher than the resource configuration priority of the second-category business flows, and the business types include primary business and non-primary business.

[0032] In the embodiment of the present application, at least one business flow is divided into a first business flow corresponding to a primary business and a second business flow corresponding to a non-primary business according to the business type of the application to which at least one business flow running by each foreground application belongs. The foreground application refers to an application that a user is interacting with on an electronic device.

[0033] Among them, a business flow is usually identified by a five-tuple including network transport layer protocol, source IP address, source port, destination IP address, and destination port.

[0034] Exemplarily, in the case of including a foreground application, if the foreground application is a video application, the main business includes a video playback business, and the non-main business includes but is not limited to a comment business and a collection business.

[0035] Exemplarily, in the case of multiple foreground applications, if the multiple foreground applications include a download application and a video application, the main business includes the download business corresponding to the download application and the video playback business corresponding to the video application, and the non-main business includes but is not limited to the update business corresponding to the download application, and the comment business and collection business corresponding to the video application.

[0036] S102: Based on the resource demand of the first type of service flow, configure a first network resource for the first type of service flow.

[0037] S103: Based on the resource demand of the second type of service flow, configure the second network resources for the second type of service flow; wherein the total network resources include the first network resources and the second network resources.

[0038] In an embodiment of the present application, the resource configuration priority of the first type of business flow is higher than the resource configuration priority of the second type of business flow. Therefore, the first network resources are first configured for the first type of business flow based on the resource requirements of the first type of business flow. If there are remaining network resources, the second network resources are configured for the second type of business flow based on the resource requirements of the second type of business flow. Here, the second network resources are less than or equal to the remaining network resources after deducting the first network resources from the total network resources.

[0039] In an embodiment of the present application, a first type of business flow includes uplink data and downlink data. Based on the resource demand of the uplink data of the first type of business flow, a first uplink resource is configured for the first type of business flow. Based on the resource demand of the downlink data of the first type of business flow, a first downlink resource is configured for the first type of business flow. The first network resources include a first uplink resource and a first downlink resource.

[0040] Exemplarily, the network resources include, but are not limited to, priority transmission (for uplink data) and bandwidth allocation (for uplink data or downlink data).

[0041] In an embodiment of the present application, the second type of business flow includes uplink data and downlink data. Based on the resource requirements of the uplink data of the second type of business flow, the second uplink resource is configured for the second type of business flow, and based on the resource requirements of the downlink data of the second type of business flow, the first downlink resource is configured for the second type of business flow. The second network resources include a second uplink resource and a second downlink resource.

[0042] The total network resources include total uplink resources and total downlink resources. The total uplink resources include first uplink resources and second uplink resources. The total downlink resources include first downlink resources and second downlink resources.

[0043] In an embodiment of the present application, the first network resources are preferentially allocated to the first type of business flow of the main business, and the remaining second network resources are secondarily allocated to the second type of business flow of the non-main business, so that the transmission of the main business data can be preferentially guaranteed when network resources are limited.

[0044] In some embodiments of the present application, configuring a first network resource for the first type of service flow based on the resource demand of the first type of service flow includes the following steps:

[0045] S201: When a first-category service flow includes multiple service flows, configure first network resources for the multiple service flows based on protocol characteristics of the multiple service flows and resource requirements of the first-category service flows.

[0046] In the embodiment of the present application, the multiple business flows included in the first category of business flows may come from the business flow of one foreground application, or may come from the business flows of multiple foreground applications.

[0047] In the embodiment of the present application, the protocol feature can be understood as the transmission protocol used by the business flow. Exemplarily, the transmission protocol includes but is not limited to the Transmission Control Protocol (TCP), including the TCP protocol and the User Datagram Protocol (UDP).

[0048] In the embodiment of the present application, different protocol features correspond to different resource configuration rules. Therefore, firstly, based on the protocol features of multiple service flows, the corresponding resource configuration rules are determined, and then, in combination with the resource requirements of the first type of service flows, the first network resources are configured for the multiple service flows. In this way, the accuracy of resource configuration can be guaranteed.

[0049] In some embodiments of the present application, configuring the first network resource for the multiple service flows based on the protocol characteristics used by the services to which the multiple service flows belong and the resource requirements of the first type of service flows includes the following steps:

[0050] S301: Determine resource configuration rules based on protocol characteristics of multiple service flows.

[0051] In the embodiment of the present application, different protocol features correspond to different resource configuration rules. Differentiated resource configuration rules are formulated according to the protocol features of different service flows (ie, the transmission protocols used by the service flows) to ensure efficient use of network resources and the quality of service transmission.

[0052] S302: Based on resource configuration rules and resource requirements of the first type of service flows, configure first network resources for multiple service flows.

[0053] In the embodiment of the present application, based on resource configuration rules and resource requirements of the first type of business flows, sufficient first network resources are configured for multiple business flows to meet the transmission of business data of the multiple business flows.

[0054] In some embodiments of the present application, the resource configuration rule includes an uplink resource configuration rule and a downlink resource configuration rule.

[0055] Based on this, configuring the first network resource for the multiple service flows based on the resource configuration rule and the resource requirements of the first type of service flows includes the following steps:

[0056] S401: Based on an uplink resource configuration rule and an uplink resource requirement of uplink data of a first type of service flow, configure a first uplink resource for the first type of service flow.

[0057] Exemplarily, when the protocol characteristics of multiple service flows are TCP protocol, or include TCP protocol and UDP protocol, the configuration rule of uplink resources includes: firstly configuring uplink resources for uplink data of service flows of downlink services, and secondly configuring uplink resources for uplink data of service flows of uplink services. Based on this, combined with the uplink resource requirements of uplink data of the first type of service flows, the first uplink resource is configured for the first type of service flows.

[0058] Among them, downlink services refer to services that focus on data transmission from the network side to the user side, including but not limited to download services, web browsing services, video streaming services, and update services. Uplink services refer to services that focus on data transmission from the user side to the network side, including but not limited to file upload services, social media publishing services, online game interaction services, email sending services, video calls, and voice chat services.

[0059] It should be noted that since the uplink data of the business flow of the downlink service (such as the pause command in video playback, the confirmation command for the completion of file download) is usually closely related to user interaction and directly affects the immediacy and accuracy of the user experience, the processing priority of this data should be higher. In contrast, the uplink data of the business flow of the uplink service (such as uploading files, submitting non-immediate information, etc.), although important, often does not immediately affect the user experience, or its impact on the user experience is relatively indirect. Therefore, uplink resources are configured for the business flow of the downlink service first, and then for the business flow of the uplink service, so that when network resources are limited, the transmission of the uplink data of the business flow of the downlink service is given priority, while improving the user experience.

[0060] In the embodiment of the present application, uplink data refers to data transmitted from the terminal to the network side. Uplink resource demand refers to the resources required to meet the uplink data transmission. The larger the amount of uplink data, the more uplink resources are required.

[0061] S402: Based on the downlink resource configuration rule and the downlink resource demand of the downlink data of the first type of service flow, configure the first downlink resource for the first type of service flow; wherein the first network resource includes a first uplink resource and a first downlink resource.

[0062] Exemplarily, when the protocol characteristics of multiple service flows are TCP protocol, or include TCP protocol and UDP protocol, the downlink resource configuration rule includes: firstly configuring downlink resources for downlink data of service flows of uplink services, and then configuring downlink resources for downlink data of service flows of downlink services. Based on this, combined with the downlink resource requirements of downlink data of the first type of service flows, the first downlink resource is configured for the first type of service flows.

[0063] Among them, downlink services refer to services that focus on data transmission from the network side to the user side, including but not limited to download services, web browsing services, video streaming services, and update services. Uplink services refer to services that focus on data transmission from the user side to the network side, including but not limited to file upload services, social media publishing services, online game interaction services, email sending services, video calls, and voice chat services.

[0064] It should be noted that the downlink data of the service flow of the uplink service is usually closely related to the direct operation or request of the user. For example, when the user uploads a file, the user expects to get instant feedback on the upload progress, success or failure. This instant feedback is crucial for users because it can enhance the user's sense of participation and trust while reducing the user's uncertainty. In contrast, although the downlink data of the service flow of the downlink service (such as downloaded video streams or files) is equally important, users often have a certain tolerance for it, especially in poor network conditions or limited resources. Users may be more willing to wait for the completion of high-quality video downloads rather than frequently receiving feedback of interruptions or delays during the upload process. Therefore, downlink resources are preferentially configured for the service flow of the uplink service, and then downlink resources are configured for the service flow of the downlink service, so that the transmission of the downlink data of the service flow of the uplink service is prioritized when network resources are limited. In addition, the amount of downlink data of the service flow of the uplink service is usually small and has high real-time requirements, so fast processing of these data can reduce network congestion and delay.

[0065] In the embodiment of the present application, downlink data refers to data transmitted from the network side to the terminal. Downlink resource demand refers to the resources required to meet the downlink data transmission. The larger the amount of downlink data, the more downlink resources are required.

[0066] Exemplarily, when the protocol feature of multiple service flows is Domain Name System (NDS) protocol, the resource configuration rule includes: prioritizing resource configuration for DNS service data.

[0067] Exemplarily, when the protocol features of multiple business flows include TCP protocol and NDS protocol, which protocol corresponds to the business data to be processed first depends on the usage time of the protocol, that is, the processing of the corresponding business data is determined according to the usage time of the protocol.

[0068] In some embodiments of the present application, the method further comprises the following steps:

[0069] S501: Acquire multiple business flows running by at least one foreground application.

[0070] Among them, a business flow can usually be identified by a five-tuple including network transport layer protocol, source IP address, source port, destination IP address, and destination port.

[0071] S502: Determine the service type of the application to which the multiple service flows belong based on the characteristic information of different service flows.

[0072] In the embodiment of the present application, the characteristic information of the business flow includes but is not limited to the domain name, network transport layer protocol, port and interaction rate per second.

[0073] Exemplarily, if the domain name of a service flow is the domain name corresponding to the video flow, then the service flow is determined to be a video flow, the service to which the video flow belongs is a video service, the application to which the video service belongs is a video application, and it is the main service of the video application. Therefore, the service type to which the video flow belongs is a main service. If the interaction rate per second of a service flow is greater than the interaction rate of the download flow, then the service flow is determined to be a download flow, the service to which the download flow belongs is a download service, the application to which the download service belongs is a download application, and it is the main service of the download application. Therefore, the service type to which the download flow belongs is a main service. If the application to which the download belongs is a video application, and it is a non-main service of the video application, then the service type to which the download flow belongs is a non-main service.

[0074] In some embodiments of the present application, configuring a second network resource for the second type of service flow based on the resource demand of the second type of service flow includes:

[0075] In the case that the second type of service flow includes multiple service flows, the second network resources are configured for the multiple service flows based on the protocol characteristics of the multiple service flows and the resource requirements of the second type of service flows.

[0076] In some embodiments of the present application, configuring the second network resources for the multiple service flows based on the protocol characteristics of the multiple service flows and the resource requirements of the second type of service flows includes:

[0077] Determining resource configuration rules based on protocol characteristics of the multiple service flows;

[0078] Based on the resource configuration rule and the resource requirements of the second type of service flows, the second network resources are configured for the multiple service flows.

[0079] In some embodiments of the present application, the resource configuration rule includes a configuration rule for uplink resources and a configuration rule for downlink resources; and configuring the second network resource for the multiple service flows based on the resource configuration rule and the resource requirements of the second type of service flows includes:

[0080] Based on the configuration rule of the uplink resources and the uplink resource requirement of the uplink data of the second type of service flow, configuring a second uplink resource for the second type of service flow;

[0081] Based on the configuration rule of the downlink resources and the downlink resource requirement of the downlink data of the second type of service flow, configuring a second downlink resource for the second type of service flow;

[0082] The second network resources include the second uplink resources and the second downlink resources.

[0083] In some embodiments of the present application, configuring a second network resource for the second type of service flow based on the resource demand of the second type of service flow includes:

[0084] The second type of business flow is divided into a third type of business flow that can be perceived by the user and a fourth type of business flow that cannot be perceived by the user; wherein the resource configuration priority of the third type of business flow is higher than the resource configuration priority of the fourth type of business flow;

[0085] Based on the resource demand of the third type of service flow, configuring a third network resource for the third type of service flow;

[0086] Based on the resource requirements of the fourth type of business flow, fourth network resources are configured for the fourth type of business flow; wherein the second network resources include the third network resources and the fourth network resources.

[0087] In the embodiments of the present application, the business flow that the user can perceive refers to the data flow process that the user can directly or indirectly experience when using the application. Exemplarily, the business to which it belongs includes but is not limited to the comment business and the collection business. The business flow that the user cannot perceive refers to the business process that is not directly exposed to the user when the user uses the application, but runs silently in the background and supports the normal operation of the entire system. Exemplarily, the business to which it belongs includes but is not limited to the login verification business and the data caching business.

[0088] In the embodiment of the present application, the resource configuration priority of the third type of service flow is higher than that of the fourth type of service flow. Therefore, the third type of service flow is preferentially configured with the third network resource, and then the fourth type of service flow is configured with the fourth network resource. The sum of the third network resource and the fourth network resource is the second network resource. In this way, the processing of service data of the service flow that the user can perceive can be guaranteed in priority, thereby improving the user experience.

[0089] In an embodiment of the present application, the third network resource includes a third uplink resource and a third downlink resource. The third uplink resource is configured for the third type of business flow based on the uplink resource demand for uplink data of the third type of business flow, and the third downlink resource is configured for the third type of business flow based on the downlink resource demand for downlink data of the third type of business flow.

[0090] In an embodiment of the present application, the fourth network resource includes a fourth uplink resource and a fourth downlink resource. Based on the uplink resource demand for uplink data of the fourth type of business flow, the third uplink resource is configured for the fourth type of business flow, and based on the downlink resource demand for downlink data of the fourth type of business flow, the fourth downlink resource is configured for the fourth type of business flow.

[0091] In some embodiments of the present application, the method further includes:

[0092] At least one service flow of the background application is used as a fifth-category service flow; wherein the resource configuration priority of the second-category service flow is higher than the resource configuration priority of the fifth-category service flow;

[0093] In the case where there are remaining network resources, the remaining network resources are configured for the fifth category of service flows based on the resource requirements of the fifth category of service flows.

[0094] In the embodiment of the present application, if there are remaining network resources after deducting the first network resources and the second network resources from the total network resources, the remaining network resources are configured for at least one service flow running in the background application.

[0095] In the embodiment of the present application, the remaining network resources include remaining uplink resources and remaining downlink resources. Based on the uplink resource requirements of the uplink data of the fifth type of service flow, the remaining uplink resources are configured for the fifth type of service flow. Based on the downlink resource requirements of the downlink data of the fifth type of service flow, the remaining downlink resources are configured for the fifth type of service flow.

[0096] Based on the above embodiments, the present application specifically illustrates a method for configuring network resources. Figure 6 The process diagram of the network resource configuration method in the embodiment of the present application is as follows Figure 6 ,like Figure 6 As shown, the unit of network resource configuration (or scheduling) is the service flow, and the network resource configuration method includes the following steps:

[0097] S601: Determine the service types of applications to which multiple service flows belong, where the service types include primary services and non-primary services.

[0098] Specifically, multiple business flows running in at least one foreground application are obtained, and based on characteristic information of different business flows, business types of the applications to which the multiple business flows belong are determined.

[0099] Among them, a business flow can usually be identified by a five-tuple including network transport layer protocol, source IP address, source port, destination IP address, and destination port.

[0100] The characteristic information of the service flow includes, but is not limited to, domain name, network transport layer protocol, port, and interaction rate per second. The network transport layer protocol includes, but is not limited to, TCP protocol, UDP protocol, and DNS protocol.

[0101] Exemplarily, if the domain name of a service flow is the domain name corresponding to the video flow, then the service flow is determined to be a video flow, the service to which the video flow belongs is a video service, the application to which the video service belongs is a video application, and it is the main service of the video application. Therefore, the service type to which the video flow belongs is a main service. If the interaction rate per second of a service flow is greater than the interaction rate of the download flow, then the service flow is determined to be a download flow, the service to which the download flow belongs is a download service, the application to which the download service belongs is a download application, and it is the main service of the download application. Therefore, the service type to which the download flow belongs is a main service. If the application to which the download belongs is a video application, and it is a non-main service of the video application, then the service type to which the download flow belongs is a non-main service.

[0102] S602: Classify the business flows according to their business importance.

[0103] Specifically, based on the service types of the applications to which the multiple service flows belong, the multiple service flows are divided into a first type of service flow corresponding to the primary service and a second type of service flow corresponding to the non-primary service. The second type of service flow corresponding to the non-primary service may include a third type of service flow that can be perceived by the user and a fourth type of service flow that cannot be perceived.

[0104] S603: Allocate network resources in order according to the importance of the services, such as priority transmission and bandwidth allocation.

[0105] Specifically, sufficient or the most network resources are first allocated to the first type of service flow, and then the second-level network resources are allocated to the third type of service flow, and then the second-level network resources are allocated to the fourth type of service flow. In this way, the transmission of service data of the first type of service flow, which is the most important service, is prioritized.

[0106] S604: Whether there are multiple service flows in the same category.

[0107] That is, whether the first type of business flow and the second type of business flow include multiple business flows.

[0108] If yes, execute S605; if no, execute S606.

[0109] S605: Setting network resource configuration rules according to protocol characteristics within the same category.

[0110] S606: Execute network resource configuration.

[0111] In the embodiment of the present application, resources are configured for multiple business flows of the same type based on the protocol characteristics of the multiple business flows of the same type and their resource requirements.

[0112] In the embodiment of the present application, when network resources are insufficient, the business flow of the most important / important business is met as much as possible. Scheduling based on business flow can improve bandwidth resource utilization and reduce the minimum required bandwidth of the business, thereby reducing competition for non-important / important business data in a single application scenario with limited network resources, and overall tilting network resources to the main / important business in a multi-application scenario with limited network resources.

[0113] To implement the method of the embodiment of the present application, based on the same inventive concept, the embodiment of the present application also provides a network resource configuration device, Figure 7 Schematic diagram of the structure of the network resource configuration device in the embodiment of the present application. Figure 7 As shown, the network resource configuration device 70 includes:

[0114] A classification unit 701 is used to classify the multiple business flows into a first business flow and a second business flow based on the business type of the application to which the multiple business flows running in the at least one foreground application belong; wherein the resource configuration priority of the first business flow is higher than the resource configuration priority of the second business flow, and the business type includes a primary business and a non-primary business;

[0115] A configuration unit 702 is configured to configure a first network resource for the first type of service flow based on the resource demand of the first type of service flow;

[0116] The configuration unit 702 is further configured to configure second network resources for the second type of business flow based on the resource requirements of the second type of business flow; wherein the total network resources include the first network resources and the second network resources.

[0117] In an embodiment of the present application, the first network resources are preferentially allocated to the first type of business flow of the main business, and the remaining second network resources are secondarily allocated to the second type of business flow of the non-main business, so that the transmission of the main business data can be preferentially guaranteed when network resources are limited.

[0118] In some embodiments of the present application, the configuration unit 702 is further used to configure the first network resources for the multiple service flows based on the protocol characteristics of the multiple service flows and the resource requirements of the first class of service flows when the first class of service flows includes multiple service flows.

[0119] In some embodiments of the present application, the configuration unit 702 is further used to determine resource configuration rules based on the protocol characteristics of the multiple service flows; and configure the first network resources for the multiple service flows based on the resource configuration rules and the resource requirements of the first type of service flows.

[0120] In some embodiments of the present application, the configuration unit 702 is further used to configure a first uplink resource for the first type of business flow based on the configuration rule of the uplink resource and the uplink resource requirement of the uplink data of the first type of business flow; and to configure a first downlink resource for the first type of business flow based on the configuration rule of the downlink resource and the downlink resource requirement of the downlink data of the first type of business flow; wherein the first network resource includes the first uplink resource and the first downlink resource.

[0121] In some embodiments of the present application, the classification unit 701 is used to obtain multiple business flows running by the at least one foreground application; and determine the business type of the application to which the multiple business flows belong based on feature information of different business flows.

[0122] In some embodiments of the present application, the configuration unit 702 is further configured to divide the second type of service flow into a third type of service flow that can be perceived by the user and a fourth type of service flow that cannot be perceived by the user; wherein the resource configuration priority of the third type of service flow is higher than the resource configuration priority of the fourth type of service flow;

[0123] Based on the resource requirements of the third type of business flow, a third network resource is configured for the third type of business flow; based on the resource requirements of the fourth type of business flow, a fourth network resource is configured for the fourth type of business flow; wherein the second network resources include the third network resources and the fourth network resources.

[0124] In some embodiments of the present application, the configuration unit 702 is also used to set at least one business flow running by the background application as a fifth-category business flow; wherein the resource configuration priority of the second-category business flow is higher than the resource configuration priority of the fifth-category business flow; in the case of remaining network resources, based on the resource requirements of the fifth-category business flow, the remaining network resources are configured for the fifth-category business flow.

[0125] The present application also provides another electronic device, Figure 8 Schematic diagram of the structure of the electronic device in the embodiment of the present application. Figure 8As shown, the electronic device 80 includes: a processor 801 and a memory 802 configured to store a computer program that can be run on the processor;

[0126] The processor 801 is configured to execute the method steps in the aforementioned embodiment when running a computer program.

[0127] Of course, in practical applications, Figure 8 As shown, the components in the electronic device 80 are coupled together via a bus system 803. It is understood that the bus system 803 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 803 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 8 Various buses are labeled as bus system 803.

[0128] In practical applications, the processor may be at least one of an application-specific integrated circuit (ASIC), a digital signal processing device (DSPD), a programmable logic device (PLD), a field-programmable gate array (FPGA), a controller, a microcontroller, and a microprocessor. It is understandable that for different devices, the electronic device used to implement the functions of the processor may also be other, and the embodiments of the present application do not specifically limit this.

[0129] The above-mentioned memory can be a volatile memory (volatile memory), such as a random access memory (RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above-mentioned types of memory, and provide instructions and data to the processor.

[0130] In an exemplary embodiment, the present application also provides a computer-readable storage medium for storing a computer program.

[0131] Optionally, the computer-readable storage medium can be applied to any one of the methods in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the processor in each method in the embodiments of the present application. For the sake of brevity, they are not repeated here.

[0132] Illustratively, an embodiment of the present application further provides a computer program product, including a computer program, which can be executed by a processor of an electronic device to complete the steps of any of the aforementioned methods.

[0133] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0134] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0135] In addition, all functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units. A person of ordinary skill in the art may understand that all or part of the steps of implementing the above-mentioned method embodiments may be completed by hardware related to program instructions, and the aforementioned program may be stored in a computer-readable storage medium, which, when executed, executes the steps of the above-mentioned method embodiments; and the aforementioned storage medium includes various media that can store program codes, such as mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks or optical disks.

[0136] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0137] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0138] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0139] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A network resource configuration method, characterized in that: The method comprises: Based on the service types of applications to which multiple service flows running by at least one foreground application belong, the multiple service flows are divided into a first type of service flow and a second type of service flow; wherein the resource configuration priority of the first type of service flow is higher than the resource configuration priority of the second type of service flow, and the service types include primary services and non-primary services; Based on the resource demand of the first type of service flow, configure a first network resource for the first type of service flow; Based on the resource requirements of the second type of business flow, second network resources are configured for the second type of business flow; wherein the total network resources include the first network resources and the second network resources.

2. The method according to claim 1, characterized in that The configuring a first network resource for the first type of service flow based on the resource demand of the first type of service flow includes: In the case that the first type of service flow includes multiple service flows, the first network resources are configured for the multiple service flows based on protocol characteristics of the multiple service flows and resource requirements of the first type of service flows.

3. The method according to claim 2, characterized in that The configuring the first network resource for the multiple service flows based on the protocol characteristics of the multiple service flows and the resource requirements of the first type of service flows includes: Determining resource configuration rules based on protocol characteristics of the multiple service flows; Based on the resource configuration rule and the resource requirements of the first type of service flows, the first network resources are configured for the multiple service flows.

4. The method according to claim 3, characterized in that The resource configuration rule includes an uplink resource configuration rule and a downlink resource configuration rule; and configuring the first network resource for the multiple service flows based on the resource configuration rule and the resource requirements of the first type of service flows includes: Based on the configuration rule of the uplink resource and the uplink resource requirement of the uplink data of the first type of service flow, configuring a first uplink resource for the first type of service flow; Based on the configuration rule of the downlink resources and the downlink resource requirement of the downlink data of the first type of service flow, configuring a first downlink resource for the first type of service flow; The first network resource includes the first uplink resource and the first downlink resource.

5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Acquire multiple business flows running by the at least one foreground application; Based on the characteristic information of different business flows, the business types of the applications to which the multiple business flows belong are determined.

6. The method according to any one of claims 1 to 4, characterized in that: The configuring the second network resource for the second type of service flow based on the resource demand of the second type of service flow includes: The second type of business flow is divided into a third type of business flow that can be perceived by the user and a fourth type of business flow that cannot be perceived by the user; wherein the resource configuration priority of the third type of business flow is higher than the resource configuration priority of the fourth type of business flow; Based on the resource demand of the third type of service flow, configuring a third network resource for the third type of service flow; Based on the resource requirements of the fourth type of business flow, fourth network resources are configured for the fourth type of business flow; wherein the second network resources include the third network resources and the fourth network resources.

7. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: At least one service flow of the background application is used as a fifth-category service flow; wherein the resource configuration priority of the second-category service flow is higher than the resource configuration priority of the fifth-category service flow; In the case where there are remaining network resources, the remaining network resources are configured for the fifth category of service flows based on the resource requirements of the fifth category of service flows.

8. A network resource configuration device, characterized in that: The device comprises: a classification unit, configured to classify the multiple business flows into a first business flow and a second business flow based on the business type of the application to which the multiple business flows running in the at least one foreground application belong; wherein the resource configuration priority of the first business flow is higher than the resource configuration priority of the second business flow, and the business type includes a primary business and a non-primary business; A configuration unit, configured to configure a first network resource for the first type of service flow based on the resource demand of the first type of service flow; The configuration unit is further used to configure second network resources for the second type of business flow based on the resource requirements of the second type of business flow; wherein the total network resources include the first network resources and the second network resources.

9. An electronic device, characterized in that: The electronic device comprises: a processor and a memory configured to store a computer program capable of running on the processor, Wherein, the processor is configured to execute the steps of the method according to any one of claims 1 to 7 when running the computer program.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Network service optimization method and apparatus, and electronic device

    CN114422362A

  • Service flow scheduling method, device and system

    CN114679792A

  • Resource configuration method, network equipment and terminal equipment

    CN114786261A

  • Cloud network resource allocation method and device, computer equipment and storage medium

    CN116846845A

  • Resource allocation method and device, equipment and storage medium

    CN117354931A