Data processing method and device, electronic equipment and storage medium

By using the pre-created mapping relationship to determine the target node cluster and server address in the live broadcast scenario, the resource allocation imbalance problem of live stream pull request distribution network bandwidth resources is solved, the utilization of bandwidth resources is improved, and the internal response of the live broadcast CDN is improved. Utilization of source bandwidth resources.

CN118714356APending Publication Date: 2024-09-27BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410868687.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In a live broadcast scenario, there is an imbalance in resource allocation when distributing network bandwidth resources for live streaming requests, resulting in low bandwidth resource utilization.

Method used

Find the target node cluster corresponding to the multimedia data stream acquisition request through the pre-created mapping relationship, obtain the target streaming information, and determine the target server address when the target streaming information meets the preset conditions to achieve multimedia data stream acquisition The target service of the request aggregates streaming requests from clusters with fewer nodes to clusters with high usage nodes to improve resource utilization.

Benefits of technology

It effectively solves the problem of resource allocation imbalance in live broadcast scenarios, improves the utilization of network bandwidth resources, and improves the utilization of back-to-source bandwidth resources within the live broadcast CDN.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118714356A
    Figure CN118714356A
Patent Text Reader

Abstract

The embodiment of the invention provides a data processing method and device, electronic equipment and a storage medium. The method comprises the following steps: when at least one target node cluster corresponding to a multimedia data stream acquisition request is found based on a pre-created mapping relationship, acquiring target pull stream information of a current node cluster where the multimedia data stream acquisition request is located; when the target pull stream information meets a preset condition, determining a target server address corresponding to the multimedia data stream acquisition request based on node information in at least one target node cluster and a current node cluster, and the multimedia server provides a target service corresponding to the multimedia data stream acquisition request based on the target server address. According to the technical scheme of the embodiment of the invention, the problem that the resource distribution is unbalanced when the network bandwidth resource is distributed for the live broadcast stream pulling request in the live broadcast scene is solved, and the utilization rate of the network bandwidth resource is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of data processing technology, and in particular, to a data processing method, device, electronic device, and storage medium. Background Art

[0002] With the vigorous development of the live streaming industry in recent years, the proportion of live streaming bandwidth traffic in the entire Internet application traffic is also experiencing rapid growth. At present, when a user generates a streaming request for a live streaming, the corresponding bandwidth network is usually allocated to the user's streaming request based on the principle of geographical proximity of the server.

[0003] However, this bandwidth scheduling strategy based on the principle of geographical proximity results in a situation where a small number of servers provide live broadcast services for a large number of users, or a large number of servers provide live broadcast services for a small number of users. As a result, when distributing network bandwidth resources for live stream pull requests in live broadcast scenarios, there is an imbalance in resource allocation and low bandwidth resource utilization. Summary of the invention

[0004] The present disclosure provides a data processing method, device, electronic device and storage medium to solve the problem of unbalanced resource allocation when distributing network bandwidth resources for live streaming pull requests in a live streaming scenario, thereby improving the utilization rate of network bandwidth resources.

[0005] In a first aspect, an embodiment of the present disclosure provides a data processing method, the method comprising:

[0006] When at least one target node cluster corresponding to the multimedia data stream acquisition request is found based on the pre-created mapping relationship, the target stream pulling information of the current node cluster where the multimedia data stream acquisition request is located is obtained; wherein the mapping relationship table includes the stream name information to be selected and the node cluster to be selected;

[0007] When the target stream pulling information meets the preset conditions, the target server address corresponding to the multimedia data stream acquisition request is determined based on the node information in at least one target node cluster and the current node cluster, so that the multimedia server provides the target service corresponding to the multimedia data stream acquisition request based on the target server address.

[0008] In a second aspect, an embodiment of the present disclosure further provides a data processing device, the device comprising:

[0009] A stream pulling information determination module is used to obtain target stream pulling information of the current node cluster where the multimedia data stream acquisition request is located when at least one target node cluster corresponding to the multimedia data stream acquisition request is found based on a pre-created mapping relationship; wherein the mapping relationship table includes the stream name information to be selected and the node cluster to be selected;

[0010] The target address determination module is used to determine the target server address corresponding to the multimedia data stream acquisition request based on the node information in at least one target node cluster and the current node cluster when the target stream pulling information meets the preset conditions, so that the multimedia server provides the target service corresponding to the multimedia data stream acquisition request based on the target server address.

[0011] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

[0012] one or more processors;

[0013] a storage device for storing one or more programs,

[0014] When one or more programs are executed by one or more processors, the one or more processors implement any data processing method in the embodiments of the present disclosure.

[0015] In a fourth aspect, the embodiments of the present disclosure further provide a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute any data processing method as described in the embodiments of the present disclosure.

[0016] The technical solution of the embodiment of the present disclosure is that when a multimedia data stream acquisition request is received, at least one target node cluster corresponding to the multimedia data stream acquisition request is queried according to a pre-created mapping relationship, and at the same time, the target stream pulling information of the current node cluster where the multimedia data stream acquisition request is located is obtained, and then when the target stream pulling information meets the preset conditions, the target server address corresponding to the multimedia data stream acquisition request is determined based on the node information in at least one target node cluster and the current node cluster, so that the multimedia server provides the target service corresponding to the multimedia data stream acquisition request based on the target server address. The technical solution of the embodiment of the present disclosure is that since the multimedia stream name information with high user browsing frequency and the node clusters to be selected corresponding to these multimedia stream names are stored in the mapping relationship, the number of stream pulling requests corresponding to the node clusters to be selected is relatively large, and when the number of stream pulling requests of the current node cluster is relatively small, the stream pulling requests with the same multimedia stream name information in the current node cluster are aggregated to the target node cluster, thereby solving the problem of unbalanced resource allocation when distributing network bandwidth resources for live stream pulling requests in live broadcast scenarios, and improving the utilization rate of network bandwidth resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0018] Figure 1 A schematic diagram of the network bandwidth aggregation scheduling system architecture involved in an embodiment of the present disclosure;

[0019] Figure 2 A schematic diagram of the system architecture of a live content distribution network involved in an embodiment of the present disclosure;

[0020] Figure 3 A flowchart of a data processing method provided by an embodiment of the present disclosure;

[0021] Figure 4 A schematic diagram of an implementation flow of determining a mapping relationship involved in an embodiment of the present disclosure;

[0022] Figure 5 A flowchart of another data processing method provided by an embodiment of the present disclosure;

[0023] Figure 6 A schematic diagram of an implementation flow of determining a target server address according to an embodiment of the present disclosure;

[0024] Figure 7 A schematic diagram of the structure of a data processing device provided by an embodiment of the present disclosure;

[0025] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0026] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0027] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0028] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0029] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0030] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0031] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0032] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0033] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0034] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0035] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0036] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0037] Before introducing this technical solution, an example description of the application scenario can be given. In the live broadcast scenario, it mainly involves two processes: live streaming push and live streaming pull. The so-called live streaming push refers to the process in which the live broadcast source end (i.e., the terminal device corresponding to the anchor) sends the live video stream (i.e., the multimedia data stream) to the live broadcast server, and the so-called live streaming pull refers to the process in which the audience end (i.e., the terminal device corresponding to the audience) obtains the live video stream from the live broadcast server. This technical solution can be applied to any scenario that requires the distribution of network bandwidth resources for multimedia data stream pull requests in live broadcast scenarios.

[0038] The embodiment of the present invention is implemented under the following network bandwidth aggregation scheduling system architecture. The schematic diagram of the network bandwidth aggregation scheduling system architecture is shown in Figure 2 .like Figure 2 As shown, the network bandwidth aggregation scheduling system includes a scheduling center, a regional scheduler and a streaming media server; wherein the scheduling center is associated with at least one regional scheduler, and one regional scheduler is associated with at least one streaming media server. Each regional scheduler corresponds to a predetermined large spatial area, in which multiple streaming media servers are configured, and each streaming media server corresponds to a predetermined small spatial area. The scheduling center can accept data information provided by all regional schedulers, and can also issue scheduling instructions to all regional schedulers.

[0039] Exemplarily, in a specific application process, the scheduling center has the following functions: real-time screening of target live broadcast channels with more than a preset threshold number of online users; for each target live broadcast channel, according to the number of live broadcast streams pulled by the current target live broadcast channel in each regional node cluster and the first preset threshold, determine whether each regional node cluster is the target node cluster corresponding to the current live broadcast channel; if so, establish a mapping relationship between the current live broadcast channel and the target node cluster. The scheduling center: can also receive a stream pulling scheduling strategy request sent by the regional scheduler to determine the target stream pulling scheduling strategy; specifically, the implementation method of determining the target stream pulling scheduling strategy is: when a user has a stream pulling demand for a certain live broadcast channel, a stream pulling request corresponding to the live broadcast channel can be generated, according to the target stream name information carried in the stream pulling request corresponding to the target user, when it is determined that the target stream name information is stored in the mapping relationship, and the stream pulling request belongs to a less number of stream pulling requests in the pending regional cluster, determine the transferable target node cluster corresponding to the target stream name information according to the mapping relationship; send the transferable target node cluster to the regional scheduler.

[0040] The regional scheduler has the following functions: when receiving a streaming request from a target user, it sends a streaming scheduling strategy request to the scheduling center to determine whether there is a transferable target node cluster; after receiving the transferable target node cluster sent by the scheduling center, it performs a loopback check on the live broadcast room channel corresponding to the streaming request; and based on the loopback detection result, it determines the target server address and feeds back the target server address to the target user; thus, the streaming media server corresponding to the target user can provide the live broadcast service corresponding to the streaming request based on the target server address.

[0041] Optionally, this embodiment can be applied to a scenario where a live broadcast service is provided using a live broadcast content delivery network (CDN) framework. Next, the CDN network architecture and the problems currently faced when using the CDN network architecture to implement live broadcast traffic distribution are discussed. Figure 1 ,like Figure 1 As shown, the CDN network includes an edge access layer, an aggregation layer and a core layer. The operation mode of the CDN network is: if a user applies for a resource request for a live video stream (i.e., a stream pulling request), the user can access it at the edge access layer. If the edge access layer has the resources of the live video stream, the service is provided directly. If there are no resources for the live video stream, the edge access layer will go back to the source to request resources from the aggregation layer. If the aggregation layer does not have the resources either, the aggregation layer will request the source station of the core layer to provide resources through back-to-source. Among them, back-to-source means that after the user accesses a node nearby, if the node does not have the required live stream, it is necessary to request to pull the stream from the superior node. This behavior is called back-to-source.

[0042] In the above context, a typical process of requesting and distributing network bandwidth resources for multimedia data stream pulling is as follows: before accessing the live broadcast service, the user will query the IP address corresponding to the domain name of the live broadcast service to be accessed (i.e., the live broadcast source) through the local domain name service (Local Domain Name System, LDNS) to the authoritative domain name service system (Authoritative Domain Name System, ADNS) supported in the live broadcast CDN, and then request the regional scheduler in the live broadcast CDN based on the IP address. The regional scheduler of the live broadcast CDN will further allocate a geographically close server IP address to the user based on the user's IP address and other information, and the user will finally successfully access the live broadcast service. However, this scheduling strategy based on the principle of geographical proximity will cause a huge waste of internal back-to-source bandwidth resources in the live broadcast CDN. For example, in the live broadcast room of non-popular anchors, there are fewer viewing users and the geographical distribution is more dispersed. Occupying more edge nodes will generate more back-to-source routes, and the back-to-source ratio (i.e., back-to-source bandwidth divided by edge bandwidth) will also be higher. Therefore, the utilization rate of the back-to-source bandwidth is low. For example, if only one viewer requests an edge node and requests one back-to-source, the back-to-source ratio is as high as 100%, but if we can request 100 viewers to request an edge node and share one back-to-source bandwidth, the back-to-source ratio is only 1%. Therefore, how to improve the utilization rate of the back-to-source bandwidth resources within the live CDN is crucial, and the technical solution of this embodiment can effectively improve the utilization rate of the back-to-source bandwidth resources within the live CDN.

[0043] Next, the following describes in detail how this embodiment performs data processing operations under the network bandwidth aggregation scheduling system architecture.

[0044] Figure 3 A flow chart of a data processing method provided in an embodiment of the present disclosure is applicable to any scenario where network bandwidth resources need to be distributed for multimedia data stream pulling requests in a live broadcast scenario. The method can be executed by a data processing device, which can be implemented in the form of software and / or hardware, and optionally, by an electronic device, which can be a mobile terminal, a PC or a server, etc.

[0045] like Figure 3 As shown, the method of this embodiment may specifically include:

[0046] S110 . When a target node cluster corresponding to the multimedia data stream acquisition request is found based on a pre-created mapping relationship, target stream pulling information of the current node cluster where the multimedia data stream acquisition request is located is obtained.

[0047] Among them, the multimedia data stream is the live broadcast picture and audio information simultaneously presented on the live broadcast page in the live broadcast scene.

[0048] Among them, the mapping relationship table includes the stream name information to be selected and the node cluster to be selected. The mapping relationship table includes one or more stream names to be selected, and each stream name to be selected corresponds to at least one node cluster to be selected. Among them, the stream name information is the name information of the multimedia data stream, which can be understood as the identification information of the live broadcast source. For example, the name of a live broadcast room is "259435", and the stream name information corresponding to the live broadcast room is "259435". The node cluster is a server cluster that can provide live broadcast services to users.

[0049] In this embodiment, the mapping relationship is determined based on the following method: determine at least one flow name to be screened; for at least one flow name to be screened, determine the number of to-be-screened flow pulls of the flow name to be screened in at least one regional node cluster; if there is a node cluster to be selected whose number of to-be-screened flow pulls is greater than a first preset flow pull number threshold, the flow name to be screened is used as the flow name to be selected, and a mapping relationship between the node cluster to be selected and the flow name to be selected is established.

[0050] The stream name to be screened is the stream name information to be screened. Specifically, the specific implementation method of determining at least one stream name to be screened may include: counting the number of online users based on at least one streaming media server, and feeding back the number of online users to a regional scheduler associated with the streaming media server, so that the regional scheduler feeds back the number of online users to the scheduling center; receiving the number of online users based on the scheduling center, and determining the stream name to be screened according to the multimedia stream corresponding to the number of online users.

[0051] In this embodiment, if Figure 1As shown, a regional scheduler can be associated with one or more media stream servers, and each media stream server can correspond to a specific service area. For each streaming media server, the current streaming media server can determine the online users within the service area, and the multimedia streams requested by each online user, so as to determine the number of online users corresponding to each multimedia stream; further, the current streaming media server can feedback each multimedia stream and the number of online users corresponding thereto to the regional scheduler associated with the current streaming media server. Furthermore, the regional scheduler can feedback the number of online users reported by each streaming media server associated therewith to the scheduling center. Thus, the scheduling center can receive the number of online users. Since the stream name information of the multimedia stream corresponding to each online user is determined, the number of online users can be statistically summarized and processed by performing statistical summary processing on these stream name information, and the total number of online users corresponding to each multimedia stream can be obtained. Further, the total number of online users is arranged in descending order, and the multimedia streams with the total number of online users ranked before the preset number are determined as the multimedia streams to be processed, and the stream name information corresponding to these multimedia streams to be processed is the stream name to be filtered. In this embodiment, by reporting the number of online users layer by layer and performing summary statistics, the flow names to be screened with a relatively high number of online users can be determined quickly and efficiently.

[0052] Among them, the regional node cluster is a collection of media stream service nodes in a specific area. In this embodiment, a streaming media server can be considered as a media stream service node. The number of stream pulls to be used is the total number of stream pull requests corresponding to each media stream service node in a regional node cluster. The first preset stream pull number threshold is a pre-set threshold, and optionally, the first preset stream pull number threshold can be adjusted according to actual needs.

[0053] In this embodiment, on the basis of determining at least one stream name to be screened, for each stream name to be screened, the number of stream pulls to be used can be determined according to the number of stream pull requests corresponding to each media stream service node in each regional node cluster of the stream name to be screened; then, it is determined whether there is a regional node cluster whose number of stream pulls to be used is greater than the first preset stream pull number threshold. If so, the regional node cluster is determined as a node cluster to be selected, and the stream name to be screened is used as the stream name to be selected. Based on the above method, one or more node clusters to be selected corresponding to each stream name to be selected can be determined. Thus, a mapping relationship between a node cluster to be selected and one or more node clusters to be selected can be established. In this embodiment, the mapping relationship between one or more node clusters to be selected corresponding to the stream name to be selected is pre-determined. Since the mapping relationship stores the multimedia stream name information with high user browsing frequency and the node clusters to be selected corresponding to these multimedia stream names, when the target stream pull information of the current node cluster is less, the target node cluster that can be aggregated and scheduled can be quickly and efficiently queried from the mapping relationship.

[0054] Optionally, during the process of establishing the mapping relationship or after the mapping relationship is established, if the following situations exist, the mapping relationship may be updated to ensure the rationality and usability of the established mapping relationship.

[0055] The first situation is: for at least one node cluster element in the node cluster to be selected, if the actual load of the node cluster element exceeds the load balancing threshold, the node cluster element is removed from the node cluster to be selected to update the mapping relationship.

[0056] The node cluster element in the node cluster to be selected is a media stream service node. The actual load is the workload actually carried by the server of the node cluster element, and the load balancing threshold is a preset workload threshold.

[0057] In this embodiment, in order to ensure the service performance of each node element in the node cluster to be selected, thereby ensuring the overall service performance of the node cluster to be selected, if the actual load of one or more node cluster elements in the node cluster to be selected exceeds the load balancing threshold, it is necessary to remove these node cluster elements from the node cluster to be selected and update the mapping relationship.

[0058] The second situation is: if the number of node cluster elements in at least one to-be-selected node cluster associated with the to-be-selected flow is less than a preset number threshold, the to-be-selected flow and the associated at least one to-be-selected node cluster are removed from the mapping relationship table, and the mapping relationship is updated.

[0059] The stream to be selected is a multimedia data stream corresponding to the stream name to be selected.

[0060] In this embodiment, in order to ensure the stability of system services, if the number of node cluster elements in each node cluster to be selected associated with the flow to be selected is less than a preset threshold, the flow to be selected and at least one associated node cluster to be selected are removed from the mapping relationship table, thereby updating the mapping relationship.

[0061] It should be noted that when the above two situations exist at the same time, the mapping relationship is first updated based on the processing method corresponding to the first situation, and then further updated based on the processing method corresponding to the second situation to further ensure the rationality and usability of the established mapping relationship.

[0062] For example, the implementation flow diagram of determining the mapping relationship is shown in Figure 4 .like Figure 4 As shown, on the basis of determining at least one flow name to be screened, further, determine the number of to-be-used streams of each flow name to be screened in at least one regional node cluster; judge whether each to-be-used stream number exceeds the first preset stream number threshold, if there is a to-be-used stream number that does not exceed the first preset stream number threshold, then the to-be-used stream name corresponding to the to-be-used stream number is filtered out. If each to-be-used stream number exceeds the first preset stream number threshold, then these regional node clusters are determined as node clusters to be selected; further, judge whether the node cluster elements in the node cluster to be selected exceed the load balancing threshold, if so, filter out the overloaded node cluster elements from the node cluster to be selected; if not, further judge whether the number of node cluster elements in each to-be-selected node cluster associated with the to-be-selected stream is less than the preset number threshold, if so, a mapping relationship table can be generated and saved in the database.

[0063] In this embodiment, if one or more node clusters to be selected corresponding to the stream name information can be found from the pre-created mapping relationship according to the stream name information in the multimedia data stream acquisition request, then these node clusters to be selected are the target node clusters. The current node cluster is the regional node cluster corresponding to the multimedia data stream acquisition request. The target stream pulling information is the total number of stream pulling requests corresponding to the current node cluster.

[0064] Specifically, when a user wants to obtain a multimedia data stream, the preset media stream acquisition control can be triggered. At this time, a multimedia data stream acquisition request corresponding to the multimedia data stream is generated, and the current node cluster where the multimedia data stream acquisition request is located is determined. Since the multimedia data stream acquisition request carries the target stream name information of the multimedia data stream, it is possible to query whether each stream name information to be selected in the pre-created mapping relationship is consistent with the target stream name information. If there is stream name information to be selected that is consistent with the target stream name information, then at least one node cluster to be selected corresponding to the stream name information to be selected is the target node cluster. The number of stream pull requests corresponding to each media stream service node in the current node cluster can be counted in real time, and the sum of these stream pull requests is the target stream pull information. When the target node cluster is found, the target stream pull information of the current node cluster is immediately obtained.

[0065] For example, the target stream name information carried in the multimedia data stream acquisition request is "259435", and the current node cluster is node cluster X. If the stream name information "259435" to be selected is queried in the pre-created mapping relationship, it can be determined according to the mapping relationship that the node clusters to be selected corresponding to the stream name information "259435" to be selected are: node cluster 1, node cluster 2 and node cluster 3, and the target node clusters include: node cluster 1, node cluster 2 and node cluster 3. At this time, the target stream pulling information of node cluster X can be obtained as 6842 stream pulling numbers.

[0066] S120. When the target stream pulling information meets the preset conditions, based on the node information in at least one target node cluster and the current node cluster, determine the target server address corresponding to the multimedia data stream acquisition request, so that the multimedia server provides the target service corresponding to the multimedia data stream acquisition request based on the target server address.

[0067] The preset condition is pre-set rule information. In this embodiment, the preset condition is that the target stream information is less than the preset stream threshold. The node information is the address information, operator information, etc. of each media stream service node included in the target node cluster. The target stream name information is the name of the target multimedia stream pointed to by the multimedia data stream acquisition request. The target server address is the server address that will eventually provide multimedia stream services for the multimedia data stream acquisition request. In this embodiment, the multimedia server is Figure 1 Streaming media server in .

[0068] Specifically, for the current node cluster, when the target stream pulling information of the current node cluster is less than the preset stream pulling threshold, it is possible to attempt to aggregate the multimedia stream acquisition requests corresponding to the target stream name information in the current node cluster to any target node cluster. At this time, it is possible to determine whether there is a target node cluster with idle load based on the node information in each target node cluster; if so, all multimedia stream acquisition requests in the current node cluster can be aggregated to the target node cluster; further, based on the spatial address information in the multimedia data stream acquisition request and the deployment position of each node element in the target node cluster, the target node element is determined from each node element in the target node cluster, and the target node element is the target server address corresponding to the multimedia data stream acquisition request, so that the multimedia server can pull the multimedia data stream from the target server address to achieve the target service corresponding to the multimedia data stream acquisition request.

[0069] The technical solution of the embodiment of the present disclosure is that when a multimedia data stream acquisition request is received, at least one target node cluster corresponding to the multimedia data stream acquisition request is queried according to a pre-created mapping relationship, and at the same time, the target stream pulling information of the current node cluster where the multimedia data stream acquisition request is located is obtained, and then when the target stream pulling information meets the preset conditions, the target server address corresponding to the multimedia data stream acquisition request is determined based on the node information in at least one target node cluster and the current node cluster, so that the multimedia server provides the target service corresponding to the multimedia data stream acquisition request based on the target server address. The technical solution of the embodiment of the present disclosure is that since the multimedia stream name information with high user browsing frequency and the node clusters to be selected corresponding to these multimedia stream names are stored in the mapping relationship, the number of stream pulling requests corresponding to the node clusters to be selected is relatively large, and when the number of stream pulling requests of the current node cluster is relatively small, the stream pulling requests with the same multimedia stream name information in the current node cluster are aggregated to the target node cluster, thereby solving the problem of unbalanced resource allocation when distributing network bandwidth resources for live stream pulling requests in live broadcast scenarios, and improving the utilization rate of network bandwidth resources.

[0070] Figure 5 A flowchart of another data processing method provided by an embodiment of the present disclosure. The technical solution of this embodiment, based on the above embodiment, details how to obtain the target stream pulling information of the current node cluster where the multimedia data stream acquisition request is located, and how to determine the target server address corresponding to the multimedia data stream acquisition request. The specific implementation method can refer to the detailed description of the embodiment of the present disclosure. Among them, the technical features that are the same or similar to the above embodiment are not repeated here.

[0071] like Figure 5 As shown, the method of this embodiment may specifically include:

[0072] S210: Receive a multimedia data stream acquisition request based on the regional scheduler, and send the multimedia data stream acquisition request to the scheduling center.

[0073] like Figure 1 As shown, when a user triggers a preset media stream acquisition control corresponding to a multimedia data stream on a terminal device, a multimedia data stream acquisition request corresponding to the multimedia data stream is generated, and the mobile terminal device can send the multimedia data stream acquisition request to the regional scheduler. After receiving the multimedia data stream acquisition request, the regional scheduler further sends the request to the dispatch center.

[0074] S220: Receive a multimedia data stream acquisition request based on the scheduling center, and determine target stream name information corresponding to the data stream acquisition request.

[0075] In this embodiment, after receiving the multimedia data stream acquisition request, the dispatch center performs message parsing and other processing on the multimedia data stream acquisition request, and then reads the target stream name information carried in the data stream acquisition request.

[0076] S230: When at least one target node cluster corresponding to the target stream name information is found based on the mapping relationship, the target stream pulling information of the current node cluster where the multimedia data stream acquisition request is located is obtained.

[0077] In the specific implementation process, the mapping relationship is established and updated in the scheduling center. Based on this, the scheduling center queries and processes the mapping relationship through the target stream name information on the basis of parsing the target stream name information. When it is found that there is stream name information to be selected that is consistent with the target stream name information in the mapping relationship, it is further possible to determine at least one node cluster to be selected corresponding to the stream name information to be selected, and these node clusters to be selected are the target node clusters. At this time, the target stream pulling information of the current node cluster can be obtained. In this embodiment, through the intercommunication and collaboration between the scheduling center, the regional caller and the media stream server, a mapping relationship can be established in real time, the target stream pulling information of the current node cluster can be accurately determined, and the target node cluster corresponding to the target stream name information can be efficiently and conveniently determined, providing an accurate data basis for the subsequent determination of the target server address corresponding to the multimedia data stream acquisition request.

[0078] It should be noted that if the selected stream name information that is consistent with the target stream name information is not found in the mapping relationship, then it is not necessary to obtain the target stream pulling information of the current node cluster. Any streaming media server in the current node cluster can provide live broadcast service for multimedia data stream acquisition requests.

[0079] S240: If the target stream pulling information is less than a second preset stream pulling threshold, generate aggregate scheduling information based on the target node cluster, and send the aggregate scheduling information to the regional scheduler.

[0080] The aggregate scheduling information includes aggregate scheduling attribute information and schedulable target node clusters. The aggregate scheduling attribute information is used to indicate whether all multimedia data stream requests in the current node cluster that are consistent with the target stream name information can be aggregated.

[0081] In this embodiment, if the target stream pulling information is less than the second preset stream pulling threshold, it indicates that the streaming media server in the current node cluster only provides services for a small number of multimedia data stream requests that are consistent with the target stream name information. At this time, all multimedia data stream requests that are consistent with the target stream name information in the current node cluster can be aggregated. In this case, based on the node information in at least one target node cluster, it can be determined whether there is a target node cluster with idle load. If so, the aggregation scheduling information at this time is the aggregatable scheduling attribute and the identification information corresponding to the target node cluster. If not, the aggregation scheduling information at this time is the attribute that does not require aggregation scheduling. Therefore, the scheduling center can send the aggregation scheduling information to the regional scheduler based on the determination of the aggregation scheduling information.

[0082] S250, receiving the aggregate scheduling information based on the regional scheduler, and determining the target server address based on the node information of the target node cluster and the target stream name information in the aggregate scheduling information, so that the multimedia server provides a target service corresponding to the multimedia data stream acquisition request based on the target server address.

[0083] In this embodiment, based on the aggregation scheduling information sent by the dispatch center, the regional scheduler provides live broadcast service for the multimedia data stream acquisition request based on any streaming media server in the current node cluster if the aggregation scheduling information is an aggregation scheduling attribute. If the aggregation scheduling information is an aggregation scheduling attribute, in order to further ensure the stability of the network bandwidth aggregation scheduling system during operation, the multimedia stream corresponding to the target stream name information can be looped based on the node information and target stream name information of the target node cluster in the aggregation scheduling information, so as to determine the target server address according to the loop detection result.

[0084] Optionally, based on the node information of the target node cluster and the target flow name information in the aggregated scheduling information, a specific implementation method for determining the target server address may include: performing a hash check based on the target flow name information and the node information; if all hash check results meet the verification condition, the server address in the first node cluster is used as the target server address. If there is a situation where the hash check result does not meet the verification condition, the target server address is randomly determined from multiple server addresses associated with the target node cluster.

[0085] The first node cluster is a node cluster in the current node cluster.

[0086] In this embodiment, the regional scheduler can use a consistent hash algorithm to perform hash verification based on the target flow name information and node information to determine the loop detection result. Specifically, according to the pre-set verification conditions, if all hash verification results meet the verification conditions, the loop detection result is characterized as the existence of a loop, and at this time, any server address in the current node cluster can be used as the target server address. If there is a situation where the hash verification result does not meet the verification conditions, the loop detection result is characterized as the absence of a loop, and at this time, the target server address can be randomly determined from multiple server addresses associated with the target node cluster.

[0087] For example, the implementation flow diagram of determining the target server address is shown in Figure 6 ,like Figure 6 As shown, when the regional scheduler receives a multimedia data stream acquisition request from a user for a live stream, the regional scheduler can send the multimedia data stream acquisition request to the scheduling center; after receiving the multimedia data stream acquisition request, the scheduling center first determines the target stream name information corresponding to the data stream acquisition request, and then finds the target node cluster corresponding to the target stream name information based on the mapping relationship; if the target node cluster is found, it is further determined that the target stream pulling information of the current node cluster is less than the second preset stream pulling threshold. If so, the aggregation scheduling information is generated based on the node information in at least one target node cluster, and the aggregation scheduling information is sent to the regional scheduler. If not, the aggregation scheduling information without aggregation scheduling attributes is sent to the regional scheduler. After receiving the aggregate scheduling information, the regional scheduler determines whether it is necessary to perform aggregate scheduling on the request corresponding to the target stream name information in the current node cluster. If so, it performs loop detection on the multimedia stream corresponding to the target stream name information and determines whether it is a loop. If a loop is formed, any server address in the current node cluster is used as the target server address. If no loop is formed, the target server address is randomly determined from the multiple server addresses associated with the target node cluster. Finally, the target server address is fed back to the user.

[0088] The technical solution of the disclosed embodiment receives a multimedia data stream acquisition request through a regional scheduler and sends the multimedia data stream acquisition request to a scheduling center. Subsequently, the multimedia data stream acquisition request is received based on the scheduling center, and the target stream name information corresponding to the data stream acquisition request is determined. Furthermore, when at least one target node cluster corresponding to the target stream name information is found based on a mapping relationship, the target stream pulling information of the current node cluster where the multimedia data stream acquisition request is located is obtained. Through the intercommunication and collaboration between the scheduling center, the regional caller and the media stream server, a mapping relationship can be established in real time, the target stream pulling information of the current node cluster can be accurately determined, and the target node cluster corresponding to the target stream name information can be efficiently and conveniently determined, thereby providing an accurate data basis for the subsequent determination of the target server address corresponding to the multimedia data stream acquisition request. When the target server address corresponds to the multimedia data stream acquisition request, if the target stream pulling information is less than the second preset stream pulling threshold, the aggregation scheduling information is generated based on the target node cluster, and the aggregation scheduling information is sent to the regional scheduler. The regional scheduler receives the aggregation scheduling information, and determines the target server address based on the node information of the target node cluster and the target stream name information in the aggregation scheduling information, so that the multimedia server provides the target service corresponding to the multimedia data stream acquisition request based on the target server address. In the implementation process, based on the node information of the target node cluster and the target stream name information in the aggregation scheduling information, a loopback detection is performed on the multimedia stream corresponding to the target stream name information, so as to further ensure the stability of the network bandwidth aggregation scheduling system during operation.

[0089] Figure 7 A structural diagram of a data processing device provided by an embodiment of the present disclosure is shown in FIG. Figure 7 As shown, the device includes: a stream pulling information determination module 310 and a target address determination module 320.

[0090] The stream pulling information determination module 310 is used to obtain the target stream pulling information of the current node cluster where the multimedia data stream acquisition request is located when at least one target node cluster corresponding to the multimedia data stream acquisition request is found based on the pre-created mapping relationship; wherein the mapping relationship table includes the stream name information to be selected and the node cluster to be selected;

[0091] The target address determination module 320 is used to determine the target server address corresponding to the multimedia data stream acquisition request based on the node information in at least one target node cluster and the current node cluster when the target stream pulling information meets the preset conditions, so that the multimedia server provides the target service corresponding to the multimedia data stream acquisition request based on the target server address.

[0092] Based on the above optional technical solutions, optionally, the data processing device further includes: a mapping relationship determination module; the mapping relationship determination module includes: a flow pull number determination unit, a flow pull number determination unit and a mapping relationship determination unit;

[0093] The to-be-screened stream name determination unit is used to determine at least one to-be-screened stream name;

[0094] A flow pull number determination unit, configured to determine, for at least one flow name to be screened, the number of flows to be used for the flow name to be screened in at least one regional node cluster;

[0095] The mapping relationship determining unit is used to, if there is a node cluster to be selected whose number of streams to be pulled is greater than a first preset stream pulling number threshold, use the stream name to be screened as the stream name to be selected, and establish a mapping relationship between the node cluster to be selected and the stream name to be selected.

[0096] On the basis of the above-mentioned optional technical solutions, optionally, a unit for determining the stream name to be filtered is specifically used to count the number of online users based on at least one streaming media server, and feed back the number of online users to a regional scheduler associated with the streaming media server, so that the regional scheduler feeds back the number of online users to the scheduling center; based on the number of online users received by the scheduling center, and according to the multimedia streams corresponding to the number of online users, determine the stream name to be filtered.

[0097] Based on the above optional technical solutions, optionally, the mapping relationship determination module further includes: a mapping relationship updating unit;

[0098] The mapping relationship updating unit is used to remove at least one node cluster element in the node cluster to be selected from the node cluster to be selected to update the mapping relationship if the actual load of the node cluster element exceeds the load balancing threshold.

[0099] The mapping relationship updating unit is also used to remove the to-be-selected stream and the associated at least one to-be-selected node cluster from the mapping relationship table and update the mapping relationship if the number of node cluster elements in at least one to-be-selected node cluster associated with the to-be-selected stream is less than a preset number threshold.

[0100] On the basis of the above optional technical solutions, optionally, the stream pulling information determination module 310 includes: a request sending unit, a target stream name determination unit and a stream pulling information determination unit;

[0101] A request sending unit, configured to receive a multimedia data stream acquisition request based on a regional scheduler, and send the multimedia data stream acquisition request to a scheduling center;

[0102] A target stream name determination unit, configured to receive a multimedia data stream acquisition request based on a scheduling center, and determine target stream name information corresponding to the data stream acquisition request;

[0103] The stream pulling information determining unit is used to obtain the target stream pulling information of the current node cluster where the multimedia data stream acquisition request is located when at least one target node cluster corresponding to the target stream name information is found based on the mapping relationship.

[0104] On the basis of the above-mentioned optional technical solutions, optionally, the target address determination module 320 includes: an aggregation information determination unit and a target address unit;

[0105] An aggregation information determining unit, configured to generate aggregation scheduling information based on a target node cluster and send the aggregation scheduling information to a regional scheduler if the target stream pulling information is less than a second preset stream pulling threshold;

[0106] The target address unit is used to receive the aggregate scheduling information based on the regional scheduler, and determine the target server address based on the node information of the target node cluster and the target flow name information in the aggregate scheduling information.

[0107] Based on the above-mentioned optional technical solutions, optionally, the target address unit is also used to perform hash verification based on the target flow name information and node information; if all hash verification results meet the verification conditions, the server address in the first node cluster is used as the target server address, wherein the first node cluster is a node cluster in the current node cluster.

[0108] On the basis of the above-mentioned optional technical solutions, optionally, the target address unit is also used to randomly determine the target server address from multiple server addresses associated with the target node cluster if the hash verification result does not meet the verification conditions.

[0109] The technical solution of the disclosed embodiment is to obtain the target stream pulling information of the target node cluster when the target node cluster corresponding to the multimedia data stream acquisition request is found based on the pre-created mapping relationship; wherein the mapping relationship table includes the stream name information to be selected and the node cluster to be selected; when the target stream pulling information meets the preset conditions, the target server address corresponding to the multimedia data stream acquisition request is determined based on the node information in the target node cluster and the target stream name information corresponding to the multimedia data stream acquisition request, so that the multimedia server provides the target corresponding to the multimedia data stream acquisition request based on the target server address. The technical solution of the disclosed embodiment can display the special effects corresponding to the multimedia data stream when making special effects props or special effects display, thereby improving the universality of special effects production or use.

[0110] The data processing device provided in the embodiments of the present disclosure can execute the data processing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0111] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.

[0112] Figure 8 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 8 , which shows an electronic device (eg, Figure 8 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0113] like Figure 8 As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An edit / output (I / O) interface 505 is also connected to the bus 504.

[0114] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0115] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0116] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0117] The electronic device provided in the embodiment of the present disclosure and the data processing method provided in the above embodiment belong to the same inventive concept. The technical details not fully described in the embodiment of the present disclosure can be referred to the above embodiment, and the present embodiment has the same beneficial effects as the above embodiment.

[0118] The embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the data processing method provided by the above embodiments is implemented.

[0119] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0120] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0121] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0122] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: when at least one target node cluster corresponding to the multimedia data stream acquisition request is found based on a pre-created mapping relationship, the target stream pulling information of the current node cluster where the multimedia data stream acquisition request is located is obtained; wherein the mapping relationship table includes the stream name information to be selected and the node cluster to be selected; when the target stream pulling information meets the preset conditions, the target server address corresponding to the multimedia data stream acquisition request is determined based on the node information in at least one target node cluster and the current node cluster, so that the multimedia server provides the target service corresponding to the multimedia data stream acquisition request based on the target server address.

[0123] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate 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 a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0124] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0125] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0126] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0127] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0128] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0129] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0130] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A data processing method, It is characterized in that include: When at least one target node cluster corresponding to the multimedia data stream acquisition request is found based on the pre-created mapping relationship, the target stream pulling information of the current node cluster where the multimedia data stream acquisition request is located is obtained; wherein the mapping relationship table includes the stream name information to be selected and the node cluster to be selected; When the target stream pulling information meets the preset conditions, the target server address corresponding to the multimedia data stream acquisition request is determined based on the node information in the at least one target node cluster and the current node cluster, so that the multimedia server provides the target service corresponding to the multimedia data stream acquisition request based on the target server address.

2. The method according to claim 1, It is characterized in that The mapping relationship is determined based on the following method: Determine at least one stream name to be filtered; For the at least one flow name to be screened, determine the number of pull flows to be used for the flow name to be screened in at least one regional node cluster; If there is a node cluster to be selected whose number of streams to be used is greater than the first preset stream number threshold, the stream name to be screened is used as the stream name to be selected, and a mapping relationship between the node cluster to be selected and the stream name to be selected is established.

3. The method according to claim 2, It is characterized in that The determining of at least one flow name to be screened includes: Counting the number of online users based on at least one streaming media server, and feeding back the number of online users to a regional scheduler associated with the streaming media server, so that the regional scheduler feeds back the number of online users to the dispatch center; Based on the number of online users received by the scheduling center, and according to the multimedia streams corresponding to the number of online users, the stream names to be filtered are determined.

4. The method according to claim 2, It is characterized in that The method further comprises: For at least one node cluster element in the node cluster to be selected, if the actual load of the node cluster element exceeds a load balancing threshold, the node cluster element is removed from the node cluster to be selected to update the mapping relationship.

5. The method according to claim 2 or 4, It is characterized in that The method further comprises: If the number of node cluster elements in at least one node cluster to be selected associated with the flow to be selected is less than a preset number threshold, the flow to be selected and the associated at least one node cluster to be selected are removed from the mapping relationship table, and the mapping relationship is updated.

6. The method according to claim 1, It is characterized in that When at least one target node cluster corresponding to the multimedia data stream acquisition request is found based on the pre-created mapping relationship, acquiring the target stream pulling information of the current node cluster where the multimedia data stream acquisition request is located includes: Receive the multimedia data stream acquisition request based on the regional scheduler, and send the multimedia data stream acquisition request to the scheduling center; Receiving the multimedia data stream acquisition request based on the scheduling center, and determining the target stream name information corresponding to the data stream acquisition request; When at least one target node cluster corresponding to the target stream name information is found based on the mapping relationship, the target stream pulling information of the current node cluster where the multimedia data stream acquisition request is located is obtained.

7. The method according to claim 1, It is characterized in that When the target stream pulling information satisfies a preset condition, determining a target server address corresponding to the multimedia data stream acquisition request based on the node information in the at least one target node cluster and the current node cluster, comprises: If the target pull stream information is less than a second preset pull stream threshold, generating aggregate scheduling information based on the target node cluster, and sending the aggregate scheduling information to the regional scheduler; The regional scheduler receives the aggregate scheduling information, and determines the target server address based on the node information of the target node cluster and the target flow name information in the aggregate scheduling information.

8. The method according to claim 7, It is characterized in that The determining the target server address based on the node information of the target node cluster in the aggregated scheduling information and the target flow name information includes: Performing a hash check based on the target stream name information and the node information; If all hash verification results meet the verification condition, the server address in the first node cluster is used as the target server address, wherein the first node cluster is a node cluster in the current node cluster.

9. The method according to claim 8, It is characterized in that The method further comprises: If there is a situation where the hash verification result does not meet the verification condition, the target server address is randomly determined from multiple server addresses associated with the target node cluster.

10. A data processing device, It is characterized in that include: A stream pulling information determination module, configured to obtain target stream pulling information of a current node cluster where the multimedia data stream acquisition request is located when at least one target node cluster corresponding to the multimedia data stream acquisition request is found based on a pre-created mapping relationship; wherein the mapping relationship table includes stream name information to be selected and node cluster to be selected; A target address determination module is used to determine the target server address corresponding to the multimedia data stream acquisition request based on the node information in the at least one target node cluster and the current node cluster when the target stream pulling information meets the preset conditions, so that the multimedia server provides the target service corresponding to the multimedia data stream acquisition request based on the target server address.

11. An electronic device, It is characterized in that The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method according to any one of claims 1 to 9.

12. A storage medium containing computer executable instructions, It is characterized in that When the computer executable instructions are executed by a computer processor, they are used to perform the data processing method according to any one of claims 1 to 9.

Citation Information

Cited By

  • Video stream detection system, method and equipment in security cascade scene

    CN119155440A