Service scheduling method and device, electronic equipment and storage medium
By determining the target existing services in SD-WAN and dynamically adjusting its scheduling resources, the problem of low resource utilization in the existing QoS model is solved, and the efficiency of business scheduling and user experience are improved.
Patent Information
- Application Number
- CN202311425890.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-30
- Publication Date
- 2024-10-18
AI Technical Summary
When the existing QoS model schedules multiple services with different priorities, the resource utilization rate is low, resulting in poor user experience. Especially in SD-WAN, existing services cannot adaptively perform link switching, which affects the service priority. High business resource guarantee.
By obtaining information about new access services, if there are existing services, it is determined that the service scheduling priority of the target existing services is lower than that of the new access services, and the new access services are prioritized through the resources to be scheduled in the total resources. , dynamically adjust the scheduling resources of the target existing services to improve the overall QoS service guarantee effect.
It achieves efficient integrated scheduling of resources, prioritizes services with higher priority in business scheduling, and improves user experience and overall QoS service guarantee effect.
Smart Images

Figure CN118802604A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, device, electronic device and storage medium for service scheduling. Background Art
[0002] When scheduling multiple services with different priorities, it is usually necessary to give priority to guaranteeing resources for services with higher priorities. For example, in the field of communication technology, signaling services have a higher priority, and signaling resources need to be given priority.
[0003] In the related technology, there are some QoS (Quality of Service) models. For example, in SD-WAN (Software-Defined Wide Area Network), the DiffServ service model can be used to divide the services in the network into different priorities, corresponding to different scheduling strategies. When the network is congested, the scheduling strategies for services of different priorities will be different, and higher priority services will be given priority.
[0004] The inventor of this application noticed that the QoS models in the related technologies are all aimed at QoS service assurance at the physical transmission link level, and the effect of QoS service assurance is poor, and there are technical problems such as low resource utilization, which seriously affects the user experience. For example, in the case of SD-WAN with multiple physical transmissions (such as wired link 1 and wireless link 2), wired link 1 (such as bandwidth 100Mbps) carries existing service A (such as occupying bandwidth 80Mbps). When a new access service B with a higher priority (such as estimated to occupy bandwidth 70Mbps) is accessed, the existing service A will only be able to share wired link 1 with the new access service B at a lower service priority, and cannot adaptively switch links. This will seriously affect the user experience of the existing service A, and the overall QoS service assurance effect is poor. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for service scheduling.
[0006] To solve the above technical problems, the embodiments of the present application are implemented through the following aspects.
[0007] According to a first aspect of an embodiment of the present disclosure, a service scheduling method is provided, the method comprising:
[0008] Obtaining first service information of a newly accessed service;
[0009] In the case where an existing service exists, determining a target existing service from the existing services according to the first service information and the second service information of the existing service, wherein the service scheduling priority of the target existing service is lower than that of the newly accessed service;
[0010] The newly accessed service is preferentially scheduled through the resources to be scheduled in the total resources, and the target existing service is scheduled through the remaining resources after scheduling the newly accessed service, wherein the resources to be scheduled include the historical scheduling resources of the target existing service.
[0011] According to a second aspect of an embodiment of the present disclosure, a service scheduling device is provided, wherein the device includes:
[0012] An acquisition module, configured to acquire first service information of a newly accessed service;
[0013] a determination module configured to determine, when an existing service exists, a target existing service from the existing services according to the first service information and the second service information of the existing service, wherein the service scheduling priority of the target existing service is lower than that of the newly accessed service;
[0014] The scheduling module is configured to preferentially schedule the newly accessed service through the resources to be scheduled in the total resources, and schedule the target existing service through the remaining resources after scheduling the newly accessed service, wherein the resources to be scheduled include the historical scheduling resources and idle resources of the target existing service.
[0015] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, wherein the computer executable instructions, when executed by the processor, implement the following steps: obtaining first service information of a newly accessed service; in the case of an existing service, determining a target existing service from the existing services according to the first service information and second service information of the existing service, wherein the service scheduling priority of the target existing service is lower than that of the newly accessed service; preferentially scheduling the newly accessed service through resources to be scheduled in total resources, and scheduling the target existing service through remaining resources after scheduling the newly accessed service, wherein the resources to be scheduled include historical scheduling resources of the target existing service.
[0016] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions, when executed by a processor, implement the following steps: obtaining first service information of a newly accessed service; in the case of an existing service, determining a target existing service from the existing services based on the first service information and the second service information of the existing service, wherein the service scheduling priority of the target existing service is lower than that of the newly accessed service; preferentially scheduling the newly accessed service through resources to be scheduled in total resources, and scheduling the target existing service through remaining resources after scheduling the newly accessed service, wherein the resources to be scheduled include historical scheduling resources of the target existing service.
[0017] The technical solution provided by the embodiments of the present disclosure is as follows: obtaining the first service information of the newly accessed service; in the case of the existence of an existing service, determining the target existing service from the existing service according to the first service information and the second service information of the existing service, the service scheduling priority of the target existing service is lower than that of the newly accessed service; scheduling the newly accessed service preferentially through the resources to be scheduled in the total resources, and scheduling the target existing service through the remaining resources after scheduling the newly accessed service, the resources to be scheduled include the historical scheduling resources of the target existing service. The above-mentioned technical approach can integrate scheduling resources, prioritize scheduling of services with higher service scheduling priorities, and dynamically adjust the scheduling resources of the target existing service, thereby improving the overall QOS service guarantee effect and enhancing the user's service experience.
[0018] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
[0019] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0021] Figure 1 A schematic diagram showing a flow chart of a method for service scheduling provided in an embodiment of the present application;
[0022] Figure 2 A schematic diagram showing a virtualized resource pool provided in an embodiment of the present application is shown;
[0023] Figure 3A schematic diagram of resources for service scheduling provided in an embodiment of the present application is shown;
[0024] Figure 4 Another schematic diagram showing a flow chart of a method for service scheduling provided in an embodiment of the present application;
[0025] Figure 5 Another schematic diagram of a flow chart of a method for service scheduling provided in an embodiment of the present application is shown;
[0026] Figure 6 Another schematic diagram of a flow chart of a method for service scheduling provided in an embodiment of the present application is shown;
[0027] Figure 7 A block diagram showing a device for service scheduling provided in an embodiment of the present application is shown;
[0028] Figure 8 A block diagram showing another service scheduling device provided in an embodiment of the present application;
[0029] Fig. 9 A schematic diagram of the hardware structure of an electronic device for executing the service scheduling method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application.
[0031] Figure 1 A flow chart of a service scheduling method provided by an embodiment of the present application is shown. The method can be executed by an electronic device with edge computing capability, and the electronic device with edge computing capability can be, for example, SD-WAN CPE (Customer Premise Equipment), such as Figure 1 As shown, the method may include the following steps.
[0032] In step S101, first service information of a plurality of newly accessed services is obtained.
[0033] For example, the first service information may be determined from the received service request in response to the service request of the user. The first service information may be information used to determine the service scheduling priority. In some possible implementations, the first service information may include one or more of a first service category, a first estimated service time, a first estimated occupied bandwidth, and a first address.
[0034] Among them, the business category is a business classification preset from the perspective of application. Each business category can correspond to a different preset business priority. For example, the preset priority of video conferencing, office software, file transfer and other businesses can be video conferencing>office software>file transfer>other businesses.
[0035] In some possible implementations, the estimated occupied bandwidth can be determined based on the service category. For example, when the service category is large packet service (such as downloading files), the first preset occupied bandwidth can be used as the estimated occupied bandwidth, and when the service category is small packet service (such as browsing web pages), the second preset occupied bandwidth can be used as the estimated occupied bandwidth, wherein the first preset occupied bandwidth is greater than the second preset occupied bandwidth. In another possible implementation, the estimated occupied bandwidth can also be determined in combination with the user's contract information (such as the promised service bandwidth), or the estimated occupied bandwidth can be determined using a technical solution known in the relevant technology.
[0036] In some possible implementations, the estimated time required to complete the new access service can be determined based on the number of services corresponding to the service request and the estimated occupied bandwidth. In another possible implementation, the estimated service time can also be determined by a technical solution known in the relevant technology.
[0037] In some embodiments, the first address may be the source address of the newly accessed service. In some possible implementations, the priority source address may also be set as a preset designated address, so that the service scheduling priority may be determined based on whether the source address of the newly accessed service is included in the preset designated address.
[0038] In step S102, when there is an existing service, a target existing service is determined from the existing services according to the first service information and the second service information of the existing service.
[0039] Among them, the service scheduling priority of the target existing service is lower than that of the newly accessed service.
[0040] In step S103, the newly accessed service is preferentially scheduled using the resources to be scheduled in the total resources, and the target existing service is scheduled using the remaining resources after scheduling the newly accessed service.
[0041] The resources to be scheduled include historical scheduling resources of the target existing services.
[0042] In some embodiments, the total resource includes at least one sub-resource, each sub-resource is carried by the same or different physical transmission, and different sub-resources have the same or different resource priorities. The total resource can be a resource pool formed by virtualizing at least one sub-resource.
[0043] It is understandable that the target existing services can be scheduled by the remaining resources after scheduling the newly accessed services, or the target existing services with higher service scheduling priority can be preferentially scheduled according to the service scheduling level in the target existing services, and so on.
[0044] Figure 2 A schematic diagram of a virtualized resource pool provided in an embodiment of the present application is shown, such as Figure 2 As shown. Figure 2 In (a), the total resource may include sub-resource 11 and sub-resource 12. Sub-resource 11 may be, for example, wired transmission, and sub-resource 12 may be, for example, wireless transmission (e.g., 5G). The total resource may be sub-resource 11 and sub-resource 12. Sub-resource 11 and sub-resource 12 may be virtualized to form a resource pool, so that the sub-resources may schedule services together or individually. For example, in Figure 2 In (b), the bandwidth of sub-resource 11 and sub-resource 12 is 100Mbps respectively, and the total resource is a 200Mbps resource pool obtained by virtualizing sub-resource 11 and sub-resource 12. The resource priority of sub-resource 11 can be greater than or equal to sub-resource 12. The estimated occupied service bandwidth of existing service 21 is 150Mbps, so existing service 21 can be jointly scheduled by sub-resource 11 and sub-resource 12, that is, 100Mbps of existing service 21 is scheduled by sub-resource 11, and the remaining 50Mbps is scheduled by sub-resource 12. In some specific implementations, the proportion of the allocated bandwidth of each sub-resource can be used to control the proportion of the sub-resource scheduling data volume. Figure 2 In (c), the estimated occupied service bandwidth of the existing service 22 is 50 Mbps, the estimated occupied service bandwidth of the existing service 21 is 100 Mbps, and the service scheduling priority of the existing service 22 is greater than that of the existing service 21. Then, the existing service 22 can be scheduled through the sub-resource 11, and the existing service 21 can be jointly scheduled through the remaining sub-resources 11 and sub-resources 12, that is, 50 Mbps of the existing service 21 is scheduled through the sub-resource 11, and the remaining 50 Mbps is scheduled through the sub-resource 12.
[0045] In some embodiments, the newly accessed service may be scheduled through the resources to be scheduled in descending order of their resource priorities. Figure 3 A schematic diagram of resources for service scheduling provided in an embodiment of the present application is shown, such as Figure 3 As shown. Figure 3In (a), the total resources are a resource pool composed of virtualized sub-resources 11 and sub-resources 12, wherein the resource priority of sub-resource 11 is greater than or equal to the resource priority of sub-resource 12. Existing services may include existing services 21 and existing services 22, wherein the service scheduling priority of existing services 21 is lower than that of existing services 22, so a portion of existing services 21 is scheduled on sub-resource 12. At this time, when a new access service 23 having a higher service scheduling priority than the existing service 21 is accessed, the resources to be scheduled may include the current scheduling resources and idle resources 20 of the existing service 21, that is, the remaining portion of the total resources except for the resources occupied by the existing service 22 having a higher service priority. Among them, the resources to be scheduled include a portion of the sub-resource 11 with a higher priority and a portion of the sub-resource 12 with a lower priority. When scheduling the new access service 23, the portion of the sub-resource 11 with a higher priority is preferentially used to schedule the new access service 23. When the portion of the sub-resource 11 with a higher priority does not satisfy the new access service 23, the portion of the sub-resource 12 with a lower priority may also be used for scheduling. Figure 3 In (b), after the new access service 23 is connected, the new access service 23 is scheduled first in the resources to be scheduled. If there are still remaining resources in the sub-resource 11, the remaining resources can be used to schedule the existing service 21. That is, the traffic of the existing service 21 is partially transferred to the sub-resource 12. Figure 3 In (c), after the newly accessed service 23 is scheduled to access, the remaining resources only include part of the resources of the sub-resource 12, then the remaining resources can be used to schedule the existing service 21, that is, the scheduling of the existing service 22 and the newly accessed service 23 is prioritized, and the existing service 21 with the lowest service scheduling priority is all transferred to the sub-resource 12, and due to the limited bandwidth, the service experience may be affected. Figure 3 In (d), after the newly accessed service 23 is preferentially scheduled to access, there are no remaining resources, so the scheduling of the existing service 22 and the newly accessed service 23 is prioritized, and the scheduling of the existing service 21 with the lowest service scheduling priority is temporarily stopped.
[0046] By adopting the above technical approach, it is possible to integrate scheduling resources, give priority to scheduling services with higher scheduling priorities, and dynamically adjust the scheduling resources of target existing services, thereby improving the overall QOS service guarantee effect and enhancing the user's service experience.
[0047] Figure 4 Another flow chart of the service scheduling method provided by the embodiment of the present application is shown. Figure 4 As shown, step S102 may include the following steps:
[0048] In step S1021, a first score corresponding to the newly accessed service and a second score corresponding to the existing service are calculated according to the second service information and the first service information of the existing service.
[0049] In step S1022, when the first score is greater than the second score, the existing service is determined to be the target existing service.
[0050] For example, the second business information of each existing business can be obtained in turn, and the first score corresponding to the newly accessed business and the second score corresponding to the existing business can be calculated based on the second business information and the first business information of the existing business. When the first score is greater than the second score, the existing business is determined to be the target existing business, that is, each existing business whose second score is less than the first score is taken as the target existing business.
[0051] By adopting the above-mentioned technical method, one or more target existing services with lower service scheduling priority can be determined from the existing services, new access services with higher service scheduling priority can be prioritized, and the scheduling resources of the target existing services can be dynamically adjusted to improve the overall QOS service guarantee effect and enhance the user's service experience.
[0052] Figure 5 Another flow chart of the method for service scheduling provided by the embodiment of the present application is shown. In which, existing services are stored in the service queue in descending order of service scheduling priority, such as Figure 5 As shown, step S102 may include the following steps:
[0053] In step S1023, existing services are acquired from the service queue in sequence.
[0054] In step S1024, a first score corresponding to the newly accessed service and a second score corresponding to the existing service are calculated according to the second service information and the first service information of the existing service.
[0055] In step S1025, when the first score is greater than the second score, the existing business and the existing business after the existing business in the business queue are determined to be the target existing business; or, when the first score is less than or equal to the second score, continue to obtain the next existing business, and repeatedly calculate the first score corresponding to the newly accessed business and the second score corresponding to the existing business based on the second business information and the first business information of the existing business, until the first score is greater than the second score or the business queue is traversed.
[0056] For example, when it is determined that the second score of the nth existing service in the service queue is less than the first score, the nth existing service and existing services after the nth existing service in the service queue may be determined as target existing services.
[0057] By adopting the above technical method, existing services are arranged in queue according to the service scheduling priority order, which can reduce the amount of calculation of new access services and existing services when determining the service scheduling priority, and further improve the efficiency of calculation.
[0058] In some embodiments, the first business information includes a first business category, a first estimated business time, a first estimated occupied bandwidth, and one or more of a first address, and the second business information includes a second business category, a second estimated business time, a second estimated occupied bandwidth, and one or more of a second address. Step S1022 and step S1024 can calculate the first score corresponding to the newly accessed business and the second score corresponding to the existing business according to the second business information and the first business information of the existing business through the following steps.
[0059] Step 30: When the first service information includes the first service category and the second service information includes the second service category, determine the first service category score corresponding to the newly accessed service and the second service category score corresponding to the existing service according to the service priorities corresponding to the first service category and the second service category respectively.
[0060] In some possible implementations, when the service priority of the first service category is less than the service priority of the second service category, the first service category score S1 is 0, and the second service category score S2 is 1. When the service priority of the first service category is greater than the service priority of the second service category, the first service category score S1 is 1, and the second service category score S2 is 0. When the service priority of the first service category is equal to the service priority of the second service category, the first service category score S1 and the second service category score S2 are both 0.
[0061] Step 31: When the first service information includes the first estimated service time and the second service information includes the second estimated service time, determine a first service time score corresponding to the newly accessed service and a second service time score corresponding to the existing service according to the first estimated service time and the second estimated service time.
[0062] In some possible implementations, when the first estimated business time is less than the second estimated business time, the first business time score T1 is 1, and the second business time score T2 is 0. When the first estimated business time is greater than the second estimated business time, the first business time score T1 is 0, and the second business time score T2 is 1. When the first estimated business time is equal to the second estimated business time, both the first business time score T1 and the second business time score T2 are 0.
[0063] Step 32: When the first service information includes the first estimated occupied bandwidth and the second service information includes the second estimated occupied bandwidth, determine a first service bandwidth score corresponding to the newly accessed service and a second service bandwidth score of the existing service according to the first estimated occupied bandwidth and the second estimated occupied bandwidth.
[0064] In some possible implementations, the first service bandwidth score M1 and the second service bandwidth score M2 may be determined by the following formula 1.
[0065]
[0066] Among them, B1 and B2 represent the first estimated occupied bandwidth and the second estimated occupied bandwidth respectively, p1 and p2 represent the preset priority levels of the new access service and the existing service respectively, and the preset priority levels can be set according to the service types of the new access service and the existing service respectively. M1 and M2 represent the first service bandwidth score and the second service bandwidth score respectively.
[0067] Step 33: When the first service information includes the first address and the second service information includes the second address, determine the first service address score corresponding to the newly accessed service and the second service address score corresponding to the existing service according to the first address, the second address and the preset designated address.
[0068] In some possible implementations, the preset designated address may be a preset address with priority protection, and the preset designated address may be, for example, an address list including multiple addresses, or multiple addresses represented by address wildcards. When the preset designated address includes the first address, the first business address score I1 is 1, otherwise it is 0. When the preset designated address includes the second address, the second business address score I1 is 1, otherwise it is 0.
[0069] Step 34: weight one or more of the first service category score, the first service time score, the first service bandwidth score, and the first service address score according to preset weights to obtain a first score.
[0070] Step 35: weight one or more of the second service category score, the second service time score, the second service bandwidth score, and the second service address score according to preset weights to obtain a second score.
[0071] In some possible implementations, the first score and the second score may be determined by the following formula 2.
[0072]
[0073] Among them, A1 and A2 represent the first score and the second score respectively, S1 and S2 represent the first service category score and the second service category score respectively, T1 and T2 represent the first service time score and the second service time score respectively, I1 and I2 represent the first service address score and the second service address score respectively, and M1 and M2 represent the first service bandwidth score and the second service bandwidth score respectively.
[0074] By adopting the above-mentioned technical method, the first score and the second score can be determined by one or more of the information such as the service category of the newly accessed service and the existing service, the estimated service time, the estimated occupied bandwidth, and whether it belongs to the preset designated address, and then the service scheduling priority of the newly accessed service and the existing service is obtained, and the service scheduling priority of the service with higher service scheduling priority is prioritized, and the scheduling resources of the target existing service are dynamically adjusted to improve the overall QOS service guarantee effect and enhance the user's service experience.
[0075] In some embodiments, each sub-resource includes a preset ratio of reserved resources, and the preset ratios corresponding to different sub-resources are the same or different.
[0076] For example, Figure 2 Taking the example that the total resources in (a) include sub-resource 11 and sub-resource 12, for example, 20% of the resources can be reserved for sub-resource 11, and 10% of the resources can be reserved for sub-resource 12.
[0077] By adopting the above technical approach, through the reserved redundant network resources, it is possible to respond to sudden business requests, further improve the reliability of business scheduling, and further improve the business experience.
[0078] Figure 6 Another flow chart of the method for service scheduling provided by the embodiment of the present application is shown. Figure 6 As shown, before obtaining the first service information of the newly accessed service, the following steps may also be included:
[0079] In step S104, the network quality of the sub-resource is determined according to a preset network detection indicator.
[0080] Taking SD-WAN as an example, the CPE of SD-WAN can obtain the network quality of sub-resources through link quality detection in related technologies, where the network quality may include one or more of latency, packet loss rate or jitter.
[0081] In step S105, a corresponding resource priority is determined for the sub-resource according to the network quality.
[0082] For example, the network quality may be weighted according to the preset indicator weight corresponding to each network detection indicator in the network quality of the sub-resource, so as to obtain the resource priority corresponding to the sub-resource.
[0083] By adopting the above-mentioned technical method, the network quality of sub-resources can be dynamically detected and the resource priority corresponding to the sub-resources can be determined, so as to give priority to scheduling services with higher scheduling priority according to resource priority, and dynamically adjust the scheduling resources of the target existing services, thereby improving the overall QOS service guarantee effect and enhancing the user's service experience.
[0084] Figure 7A block diagram of a service scheduling device provided in an embodiment of the present application is shown as follows: Figure 7 As shown, the service scheduling device 100 includes:
[0085] The acquisition module 110 is configured to acquire first service information of a newly accessed service;
[0086] The determination module 120 is configured to determine a target existing service from the existing services according to the first service information and the second service information of the existing services when there are existing services, and the service scheduling priority of the target existing service is lower than that of the newly accessed service;
[0087] The scheduling module 130 is configured to preferentially schedule the newly accessed service through the resources to be scheduled in the total resources, and schedule the target existing service through the remaining resources after scheduling the newly accessed service, wherein the resources to be scheduled include the historical scheduling resources of the target existing service.
[0088] Optionally, the determination module 120 is further configured to:
[0089] Calculate a first score corresponding to the newly accessed service and a second score corresponding to the existing service according to the second service information and the first service information of the existing service;
[0090] When the first score is greater than the second score, the existing service is determined to be the target existing service.
[0091] Optionally, the existing services are stored in the service queue in descending order of service scheduling priority, and the determination module 120 is further configured to:
[0092] Obtain existing services from the service queue in sequence;
[0093] Calculate a first score corresponding to the newly accessed service and a second score corresponding to the existing service according to the second service information and the first service information of the existing service;
[0094] When the first score is greater than the second score, determining the existing service and the existing service after the existing service in the service queue as the target existing service; or,
[0095] When the first score is less than or equal to the second score, continue to obtain the next existing service, and repeatedly calculate the first score corresponding to the newly accessed service and the second score corresponding to the existing service based on the second service information and the first service information of the existing service, until the first score is greater than the second score or the service queue is traversed.
[0096] Optionally, the first service information includes one or more of a first service category, a first estimated service time, a first estimated occupied bandwidth, and a first address, and the second service information includes one or more of a second service category, a second estimated service time, a second estimated occupied bandwidth, and a second address. The determination module 120 is further configured to:
[0097] In a case where the first service information includes a first service category and the second service information includes a second service category, determining a first service category score corresponding to the newly accessed service and a second service category score corresponding to the existing service according to service priorities corresponding to the first service category and the second service category respectively;
[0098] When the first service information includes the first estimated service time and the second service information includes the second estimated service time, determining a first service time score corresponding to the newly accessed service and a second service time score corresponding to the existing service according to the first estimated service time and the second estimated service time;
[0099] When the first service information includes the first estimated occupied bandwidth and the second service information includes the second estimated occupied bandwidth, determining a first service bandwidth score corresponding to the newly accessed service and a second service bandwidth score of the existing service according to the first estimated occupied bandwidth and the second estimated occupied bandwidth;
[0100] In a case where the first service information includes the first address and the second service information includes the second address, determining a first service address score corresponding to the newly accessed service and a second service address score corresponding to the existing service according to the first address, the second address and the preset designated address;
[0101] Weighting one or more of the first service category score, the first service time score, the first service bandwidth score, and the first service address score according to a preset weight to obtain a first score;
[0102] One or more of the second service category score, the second service time score, the second service bandwidth score, and the second service address score are weighted according to preset weights to obtain a second score.
[0103] Optionally, the total resource includes at least one sub-resource, each sub-resource is carried by the same or different physical transmission, and resource priorities of different sub-resources are the same or different. The scheduling module 130 is further configured to:
[0104] The newly accessed services are scheduled through the resources to be scheduled in descending order of their resource priorities.
[0105] The device 100 provided in the embodiment of the present application can execute each method in the foregoing method embodiment and realize the functions and beneficial effects of each method in the foregoing method embodiment, which will not be described in detail here.
[0106] Figure 8 A block diagram of another service scheduling device provided in an embodiment of the present application is shown. Figure 8 As shown, the service scheduling device 100 further includes:
[0107] The resource priority determination module 140 is configured to:
[0108] Determine the network quality of the sub-resource according to the preset network detection indicators;
[0109] Determine the corresponding resource priority for the sub-resources based on the network quality.
[0110] The device 100 provided in the embodiment of the present application can execute each method in the foregoing method embodiment and realize the functions and beneficial effects of each method in the foregoing method embodiment, which will not be described in detail here.
[0111] Fig. 9 A schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application is shown. Referring to the figure, at the hardware level, the electronic device includes a processor, and optionally, an internal bus, a network interface, and a memory. Among them, the memory may include a memory, such as a high-speed random access memory (Random-Access Memory, RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage, etc. Of course, the electronic device may also include hardware required for other services. The processor, the network interface, and the memory may be interconnected through an internal bus, and the internal bus may be an Industry Standard Architecture (Industry Standard Architecture, ISA) bus, a Peripheral Component Interconnect (Peripheral Component Interconnect, PCI) bus, or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one bidirectional arrow is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0112] The memory stores the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.
[0113] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a device for locating the target user at the logical level. The processor executes the program stored in the memory and specifically performs: Figure 1 ,The methods disclosed in the embodiments shown in 4-6 realize the functions and beneficial effects of the various methods described in the previous method embodiments, which will not be repeated here.
[0114] The above application Figure 1 ,The methods disclosed in the embodiments shown in 4-6 can be implemented in a processor or by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor or the instructions in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of this application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of this application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0115] The electronic device can also execute the methods described in the foregoing method embodiments, and realize the functions and beneficial effects of the methods described in the foregoing method embodiments, which will not be repeated here.
[0116] Of course, in addition to software implementation methods, the electronic device of the present application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0117] The embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable medium stores one or more programs, and when the one or more programs are executed by an electronic device including multiple application programs, the electronic device executes Figure 1,The methods disclosed in the embodiments shown in 4-6 realize the functions and beneficial effects of the various methods described in the previous method embodiments, which will not be repeated here.
[0118] The computer-readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0119] Furthermore, an embodiment of the present application also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, and when the program instructions are executed by a computer, the following process is implemented: Figure 1 ,The methods disclosed in the embodiments shown in 4-6 realize the functions and beneficial effects of the various methods described in the previous method embodiments, which will not be repeated here.
[0120] In short, the above is only a preferred embodiment of the present application and does not limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
[0121] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0122] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. 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 disk read-only memory (CD-ROM), digital versatile disk (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 store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0123] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0124] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
Claims
1. A method for service scheduling, characterized in that: The method comprises: Obtaining first service information of a newly accessed service; In the case where an existing service exists, determining a target existing service from the existing services according to the first service information and the second service information of the existing service, wherein the service scheduling priority of the target existing service is lower than that of the newly accessed service; The newly accessed service is preferentially scheduled through the resources to be scheduled in the total resources, and the target existing service is scheduled through the remaining resources after scheduling the newly accessed service, wherein the resources to be scheduled include the historical scheduling resources of the target existing service.
2. The method according to claim 1, characterized in that The determining a target existing service from the existing services according to the first service information and the second service information of the existing services includes: Calculate a first score corresponding to the newly accessed service and a second score corresponding to the existing service according to the second service information of the existing service and the first service information; When the first score is greater than the second score, the existing service is determined to be the target existing service.
3. The method according to claim 1, characterized in that The existing services are stored in a service queue in descending order of the service scheduling priorities, and the determining a target existing service from the existing services according to the first service information and the second service information of the existing services includes: Obtaining existing services from the service queue in sequence; Calculate a first score corresponding to the newly accessed service and a second score corresponding to the existing service according to the second service information of the existing service and the first service information; When the first score is greater than the second score, determining the existing service and the existing service after the existing service in the service queue as the target existing service; or, When the first score is less than or equal to the second score, continue to obtain the next existing service, and repeatedly calculate the first score corresponding to the newly accessed service and the second score corresponding to the existing service based on the second service information of the existing service and the first service information, until the first score is greater than the second score or the service queue is traversed.
4. The method according to claim 3, characterized in that The first service information includes one or more of a first service category, a first estimated service time, a first estimated occupied bandwidth, and a first address, the second service information includes one or more of a second service category, a second estimated service time, a second estimated occupied bandwidth, and a second address, and calculating the first score corresponding to the newly accessed service and the second score corresponding to the existing service according to the second service information of the existing service and the first service information includes: In a case where the first service information includes a first service category and the second service information includes a second service category, determining the first service category score corresponding to the newly accessed service and the second service category score corresponding to the existing service according to the service priorities respectively corresponding to the first service category and the second service category; In a case where the first service information includes a first estimated service time and the second service information includes a second estimated service time, determining a first service time score corresponding to the newly accessed service and a second service time score corresponding to the existing service according to the first estimated service time and the second estimated service time; In a case where the first service information includes a first estimated occupied bandwidth and the second service information includes a second estimated occupied bandwidth, determining a first service bandwidth score corresponding to the newly accessed service and a second service bandwidth score of the existing service according to the first estimated occupied bandwidth and the second estimated occupied bandwidth; In a case where the first service information includes a first address and the second service information includes a second address, determining a first service address score corresponding to the newly accessed service and a second service address score corresponding to the existing service according to the first address, the second address, and a preset designated address; Weighting one or more of the first service category score, the first service time score, the first service bandwidth score, and the first service address score according to a preset weight to obtain the first score; The second score is obtained by weighting one or more of the second service category score, the second service time score, the second service bandwidth score, and the second service address score according to the preset weight.
5. The method according to any one of claims 1 to 4, characterized in that: The total resource includes at least one sub-resource, each sub-resource is carried by the same or different physical transmission, and resource priorities of different sub-resources are the same or different. The prioritizing scheduling of the new access service by the resources to be scheduled in the total resource includes: The new access service is scheduled through the resources to be scheduled in descending order of the resource priorities of the resources to be scheduled.
6. The method according to claim 5, characterized in that Each of the sub-resources includes a preset proportion of reserved resources, and the preset proportions corresponding to different sub-resources are the same or different.
7. The method according to claim 5, characterized in that The method further comprises: Determine the network quality of the sub-resource according to a preset network detection indicator; A corresponding resource priority is determined for the sub-resource according to the network quality.
8. A device for business scheduling, characterized in that: The device comprises: An acquisition module, configured to acquire first service information of a newly accessed service; a determination module configured to determine, when an existing service exists, a target existing service from the existing services according to the first service information and the second service information of the existing service, wherein the service scheduling priority of the target existing service is lower than that of the newly accessed service; The scheduling module is configured to preferentially schedule the newly accessed service through the resources to be scheduled in the total resources, and schedule the target existing service through the remaining resources after scheduling the newly accessed service, wherein the resources to be scheduled include the historical scheduling resources of the target existing service.
9. An electronic device, comprising: processor; as well as A memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor is used to perform the steps of the service scheduling method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including a plurality of application programs, enable the electronic device to execute the steps of the service scheduling method according to any one of claims 1 to 7.
