Resource scheduling method and device based on multi-dimensional constraint fusion and electronic equipment
By using a resource scheduling method that integrates multi-dimensional constraints, the resource scheduling process is optimized, the bandwidth and power consumption issues of terminal devices during resource switching are resolved, and more efficient resource transmission control is achieved.
Patent Information
- Application Number
- CN202611328807.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-24
AI Technical Summary
Existing resource scheduling methods based on global load balancing and adaptive bitrate cause terminal devices to discard data segments that have been pulled but not yet output and re-pull data segments of the switched version during the pull phase. This results in the node server's egress bandwidth being occupied by data that has not generated effective output and an increase in the terminal device's processor usage time, thus increasing power consumption.
A resource scheduling method based on multi-dimensional constraint fusion is adopted. By acquiring access context information, session event information sequence, resource event information set and candidate resource information set, access constraint filtering, state update, pull stage positioning and constraint fusion matching are performed to optimize resource transmission control and reduce the situation of resource selection mismatch.
It reduces the outbound bandwidth usage of node servers and the power consumption of terminal devices, improves the efficiency and accuracy of resource scheduling and matching, and reduces the frequency of software decoding processing.
Smart Images

Figure CN123157431A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of this disclosure relate to the field of computer technology, and more specifically to a resource scheduling method, apparatus, and electronic device based on multi-dimensional constraint fusion. Background Technology
[0002] The resource scheduling method based on multi-dimensional constraint fusion can be a method that uses multiple constraints as matching conditions to determine the resource to be accepted for the resource access request of the terminal device from the candidate resources of each node server, and performs resource transmission control on the terminal device.
[0003] The resource scheduling method described above can be applied to scenarios where resources are distributed in segments (e.g., the distribution of multimedia content resources). In such scenarios, resources are divided into multiple data segments, which are then retrieved segment by segment by the terminal device. Taking the distribution of short dramas as an example, according to the "China Online Audiovisual Development Research Report (2026)," the average daily usage time per user for short drama applications was 129 minutes in December 2025. The duration of a single piece of content is typically several minutes, and the terminal device continuously retrieves multiple pieces of content within a single session. On the distribution side, a piece of content is converted into multiple resource versions with different encoding formats and bitrates, and deployed on multiple node servers. Each resource record has a distributable area, and the resource versions deployed on each node server are different and change as resources are added or removed from the server. On the retrieval side, a session sequentially goes through stages such as initial retrieval and stable retrieval. The terminal device reports session events when retrieving each data segment and outputs the data segment after decoding. Different terminal devices support different encoding formats for hardware decoding, and data segments that cannot be hardware decoded are software decoded by the processor.
[0004] Currently, the resource scheduling method based on multi-dimensional constraint fusion typically follows these steps: First, the server employs global load balancing, selecting node servers based on the network location of the terminal device and the load of each node server, and then returning the selected node servers to the terminal device. Next, the terminal device uses adaptive bitrate, filtering out decodable resources from the resources deployed on the aforementioned node servers based on its supported decoding formats, and then selecting resources from the filtered resources whose bitrate matches the currently available bandwidth based on buffer occupancy. Finally, the terminal device retrieves data segments of the selected resources from the aforementioned node servers segment by segment.
[0005] However, in practice, it has been found that when using the above method to control resource transmission of terminal devices, the following technical problems often occur: Since the resource scheduling method based on global load balancing and adaptive bitrate is executed on both the server and the terminal device, the two sides can only complete the matching based on the constraints available on their own side. This results in the selected resources not being compatible with the current fetching stage of the terminal device and the hardware decoding compatibility. As a result, when the terminal device switches between fetching stages, it discards the data segments that have been fetched but not yet output and fetches the data segments corresponding to the switched version again. It also performs additional software decoding processing on data segments that cannot be hardware decoded. This causes the egress bandwidth of the node server to be occupied by data that has not produced effective output, and the processor time occupied by the terminal device to increase, resulting in an increase in the egress bandwidth occupied by the node server and the power consumption of the terminal device.
[0006] The information disclosed in this background section is only intended to enhance the understanding of the background of the present disclosure concept, and therefore may contain information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0007] The summary portion of this disclosure is intended to provide a brief overview of the concepts, which will be described in detail in the detailed description portion. This summary portion is not intended to identify key or essential features of the claimed technical solutions, nor is it intended to limit the scope of the claimed technical solutions.
[0008] Some embodiments of this disclosure propose a resource scheduling method, apparatus, and electronic device based on multidimensional constraint fusion to solve one or more of the technical problems mentioned in the background section above.
[0009] In a first aspect, some embodiments of this disclosure provide a resource scheduling method based on multi-dimensional constraint fusion, comprising: responding to receiving a resource access request sent by a target terminal device, acquiring access context information, a session event information sequence, a resource event information set, and a candidate resource information set corresponding to the resource access request, wherein the resource corresponding to the resource access request includes media files stored on a node server; performing access constraint filtering processing on the access context information and the candidate resource information set to obtain a filtered resource information set; performing state update processing on the filtered resource information set according to the resource event information set to obtain a resource information set to be scheduled; performing pull stage positioning processing on the session event information sequence to obtain session stage information; performing constraint fusion matching processing on the resource information set to be scheduled according to the access context information and the session stage information to obtain a scheduling matching degree value set; performing interval mapping processing on the resource information set to be scheduled according to the session stage information and the scheduling matching degree value set to obtain target resource information; and performing resource transmission control on the target terminal device according to the target resource information.
[0010] Secondly, some embodiments of this disclosure provide a resource scheduling apparatus based on multi-dimensional constraint fusion, comprising: an acquisition unit configured to, in response to receiving a resource access request sent by a target terminal device, acquire access context information, a session event information sequence, a resource event information set, and a candidate resource information set corresponding to the resource access request; a filtering unit configured to perform access constraint filtering processing on the access context information and the candidate resource information set to obtain a filtered resource information set, wherein the resource corresponding to the resource access request includes media files stored on a node server; and an update unit configured to update the filtered resource information set according to the resource event information set. The resource information set undergoes state update processing to obtain a resource information set to be scheduled; the positioning unit is configured to perform pull-stage positioning processing on the above session event information sequence to obtain session stage information; the matching unit is configured to perform constraint fusion matching processing on the above resource information set to be scheduled based on the above access context information and the above session stage information to obtain a scheduling matching degree value set; the mapping unit is configured to perform interval mapping processing on the above resource information set to be scheduled based on the above session stage information and the above scheduling matching degree value set to obtain target resource information; and the control unit is configured to perform resource transmission control on the above target terminal device based on the above target resource information.
[0011] Thirdly, some embodiments of this disclosure provide an electronic device, including: one or more processors; and a storage device having one or more programs stored thereon, such that when the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any implementation of the first aspect.
[0012] Fourthly, some embodiments of this disclosure provide a computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method as described in any implementation of the first aspect.
[0013] The above embodiments of this disclosure have the following beneficial effects: The resource scheduling method based on multi-dimensional constraint fusion in some embodiments of this disclosure can reduce the outbound bandwidth usage of the node server and the power consumption of the terminal device. Specifically, the reason for the increase in the outbound bandwidth usage of the node server and the power consumption of the terminal device is that: since the resource scheduling method based on global load balancing and bitrate adaptation is executed on both the server and the terminal device, the two sides can only complete the matching based on the partial constraints available on their own side. This makes the selected resources incompatible with the current fetching stage of the terminal device and the hardware decoding compatibility. As a result, when the terminal device switches during the fetching stage, it discards the data segments that have been fetched but not yet output and fetches the data segments corresponding to the switched version again. It also performs additional software decoding processing on the data segments that cannot be hardware decoded. This causes the outbound bandwidth of the node server to be occupied by data that has not generated effective output, and the processor time of the terminal device to increase, resulting in an increase in the outbound bandwidth usage of the node server and the power consumption of the terminal device. Based on this, the resource scheduling method based on multi-dimensional constraint fusion in some embodiments of this disclosure can first, in response to receiving a resource access request sent by a target terminal device, obtain access context information, session event information sequence, resource event information set, and candidate resource information set corresponding to the resource access request. The resources corresponding to the resource access request include media files stored on the node server. Here, the above four pieces of information are taken from the moment of the current resource access request, providing a data foundation at the same time for subsequent access constraint filtering, state update, pull-stage location, and constraint fusion matching processes. Secondly, access constraint filtering is performed on the access context information and the candidate resource information set to obtain a filtered resource information set. Here, resources that cannot be distributed to the region where the target terminal device is located or that the target terminal device cannot decode are removed; resources that can be decoded via software decoding are retained to avoid premature exclusion of available resources before subsequent processing. Thirdly, based on the resource event information set, a state update process is performed on the filtered resource information set to obtain a resource information set to be scheduled. Here, the deployment status is based on the resource events reported by the node server, reducing the possibility of selecting resources that are actually offline due to lag in resource deployment records, thus causing the target terminal device to re-initiate resource access requests. Next, the session event information sequence is processed to determine the session phase, obtaining session phase information. This session phase information allows subsequent constraint fusion and matching processing to change as the session progresses, reducing the possibility of the target terminal device being selected during the initial pull phase for resources whose already pulled data segments cannot support continuous output. Subsequently, based on the access context information and the session phase information, constraint fusion and matching processing is performed on the set of resources to be scheduled, obtaining a set of scheduling matching degree values.Here, constraints from both the server and terminal devices participate in a single matching process, reducing the likelihood of selected resources being incompatible with the current fetching stage and hardware decoding compatibility of the target terminal device due to matching based solely on locally available constraints. Then, based on the session stage information and the scheduling matching degree value set, the set of resources to be scheduled is mapped to obtain the target resource information. Here, resources with lower scheduling matching degree values can still be selected, reducing the likelihood of multiple resource access requests selecting the same resource, thus concentrating bandwidth usage on a single node server. Finally, resource transmission control is performed on the target terminal device based on the target resource information. Here, the target terminal device is connected to the node server corresponding to the target resource information, and the resources corresponding to the target resource information are transmitted to the target terminal device, reducing the likelihood of the target terminal device discarding fetched but not yet output data segments and fetching them again during fetching stage switching, and reducing the need for additional software decoding processing on data segments that cannot be hardware decoded. Therefore, this resource scheduling method based on multi-dimensional constraint fusion can reduce the outbound bandwidth usage of node servers and the power consumption of terminal devices. Attached Figure Description
[0014] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and elements are not necessarily drawn to scale.
[0015] Figure 1 This is a flowchart of some embodiments of the resource scheduling method based on multidimensional constraint fusion according to the present disclosure; Figure 2 These are schematic diagrams illustrating the structure of some embodiments of the resource scheduling apparatus based on multidimensional constraint fusion according to this disclosure; Figure 3 This is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. Detailed Implementation
[0016] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0017] It should also be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings. Unless otherwise specified, the embodiments and features described in this disclosure can be combined with each other.
[0018] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0019] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0020] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0021] This disclosure will now be described in detail with reference to the accompanying drawings and embodiments.
[0022] Figure 1 A flowchart 100 is shown illustrating some embodiments of a resource scheduling method based on multidimensional constraint fusion according to the present disclosure. This resource scheduling method based on multidimensional constraint fusion includes the following steps: Step 101: In response to receiving a resource access request sent by the target terminal device, obtain the access context information, session event information sequence, resource event information set and candidate resource information set corresponding to the resource access request, wherein the resource corresponding to the resource access request includes media files stored on the node server.
[0023] In some embodiments, the execution entity (e.g., an electronic device) of the resource scheduling method based on multi-dimensional constraint fusion described above can, in response to receiving a resource access request sent by a target terminal device, obtain access context information, session event information sequence, resource event information set, and candidate resource information set corresponding to the resource access request via a wired or wireless connection. The resource corresponding to the resource access request includes media files stored on a node server. The target terminal device can be the terminal device initiating the resource access request (e.g., a smartphone or tablet). The resource access request can be a request initiated by the target terminal device to retrieve a data segment (e.g., a Hypertext Transfer Protocol request). The data segment can be a multimedia content (e.g., a short drama) divided into segments according to its output duration, with each segment stored as a media file (e.g., a .ts segment file or an fMP4 segment file in HTTP LiveStreaming). The node server can be a server that stores the media files for retrieval by terminal devices (e.g., an edge server of a content delivery network). The aforementioned resource version can be a version of multimedia content that has been converted but has different encoding formats, bitrates, and resolutions (e.g., an H.264 encoding format, a bitrate of 2Mbps, and a 720p resolution). The aforementioned resource can be a collection of media files corresponding to various data segments of a resource version on a single node server. Storage of a resource version of the same multimedia content on different node servers corresponds to different resources. The aforementioned resource access request can include, but is not limited to, at least one of the following: session identifier, content identifier, and data segment identifier. The aforementioned session identifier can be an identifier for a continuous fetching process of the aforementioned target terminal device, within which multiple content items can be fetched. The aforementioned content identifier can be an identifier for the fetched content (e.g., the content path in the Uniform Resource Locator of the aforementioned resource access request). The aforementioned data segment identifier can be an identifier for the requested data segment within the fetched content (e.g., the data segment filename in the Uniform Resource Locator of the aforementioned resource access request). The aforementioned access context information can be information characterizing the environment initiating this resource access request and the receiving capabilities of the aforementioned target terminal device. The aforementioned access context information can include, but is not limited to, at least one of the following: region identifier, decoding capability information, and link rate. The aforementioned region identifier may be an identifier of the region where the target terminal device accesses the network (e.g., a prefecture-level city administrative division code). The aforementioned decoding capability information may be information characterizing the decoding path and decoding frame rate of the target terminal device for various encoding formats and resolutions. The aforementioned decoding path may include hardware decoding paths and software decoding paths. The aforementioned decoding frame rate may be the number of frames per second that the target terminal device can decode via the aforementioned decoding path (e.g., 240fps).The aforementioned link rate characterizes the carrying capacity of the access link of the aforementioned target terminal device. The session event information in the aforementioned session event information sequence can be information reported by the aforementioned target terminal device each time it retrieves a data segment within a session, recording the retrieval status. The aforementioned session event information sequence can be a sequence composed of various session event information items arranged in the order of reporting. The aforementioned session event information can include, but is not limited to, at least one of the following: session identifier, content identifier, data segment duration, and buffer length. The aforementioned data segment duration can be the output duration of the data segment retrieved this time; the output duration of each data segment of the same multimedia content is the same (e.g., all 5 seconds). The aforementioned buffer length can be the duration during which the content corresponding to the aforementioned content identifier has not yet been output in the buffer of the aforementioned target terminal device at the time of reporting. The resource event information in the aforementioned resource event information set can be information generated by the node server when the deployed resource goes online or offline, and information repeatedly reported at a preset period (e.g., 30 seconds), recording the resource deployment status. The aforementioned resource event information can include, but is not limited to, at least one of the following: resource identifier, deployment status, and event time. The aforementioned resource identifier can be an identifier that uniquely identifies a resource. The deployment status mentioned above can be deployed or not deployed. The event time mentioned above can be the time when the resource event information was generated. The candidate resource information in the candidate resource information set mentioned above can be information representing the media attributes and deployment status of a resource that can be used to receive the content corresponding to the content identifier mentioned above. Each resource of the multimedia content corresponding to the content identifier mentioned above corresponds to one candidate resource information. The candidate resource information mentioned above can include, but is not limited to, at least one of the following: resource identifier, node server identifier, resource attribute information, distributable region, deployment status, number of data segments, and data segment duration. The node server identifier mentioned above can be the identifier of the node server where the resource corresponding to the candidate resource information is located. The resource attribute information mentioned above can be information representing the media attributes of the resource corresponding to the candidate resource information mentioned above, which can include encoding format, bitrate, resolution, and frame rate. The distributable region mentioned above can be the identifier of the region where the resource corresponding to the candidate resource information is allowed to be distributed (e.g., provincial administrative division code). The deployment status included in the candidate resource information mentioned above can be the deployment status recorded in the resource deployment record (e.g., a data table recording the deployment status of each resource version on each node server), which may be inconsistent with the actual deployment status of the node server. The number of data segments mentioned above can be the number of data segments into which the resource corresponding to the above candidate resource information is divided (for example, 60). The duration of the data segments mentioned above can be the output duration of each data segment into which the resource corresponding to the above candidate resource information is divided, and its value is the same as the duration of the data segments included in the above session event information. All resource versions of the same multimedia content are divided according to the same boundaries, and the number of data segments and the duration of each data segment included in each candidate resource information are the same.In practice, the aforementioned executing entity can first input the source Internet Protocol Address (IPA) of the resource access request into an IPA georeferenced database (e.g., the MaxMindGeoIP2 database) to obtain the region identifier. Then, it extracts the decoding capability information reported by the target terminal device from the request header of the resource access request. This decoding capability information can be obtained by the target terminal device iterating through its local decoder list (e.g., by calling the Android platform's MediaCodecList interface to query the encoding formats and resolutions supported by each decoder, whether each decoder is a hardware-accelerated decoder, and the decoding frame rate of each decoder at each resolution) and reporting it along with the resource access request. Next, the link rate is determined by the ratio of the number of bits transmitted to the transmission time of the target terminal device's previous data segment response, as reported by each node server. Furthermore, when the target terminal device has no previous data segment response, a preset initial link rate (e.g., 2 Mbps) is determined as the link rate. This preset initial link rate can be a pre-set link rate used by the target terminal device when there are no transmission records in the current session. Next, the aforementioned region identifier, decoding capability information, and link rate are determined as access context information. Then, the session event information in the session event database (e.g., a database storing session event information reported by each terminal device) whose session identifier matches the session identifier included in the resource access request are arranged in the order they were written into the session event database to obtain a session event information sequence. The resource event information reported by each node server in the resource event database (e.g., a database storing resource event information reported by each node server) is determined as a resource event information set. Finally, the resource attribute information, number of data segments, and duration of each resource version recorded in the content list corresponding to the aforementioned content identifier (e.g., the main playlist and media playlist of HTTP Live Streaming), and the resource identifier, node server identifier, distributable region, and deployment status of each resource version on each node server recorded in the resource deployment record, are determined as a candidate resource information set.
[0024] Step 102: Perform access constraint filtering on the access context information and the candidate resource information set to obtain the filtered resource information set.
[0025] In some embodiments, the execution entity may perform access constraint filtering on the access context information and the candidate resource information set to obtain a filtered resource information set. The filtered resource information in the filtered resource information set may be candidate resource information from the candidate resource information set that satisfies the following two conditions: the distributable region covers the region corresponding to the region identifier included in the access context information; and the encoding format included in the resource attribute information is an encoding format that the target terminal device can decode. Each item included in the filtered resource information is the same as each item included in the candidate resource information. The encoding format that the target terminal device can decode may include encoding formats decoded via hardware decoding and encoding formats decoded via software decoding. For example, if the target terminal device does not support hardware decoding of the H.265 encoding format but supports software decoding, the candidate resource information in the resource attribute information with the H.265 encoding format still belongs to the filtered resource information set.
[0026] In some optional implementations of certain embodiments, the above-described access constraint filtering process on the access context information and the candidate resource information set to obtain a filtered resource information set may include the following steps: The first step involves extracting constraint information from the access context information to obtain regional constraint information and decoding constraint information. The regional constraint information can be composed of the regional identifiers of the target terminal device's location and its corresponding superior regions. The decoding constraint information can be composed of various encoding formats that the target terminal device can decode. The decoding constraint information and the decoding capability information included in the access context information originate from the same reported data, but the difference lies in that the decoding capability information is categorized by decoding path and decoding frame rate, while the decoding constraint information only retains the result of whether decoding is possible, without distinguishing which decoding path was used. In practice, the executing entity can first determine the regional identifiers included in the access context information, and the corresponding superior region identifiers in a preset regional hierarchy table (e.g., a table recording the hierarchical relationship of administrative division codes), as the regional constraint information. Then, the decoding capability information included in the access context information, which specifies the encoding formats of either hardware or software decoding paths, is determined as the decoding constraint information.
[0027] The second step involves filtering the candidate resource information set based on the aforementioned regional constraint information and decoding constraint information to obtain a filtered resource information set. In practice, the executing entity can first identify the candidate resource information in the candidate resource information set whose distributable regions belong to the aforementioned regional constraint information as the filtered resource information set. The filtered resource information in the filtered resource information set can be candidate resource information that is allowed to be distributed to the region where the target terminal device is located. Then, the filtered resource information in the filtered resource information set whose resource attribute information includes encoding formats that belong to the aforementioned decoding constraint information is identified as the filtered resource information set.
[0028] Step 103: Based on the resource event information set, perform state update processing on the filtered resource information set to obtain the resource information set to be scheduled.
[0029] In some embodiments, the aforementioned execution entity can perform state update processing on the aforementioned filtered resource information set based on the aforementioned resource event information set to obtain a resource information set to be scheduled. The resource information to be scheduled in the resource information set can be information representing the media attributes, deployment status, and capacity reserve of a resource to be scheduled, as well as the capacity reserve of the node server where it resides. The resource to be scheduled can be a resource currently deployed on the node server and available to handle the current resource access request. The resource information to be scheduled includes all items included in the aforementioned filtered resource information and the node reserve rate. The deployment status included in the resource information to be scheduled can be the deployment status reported by the node server. The node reserve rate can be the difference between the upper limit of a node server's outbound bandwidth and the outbound traffic in the most recent collection period (for example, when the upper limit of outbound bandwidth is 10Gbps and the outbound traffic in the most recent collection period is 6Gbps, the node reserve rate is 4Gbps). Resources deployed on the same node server have the same node reserve rate.
[0030] In some optional implementations of certain embodiments, the process of updating the status of the filtered resource information set based on the resource event information set to obtain the resource information set to be scheduled may include the following steps: The first step involves performing event filtering on the aforementioned filtered resource information set to obtain the target resource event information set. The target resource event information in this set can be resource event information whose resource identifiers belong to the set of resource identifiers to be updated. The resource identifiers to be updated in the set of resource identifiers to be updated can be resource identifiers included in the filtered resource information set. In practice, the executing entity can first determine the resource identifiers included in each filtered resource information set as the set of resource identifiers to be updated. Then, the resource event information in the resource event information set whose resource identifiers belong to the set of resource identifiers to be updated is determined as the target resource event information set.
[0031] The second step involves performing time-series aggregation processing on the aforementioned target resource event information set to obtain a resource status information set. The resource status information in this set can be information about the current deployment status of a single resource, determined by reports from the node server. This resource status information may include a resource identifier, deployment status, and event time. Each resource status information in the set contains a unique resource identifier, and each resource corresponds to at most one resource status information. In practice, the executing entity can identify the latest event time among the target resource event information with the same resource identifier in the set as the resource status information, thus obtaining the resource status information set.
[0032] The third step involves performing state overwriting processing on the filtered resource information set based on the aforementioned resource status information set, resulting in a resource information set to be scheduled. In practice, the executing entity can first determine the deployment status of each filtered resource information in the aforementioned filtered resource information set as "not deployed," thus obtaining a resource information set with a reset status. Then, for each resource status information in the aforementioned resource status information set, the resource information in the reset status information set whose resource identifier is the same as the resource identifier included in the aforementioned resource status information is determined as the resource information to be overwritten, and the deployment status included in the aforementioned resource status information is written into the deployment status included in the resource information to be overwritten, resulting in a resource information set with an overwritten status. Subsequently, the overwritten resource information in the overwritten resource information set with a deployment status of "deployed" is determined as the initial resource information set to be scheduled, and in response to determining that the aforementioned resource status information set is empty, the filtered resource information in the aforementioned filtered resource information set with a deployment status of "deployed" is determined as the initial resource information set to be scheduled. Subsequently, for each node server, the difference between the upper limit of the outbound bandwidth reported by the node server at a preset collection period (e.g., 1 minute) and the outbound traffic in the most recent collection period is determined as the node reserve rate corresponding to the node server identifier of the aforementioned node server, thus obtaining a node reserve rate set. Finally, for each initial resource information to be scheduled in the aforementioned initial resource information set, the node reserve rate set and the node reserve rate corresponding to the node server identifier included in the aforementioned initial resource information to be scheduled are combined with the aforementioned initial resource information to be scheduled as the resource information to be scheduled, thus obtaining the resource information set to be scheduled.
[0033] In some optional implementations of certain embodiments, the above-mentioned time-series aggregation processing of the target resource event information set to obtain the resource status information set may include the following steps: The first step involves performing time-sensitivity truncation processing on the aforementioned target resource event information set according to a preset time limit, resulting in a valid resource event information set. The preset time limit can be a pre-defined duration for which the deployment status recorded in the resource event information is considered reliable. This preset time limit can be set as a multiple of the resource event information's repetitive reporting cycle (for example, if the repetitive reporting cycle is 30 seconds, the preset time limit could be 180 seconds). The valid resource event information in the valid resource event information set can be target resource event information from the aforementioned target resource event information set whose recorded deployment status is still reliable. In practice, the executing entity can determine the valid resource event information set as the target resource event information set where the difference between the receiving time of the current resource access request and the event time is not greater than the preset time limit.
[0034] The second step involves merging the valid resource event information in the aforementioned valid resource event information set according to the resource identifier and event time, to obtain a resource status information set. In practice, the executing entity can first group valid resource event information with the same resource identifier into the same valid resource event information group, thus obtaining a set of valid resource event information groups. Then, for each valid resource event information group in the set, the valid resource event information in the group is arranged from earliest to latest according to event time, resulting in a valid resource event information sequence. Finally, the last valid resource event information in the sequence is identified as the resource status information, thus obtaining a resource status information set.
[0035] Step 104: Perform pull-stage location processing on the session event information sequence to obtain session stage information.
[0036] In some embodiments, the execution entity can perform pull phase positioning processing on the session event information sequence to obtain session phase information. The session phase information can be information characterizing the current session's progress on the pulled content. The session phase information can include a content identifier and the pulled duration. The content identifier included in the session phase information can be the identifier of the currently pulled content. The pulled duration can be the sum of the output durations of each pulled data segment recorded in the session event information sequence. The duration corresponding to the progress characterized by the session phase information is the pulled duration. The pull phase can be the stage the current session is in during the data segment pull process. The pull phase can include an initial pull phase and a stable pull phase. The initial pull phase can be a stage where the pulled data segments are insufficient to support continuous output. The stable pull phase can be a stage where the pulled data segments are sufficient to support continuous output. The longer the fetch duration, the closer the current session is to the stable fetch stage (for example, if the session event information sequence includes three session event pieces, and each session event piece includes a data segment with a duration of 5 seconds, the fetch duration can be 15 seconds). In practice, the execution entity can, in response to determining that the session event information sequence is empty, determine the content identifier and 0 seconds included in the resource access request as the session stage information. Alternatively, in response to determining that the session event information sequence is not empty, the execution entity can first determine the sum of the data segment durations included in each session event piece in the sequence as the fetch duration, and then determine the content identifier included in the last session event piece in the sequence and the fetch duration as the session stage information.
[0037] In the process of adopting technical solutions to solve the technical problems mentioned above, for the application scenario: the terminal device continuously fetches multiple pieces of content within a single session, and pre-starts fetching the next piece of content that has not yet been output (for example, in a short drama application, the terminal device switches content by swiping up), the following technical problems often arise: Since the data segments fetched by the terminal device belong to the content being output and the content that has not yet been output, the same session event information sequence contains session events with different content. The data segments fetched for the content being output are sufficient to support continuous output, while the data segments for the content that has not yet been output accumulate from zero. Since the session stage information is a single result, it cannot match the data segment accumulation situation of different content. This results in the bitrate of the resource version selected for the content that has not yet been output being higher than the bitrate that the fetched data segments can support. Furthermore, a portion of the content that has not yet been output is never output due to the terminal device continuing to switch, causing the egress bandwidth of the node server to be occupied by data that has not generated effective output, resulting in an increase in the egress bandwidth usage of the node server. To address the following requirements of this application scenario: adapting to frequent content switching within a session, adapting to parallel retrieval of multiple content items, and adapting to varying data segment accumulation rates for each content item, we have decided to adopt the following solution: Optionally, the above-mentioned process of retrieving and locating the session event information sequence to obtain session phase information may include the following steps: The first step involves grouping the session event information sequence according to the content identifiers included in each session event information segment, resulting in a set of sub-session event information segments. A sub-session event information segment within this set can be a group composed of session event information segments with the same content identifier from the session event information sequence. In practice, the executing entity can group session event information segments with the same content identifier from the session event information sequence into the same sub-session event information segment, thus obtaining the set of sub-session event information segments.
[0038] The second step involves aggregating the data segment durations of the aforementioned sub-session event information groups to obtain a set of content-fetched durations. The content-fetched duration in this set can be the sum of the output durations of all data segments for a single piece of content that has been fetched. This content-fetched duration corresponds to the content identifier included in the session event information within the aforementioned sub-session event information groups. In practice, the executing entity can determine the content-fetched duration as the sum of the data segment durations included in each session event information within each sub-session event information group in the aforementioned sub-session event information group set, thus obtaining the content-fetched duration set (for example, if a sub-session event information group includes 8 session event information entries, and each session event information entry includes a data segment duration of 5 seconds, the aforementioned content-fetched duration can be 40 seconds).
[0039] The third step involves extracting the buffer length from the aforementioned sub-session event information set to obtain a content buffer length value set. The content buffer length value in this set can be the sum of the output durations of all data segments for which content has been retrieved but not yet output. In practice, the executing entity can determine the buffer length of the last session event information in each sub-session event information set as the content buffer length value, thus obtaining the content buffer length value set (for example, if the buffer length of the last session event information in the sub-session event information set is 25 seconds, the content buffer length value can be 25 seconds).
[0040] Fourth, based on the aforementioned content buffer length value set, perform differential restoration processing on the aforementioned content fetch duration set to obtain the content output duration set. The output duration in the aforementioned content output duration set can be the duration of a single piece of content that has been output. In practice, the executing entity can, for each sub-session event information group in the aforementioned sub-session event information group set, determine the content output duration as the difference between the content fetch duration corresponding to the sub-session event information group and the content buffer length value corresponding to the sub-session event information group, and then obtain the content output duration set (for example, if the content fetch duration is 40 seconds and the content buffer length value is 25 seconds, the aforementioned content output duration can be 15 seconds).
[0041] The fifth step involves processing the output duration set of the content according to the position of the last session event information in each sub-session event information group within the aforementioned sub-session event information group set in the aforementioned session event information sequence. This yields a set of currently output content identifiers and a set of deprecated content identifiers. The position can be the sequence number of a session event information in the aforementioned session event information sequence. The currently output content identifier can be the identifier of the content currently being output. The deprecated content identifiers in the aforementioned set of deprecated content identifiers can be identifiers of content that has been retrieved and output, but which is no longer output because other content has started outputting afterward. In practice, the executing entity can first determine the content identifiers corresponding to the output durations of each content in the aforementioned output duration set that are greater than zero as the output content identifier set. Then, the output content identifiers in the aforementioned set of output content identifiers are arranged in ascending order according to the position of the last session event information in the sub-session event information group corresponding to each output content identifier, resulting in an output content identifier sequence. Next, the last output content identifier in the above-mentioned output content identifier sequence is determined as the current output content identifier. In response to determining that the above-mentioned output content identifier sequence is empty, the content identifier included in the last session event information in the above-mentioned session event information sequence is determined as the current output content identifier. Finally, each output content identifier in the above-mentioned output content identifier sequence, except for the last output content identifier, is determined as the set of deprecated content identifiers.
[0042] Step 6: Based on the above-mentioned content-retrieved duration set, normalize the above-mentioned content-output duration set to obtain a content output percentage value set. The content output percentage value in this set represents the proportion of the output duration of a piece of content within the total retrieved duration of the same piece of content. In practice, the executing entity can determine the content output percentage value as the ratio of the output duration to the retrieved duration of the corresponding content for each sub-session event information group in the sub-session event information group set, thus obtaining the content output percentage value set (for example, if the output duration is 15 seconds and the retrieved duration is 40 seconds, the content output percentage value can be 0.375).
[0043] Step 7: Based on the aforementioned set of deprecated content identifiers, filter the aforementioned set of content output percentage values to obtain a reference output percentage value sequence. Here, each reference output percentage value in the aforementioned reference output percentage value sequence can be a content output percentage value corresponding to a deprecated content identifier. In practice, the executing entity can arrange the content output percentage values corresponding to each deprecated content identifier in the aforementioned set of deprecated content identifiers according to the order in which each deprecated content identifier appears in the aforementioned sequence of output content identifiers to obtain the reference output percentage value sequence.
[0044] Step 8: Perform proximate factor aggregation on the aforementioned reference output percentage sequence to obtain the session output percentage. The session output percentage represents the proportion of data segments that have been pulled and output within the current session. In practice, the executing entity can first, in response to determining that the aforementioned reference output percentage sequence is empty, determine a preset initial output percentage value (e.g., 1) as the session output percentage value. Then, in response to determining that the aforementioned reference output percentage sequence is not empty, determine the first reference output percentage value in the aforementioned reference output percentage sequence as the initial session output percentage value. Finally, using an exponentially weighted moving average method, aggregate the remaining reference output percentage values in the aforementioned reference output percentage sequence to the aforementioned session output percentage value according to a preset proximate factor weight value (e.g., 0.5) to obtain the session output percentage value.
[0045] Step nine involves determining the content identifier included in the last session event information in the aforementioned session event information sequence as the target content identifier, and determining the content retrieval duration that corresponds to the target content identifier as the target content retrieval duration. The target content identifier can be the identifier of the content currently being retrieved. The target content identifier and the current output content identifier can be different: the content indicated by the target content identifier is being retrieved, while the content indicated by the current output content identifier is being output. These two identifiers differ when the target terminal device pre-starts retrieving the next piece of content that has not yet been output.
[0046] Step 10: Based on the aforementioned session output ratio and the aforementioned current output content identifier, perform cross-content calibration processing on the target content's fetched duration to obtain the calibrated fetched duration. The calibrated fetched duration can be the target content's fetched duration reduced by the proportion of data segments already fetched within the current session. In practice, the executing entity can determine the target content's fetched duration as the calibrated fetched duration in response to determining that the target content identifier is the same as the current output content identifier. Alternatively, the executing entity can determine the calibrated fetched duration as the product of the target content's fetched duration and the session output ratio in response to determining that the target content identifier is different from the current output content identifier (for example, if the target content's fetched duration is 10 seconds, the session output ratio is approximately 0.31, and the target content identifier is different from the current output content identifier, the calibrated fetched duration could be approximately 3.1 seconds).
[0047] Step 11: The target content identifier and the calibrated retrieved duration are determined as session phase information. Specifically, when using the optional implementation method described above, the content identifier included in the session phase information is the target content identifier, and the duration corresponding to the progress level represented by the session phase information is the calibrated retrieved duration.
[0048] The above technical content, combined with step "Step 107" below, serves as an inventive point of this disclosure, solving the following technical problem: "Increased egress bandwidth usage of the node server." Factors leading to increased egress bandwidth usage of the node server are often as follows: Because the data segments pulled by the terminal device belong to both content being output and content not yet output, the same session event information sequence contains session events with different content. The data segments pulled for the content being output are sufficient to support continuous output, while the data segments for the content not yet output accumulate from zero. Since session stage information is a single result, it cannot match the accumulation of data segments for different content. This results in the bitrate of the resource version selected for the content not yet output being higher than the bitrate supported by the pulled data segments. Furthermore, a portion of the content not yet output is never output due to continued switching of the terminal device, causing the node server's egress bandwidth to be occupied by data that has not generated effective output, thus increasing the node server's egress bandwidth usage. Solving these factors can reduce the node server's egress bandwidth usage. To achieve this effect, this disclosure first groups the session event information sequence according to the content identifiers included in each session event information in the aforementioned session event information sequence, obtaining a set of sub-session event information groups. Then, the sub-session event information groups undergo data segment duration aggregation processing to obtain a set of content-retrieved durations, and the sub-session event information groups undergo buffer length extraction processing to obtain a set of content buffer length values. Next, based on the content buffer length value set, the content-retrieved duration set undergoes differential restoration processing to obtain a set of content-output durations. Here, the duration of content retrieved is equal to the sum of the duration of content already output and the duration in the buffer that has not yet been output. Therefore, the restored content-output duration does not contain calculation errors and does not require the target terminal device to report the output progress separately. Subsequently, based on the position of the last session event information in each sub-session event information group within the aforementioned sub-session event information sequence in the aforementioned session event information sequence, the content-output duration set undergoes order differentiation processing to obtain a set of currently output content identifiers and a set of deprecated content identifiers. Here, the reference only takes content that is no longer being output, and the output duration of the above content remains unchanged. This reduces the possibility of the proportion of content being output being lowered due to some data segments not yet being output. Then, based on the above set of content output durations, the above set of content output durations is normalized to obtain a set of content output proportion values. Based on the above set of deprecated content identifiers, the above set of content output proportion values is filtered to obtain a reference output proportion value sequence. Finally, the above reference output proportion value sequence is subjected to proximate cause aggregation to obtain the session output proportion value.Here, the obtained session output ratio is taken from the actual test results within the current session, and varies with the current content switching frequency of the target terminal device, reducing the need to set different reduction ranges due to different switching frequencies. Finally, the content identifier included in the last session event information in the above session event information sequence is determined as the target content identifier, and the content fetched duration that is concentrated with the content fetched duration corresponding to the target content identifier is determined as the target content fetched duration. Based on the above session output ratio and the above current output content identifier, the target content fetched duration is subjected to cross-content calibration processing to obtain the calibrated fetched duration. The target content identifier and the above calibrated fetched duration are determined as the above session stage information. Here, the more frequently the target terminal device switches content, the more the above calibrated fetched duration is reduced compared to the above target content fetched duration. There is no need to pre-set the switching speed level, reducing the possibility of selecting resource versions with excessively high bitrates for content that has not yet been output, and causing the fetched data segments to not produce effective output. Therefore, the above technical content, combined with step "Step 107" below, can reduce the outbound bandwidth usage of the node server.
[0049] Step 105: Based on the access context information and session stage information, perform constraint fusion matching processing on the set of resource information to be scheduled to obtain a set of scheduling matching degree values.
[0050] In some embodiments, the execution entity can perform constraint fusion matching processing on the set of resources to be scheduled based on the access context information and the session phase information to obtain a set of scheduling matching degree values. The scheduling matching degree values in the set represent the degree of fit between the time required for a resource to be scheduled to handle the current resource access request and a baseline time (for example, if the baseline time is 4 seconds, and the time required for a resource to be scheduled is 3.13 seconds, the scheduling matching degree value can be approximately 0.78; if the time required for another resource to be scheduled is 10.54 seconds, the scheduling matching degree value can be 0). The required time can be the sum of the time the data segment requested by the current resource access request is occupied on the egress bandwidth of the node server where the resource to be scheduled resides, and the time occupied on the processor of the target terminal device. The baseline time can be the time allowed by the current session's pull phase to handle the current resource access request.
[0051] In some optional implementations of certain embodiments, the process of performing constraint fusion matching on the set of resources to be scheduled based on the access context information and the session phase information to obtain a set of scheduling matching degree values may include the following steps: The first step involves performing decoding path matching processing on the set of resources to be scheduled, based on the decoding capability information included in the access context information, to obtain a set of decoding path information. The decoding path information in this set can be information about the path and decoding speed traversed by a data segment of a resource to be scheduled when it is decoded on the target terminal device. This decoding path information may include the decoding path and decoding frame rate. In practice, the execution entity can perform the following matching steps for each resource to be scheduled in the set: First, determine the encoding format and resolution included in the resource attribute information of the resource to be scheduled as the target encoding format and target resolution. Then, determine the decoding path included in the decoding capability information that corresponds to the target encoding format and target resolution as the decoding path included in the decoding path information. Furthermore, in response to the determination that the decoding capability information does not provide a decoding path corresponding to the target encoding format and target resolution, determine the software decoding path as the decoding path included in the decoding path information. Next, in response to determining that the decoding capability information provides a decoding frame rate corresponding to the target encoding format, the target resolution, and the decoding path, the decoding frame rate is determined as the decoding frame rate included in the decoding path information. Then, in response to determining that the decoding capability information does not provide a decoding frame rate corresponding to the target encoding format, the target resolution, and the decoding path, the decoding frame rate corresponding to the target encoding format, the target resolution, and the decoding path in a preset decoding frame rate lookup table is determined as the decoding frame rate included in the decoding path information. The preset decoding frame rate lookup table may be a pre-set lookup table that records the decoding frame rates of hardware and software decoding paths according to encoding format and resolution. Finally, the decoding path and the decoding frame rate are determined as decoding path information, and then a decoding path information set is obtained.
[0052] The second step involves bottleneck merging of the node margin rate set included in the aforementioned access context information, based on the link rate. This yields an available rate set. The available rate in this set can be the rate of a data segment from a node server containing the resource to be scheduled, transmitted to the target terminal device, on the side with limited capacity. In practice, the executing entity can, for each resource in the resource to be scheduled information set, determine the link rate as an available rate in response to determining that the link rate is not greater than the node margin rate included in the resource to be scheduled, and in response to determining that the link rate is greater than the node margin rate included in the resource to be scheduled, determine the node margin rate included in the resource to be scheduled as an available rate, thus obtaining the available rate set (e.g., when the link rate is 4Mbps and the node margin rate is 4Gbps, the available rate can be 4Mbps).
[0053] The third step involves performing an equivalent synthesis process on the aforementioned set of decoding path information and the aforementioned set of available rates to obtain a set of occupied durations. The occupied duration in this set can be the sum of the duration occupied on the egress bandwidth of the node server where the scheduled resource resides and the duration occupied on the processor of the target terminal device. The duration occupied on the egress bandwidth of the node server can be the duration taken for the data segment to travel from the node server to the target terminal device. The duration occupied on the processor of the target terminal device can be the duration taken for the data segment to be decoded on the target terminal device. Both durations represent the time occupied by the data segment during its sequential transmission and decoding stages, and their sum represents the total time taken from the start of transmission to its output. The target terminal device retrieves one data segment at a time, with no concurrency between retrievals. The transmission and decoding of the aforementioned data segments can be performed in parallel during continuous output. The aforementioned occupied duration is calculated sequentially, and its value is not less than the actual occupied duration. When the aforementioned target terminal device decodes via the hardware decoding path, the aforementioned occupied duration on the processor of the aforementioned target terminal device is not zero, and its value is lower than that when decoding via the software decoding path. In practice, the aforementioned execution entity can first determine the duration of the data segments included in the scheduled resource information in the aforementioned set of scheduled resource information as the target data segment duration. Then, for each scheduled resource information in the aforementioned set of scheduled resource information, the following synthesis steps are performed: First, the product of the aforementioned target data segment duration and the bitrate included in the resource attribute information included in the aforementioned scheduled resource information is determined as the data segment size (for example, the product of 5 seconds and 2Mbps is 10Mb). Then, the ratio of the aforementioned data segment size to the available rate corresponding to the aforementioned scheduled resource information is determined as the node occupied duration (for example, the ratio of 10Mb to 4Mbps is 2.5 seconds). Next, the product of the target data segment duration and the frame rate included in the resource attribute information of the resource to be scheduled is determined as the number of frames in the data segment (e.g., the product of 5 seconds and 30fps is 150 frames). Then, the ratio of the number of frames in the data segment to the decoding frame rate included in the decoding path information corresponding to the resource to be scheduled is determined as the terminal occupancy time (e.g., the ratio of 150 frames to 240fps is 0.63 seconds). Finally, the sum of the node occupancy time and the terminal occupancy time is determined as the occupancy time, resulting in the occupancy time set (e.g., the sum of 2.5 seconds and 0.63 seconds is 3.13 seconds).
[0054] The fourth step involves performing a stage baseline comparison on the aforementioned session phase information and a preset lower bound matching degree value to obtain a scheduling matching degree value set. The preset lower bound matching degree value can be a pre-defined scheduling matching degree value taken when the occupied duration exceeds the aforementioned baseline duration (e.g., 0). In practice, the executing entity can first determine the stage coefficient by dividing the sum of the duration corresponding to the advancement level represented by the aforementioned session phase information and the duration of the aforementioned target data segment by a preset stable fetch duration (e.g., 25 seconds). Then, in response to determining that the stage coefficient is greater than 1, 1 is determined as the stage coefficient (e.g., when the duration corresponding to the advancement level represented by the aforementioned session phase information is 15 seconds and the duration of the target data segment is 5 seconds, the stage coefficient can be 0.8). Finally, the product of the aforementioned target data segment duration and the aforementioned stage coefficient is determined as the baseline duration (e.g., the product of 5 seconds and 0.8 is 4 seconds). Finally, for each occupation duration in the above occupation duration set, in response to determining that the above occupation duration is not greater than the above base duration, the ratio of the above occupation duration to the above base duration is determined as the scheduling matching degree value, and in response to determining that the above occupation duration is greater than the above base duration, the above preset lower bound matching degree value is determined as the scheduling matching degree value, and then the scheduling matching degree value set is obtained (for example, when the occupation duration is 3.13 seconds and the base duration is 4 seconds, the above scheduling matching degree value can be about 0.78).
[0055] Step 106: Based on the session stage information and the scheduling matching degree value set, perform interval mapping processing on the resource information set to be scheduled to obtain the target resource information.
[0056] In some embodiments, the execution entity can perform interval mapping processing on the set of resource information to be scheduled based on the session phase information and the scheduling matching degree value set to obtain target resource information. The target resource information can be the resource information to be scheduled in the set of resource information to be scheduled that is used to accept the current resource access request (for example, if the set of resource information to be scheduled includes three resource information items with corresponding scheduling matching degree values of 0.22, 0.78, and 0, the target resource information can be the resource information to be scheduled with a scheduling matching degree value of 0.78). The target resource information includes all items included in the resource information to be scheduled, and all items have the same value. In practice, the execution entity can first arrange each resource information item in the set of resource information to be scheduled in ascending order according to the lexicographical order of the resource identifiers included in each resource information item, obtaining a sequence of resource information to be scheduled. Then, the scheduling matching degree values corresponding to each resource information item are sequentially accumulated according to the order of the sequence of resource information to be scheduled, obtaining an interval boundary sequence, and the last interval boundary value in the interval boundary sequence is determined as the total interval length. Next, the duration corresponding to the progress level represented by the aforementioned session stage information is input into a hash function (e.g., the MurmurHash3 algorithm) to obtain a progress hash value. Then, the ratio of the progress hash value modulo a preset fixed base (e.g., 10000) to the preset fixed base is determined as the point selection percentage. The product of this point selection percentage and the total interval length is determined as the current point selection position value. Finally, in response to determining that the total interval length is not 0, the resource information to be scheduled corresponding to the first interval boundary value in the interval boundary sequence that is greater than the current point selection position value is determined as the target resource information. Similarly, in response to determining that the total interval length is 0, the first resource information to be scheduled in the sequence of resource information to be scheduled is determined as the target resource information.
[0057] In the process of adopting technical solutions to solve the technical problems mentioned above, for the application scenario: a single piece of content is divided into multiple data segments, and the terminal device initiates resource access requests for each data segment one by one (for example, in a short drama application, a single piece of content of several minutes is divided into dozens of data segments, and the terminal device pulls the data segment by segment starting from the first data segment), the following technical problems often arise: Since the same content corresponds to multiple resource access requests, and each resource access request obtains the target resource information independently, the resources selected for adjacent data segments change frequently. Moreover, the more data segments of the content, the more frequently the changes occur. Furthermore, since the resource versions deployed on each node server are different, changing the received resource often changes the bitrate of the pulled resource version. When the bitrate of the changed resource version is higher, the data segments that have been pulled but not yet output are replaced and discarded, causing the node server's outbound bandwidth to be occupied by data that has not produced effective output, resulting in an increase in the node server's outbound bandwidth usage. To address the following requirements of this application scenario: adapting to multiple requests for the same content, adapting to independent requests, and adapting to successive changes in the scheduling and matching degree values of various resources, we have decided to adopt the following solution: Optionally, the process of performing interval mapping on the set of resources to be scheduled based on the session stage information and the scheduling matching degree value set to obtain the target resource information may include the following steps: The first step is to perform an identifier and arrangement process on the aforementioned set of resource information to be scheduled, resulting in a sequence of resource information to be scheduled. This sequence can be a sequence of individual resource information items from the set arranged according to their resource identifiers. In practice, the executing entity can arrange the individual resource information items from the set in ascending lexicographical order of their resource identifiers to obtain the sequence.
[0058] The second step involves performing width allocation processing on the aforementioned scheduling matching degree value set based on a preset lower limit width value, resulting in an interval width value set. The interval width value in this set can be the length of a numerical range assigned to a resource information to be scheduled. The preset lower limit width value can be a pre-defined lower limit for each interval width value (e.g., 0.05). In practice, the executing entity can determine the interval width value by summing the scheduling matching degree value corresponding to each resource information in the set of resource information to be scheduled with the preset lower limit width value, thus obtaining the interval width value set (e.g., when the scheduling matching degree values are 0.22, 0.78, and 0, the interval width values are 0.27, 0.83, and 0.05, respectively).
[0059] The third step involves accumulating the interval width value set based on the aforementioned sequence of resource information to be scheduled, thereby obtaining an interval boundary sequence. The interval boundary values in this sequence can be obtained by sequentially summing the interval width values according to the order of the resource information to be scheduled. In practice, the executing entity can first determine 0 as the summation value. Then, for each resource information to be scheduled in the sequence, the sum of the summation value and the corresponding interval width value is determined as the interval boundary value, and this interval boundary value is also determined as the summation value, thus obtaining the interval boundary sequence. Finally, the last interval boundary value in the interval boundary sequence is determined as the total interval length (for example, when the interval width values are 0.27, 0.83, and 0.05 respectively, the interval boundary sequences are 0.27, 1.10, and 1.15 respectively, and the total interval length is 1.15).
[0060] The fourth step involves extracting the progress of the aforementioned session phase information to obtain the data segment sequence value. This data segment sequence value represents the number of data segments that the target terminal device has advanced on the retrieved content. In practice, the executing entity can round down the ratio of the duration corresponding to the advancement level represented by the session phase information to the duration of the data segments included in the resource information set to be scheduled, and determine this as the data segment sequence value (for example, if the duration corresponding to the advancement level represented by the session phase information is 15 seconds and the data segment duration is 5 seconds, the data segment sequence value can be 3).
[0061] Fifth, based on the content identifiers included in the aforementioned session phase information, the aforementioned interval boundary sequence is subjected to misalignment and value determination processing to obtain the landing point starting value. The landing point starting value can be the starting point of the retrieved content within the numerical range formed by the aforementioned interval boundary sequence. In practice, the executing entity can first input the content identifiers included in the aforementioned session phase information into a hash function (e.g., the MurmurHash3 algorithm) to obtain a content hash value. Then, the ratio of the remainder of the content hash value to the aforementioned preset value base, and the preset value base itself, is determined as the starting point proportion value (e.g., 0.4). The starting point proportion value can be the proportion of the landing point starting value in the total length of the aforementioned interval. Finally, the product of the starting point proportion value and the total length of the aforementioned interval is determined as the landing point starting value (e.g., the product of 0.4 and 1.15 is 0.46).
[0062] Step 6: Based on the number of data segments included in the resource information set to be scheduled, the interval boundary sequence is divided into equal segments to obtain the landing step size value. This landing step size value can be the distance between the points of access in two adjacent resource access requests. In practice, the executing entity can determine the landing step size value as the ratio of the total interval length to the number of data segments included in the resource information set to be scheduled (for example, when the total interval length is 1.15 and the number of data segments is 60, the landing step size value can be approximately 0.019).
[0063] Step 7: Based on the aforementioned data segment sequence value, landing point step size value, and interval boundary sequence, the landing point starting point value is processed with equal intervals to obtain the current landing point position value. The current landing point position value can be the location of the resource access request within the numerical range formed by the interval boundary sequence. In practice, the executing entity can first determine the initial landing point position value by summing the product of the data segment sequence value and the landing point step size value with the landing point starting point value (e.g., the product of 3 and 0.019 is 0.06, and the sum of 0.46 and 0.06 is 0.52). Then, the value obtained by taking the remainder between the initial landing point position value and the total interval length is determined as the current landing point position value (e.g., 0.52).
[0064] Step 8: Based on the aforementioned interval boundary sequence, perform attribution and location processing on the current landing point value to obtain the hit sequence value. The hit sequence value can be the sequence number of the resource information to be scheduled within the aforementioned resource information sequence corresponding to the numerical range to which the current landing point value falls. In practice, the executing entity can first arrange the interval boundary values in the aforementioned interval boundary sequence that are greater than the current landing point value in the aforementioned interval boundary sequence according to their order in the aforementioned interval boundary sequence to obtain a candidate interval boundary value sequence. Then, the sequence number of the first candidate interval boundary value in the aforementioned candidate interval boundary value sequence is determined as the hit sequence value (for example, if the interval boundary sequences are 0.27, 1.10, and 1.15 respectively, and the current landing point value is 0.52, the hit sequence value can be 2).
[0065] The ninth step involves selecting from the sequence of resource information to be scheduled based on the hit sequence value to obtain the target resource information. In practice, the executing entity can identify the resource information to be scheduled with the hit sequence value from the sequence of resource information to be scheduled as the target resource information (for example, resource attribute information including resource information with H.264 encoding format, bitrate of 2Mbps, and resolution of 720p).
[0066] The above technical content, combined with step "107" below, serves as an inventive point of this disclosure, solving the following technical problem: "Increased egress bandwidth usage of node servers." Factors leading to increased egress bandwidth usage of node servers are often as follows: Since the same content corresponds to multiple resource access requests, and each resource access request independently obtains target resource information, the resources selected for adjacent data segments change frequently. Furthermore, the more data segments the content has, the more frequently these changes occur. Also, because the resource versions deployed on each node server are different, changing the received resource often simultaneously changes the bitrate of the retrieved resource version. When the bitrate of the changed resource version is higher, retrieved but not yet output data segments are replaced and discarded, causing the egress bandwidth of the node server to be occupied by data that has not generated effective output, thus increasing the egress bandwidth usage of the node server. Solving these factors can reduce the egress bandwidth usage of node servers. To achieve this effect, this disclosure first identifies and arranges the aforementioned set of resources to be scheduled, obtaining a sequence of resources to be scheduled. Then, based on a preset lower limit width value, it performs width allocation processing on the aforementioned set of scheduling matching degree values, obtaining a set of interval width values. Finally, based on the aforementioned sequence of resources to be scheduled, it performs cumulative construction processing on the aforementioned set of interval width values, obtaining an interval boundary sequence. Here, the order of each resource to be scheduled does not change with the aforementioned set of scheduling matching degree values, and the interval width value corresponding to the resource to be scheduled with a lower scheduling matching degree value is still not zero, reducing the possibility of available resources being completely excluded and the egress bandwidth of the node server containing other resources being concentratedly occupied. Next, it extracts the advance amount from the aforementioned session phase information, obtaining a data segment sequence value. Based on the content identifiers included in the aforementioned session phase information, it performs misalignment value determination processing on the aforementioned interval boundary sequence, obtaining a landing point starting point value. Finally, based on the number of data segments included in the aforementioned set of resources to be scheduled, it performs equal segment division processing on the aforementioned interval boundary sequence, obtaining a landing point step size value. Here, the starting point values for different content are all different. The aforementioned starting point step size matches the number of data segments corresponding to the content identifier, reducing the possibility that the first data segment of each content is concentrated on the same resource. Next, based on the aforementioned data segment sequence value, the aforementioned starting point step size value, and the aforementioned interval boundary sequence, the aforementioned starting point value is processed with equal intervals to obtain the current starting point position value. Here, the current starting point position values of two adjacent resource access requests are adjacent, and the aforementioned starting point value and the aforementioned starting point step size value are taken from the aforementioned content identifier and the aforementioned number of data segments, and do not change with the change of the scheduling matching degree value, reducing the possibility of frequent changes in the resources selected for adjacent data segments.Finally, based on the aforementioned interval boundary sequence, the current landing point position value is subjected to attribution location processing to obtain the hit sequence value. Then, based on the hit sequence value, the aforementioned sequence of resource information to be scheduled is selected to obtain the target resource information. Here, data segments within the same content that are subordinate to the same resource information to be scheduled are continuous. During the retrieval of a content, the number of times the target resource information changes does not exceed the number of resource information to be scheduled in the aforementioned set of resource information to be scheduled. This reduces the possibility of retrieved but not yet output data segments being replaced and discarded, and the node server's egress bandwidth being occupied by data that has not generated effective output. Therefore, the above technical content, combined with step "Step 107" below, can reduce the egress bandwidth usage of the node server.
[0067] Step 107: Based on the target resource information, perform resource transmission control on the target terminal device.
[0068] In some embodiments, the executing entity can perform resource transmission control on the target terminal device based on the target resource information. The resource transmission control includes: connecting the target terminal device to the node server corresponding to the target resource information, and transmitting the resources corresponding to the target resource information to the target terminal device. In practice, the executing entity can first determine the domain name or Internet Protocol address of the node server corresponding to the node server identifier included in the target resource information as the target node server address. Then, the target node server address, the resource identifier included in the target resource information, and the data segment identifier included in the resource access request are concatenated in the order of the target node server address, the resource identifier, and the data segment identifier to obtain a target data segment Uniform Resource Locator (URL). Next, a preset redirection status code (e.g., 302) is written to the status line of the Hypertext Transfer Protocol (HTTP) response, and the aforementioned Uniform Resource Locator (URI) for the target data segment is written to the Location header of the HTTP response. This results in a redirection response instructing the target terminal device to re-initiate the request at the address specified in the Location header. This redirection response is then sent to the target terminal device, causing it to suspend the current resource access request and initiate a data segment request to the node server corresponding to the target resource information, based on the URI for the target data segment. Finally, the node server corresponding to the target resource information responds to the data segment request, transmitting the media file pointed to by the URI for the target data segment to the target terminal device.
[0069] The above embodiments of this disclosure have the following beneficial effects: The resource scheduling method based on multi-dimensional constraint fusion in some embodiments of this disclosure can reduce the outbound bandwidth usage of the node server and the power consumption of the terminal device. Specifically, the reason for the increase in the outbound bandwidth usage of the node server and the power consumption of the terminal device is that: since the resource scheduling method based on global load balancing and bitrate adaptation is executed on both the server and the terminal device, the two sides can only complete the matching based on the partial constraints available on their own side. This makes the selected resources incompatible with the current fetching stage of the terminal device and the hardware decoding compatibility. As a result, when the terminal device switches during the fetching stage, it discards the data segments that have been fetched but not yet output and fetches the data segments corresponding to the switched version again. It also performs additional software decoding processing on the data segments that cannot be hardware decoded. This causes the outbound bandwidth of the node server to be occupied by data that has not generated effective output, and the processor time of the terminal device to increase, resulting in an increase in the outbound bandwidth usage of the node server and the power consumption of the terminal device. Based on this, the resource scheduling method based on multi-dimensional constraint fusion in some embodiments of this disclosure can first, in response to receiving a resource access request sent by a target terminal device, obtain access context information, session event information sequence, resource event information set, and candidate resource information set corresponding to the resource access request. The resources corresponding to the resource access request include media files stored on the node server. Here, the above four pieces of information are taken from the moment of the current resource access request, providing a data foundation at the same time for subsequent access constraint filtering, state update, pull-stage location, and constraint fusion matching processes. Secondly, access constraint filtering is performed on the access context information and the candidate resource information set to obtain a filtered resource information set. Here, resources that cannot be distributed to the region where the target terminal device is located or that the target terminal device cannot decode are removed; resources that can be decoded via software decoding are retained to avoid premature exclusion of available resources before subsequent processing. Thirdly, based on the resource event information set, a state update process is performed on the filtered resource information set to obtain a resource information set to be scheduled. Here, the deployment status is based on the resource events reported by the node server, reducing the possibility of selecting resources that are actually offline due to lag in resource deployment records, thus causing the target terminal device to re-initiate resource access requests. Next, the session event information sequence is processed to determine the session phase, obtaining session phase information. This session phase information allows subsequent constraint fusion and matching processing to change as the session progresses, reducing the possibility of the target terminal device being selected during the initial pull phase for resources whose already pulled data segments cannot support continuous output. Subsequently, based on the access context information and the session phase information, constraint fusion and matching processing is performed on the set of resources to be scheduled, obtaining a set of scheduling matching degree values.Here, constraints from both the server and terminal devices participate in a single matching process, reducing the likelihood of selected resources being incompatible with the current fetching stage and hardware decoding compatibility of the target terminal device due to matching based solely on locally available constraints. Then, based on the session stage information and the scheduling matching degree value set, the set of resources to be scheduled is mapped to obtain the target resource information. Here, resources with lower scheduling matching degree values can still be selected, reducing the likelihood of multiple resource access requests selecting the same resource, thus concentrating bandwidth usage on a single node server. Finally, resource transmission control is performed on the target terminal device based on the target resource information. Here, the target terminal device is connected to the node server corresponding to the target resource information, and the resources corresponding to the target resource information are transmitted to the target terminal device, reducing the likelihood of the target terminal device discarding fetched but not yet output data segments and fetching them again during fetching stage switching, and reducing the need for additional software decoding processing on data segments that cannot be hardware decoded. Therefore, this resource scheduling method based on multi-dimensional constraint fusion can reduce the outbound bandwidth usage of node servers and the power consumption of terminal devices.
[0070] Further reference Figure 2 As an implementation of the methods shown in the above figures, this disclosure provides some embodiments of a resource scheduling device based on multi-dimensional constraint fusion. These device embodiments are similar to... Figure 1 Corresponding to the method embodiments shown, this resource scheduling device based on multidimensional constraint fusion can be specifically applied to various electronic devices.
[0071] like Figure 2As shown, a resource scheduling device 200 based on multi-dimensional constraint fusion includes: an acquisition unit 201, a filtering unit 202, an update unit 203, a positioning unit 204, a matching unit 205, a mapping unit 206, and a control unit 207. The acquisition unit 201 is configured to: in response to receiving a resource access request sent by a target terminal device, acquire access context information, a session event information sequence, a resource event information set, and a candidate resource information set corresponding to the resource access request, wherein the resources corresponding to the resource access request include media files stored on a node server; the filtering unit 202 is configured to: perform access constraint filtering processing on the access context information and the candidate resource information set to obtain a filtered resource information set; the update unit 203 is configured to: perform state update processing on the filtered resource information set according to the resource event information set to obtain the resource to be scheduled. Resource information set; Positioning unit 204 is configured to: perform pull-stage positioning processing on the above session event information sequence to obtain session stage information; Matching unit 205 is configured to: perform constraint fusion matching processing on the above resource information set to be scheduled based on the above access context information and the above session stage information to obtain a scheduling matching degree value set; Mapping unit 206 is configured to: perform interval mapping processing on the above resource information set to be scheduled based on the above session stage information and the above scheduling matching degree value set to obtain target resource information; Control unit 207 is configured to: perform resource transmission control on the above target terminal device based on the above target resource information.
[0072] It is understandable that the units and references described in the resource scheduling device 200 based on multi-dimensional constraint fusion are... Figure 1 The steps described in the method correspond to each other. Therefore, the operations, features, and beneficial effects described above for the method also apply to the resource scheduling device 200 based on multidimensional constraint fusion and the units contained therein, and will not be repeated here.
[0073] The following is for reference. Figure 3 It shows a schematic diagram of the structure of an electronic device (e.g., an electronic device) 300 suitable for implementing some embodiments of the present disclosure. Figure 3 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of this disclosure.
[0074] like Figure 3As shown, the electronic device 300 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. The RAM 303 also stores various programs and data required for the operation of the electronic device 300. The processing unit 301, ROM 302, and RAM 303 are interconnected via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0075] Typically, the following devices can be connected to I / O interface 305: input devices 306 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 307 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 308 including, for example, magnetic tapes, hard disks, etc.; and communication devices 309. Communication device 309 allows electronic device 300 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 3 An electronic device 300 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively. Figure 3 Each box shown can represent a device or multiple devices as needed.
[0076] In particular, according to some embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, some embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 309, or installed from storage device 308, or installed from ROM 302. When the computer program is executed by processing device 301, it performs the functions defined in the methods of some embodiments of this disclosure.
[0077] It should be noted that, in some embodiments of this disclosure, the computer-readable medium described above may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In some embodiments of this disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In some embodiments of this disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0078] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0079] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device. The aforementioned computer-readable medium carries one or more programs. When the electronic device executes the aforementioned one or more programs, the electronic device causes the following actions: In response to receiving a resource access request sent by a target terminal device, the electronic device acquires access context information, a sequence of session event information, a set of resource event information, and a set of candidate resource information corresponding to the resource access request, wherein the resource corresponding to the resource access request includes media files stored on a node server; performs access constraint filtering on the aforementioned access context information and the aforementioned candidate resource information set to obtain a filtered resource information set; performs state update processing on the aforementioned filtered resource information set based on the aforementioned resource event information set to obtain a set of resource information to be scheduled; performs pull-stage positioning processing on the aforementioned session event information sequence to obtain session stage information; performs constraint fusion matching processing on the aforementioned set of resource information to be scheduled based on the aforementioned access context information and the aforementioned session stage information to obtain a set of scheduling matching degree values; performs interval mapping processing on the aforementioned set of resource information to be scheduled based on the aforementioned session stage information and the aforementioned scheduling matching degree value set to obtain target resource information; and performs resource transmission control on the aforementioned target terminal device based on the aforementioned target resource information.
[0080] Computer program code for performing operations of some embodiments of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0081] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0082] The units described in some embodiments of this disclosure can be implemented in software or in hardware. The described units can also be located in a processor.
[0083] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.
[0084] The above description is merely a selection of preferred embodiments of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in the embodiments of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described inventive concept. For example, technical solutions formed by substituting the above-described features with (but not limited to) technical features with similar functions disclosed in the embodiments of this disclosure.
Claims
1. A resource scheduling method based on multi-dimensional constraint fusion, comprising: In response to receiving a resource access request sent by a target terminal device, the system obtains access context information, session event information sequence, resource event information set, and candidate resource information set corresponding to the resource access request, wherein the resource corresponding to the resource access request includes media files stored on the node server; The access context information and the candidate resource information set are subjected to access constraint filtering to obtain the filtered resource information set. Based on the resource event information set, the filtered resource information set is updated to obtain the resource information set to be scheduled. The session event information sequence is subjected to a pull-stage location process to obtain session stage information; Based on the access context information and the session phase information, the set of resources to be scheduled is subjected to constraint fusion matching processing to obtain a set of scheduling matching degree values; Based on the session phase information and the scheduling matching degree value set, the set of resources to be scheduled is subjected to interval mapping processing to obtain the target resource information; Based on the target resource information, resource transmission control is performed on the target terminal device.
2. The method of claim 1, wherein, The resource transmission control includes: connecting the target terminal device to the node server corresponding to the target resource information, and transmitting the resources corresponding to the target resource information to the target terminal device.
3. The method according to claim 1, wherein, The access constraint filtering process performed on the access context information and the candidate resource information set to obtain the filtered resource information set includes: The access context information is subjected to constraint information extraction processing to obtain region constraint information and decoding constraint information; Based on the region constraint information and the decoding constraint information, the candidate resource information set is filtered to obtain the filtered resource information set.
4. The method according to claim 1, wherein, The step of performing a status update process on the filtered resource information set based on the resource event information set to obtain a resource information set to be scheduled includes: Based on the filtered resource information set, the resource event information set is subjected to event filtering processing to obtain the target resource event information set; The target resource event information set is subjected to time-series aggregation processing to obtain a resource status information set; Based on the resource status information set, the filtered resource information set is subjected to status overlay processing to obtain the resource information set to be scheduled.
5. The method according to claim 4, wherein, The step of performing time-series aggregation processing on the target resource event information set to obtain a resource status information set includes: Based on the preset time limit, the target resource event information set is subjected to time limit truncation processing to obtain a valid resource event information set; Based on the resource identifier and event time included in the valid resource event information set, the valid resource event information set is subjected to time-series merging processing to obtain a resource status information set.
6. The method according to claim 1, wherein, The step of performing constraint fusion matching processing on the set of resources to be scheduled based on the access context information and the session stage information to obtain a set of scheduling matching degree values includes: Based on the decoding capability information included in the access context information, the set of resources to be scheduled is subjected to decoding path matching processing to obtain a set of decoding path information. Based on the link rates included in the access context information, bottleneck merging processing is performed on the node reserve rate set included in the resource information set to be scheduled to obtain the available rate set. Based on the decoding path information set and the available rate set, the resource information set to be scheduled is equivalently synthesized to obtain the occupancy duration set; Based on the session phase information and the preset lower bound matching degree value, the set of occupied durations is subjected to phase benchmark comparison processing to obtain a set of scheduling matching degree values.
7. A resource scheduling device based on multi-dimensional constraint fusion, comprising: The acquisition unit is configured to, in response to receiving a resource access request sent by a target terminal device, acquire access context information, session event information sequence, resource event information set and candidate resource information set corresponding to the resource access request, wherein the resource corresponding to the resource access request includes media files stored on the node server; The filtering unit is configured to perform access constraint filtering on the access context information and the candidate resource information set to obtain a filtered resource information set. The update unit is configured to perform state update processing on the filtered resource information set according to the resource event information set to obtain the resource information set to be scheduled. The positioning unit is configured to perform pull-stage positioning processing on the session event information sequence to obtain session stage information; The matching unit is configured to perform constraint fusion matching processing on the set of resources to be scheduled based on the access context information and the session stage information to obtain a set of scheduling matching degree values; The mapping unit is configured to perform interval mapping processing on the set of resource information to be scheduled based on the session stage information and the scheduling matching degree value set to obtain target resource information. The control unit is configured to perform resource transmission control on the target terminal device based on the target resource information.
8. An electronic device, comprising: One or more processors; Storage device, on which one or more programs are stored, When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-6.
9. A computer-readable medium having a computer program stored thereon, wherein, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-6.
