A burst-resistant scheduling method and system based on burst resource cooperative scheduling

By employing cross-platform collaborative scheduling and picture-in-picture fusion display, the problem of sudden traffic surges in online live streaming has been solved, achieving efficient resource utilization and improved user experience, and forming a win-win resource-sharing ecosystem.

CN123185374APending Publication Date: 2026-11-27JIANGXI HUILI TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202610987900.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-03
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies rely on pre-configured redundant resources on the platform to cope with sudden surges in traffic during live streaming. This results in slow response times, high expansion costs, and a lack of horizontal collaborative scheduling in resource allocation. Consequently, resources are underutilized, user experience is poor, and there is a lack of a win-win incentive ecosystem for all parties involved.

Method used

By monitoring live stream resource metrics in real time, coordinating and scheduling across platforms, selecting low-load live streams for resource allocation, employing picture-in-picture blending and gradual traffic switching, and combining platform reward points, revenue sharing, and traffic diversion mechanisms, dynamic resource allocation and profit distribution are achieved.

Benefits of technology

It achieves efficient resource scheduling without the need for temporary expansion, improves overall resource utilization, enhances user experience, forms a sustainable resource sharing ecosystem, incentivizes resource lenders to actively share, and increases the activity of the platform ecosystem.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185374A_ABST
    Figure CN123185374A_ABST
Patent Text Reader

Abstract

The application discloses a burst resource coordination scheduling-based anti-burst scheduling method and system, and belongs to the network live broadcast technical field.The method comprises the following steps: monitoring the resource pressure of each live room in real time, marking a live room as a critical state when the resource pressure of the live room exceeds a threshold; selecting the live room with the highest matching degree from low-load live rooms as a lending party to initiate a loan arrangement; redirecting part of the audience flow of the live room in the critical state to the resource node of the lending party; displaying a picture-in-picture fusion interface on the audience end of the lending party, and displaying an information bar containing the information of the lending party and the attention entry on the audience end of the live room in the critical state; allowing the audience of the lending party to unidirectionally enter the live room in the critical state to interact during the loan period, allowing the audience of the live room in the critical state to follow the lending party, and prohibiting reverse entry; gradually cutting back the flow and removing the fusion after the loan period; and performing multi-party benefit settlement according to preset rules.The application can cope with burst flow without external expansion, and realizes the win-win of the platform, the lending party, the borrowing party and the audience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of network live streaming technology, and in particular to an anti-sudden-schedule method and system based on collaborative scheduling of sudden resources. Background Technology

[0002] With the rapid development of the online live streaming industry, live streaming platforms often face sudden surges in traffic caused by factors such as trending events, popular live streamers, and e-commerce promotional activities. A large influx of viewers into a specific live stream within a short period can cause a sharp increase in server load and exhaustion of bandwidth resources. In severe cases, this can lead to buffering, increased latency, or even service crashes, resulting in economic losses for both the streamer and the platform, as well as user churn.

[0003] To address the aforementioned issues, existing technologies have proposed several solutions. Chinese patent application CN118694994B discloses a method for handling abnormal situations in live streaming rooms, alleviating live streaming pressure by allocating redundant network resources to abnormal user terminals. However, this solution relies on a pre-configured redundant resource pool on the platform, which has limited capacity and high costs, and may still be insufficient in the face of unexpected surges in traffic. Chinese patent application CN119383380A introduces reinforcement learning for bandwidth resource allocation, optimizing resource configuration through predictive models, but it remains limited to optimizing the platform's own resources and cannot achieve horizontal resource flow between live streaming rooms. Chinese patent application CN119676468A reduces bandwidth costs through a P2P approach, but resource scheduling remains platform-centric and does not address resource collaboration and sharing mechanisms between live streaming rooms. Chinese patent application CN119299732A proposes dynamically adjusting device resource allocation based on live streaming needs, but the allocation scope is also limited to device resources within the platform.

[0004] In summary, the existing technology has at least the following shortcomings:

[0005] First, resource expansion solutions for dealing with sudden traffic surges rely heavily on pre-configured redundant resources on the platform, resulting in slow response times, high expansion costs, and limited resource reserves that are difficult to cope with unexpected traffic.

[0006] Second, the resource allocation is unidirectional, involving only the platform's one-way resource allocation to the live streaming room, lacking a horizontal resource coordination and allocation mechanism between live streaming rooms, resulting in a large amount of idle resources not being effectively utilized by live streaming rooms with sudden traffic surges.

[0007] Third, the lack of a win-win incentive ecosystem means that resource lenders cannot obtain reasonable compensation from resource borrowing, resulting in a lack of motivation for live streaming rooms to actively share resources.

[0008] Fourth, the user experience is poor during resource switching. Traditional solutions are prone to problems such as playback interruption, black screen, and increased latency when resources are redirected.

[0009] Therefore, we propose an anti-suddenness scheduling method and system based on collaborative scheduling of sudden resources. Summary of the Invention

[0010] The purpose of this invention is to address the shortcomings of existing technologies by providing an anti-sudden-schedule method and system based on collaborative scheduling of sudden resources, thereby solving the technical problems mentioned in the background section.

[0011] To achieve the above objectives, the present invention provides the following technical solution:

[0012] An anti-suddenness scheduling method based on sudden resource collaborative scheduling includes the following steps:

[0013] Traffic monitoring steps: Collect resource indicator data of each live room in real time at a preset sampling period, calculate the comprehensive resource pressure coefficient of each live room based on the resource indicator data, and mark the live room as a critical state live room when the comprehensive resource pressure coefficient of a certain live room exceeds a preset first threshold.

[0014] Candidate matching steps: Scan all low-load live streaming rooms on the platform whose current comprehensive resource pressure coefficient is lower than the preset second threshold, and comprehensively score each low-load live streaming room based on multiple dimensions of matching evaluation indicators, and select at least one low-load live streaming room with the highest score as a candidate lender live streaming room.

[0015] Borrowing negotiation steps: Initiate a resource borrowing request to the live broadcast room of the candidate lender. The resource borrowing request includes the expected amount of borrowed resources, the expected borrowing duration, and the lender's profit plan. After receiving the acceptance response from the live broadcast room of the candidate lender, confirm that the borrowing agreement is effective.

[0016] Resource switching steps: Redirect a portion of the viewer traffic from the critical state live stream to the resource node of the lender's live stream for processing;

[0017] The fusion display steps are as follows: A picture-in-picture fusion live broadcast interface is generated on the viewer's end of the lender's live broadcast room, with the lender's live broadcast screen as the main screen and the critical state live broadcast screen as the sub-window; an information bar overlay interface containing the lender's live broadcast room information and the follow entry is generated on the viewer's end of the critical state live broadcast room.

[0018] Access control steps: During the secondment period, viewers of the lender's live stream are allowed to enter the critical state live stream to participate in the interaction, viewers of the critical state live stream are allowed to follow the lender's live stream, and viewers of the critical state live stream are prohibited from entering the lender's live stream in reverse.

[0019] Smooth exit procedure: When the overall resource pressure coefficient of the critical state live room falls below the preset second threshold and remains stable for more than the preset duration, or when the borrowing agreement expires, the audience traffic redirected to the lender's live room will be gradually switched back to the critical state live room in batches, and the fusion display will be deactivated.

[0020] Profit settlement steps: Based on the borrowing records and the preset profit distribution rules, platform reward points are issued to the lender's live streaming room, the agreed proportion of revenue is transferred to the critical state live streaming room, and traffic diversion rights are configured for the lender's live streaming room.

[0021] Preferably, the comprehensive resource pressure coefficient is determined by the following method: comprehensively evaluating multiple indicators of the live broadcast room, including concurrent user utilization, bandwidth utilization, server load rate, and network packet loss rate, assigning corresponding weight coefficients to each indicator, and the weighted sum of the indicators is the comprehensive resource pressure coefficient of the live broadcast room; the concurrent user utilization rate is the ratio of the current concurrent user count to the maximum concurrent user count set for the live broadcast room; the bandwidth utilization rate is the ratio of the current bandwidth utilization to the maximum bandwidth allocated to the live broadcast room; the server load rate is the ratio of the weighted sum of the current CPU utilization and memory utilization to the set maximum load; and the network packet loss rate is the ratio of the current packet loss rate to the set maximum allowable packet loss rate.

[0022] Preferably, the matching evaluation indicators of the multiple dimensions include: network latency between the two live broadcast rooms, with lower network latency indicating higher matching; the current idle resource ratio of the candidate lender's live broadcast room, with more idle resources indicating higher matching; the historical borrowing credit score of the candidate lender's live broadcast room, which is calculated based on the number of historical performances, the completeness of performance, and historical lender evaluations; the content category similarity between the two live broadcast rooms; and the difference in the current number of online viewers between the two live broadcast rooms, with smaller differences in the number of online viewers indicating higher matching; after normalizing each dimension indicator, multiplying it by the corresponding weight, and summing the results, a comprehensive matching score is obtained.

[0023] Preferably, the lender's revenue plan in the resource borrowing request includes the number of platform reward points, the promised exposure time for traffic diversion, and the borrower's gift revenue sharing ratio; in the borrowing negotiation step, the candidate lender's live broadcast room can respond to the resource borrowing request by accepting, rejecting, or modifying the conditions, and if no response is made within the preset response time limit, it is considered a rejection.

[0024] Preferably, in the resource switching step, viewers whose viewing time exceeds a preset time threshold and whose network location is close to the resource node of the lender's live stream are selected from the current viewers of the critical state live stream room, and their streaming media data requests are redirected to the resource node of the lender's live stream room.

[0025] Preferably, in the picture-in-picture integrated live streaming interface, the sub-window is superimposed on a preset position in the main screen area, the size of the sub-window is a predetermined ratio of the main screen size, the edge of the sub-window is provided with a semi-transparent border and the name identifier of the critical state live streaming room, and the sub-window is provided with an entry operation entrance, which allows the viewers of the lending party's live streaming room to click and jump to the critical state live streaming room to participate in the interaction.

[0026] Preferably, in the information bar overlay interface, the information bar is overlaid and displayed on the edge area of ​​the critical state live broadcast room screen. The information bar includes the name, avatar, current number of online users, and follow operation entry of the lender's live broadcast room. After the viewers of the critical state live broadcast room follow the lender's live broadcast room by clicking the follow operation entry, the system records the follow source as borrowing exposure.

[0027] Preferably, in the smooth exit step, the redirected audience traffic is switched back in batches according to the agreed step size. After each batch is switched back, the current comprehensive resource pressure coefficient of the critical state live room is queried. If the current comprehensive resource pressure coefficient exceeds the preset first threshold again, the switchback is paused and the current borrowing status is maintained. The switchback process is resumed after the comprehensive resource pressure coefficient decreases again.

[0028] Preferably, in the benefit settlement step, the platform reward points include two parts: basic reward points and additional reward points. The basic reward points are calculated based on the actual borrowing duration and the actual borrowing amount of resources. The additional reward points are calculated based on the number of new fans gained by the lender's live stream due to exposure during the borrowing period, multiplied by a preset coefficient. The traffic diversion rights are that within a preset period after the borrowing ends, the platform will push the entrance link of the lender's live stream to the audience in the recommended position on the page of the live stream in the critical state.

[0029] An anti-emergency scheduling system based on emergency resource collaborative scheduling includes:

[0030] The traffic monitoring module is used to collect resource indicator data of each live room in real time at a preset sampling period, calculate the comprehensive resource pressure coefficient of each live room, and trigger the scheduling process when a critical state live room with a comprehensive resource pressure coefficient exceeding a preset first threshold is detected.

[0031] The resource borrowing agreement management module is used to store and manage predefined cross-live room resource borrowing agreement rules;

[0032] The candidate lender matching module is used to scan low-load live streaming rooms with a comprehensive resource pressure coefficient of less than a preset second threshold after the scheduling process is triggered. Based on multiple dimensions of matching degree evaluation indicators, the module comprehensively scores each low-load live streaming room and selects at least one low-load live streaming room with the highest score as a candidate lender live streaming room.

[0033] The agreement negotiation and execution module is used to initiate a resource borrowing request to the live broadcast room of the candidate lender and receive a response. After receiving the acceptance response, it confirms that the borrowing agreement is effective and issues resource switching instructions and screen fusion instructions.

[0034] The dual-screen fusion display module is used to generate a picture-in-picture fusion live broadcast interface with the lender's live broadcast screen as the main screen and the critical state live broadcast screen as the sub-window on the viewer's end of the lender's live broadcast room, and to generate an information bar overlay interface containing the lender's live broadcast room information and the follow entry on the viewer's end of the critical state live broadcast room.

[0035] The identity penetration and permission control module is used to control cross-live room interaction permissions during the secondment period, allowing viewers of the lender's live room to enter the critical state live room to participate in the interaction, allowing viewers of the critical state live room to follow the lender's live room, and prohibiting viewers of the critical state live room from entering the lender's live room in reverse.

[0036] The smooth exit module is used to gradually switch the audience traffic redirected to the lender's live stream back to the critical state live stream in batches when the conditions for the loan termination are met, and to remove the fusion display.

[0037] The multi-party benefit distribution module is used to distribute platform reward points to the lender's live streaming room, transfer the agreed proportion of revenue sharing to the critical state live streaming room, and configure traffic diversion rights for the lender's live streaming room according to the borrowing records and preset revenue distribution rules.

[0038] The beneficial effects of this invention are as follows:

[0039] 1. This invention utilizes idle resources among live streaming rooms within the platform for horizontal collaborative scheduling, eliminating the need for temporary increases in external resources such as servers and bandwidth. Compared to existing technologies that rely on pre-set redundant resource pools, this invention can save the platform considerable temporary expansion costs during periods of sudden traffic surges, and the resource supply dynamically changes with the overall platform activity level, without any pre-set capacity limit.

[0040] 2. Unlike existing technologies that only focus on the one-way goal of uninterrupted service, this invention uses a triple benefit distribution mechanism of platform reward points, revenue sharing, and traffic redirection to enable resource lenders to obtain reasonable economic compensation and traffic exposure, borrowers to obtain service stability guarantees, viewers to discover new content, and the overall activity of the platform ecosystem to be improved, forming a sustainable resource collaborative and shared ecosystem.

[0041] 3. This invention uses a dual-screen fusion display and a progressive traffic switching mechanism, so that viewers do not need to refresh the page, experience playback interruptions or black screens during resource switching and recovery. The screen switching is smooth and continuous, and the user experience is not affected.

[0042] 4. By dynamically allocating idle resources from low-load live streaming rooms to live streaming rooms experiencing sudden surges in traffic, the platform can smooth out peak and valley traffic, significantly improving overall resource utilization. Attached Figure Description

[0043] Figure 1 This is a schematic diagram of an anti-sudden scheduling method based on sudden resource collaborative scheduling according to the present invention. Detailed Implementation

[0044] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0045] Example

[0046] See Figure 1 This embodiment fully describes the overall process of the live streaming anti-burst traffic method based on cross-live streaming room resource collaborative scheduling of the present invention.

[0047] The live streaming anti-burst traffic system based on cross-live streaming room resource collaborative scheduling provided by the present invention includes: a traffic monitoring module, a resource borrowing agreement management module, a candidate lender matching module, an agreement negotiation and execution module, a dual-screen fusion display module, an identity penetration and permission control module, a multi-party benefit distribution module, a smooth exit module, and a platform database.

[0048] In this embodiment, taking a popular e-sports live streaming room A on a game live streaming platform as an example, the number of online viewers in the live streaming room surged from 32,000 to 87,000 within 3 minutes due to a sudden popular event commentary, causing a sharp increase in server load.

[0049] Traffic monitoring steps: The traffic monitoring module collects real-time data on resource metrics for live stream room A and other live stream rooms, including concurrent users, bandwidth utilization, server CPU utilization, memory utilization, and network packet loss rate, with a sampling period of 5 seconds. Based on the collected metrics, the traffic monitoring module calculates the overall resource pressure coefficient for each live stream room. The calculation shows that the overall resource pressure coefficient for live stream room A reaches 0.92, exceeding the preset first threshold of 0.85. The traffic monitoring module then marks it as a critical state live stream room and triggers a cross-live stream room resource collaborative scheduling process.

[0050] Candidate Matching Steps: The candidate lender matching module scans the entire platform for low-load live streams with a comprehensive resource pressure coefficient below a preset second threshold of 0.50. For each live stream in this set, the candidate lender matching module comprehensively evaluates the following dimensions: network latency with live stream A (obtained through CDN node detection), current idle resource ratio, historical borrowing reputation score (calculated based on historical performance and fulfillment completeness), content category similarity with live stream A, and difference in online audience count with live stream A. Based on the comprehensive evaluation, live stream B has the best indicators: network latency of 25 milliseconds, idle resource ratio of 0.35, historical borrowing reputation score of 92, belonging to the same game live stream category, and a moderate difference in online audience count, ranking first in comprehensive matching score. The candidate lender matching module selects live stream B as the candidate lender live stream.

[0051] The resource borrowing negotiation process is as follows: The agreement negotiation and execution module initiates a resource borrowing request to the operations team of livestream room B. The request specifies the expected borrowing resources as follows: 200Mbps bandwidth, 4-core CPU and 8GB memory, expected borrowing duration of 15 minutes, and the lender's revenue plan as follows: 500 platform reward points, a 24-hour traffic redirection guarantee, and a 10% share of the borrower's gift revenue. The operations team of livestream room B accepts the request within 35 seconds (response time limit is 60 seconds). After receiving the acceptance response, the agreement negotiation and execution module confirms the borrowing agreement is effective and records it in the platform database.

[0052] Resource switching steps: The protocol negotiation and execution module sends a resource switching instruction to the CDN node. The CDN node selects viewers (approximately 12,000 people) from the current audience of live room A who have watched for more than 30 seconds and whose network location is close to the resource node of live room B. The streaming media data requests of these viewers are redirected to the resource node of live room B for processing, thus achieving smooth distribution of audience traffic.

[0053] The dual-view fusion display module generates a picture-in-picture fusion live stream interface on the viewer's end in live stream room B (the lender). This interface uses the live stream from live stream room B as the main screen, displayed in full screen, while the live stream from live stream room A is overlaid in the lower right corner of the main screen as a sub-window. The sub-window is one-quarter the size of the main screen, with a semi-transparent border and the name "Live Stream Room A" displayed around its edges. A "Click to Enter" button is also included in the sub-window. Simultaneously, the dual-view fusion display module generates an overlaid information bar interface on the viewer's end in live stream room A (the critical state). This information bar is overlaid on the upper edge of the live stream room A screen, containing the name of live stream room B ("Live Stream Room B"), an avatar, the current number of online viewers ("3.2k online"), and a highlighted "Follow B" button.

[0054] Access Control Procedures: During the secondment period, the identity penetration and access control module enables cross-livestream access control. Viewers of Livestream B can seamlessly jump to Livestream A by clicking the "Click to Enter" button in the picture-in-picture sub-window to participate in interactions such as sending comments, gifting, and liking, with their identity identifier carrying the source tag "From Livestream B". Viewers of Livestream A can follow Livestream B by clicking the "Follow B" button in the information bar at the top of the screen, becoming its fans, with the system recording the follow source as "Secondment Exposure". Simultaneously, the identity penetration and access control module prohibits viewers of Livestream A from reverse-entering Livestream B to watch its content, rejecting any reverse-entry requests.

[0055] Smooth Exit Procedure: After 14 minutes of traffic relocation, the traffic monitoring module detected that the overall resource pressure coefficient of live stream room A had dropped to 0.48, below the preset second threshold of 0.50, and remained stable for more than 6 sampling periods (30 seconds in total). The smooth exit module initiated the exit process: following a step size of 20% of the total relocated traffic per minute, the approximately 12,000 viewers redirected to live stream room B were gradually switched back to the resource nodes restored by live stream room A in 5 batches. After each batch was switched back, the smooth exit module queried the current overall resource pressure coefficient of live stream room A to confirm that it had not exceeded the preset first threshold again. After all traffic was switched back, the smooth exit module issued a command to the CDN edge node to remove the screen fusion, and each viewer's terminal resumed displaying the independent screen of their respective live stream room.

[0056] Profit Settlement Steps: After the secondment ends, the multi-party profit distribution module executes the settlement based on the secondment records. Specifically, the multi-party profit distribution module issues 500 platform reward points (including basic reward points and additional reward points) to Live Room B; calculates the total audience gift revenue received by Live Room A during the secondment period as 28,000 yuan, and transfers 2,800 yuan from Live Room A's revenue account to Live Room B's account according to the agreed 10% revenue sharing ratio; simultaneously, within 24 hours after the secondment ends, the platform's content recommendation system continuously pushes the entrance link of Live Room B to viewers in the recommendation position on Live Room A's page as a traffic redirection benefit.

[0057] The traffic monitoring module is deployed on the streaming media servers and CDN edge nodes of each live broadcast room, and collects the number of concurrent users, bandwidth utilization, server CPU utilization, memory utilization and network packet loss rate of each live broadcast room at a preset sampling period.

[0058] The comprehensive resource pressure coefficient is calculated as follows:

[0059] The first metric is the concurrent user utilization rate, which is the ratio of the current number of concurrent users to the maximum concurrent user capacity set for the live stream. For example, if a live stream is set to have a maximum concurrent user capacity of 100,000, and the current number of concurrent users is 87,000, then the concurrent user utilization rate is 0.87.

[0060] The second metric is bandwidth utilization, which is the ratio of current bandwidth usage to the maximum bandwidth allocated to the live stream. For example, if the maximum bandwidth allocated to the live stream is 400Mbps and the current bandwidth usage is 380Mbps, then the bandwidth utilization is 0.95.

[0061] The third metric is the overall server load rate. The overall server load rate is obtained by weighted summing of the current CPU utilization and current memory utilization, with CPU utilization having a weight of 0.6 and memory utilization having a weight of 0.4. For example, if the current CPU utilization is 82% and the memory utilization is 76%, then the overall server load rate is 0.6 × 82% + 0.4 × 76% = 0.796. The overall server load rate is the ratio of this overall load value to the set maximum load (e.g., 90%), i.e., 0.796 / 0.90 = 0.884.

[0062] The fourth metric is the network packet loss rate, which is the ratio of the current packet loss rate to the set maximum allowable packet loss rate. If the set maximum allowable packet loss rate is 5% and the current packet loss rate is 2.3%, then the network packet loss rate is 2.3% / 5% = 0.46.

[0063] The overall resource pressure coefficient for each live streaming room is the weighted sum of the four indicators mentioned above multiplied by their respective weights. All weight coefficients are positive and sum to 1, with their specific values ​​dynamically adjusted based on the live streaming room type. For game live streaming, the weights are configured as follows: concurrent user utilization rate 0.35, bandwidth utilization rate 0.25, overall server load rate 0.30, and network packet loss rate 0.10. For entertainment live streaming, the bandwidth utilization rate weight is increased to 0.35. For e-commerce live streaming, the overall server load rate and network packet loss rate weights are increased to 0.35 and 0.20, respectively.

[0064] The weighted sum of all indicators is the overall resource pressure coefficient of the live stream. Taking the above data as an example, the overall resource pressure coefficient of the live stream is 0.35×0.87+0.25×0.95+0.30×0.884+0.10×0.46=0.3045+0.2375+0.2652+0.046=0.8532, which exceeds the preset first threshold of 0.85, triggering scheduling.

[0065] The first and second thresholds are preset based on platform operation experience, with the first threshold set at 0.85 and the second threshold at 0.50. To prevent frequent fluctuations in the pressure coefficient around the thresholds from causing repeated scheduling triggers, a de-jittering mechanism is set up: scheduling is triggered immediately when the pressure coefficient rises from below the second threshold to above the first threshold; when it falls back from above the first threshold to below the second threshold, it needs to remain stable for 6 consecutive sampling cycles (i.e., 30 seconds) before triggering the exit process.

[0066] Preferably, when it is determined that live room A has entered a critical state, the candidate lender matching module reads the set of all live rooms with a pressure coefficient lower than the preset second threshold of 0.50 from the platform database. For each live room in this set, the candidate lender matching module calculates its matching degree score with live room A from the following five dimensions.

[0067] The first dimension is network latency. The candidate lender matching module sends network probe commands to the viewers of both live stream A and the candidate live streams, collecting round-trip latency data from the viewers to the CDN nodes, and taking the median as the network latency value between the two live streams. The platform presets latency levels: network latency of no more than 30 milliseconds receives a perfect score; 30 to 50 milliseconds receives 0.8 times the perfect score; 50 to 80 milliseconds receives 0.5 times the perfect score; and more than 80 milliseconds receives 0.2 times the perfect score. The lower the network latency, the higher the matching degree.

[0068] The second dimension is the current idle resource ratio. The current idle resource ratio of the candidate lender's live stream is taken as 1 minus its current comprehensive resource pressure coefficient. The more abundant the idle resources, the higher the matching degree.

[0069] The third dimension is the historical secondment reputation score. This score is calculated based on the total number of secondments the livestreaming room has participated in, the number of times the secondment was completed, and the average completion rate. The completion rate is the ratio of the actual secondment duration to the agreed-upon secondment duration; if the actual secondment duration reaches 90% or more of the agreed-upon duration, it is considered a complete fulfillment. The maximum score is 100 points. For example, if a livestreaming room has participated in 12 secondments in the past, completed 11, and has an average completion rate of 0.95, its historical secondment reputation score would be 100 × (11 / 12) × 0.95 = 87.08 points.

[0070] The fourth dimension is content category similarity. The platform has a pre-defined content category tagging system, including multiple primary categories such as games, live streams, e-commerce, music, outdoor activities, and food, as well as their secondary subcategories. If two live streams have the same primary category, the content category similarity score is the highest level; if the primary categories are different but the secondary subcategories are related (e.g., "MOBA" and "FPS" under the game category are marked as similar), the similarity score is medium; if the primary categories are different and unrelated, the similarity score is the lowest level.

[0071] The fifth dimension is the difference in the number of online viewers. This dimension is used to balance the scale of traffic allocation and avoid lending out live streams that are too small, which would prevent their own audiences from being effectively utilized. The smaller the difference in the number of online viewers between the two live streams, the higher the score for this item.

[0072] The overall matching score is obtained by multiplying the scores of each dimension by preset weights and then summing the results. The sum of all weights is 1. In this embodiment, the weights of the five dimensions are configured as 0.30, 0.25, 0.20, 0.15, and 0.10, respectively.

[0073] After sorting the live streams by their overall matching scores from highest to lowest, the top two live streams are selected as candidate lenders. If the platform is configured to require only one lender, a lending request will be sent only to the top-ranked live stream. If there are no candidate lenders that meet the criteria (i.e., the set of low-load live streams is empty), the candidate lender matching module will send a resource alert to the platform's operations and maintenance department, including the live stream A identifier, the current pressure coefficient, and a message indicating that no candidate lenders are available.

[0074] Preferably, the protocol rule base pre-stored in the resource borrowing agreement management module includes the following rule items: trigger conditions (first threshold 0.85, second threshold 0.50), maximum borrowing duration (30 minutes), response timeout duration (60 seconds), minimum idle resource ratio requirement for lenders (0.20), basic platform reward points standard (300 points / 10 minutes), additional reward points coefficient (10 points / new follower), default value of borrower's revenue sharing ratio (10%), default value of traffic diversion duration (24 hours), default borrowing duration (15 minutes), etc.

[0075] The signaling interaction process for the agreement negotiation and execution module to initiate a borrowing request to the candidate lender is as follows:

[0076] First, the agreement negotiation and execution module sends a borrowing request message (INVITE) to the operation side of the lender's live broadcast room. The message body is in JSON format and includes the following fields: the borrower's live broadcast room identifier, the expected amount of borrowed resources (bandwidth, CPU, memory), the expected borrowing duration, the lender's revenue plan (platform reward points, revenue sharing ratio, traffic diversion duration), and the response time limit.

[0077] Secondly, after receiving the request, the operation side of the lender's live broadcast room will display the request details in a pop-up window on the operation management interface, and provide three operation buttons for the operation staff to choose from: "Accept", "Reject", and "Modify Conditions".

[0078] Secondly, if the lender's operations personnel choose "Accept," the operations side returns a 200 OK response to the agreement negotiation and execution module, containing the agreed loan duration and profit-sharing ratio. If the lender's operations personnel choose "Modify Conditions," the operations side returns a negotiation response, including the modified parameters (e.g., proposing to increase the profit-sharing ratio from 10% to 15%). After receiving the modified conditions, the agreement negotiation and execution module automatically judges according to preset rules: if the modified conditions are within the preset acceptable range (e.g., the profit-sharing ratio does not exceed 15%), it automatically accepts and returns a confirmation message; if they exceed the acceptable range, it forwards the request to the platform's operations personnel for manual decision-making. If the lender does not respond within the 60-second response time limit, the agreement negotiation and execution module determines that the timeout has occurred and automatically forwards the request to the next candidate lender.

[0079] Finally, upon receiving the acceptance response, the agreement negotiation and execution module records the agreement's effectiveness information in the platform database and issues execution instructions to the dual-screen fusion display module and the identity penetration and access control module. When all candidate lenders refuse or the timeout occurs, the agreement negotiation and execution module sends a resource alarm message to the platform's operations and maintenance department.

[0080] After the agreement negotiation and execution module confirms the borrowing agreement is effective, it issues a resource switching instruction to the CDN node. The resource switching instruction includes the identifier of the borrower's live streaming room A, the resource node address of the lender's live streaming room B, and the audience filtering criteria.

[0081] The specific criteria for selecting viewers are as follows: select viewers from the current viewers of live room A whose viewing time exceeds the preset time threshold (30 seconds) and whose network location is close to the resource node of live room B.

[0082] The purpose of viewing time filtering is to exclude viewers who have just entered the live stream and have not yet established a stable connection, and to ensure that the redirected viewers are active viewers with a certain degree of stickiness, so as to avoid a poor experience for a large number of new viewers due to the redirection operation.

[0083] The method for determining network proximity is as follows: CDN nodes obtain the IP addresses and corresponding geographical locations of each viewer in live stream A, and simultaneously obtain the service area covered by the resource nodes of live stream B. When a viewer's IP geographical location falls within the service area of ​​the resource nodes of live stream B, and the number of network hops from the viewer to the resource nodes of live stream B does not exceed a preset value (e.g., 5 hops), the viewer's network location is determined to be proximity to the resource nodes of live stream B.

[0084] In this embodiment, live stream room A currently has 87,000 online viewers. After screening, 82,000 viewers watched for more than 30 seconds, of which approximately 12,000 were located near the resource node of live stream room B. The protocol negotiation and execution module redirected the streaming media data requests of these 12,000 viewers to the resource node of live stream room B for processing.

[0085] Redirection is achieved through DNS resolution adjustments or CDN origin configuration changes: the resolution target of the streaming media requests of selected viewers is switched from the origin address of live room A to the resource node address of live room B. Viewers can seamlessly switch to the new resource node to obtain streaming media data without any operation.

[0086] After the resource switch is completed, the remaining 70,000 viewers in live room A will still obtain streaming media data through their own resource nodes, while the 12,000 borrowed viewers in live room B will obtain streaming media data through the resource nodes of live room B, and the overall live streaming service will remain continuous and uninterrupted.

[0087] Preferably, after receiving the execution instruction from the protocol negotiation and execution module, the dual-screen fusion display module first obtains the real-time video stream parameters of the borrower's live stream room A and the lender's live stream room B. In this embodiment, the video stream resolution of live stream room A is 1920×1080, the encoding format is H.264, and the bitrate is 4Mbps; the video stream resolution of live stream room B is 1920×1080, the encoding format is H.264, and the bitrate is 3.5Mbps.

[0088] The dual-screen blending module generates the following picture-in-picture blending parameters:

[0089] The main screen displays the original video stream from livestream room B, maintaining full-screen display. The sub-window displays the video stream from livestream room A, scaled to 480×270 resolution (approximately one-quarter the size of the main screen), overlaid at the bottom right corner of the screen, 40 pixels from both the right and bottom edges. The sub-window has a 4-pixel wide white semi-transparent border with a semi-transparent shadow effect to enhance visual depth. The top left corner of the sub-window displays the label "Livestream Room A (Emergency Access)," in white font, 16 pixels in size, with a semi-transparent black background to ensure legibility against any background. The bottom right corner of the sub-window contains a "Click to Enter" button, which viewers can click to jump to livestream room A and participate in interactive activities.

[0090] The dual-view fusion display module encapsulates the aforementioned picture-in-picture fusion parameters into compositing instructions and sends them to the CDN edge nodes. Upon receiving the instructions, the CDN edge nodes perform real-time picture compositing using FFmpeg or a hardware encoder. Picture compositing is accelerated by the GPU, with compositing latency controlled within 200 milliseconds to ensure a smooth viewing experience for viewers. The composited picture-in-picture video stream is pushed to all viewers in live stream room B in H.264 encoded format.

[0091] When the picture-in-picture blending display module receives the release command from the smooth exit module, it stops image compositing, and each viewer's terminal resumes displaying the independent live broadcast screen of live broadcast room B.

[0092] In this embodiment, the position of the picture-in-picture sub-window is not limited to the lower right corner; it can also be configured to the lower left, upper left, or upper right corner according to actual operational needs. The size of the sub-window is not limited to one-quarter; it can also be configured to one-sixth or one-third of the screen, or other agreed-upon proportions. This embodiment uses the lower right one-quarter size as the preferred option because it minimizes visual obstruction of the main screen and conforms to viewers' viewing habits.

[0093] Preferably, after receiving the execution instruction from the protocol negotiation and execution module, the dual-screen fusion display module generates a picture-in-picture fusion interface on the viewer's end of the lender's live broadcast room B, and simultaneously generates an information bar overlay interface on the viewer's end of the borrower's live broadcast room A.

[0094] The specific configuration of the information bar overlay interface is as follows:

[0095] The information bar is overlaid on the upper edge of screen A in the live stream. The information bar has a semi-transparent dark background, a height of 60 pixels, and a width matching the screen width to minimize obstruction of the main image. The following elements are arranged from left to right inside the information bar:

[0096] The avatar of lender B's live stream room is displayed in a circle with a diameter of 40 pixels. To the right of the avatar is the name of lender B's live stream room, in white font, 18 pixels in size, and bold. To the right of the name is the current number of online users for lender B's live stream room, formatted as "3.2k online," in light gray font, 14 pixels in size. To the right of the online user count is a resource contribution indicator, stating "Provide emergency resource support for this live stream room," in light gray font, 14 pixels in size. At the far right of the information bar is a "Follow B" button, highlighted (e.g., on an orange or red background), in white font, 16 pixels in size, to guide viewers to click "Follow."

[0097] The dual-screen fusion display module encapsulates the aforementioned information bar overlay parameters into a compositing instruction and sends it to the CDN edge node. The CDN edge node performs screen compositing, overlaying the information bar onto the live screen of live room A in real time and pushing it to all viewers of live room A.

[0098] Viewers of the borrowing livestream room A can add themselves as fans of livestream room B by clicking the "Follow B" button in the information bar, which invokes the platform's follow API. The system records this follow behavior as originating from "Borrowed Exposure," which is used for subsequent statistical analysis and the calculation of additional reward points.

[0099] On the viewer's end of the borrower's live stream room A, only an information bar is displayed to allow viewers to follow the lender; no live stream content from live stream room B is displayed. When the smooth exit module issues a release command, the information bar disappears from the view of live stream room A, and the independent live stream screen is displayed again.

[0100] Preferably, when the traffic monitoring module detects that the overall resource pressure coefficient of the borrower's live streaming room A has fallen below the preset second threshold of 0.50 and remains stable for more than the preset duration (6 sampling periods, a total of 30 seconds), the smooth exit module initiates the exit process. Alternatively, the exit process is also triggered when the borrowing agreement expires (e.g., 15 minutes) and no renewal agreement is reached.

[0101] The exit process for the smooth exit module is as follows:

[0102] The first step is a gradual traffic switchback. The smooth exit module switches back the approximately 12,000 viewers who were borrowed to live room B in five batches, according to a preset step size (switching back 20% of the total borrowed traffic every minute), to the resource nodes that live room A has recovered itself.

[0103] After each batch of traffic is switched back, the smooth exit module queries the traffic monitoring module for the current overall resource pressure coefficient of live room A to assess the impact of the switchback operation on the load of live room A. If the pressure coefficient exceeds the preset first threshold of 0.85 again during the switchback process, the switchback is paused and the current borrowing status is maintained until the pressure coefficient stabilizes and decreases again before resuming the switchback process. If the pressure coefficient remains at a safe level (below 0.85) during the switchback process, the next batch of traffic is switched back, until all traffic has been switched back.

[0104] The second step is to dispel the picture-in-picture blending. After all traffic has been switched back, the smooth exit module sends a command to the CDN edge nodes to dispel the picture-in-picture blending. Upon receiving the command, the CDN edge nodes stop the picture-in-picture compositing and information bar overlay operations, and each viewer's device resumes displaying its own independent live stream. The picture-in-picture sub-window of live stream B disappears, and the information bar of live stream A disappears simultaneously.

[0105] The third step is to generate the secondment record. The smooth exit module summarizes the complete data of this secondment, generates a structured secondment record, and stores it in the platform database. The secondment record includes the following fields: secondment start time and end time, actual secondment duration (14 minutes in this example), actual amount of resources seconded, number of new fans in live stream A during the secondment period, total gift revenue received by live stream A during the secondment period (28,000 yuan), number of new fans in live stream B during the secondment period (approximately 12,000), and the performance evaluation of the lending party's live stream B (complete performance).

[0106] The fourth step is the exit confirmation notification. The smooth exit module sends exit confirmation notifications to the operations teams of both live stream room A and live stream room B, informing them that the secondment has ended and attaching a brief summary of the secondment data.

[0107] Preferably, after the secondment ends, the multi-party benefit distribution module reads the secondment record from the platform database and performs a three-party benefit settlement according to the preset benefit distribution rules in the resource secondment agreement management module.

[0108] The platform's reward points allocation is as follows:

[0109] The multi-party benefit allocation module calculates the basic reward points. The basic reward points are calculated based on the actual borrowing duration (14 minutes) and the actual borrowed resources (200Mbps bandwidth, 4-core CPU, 8GB memory), referring to the point standards in the protocol rules. In this embodiment, the basic reward points are 300 points / 10 minutes × 14 minutes = 420 points, which are then adjusted to 420 points based on the actual borrowed resource amount coefficient (the standard configuration in this embodiment).

[0110] The multi-party benefit distribution module simultaneously calculates additional reward points. The additional reward points are the number of new followers gained by Live Room B due to exposure during the secondment period multiplied by a preset coefficient. In this embodiment, Live Room B gained approximately 12,000 new followers during the secondment period. The preset coefficient is 10 points per new follower, but there is an upper limit (not exceeding 500 points), therefore the additional reward points are 500 points.

[0111] The sum of the basic reward points of 420 and the additional reward points of 500 is 920 platform reward points for this loan. The multi-party benefit distribution module will write these 920 reward points into the platform account of Live Room B. Live Room B can use these points in the platform's points mall to redeem platform resources such as advertising slots, traffic recommendation slots, and technical service discounts.

[0112] The specific revenue sharing for the borrower is as follows:

[0113] The multi-party profit distribution module retrieves the total audience gift revenue of 28,000 yuan received by livestream room A during the secondment period from the platform database. Based on the 10% revenue sharing ratio stipulated in the secondment agreement, the module calculates that 2,800 yuan should be transferred to livestream room B. The multi-party profit distribution module then calls the platform's payment system interface to transfer 2,800 yuan from livestream room A's revenue account to livestream room B's revenue account. After the transfer is completed, a revenue sharing notification is sent to both parties, informing them of the transferred amount and payment status.

[0114] The specific benefits of traffic referral are as follows:

[0115] The multi-party benefit distribution module sends a traffic redirection instruction to the platform's content recommendation system. The instruction includes the identifier of live stream room B, the traffic redirection duration (24 hours), and the traffic redirection location. Within 24 hours after the secondment ends, the platform's content recommendation system continuously pushes the entry link and cover image of live stream room B to viewers in the recommended positions on the live stream room A page, the live stream end page, and other locations, guiding viewers to enter and watch live stream room B.

[0116] After settlement, the multi-party benefit distribution module generates a settlement report, which includes details of platform reward points (920 points), revenue sharing details (2,800 yuan), traffic diversion execution status, etc., and sends them to the operation and broadcaster ends of live room A and live room B respectively.

[0117] The live streaming anti-burst traffic system based on cross-live streaming room resource collaborative scheduling provided by this invention includes the following modules:

[0118] The traffic monitoring module is used to collect resource indicator data such as concurrent users, bandwidth utilization, server CPU utilization, memory utilization, and network packet loss rate of each live broadcast room in real time at a preset sampling period (5 seconds in this embodiment). Based on the collected indicators, it calculates the comprehensive resource pressure coefficient of each live broadcast room. When the comprehensive resource pressure coefficient of a live broadcast room exceeds the preset first threshold of 0.85, it marks it as a critical state live broadcast room and triggers the scheduling process.

[0119] The resource borrowing agreement management module is used to store and manage predefined cross-livestream resource borrowing agreement rules. These rules include borrowing trigger conditions (first threshold 0.85, second threshold 0.50), candidate lender screening criteria, maximum borrowing duration (30 minutes), lender revenue distribution plan (platform reward points standard, traffic redirection duration, revenue sharing ratio), agreement response time limit (60 seconds), and default handling rules.

[0120] The candidate lender matching module, after the traffic monitoring module triggers the scheduling process, reads low-load live streaming room data from the platform database that has a platform-wide overall resource pressure coefficient lower than a preset second threshold of 0.50. Based on multiple matching evaluation indicators such as network latency, current idle resource ratio, historical lending reputation score, content category similarity, and differences in online viewership, it comprehensively scores each low-load live streaming room and selects at least one low-load live streaming room with the highest score as a candidate lender live streaming room. If no low-load live streaming room meets the criteria, a resource alarm message is sent to the platform operations and maintenance department.

[0121] The agreement negotiation and execution module is used to initiate resource borrowing requests to candidate lenders' live streams and receive responses. The borrowing request includes the expected amount of resources to be borrowed, the expected borrowing duration, and the lender's revenue plan (number of platform reward points, promised exposure time for traffic redirection, and the borrower's share of gift revenue). After receiving an acceptance response from the candidate lender's live stream, the agreement negotiation and execution module confirms the borrowing agreement is effective and issues a resource switching instruction to the CDN node, redirecting a portion of the viewer traffic from the critical live stream to the resource node of the lender's live stream for processing.

[0122] The dual-view fusion display module generates a picture-in-picture fusion live stream interface on the viewer's end of the lender's live stream room. The main screen is the lender's live stream, and the sub-window is the critical state live stream. The sub-window is overlaid in the lower right corner of the main screen, occupying one-quarter of its size, with a semi-transparent border and name label. The sub-window also includes an entry point for further actions. Simultaneously, on the viewer's end of the critical state live stream room, the dual-view fusion display module generates an overlaid interface containing the lender's live stream room name, avatar, current online viewers, and a follow option.

[0123] The identity penetration and access control module is used to manage cross-livestream interaction permissions during the secondment period. This module allows viewers of the lender's livestream to enter the critical state livestream to participate in the interaction by clicking the picture-in-picture sub-window, and allows viewers of the critical state livestream to follow the lender's livestream by clicking the follow entry in the information bar. At the same time, it prohibits viewers of the critical state livestream from entering the lender's livestream to watch the livestream content.

[0124] The smooth exit module is used to gradually switch back the viewer traffic redirected to the lending livestream room in batches at a rate of 20% of the total traffic per minute when the overall resource pressure coefficient of the critical state livestream room drops below a preset second threshold and remains stable for more than a preset duration, or when the borrowing agreement expires. After each batch is switched back, the current pressure coefficient of the critical state livestream room is checked. If it exceeds the preset first threshold again, the switching is paused. After all traffic has been switched back, the smooth exit module sends a command to the CDN edge node to undo the screen blending.

[0125] The multi-party profit distribution module is used to execute settlements based on the borrowing records and preset profit distribution rules. Specifically, it includes: distributing platform reward points, consisting of basic reward points and additional reward points, to the lender's live stream; calculating the total gift revenue of the live stream in the critical state during the borrowing period and transferring it to the lender's live stream account according to the agreed sharing ratio; and sending a traffic redirection instruction to the platform's content recommendation system to push the entrance link of the lender's live stream to the audience in the page recommendation position of the live stream in the critical state within a preset time.

[0126] The aforementioned modules work collaboratively to complete the entire closed-loop process from sudden traffic detection to resource scheduling and profit settlement with minimal or no human intervention. After system startup, the traffic monitoring module continuously monitors the status of all live streaming rooms across the platform. When a live streaming room enters a critical state, the candidate lender matching module, agreement negotiation and execution module, dual-screen fusion display module, and identity penetration and access control module are automatically triggered sequentially to perform resource borrowing and screen fusion. During the borrowing period, the traffic monitoring module continuously monitors the pressure coefficient of the critical state live streaming room. When the borrowing termination conditions are met, the smooth exit module performs a gradual exit, the multi-party profit distribution module performs profit settlement, and the system returns to normal monitoring status.

[0127] The above formulas are all dimensionless calculations. The formulas are derived from software simulations based on a large amount of collected data to obtain the most recent real-world results. The preset parameters and thresholds in the formulas are set by those skilled in the art according to the actual situation.

[0128] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented using software, the above embodiments can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more sets of available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. The semiconductor medium can be a solid-state drive.

[0129] Those skilled in the art will recognize that the modules and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0130] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and modules described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0131] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.

[0132] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0133] In addition, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module.

[0134] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0135] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0136] In conclusion, the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for resisting sudden resource disruptions through collaborative scheduling, characterized in that, Includes the following steps: Traffic monitoring steps: Collect resource indicator data of each live room in real time at a preset sampling period, calculate the comprehensive resource pressure coefficient of each live room based on the resource indicator data, and mark the live room as a critical state live room when the comprehensive resource pressure coefficient of a certain live room exceeds a preset first threshold. Candidate matching steps: Scan all low-load live streaming rooms on the platform whose current comprehensive resource pressure coefficient is lower than the preset second threshold, and comprehensively score each low-load live streaming room based on multiple dimensions of matching evaluation indicators, and select at least one low-load live streaming room with the highest score as a candidate lender live streaming room. Borrowing negotiation steps: Initiate a resource borrowing request to the live broadcast room of the candidate lender. The resource borrowing request includes the expected amount of borrowed resources, the expected borrowing duration, and the lender's profit plan. After receiving the acceptance response from the live broadcast room of the candidate lender, confirm that the borrowing agreement is effective. Resource switching steps: Redirect a portion of the viewer traffic from the critical state live stream to the resource node of the lender's live stream for processing; The fusion display steps are as follows: A picture-in-picture fusion live broadcast interface is generated on the viewer's end of the lender's live broadcast room, with the lender's live broadcast screen as the main screen and the critical state live broadcast screen as the sub-window; an information bar overlay interface containing the lender's live broadcast room information and the follow entry is generated on the viewer's end of the critical state live broadcast room. Access control steps: During the secondment period, viewers of the lender's live stream are allowed to enter the critical state live stream to participate in the interaction, viewers of the critical state live stream are allowed to follow the lender's live stream, and viewers of the critical state live stream are prohibited from entering the lender's live stream in reverse. Smooth exit procedure: When the overall resource pressure coefficient of the critical state live room falls below the preset second threshold and remains stable for more than the preset duration, or when the borrowing agreement expires, the audience traffic redirected to the lender's live room will be gradually switched back to the critical state live room in batches, and the fusion display will be deactivated. Profit settlement steps: Based on the borrowing records and the preset profit distribution rules, platform reward points are issued to the lender's live streaming room, the agreed proportion of revenue is transferred to the critical state live streaming room, and traffic diversion rights are configured for the lender's live streaming room.

2. The method according to claim 1, characterized in that, The comprehensive resource pressure coefficient is determined as follows: Multiple indicators of the live stream are comprehensively evaluated, including concurrent user utilization, bandwidth utilization, server load, and network packet loss rate. Each indicator is assigned a corresponding weighting coefficient, and the weighted sum of these indicators is the comprehensive resource pressure coefficient of the live stream. The concurrent user utilization rate is the ratio of the current number of concurrent users to the maximum concurrent user capacity set for the live stream. The bandwidth utilization rate is the ratio of the current bandwidth utilization to the maximum bandwidth allocated to the live stream. The server load rate is the ratio of the weighted sum of the current CPU utilization and memory utilization to the maximum allowed load. The network packet loss rate is the ratio of the current packet loss rate to the maximum allowed packet loss rate.

3. The method according to claim 1, characterized in that, The matching evaluation indicators across multiple dimensions include: network latency between the two live streams (lower latency indicates higher matching); the current idle resource ratio of the candidate lender's live stream (abundant idle resources indicate higher matching); the historical borrowing credit score of the candidate lender's live stream (calculated based on historical performance count, performance completeness, and historical lender evaluations); content category similarity between the two live streams; and the difference in current online viewership between the two live streams (smaller difference in online viewership indicates higher matching). Each dimension indicator is normalized, multiplied by its corresponding weight, and summed to obtain the comprehensive matching score.

4. The method according to claim 1, characterized in that, The lender’s revenue plan in the resource borrowing request includes the number of platform reward points, the promised exposure time for traffic diversion, and the borrower’s gift revenue sharing ratio. In the borrowing negotiation step, the candidate lender's live broadcast room can respond to the resource borrowing request by accepting, rejecting or modifying the conditions. If no response is made within the preset response time limit, it is considered a rejection.

5. The method according to claim 1, characterized in that, In the resource switching step, viewers whose viewing time exceeds a preset time threshold and whose network location is close to the resource node of the lender's live stream are selected from the current viewers of the critical state live stream room, and their streaming media data requests are redirected to the resource node of the lender's live stream room.

6. The method according to claim 1, characterized in that, In the picture-in-picture integrated live streaming interface, the sub-window is superimposed on a preset position in the main screen area. The size of the sub-window is a predetermined ratio of the main screen size. The sub-window has a semi-transparent border and a name label for the critical state live streaming room. The sub-window has an entry point for viewers of the lending live streaming room to click and jump to the critical state live streaming room to participate in the interaction.

7. The method according to claim 1, characterized in that, In the overlay interface, the information bar is overlaid on the edge area of ​​the critical state live broadcast room screen. The information bar includes the name, avatar, current number of online users, and follow operation entry of the lender's live broadcast room. After the viewers of the critical state live broadcast room follow the lender's live broadcast room by clicking the follow operation entry, the system records the follow source as loan exposure.

8. The method according to claim 1, characterized in that, In the smooth exit step, the redirected audience traffic is switched back in batches according to the agreed step size. After each batch is switched back, the current comprehensive resource pressure coefficient of the critical state live room is queried. If the current comprehensive resource pressure coefficient exceeds the preset first threshold again, the switchback is paused and the current borrowing status is maintained. The switchback process is resumed after the comprehensive resource pressure coefficient decreases again.

9. The method according to claim 1, characterized in that, In the aforementioned benefit settlement step, the platform reward points consist of two parts: basic reward points and additional reward points. The basic reward points are calculated based on the actual borrowing duration and the actual borrowed resources. The additional reward points are calculated based on the number of new fans gained by the lender's live stream due to exposure during the borrowing period, multiplied by a preset coefficient. The traffic diversion rights are provided by the platform within a preset time period after the borrowing ends, by pushing the entrance link of the lender's live stream to viewers in the recommended position on the page of the live stream in the critical state.

10. A surge-resistant scheduling system based on collaborative scheduling of resources for sudden emergencies, characterized in that, include: The traffic monitoring module is used to collect resource indicator data of each live room in real time at a preset sampling period, calculate the comprehensive resource pressure coefficient of each live room, and trigger the scheduling process when a critical state live room with a comprehensive resource pressure coefficient exceeding a preset first threshold is detected. The resource borrowing agreement management module is used to store and manage predefined cross-live room resource borrowing agreement rules; The candidate lender matching module is used to scan low-load live streaming rooms with a comprehensive resource pressure coefficient of less than a preset second threshold after the scheduling process is triggered. Based on multiple dimensions of matching degree evaluation indicators, the module comprehensively scores each low-load live streaming room and selects at least one low-load live streaming room with the highest score as a candidate lender live streaming room. The agreement negotiation and execution module is used to initiate a resource borrowing request to the live broadcast room of the candidate lender and receive a response. After receiving the acceptance response, it confirms that the borrowing agreement is effective and issues resource switching instructions and screen fusion instructions. The dual-screen fusion display module is used to generate a picture-in-picture fusion live broadcast interface with the lender's live broadcast screen as the main screen and the critical state live broadcast screen as the sub-window on the viewer's end of the lender's live broadcast room, and to generate an information bar overlay interface containing the lender's live broadcast room information and the follow entry on the viewer's end of the critical state live broadcast room. The identity penetration and permission control module is used to control cross-live room interaction permissions during the secondment period, allowing viewers of the lender's live room to enter the critical state live room to participate in the interaction, allowing viewers of the critical state live room to follow the lender's live room, and prohibiting viewers of the critical state live room from entering the lender's live room in reverse. The smooth exit module is used to gradually switch the audience traffic redirected to the lender's live stream back to the critical state live stream in batches when the conditions for the loan termination are met, and to remove the fusion display. The multi-party benefit distribution module is used to distribute platform reward points to the lender's live streaming room, transfer the agreed proportion of revenue sharing to the critical state live streaming room, and configure traffic diversion rights for the lender's live streaming room according to the borrowing records and preset revenue distribution rules.

Citation Information

Patent Citations

  • A method and system for controlling the operation of live broadcasting

    CN118694994B

  • Multi-type image acquisition equipment control system, method and server

    CN119299732A

  • Private domain live broadcast bandwidth resource allocation and routing method and system based on reinforcement learning

    CN119383380A

  • P2P streaming media system supporting live broadcast on demand and multiple streaming media transmission protocols

    CN119676468A