CN113992997A - Source station switching method, device, equipment and computer readable storage medium - Google Patents

Source station switching method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN113992997A
CN113992997A CN202111256455.6A CN202111256455A CN113992997A CN 113992997 A CN113992997 A CN 113992997A CN 202111256455 A CN202111256455 A CN 202111256455A CN 113992997 A CN113992997 A CN 113992997A
Authority
CN
China
Prior art keywords
source station
source
switching
station
list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111256455.6A
Other languages
Chinese (zh)
Inventor
李尾冬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202111256455.6A priority Critical patent/CN113992997A/en
Publication of CN113992997A publication Critical patent/CN113992997A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64723Monitoring of network processes or resources, e.g. monitoring of network load
    • H04N21/64738Monitoring network characteristics, e.g. bandwidth, congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2181Source of audio or video content, e.g. local disk arrays comprising remotely distributed storage units, e.g. when movies are replicated over a plurality of video servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2405Monitoring of the internal components or processes of the server, e.g. server load
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • H04N21/26216Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints involving the channel capacity, e.g. network bandwidth
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2662Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure determines a service quality of the first source station according to relevant information of source return data of the first source station by performing statistics in real time, and switches the first source station to a second source station in the source station list if the service quality is lower than a preset service quality threshold. According to the method and the device, the relevant information of the source returning data of the first source station is counted in real time, the service quality of the first source station is judged according to the relevant information of the source returning data of the first source station, when the service quality is lower than a preset service quality threshold value, the server can actively switch the source stations, the source stations do not need to be disconnected after being actively disconnected or the data is requested to be disconnected after being overtime, and therefore the server can receive the data, correspondingly, the electronic equipment can also receive the data, the time is not wasted, and the watching quality of a user is improved.

Description

Source station switching method, device, equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a source station switching method, apparatus, device, and computer-readable storage medium.
Background
With the continuous development of computer technology, electronic devices are widely used. Specifically, the embedded electronic equipment can be used for playing videos, watching live broadcasts or browsing information, and enriching the spiritual culture life of people.
Generally, an electronic device needs to request data from a server, the server acquires the data from a source station, the source station transmits the data to the server, the server transmits the data back to the electronic device, theoretically, the source station continuously transmits the data to the server, and the server continuously transmits the data to the electronic device. When the source station network is abnormal or attacked, the source station cannot transmit data to the server, and the server cannot transmit the data to the electronic device.
However, the server does not actively switch the source station, and needs to wait for the active disconnection of the source station or the disconnection after the data timeout, during which the electronic device cannot receive the data, resulting in poor user's look and feel and time waste.
Disclosure of Invention
In order to solve the above technical problem or at least partially solve the above technical problem, the present disclosure provides a source station switching method, apparatus, device and computer readable storage medium to improve the viewing quality of a user, and in case of poor source-back data of a current source station, actively switch to another source station.
In a first aspect, an embodiment of the present disclosure provides a source station switching method, where the method is applied to any node of a content distribution network, and the method includes:
acquiring a request aiming at target content, and determining a source station list providing the target content;
selecting a first source station from the source station list, and acquiring back source data of the target content from the first source station as a response;
counting relevant information of source returning data of the first source station in real time, and determining the service quality of the first source station according to the relevant information of the source returning data;
and if the service quality is lower than a preset service quality threshold, switching the first source station to a second source station in the source station list.
In a second aspect, the embodiment of the present disclosure provides a source station switching apparatus, where the apparatus is applied to any node of a content distribution network, and the apparatus includes:
the acquisition module is used for acquiring a request aiming at target content and determining a source station list providing the target content;
a selection module, configured to select a first source station from the source station list, and obtain source-backed data of the target content from the first source station as a response;
the determining module is used for counting relevant information of source returning data of the first source station in real time and determining the service quality of the source returning of the first source station according to the relevant information of the source returning data;
and the switching module is used for switching the first source station to a second source station in the source station list if the service quality is lower than a preset service quality threshold.
In a third aspect, an embodiment of the present disclosure provides a source station switching device, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of the first aspect.
In a fourth aspect, the disclosed embodiments provide a computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the method according to the first aspect.
In a fifth aspect, the disclosed embodiments also provide a computer program product comprising a computer program or instructions which, when executed by a processor, implement the method according to the first aspect.
According to the source station switching method, the source station switching device, the source station switching equipment and the computer readable storage medium provided by the embodiments of the disclosure, by acquiring a request for target content and determining a source station list providing the target content, selecting a first source station from the source station list, and acquiring source return data of the target content from the first source station as a response, counting relevant information of the source return data of the first source station in real time, determining service quality of the first source station according to the relevant information of the source return data, and switching the first source station to a second source station in the source station list if the service quality is lower than a preset service quality threshold. According to the method and the device, the relevant information of the source returning data of the first source station is counted in real time, the service quality of the first source station is judged according to the relevant information of the source returning data of the first source station, when the service quality is lower than a preset service quality threshold value, the server can actively switch the source stations, the source stations do not need to be disconnected after being actively disconnected or the data is requested to be disconnected after being overtime, and therefore the server can receive the data, correspondingly, the electronic equipment can also receive the data, the time is not wasted, and the watching quality of a user is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of a source station switching method provided in an embodiment of the present disclosure;
fig. 2 is a schematic diagram of an application scenario provided by the embodiment of the present disclosure;
fig. 3 is a schematic diagram of a source station list provided by an embodiment of the present disclosure;
fig. 4 is a flowchart of a source station switching method according to another embodiment of the present disclosure;
fig. 5 is a flowchart of a source station switching method according to another embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a source station switching apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a source station switching apparatus according to an embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
With the continuous development of computer technology, electronic devices are widely used. Meanwhile, the quality of life of people is continuously improved, and the pursuit of spiritual culture is increasingly emphasized. The rise of short videos and live broadcasts is accompanied with the change of living habits and shopping manners of people. Specifically, the electronic equipment can be used for playing videos, watching live broadcasts or browsing information, and enriching the spiritual culture life of people.
Generally, the electronic device needs to request data from the source station, and the source station transmits the data to the electronic device, and theoretically, the source station continuously transmits the data to the electronic device. When the source station network is abnormal or attacked, the source station can not transmit data to the electronic equipment.
However, the electronic device does not actively switch the source station, and needs to wait for the active disconnection of the source station or request the disconnection after the data timeout, which results in poor viewing quality of the user. To solve this problem, embodiments of the present disclosure provide a source station switching method, which is described below with reference to specific embodiments.
Fig. 1 is a flowchart of a source station switching method according to an embodiment of the present disclosure. The method can be applied to the application scenario shown in fig. 2, where the application scenario includes a server 21 and an electronic device 22, and the electronic device 22 may specifically be a terminal, for example, a smart phone, a palm computer, a tablet computer, a wearable device with a display screen, a desktop computer, a notebook computer, an all-in-one machine, an intelligent home device, and the like. It can be understood that the source station switching method provided by the embodiment of the present disclosure may also be applied in other scenarios.
The following describes a source station switching method shown in fig. 1 with reference to an application scenario shown in fig. 2, where the method includes the following specific steps:
s101, obtaining a request aiming at target content, and determining a source station list providing the target content.
As shown in fig. 2, the electronic device 22 issues a request for target content to the server 21, and the server 21 retrieves the request for target content issued by the electronic device 22, determines which source stations can provide the target content, and presents a list of source stations capable of providing the target content.
S102, selecting a first source station from the source station list, and acquiring the source return data of the target content from the first source station as a response.
After determining the source station list, the server 21 randomly selects one source station as a first source station, and sends a request for target content to the first source station, where the first source station is configured to transmit source data of the target content to the server 21 after receiving the request sent by the server 21, and the server 21 transmits the received source data of the target content back to the electronic device 22.
S103, carrying out real-time statistics on the relevant information of the source returning data of the first source station, and determining the service quality of the first source station according to the relevant information of the source returning data.
The related information of the source data can be data volume per second, code rate, state code and the like. The quality of service includes at least one of: actual code rate, stuck times, stability, response time.
After receiving the source return data of the target content returned by the first source station, the server 21 counts the relevant information of the source return data in real time, and determines the service quality of the first source station according to the factors such as the actual code rate, the number of times of hitching, the stability, the response time, and the like.
For example, taking the data amount as an example, after the server 21 and the first source station establish a connection, theoretically, the first source station may continuously transmit the return data to the server 21, assuming that one minute is counted, the server 21 may receive the data amount of one minute in one minute, and if the actually received data amount is less than the data amount of one minute, it is determined that the service quality of the first source station is lower than the preset service quality.
The determination process in other aspects is similar to the determination process of the data amount. It can be understood that the service quality of the first source station is determined to be lower than the preset service quality as long as any one of the actual code rate, the number of times of hitching, the stability and the response time is lower than the preset service quality.
And S104, if the service quality is lower than a preset service quality threshold, switching the first source station to a second source station in the source station list.
As shown in fig. 3, if the service quality is lower than the preset service quality threshold, the server 21 will switch the first source station in the source station list to the second source station in the source station list. Then, the server 21 establishes a connection with a second source station in the source station list, and sends a request for the target content to the second source station, where the second source station is configured to transmit source data of the target content to the server 21 after receiving the request sent by the server 21, and the server 21 transmits the received source data of the target content back to the electronic device 22.
The method includes the steps of acquiring a request for target content, determining a source station list providing the target content, selecting a first source station from the source station list, acquiring source return data of the target content from the first source station as a response, counting relevant information of the source return data of the first source station in real time, determining service quality of the first source station according to the relevant information of the source return data, and switching the first source station to a second source station in the source station list if the service quality is lower than a preset service quality threshold. According to the method and the device, the relevant information of the source returning data of the first source station is counted in real time, the service quality of the first source station is judged according to the relevant information of the source returning data of the first source station, when the service quality is lower than a preset service quality threshold value, the server can actively switch the source stations, the source stations do not need to be disconnected after being actively disconnected or the data is requested to be disconnected after being overtime, and therefore the server can receive the data, correspondingly, the electronic equipment can also receive the data, the time is not wasted, and the watching quality of a user is improved.
On the basis of the above embodiment, determining a source station list providing the target content includes: determining a plurality of source stations that provide the target content; and sequencing the source stations based on the state related information of the source stations to obtain a source station list.
The status related information of each of the plurality of source stations includes, but is not limited to, the following: master and slave source stations, source station machine performance, and source station access volume.
As shown in fig. 2, the server 21 performs source station sorting after determining a plurality of source stations capable of providing the target content. The source station sorting may be random sorting, or source station sorting may be performed according to the state related information of each of the plurality of source stations, and a source station list shown in fig. 3 is obtained after the source station sorting.
In some embodiments, the plurality of source stations providing the target content may be randomly ordered, and the source stations may be ordered to obtain a source station list as shown in fig. 3.
Optionally, the source stations providing the target content may perform source station sequencing according to the active and standby source stations, where the main source station or the common source station is used as the first source station, and the standby source station or the uncommon source station is used as the second source station, the third source station, and so on.
The source stations providing the target content can be sequenced according to the machine performance of the source stations, the source station with the excellent machine performance of the source station serves as a first source station, and the source stations are sequentially sequenced into a second source station, a third source station and the like according to the advantages and disadvantages of the machine performance of the source station.
The source stations providing the target content can be sequenced according to the access amount of the source stations, the source stations with small user access amount are used as first source stations, and the source stations are sequentially sequenced into a second source station, a third source station and the like according to the user access amount.
The method includes the steps of determining a plurality of source stations providing target content by obtaining a request aiming at the target content, sequencing the source stations based on state related information of the source stations to obtain a source station list, selecting a first source station from the source station list, obtaining source return data of the target content from the first source station as a response, counting the related information of the source return data of the first source station in real time, determining service quality of the first source station according to the related information of the source return data, and switching the first source station to a second source station in the source station list if the service quality is lower than a preset service quality threshold. The sequencing of the source stations can be random sequencing, and the sequencing of the source stations can also be carried out according to the respective state related information of the source stations, so that the selection of the first source station is more flexible, the source station with the best quality can be used for acquiring data at the beginning, and the network interruption of the source stations can be reduced, so that the source stations can continuously transmit data to the server, the server can also continuously transmit the data to the electronic equipment, and the watching quality of a user is further improved.
Fig. 4 is a flowchart of a source station switching method according to another embodiment of the present disclosure, and as shown in fig. 4, the method includes the following steps:
s401, obtaining a request aiming at the target content, and determining a plurality of source stations providing the target content.
Specifically, the implementation process and principle of S401 and S101 are consistent, and are not described herein again.
S402, sequencing the source stations based on the state related information of the source stations to obtain a source station list.
The status related information of each of the plurality of source stations includes, but is not limited to, the following: master and slave source stations, source station machine performance, and source station access volume.
As shown in fig. 2, the server 21 performs source station sorting after determining a plurality of source stations capable of providing the target content. The source station sorting may be random sorting, or source station sorting may be performed according to the state related information of each of the plurality of source stations, and a source station list shown in fig. 3 is obtained after the source station sorting.
S403, selecting a first source station from the source station list, and acquiring the source return data of the target content from the first source station as a response.
As shown in the source station list in fig. 3, the server 21 selects a first source station in the source station list, and sends a request for target content to the first source station, where the first source station is configured to transmit source data of the target content to the server 21 after receiving the request sent by the server 21, and the server 21 transmits the received source data of the target content back to the electronic device 22.
S404, counting relevant information of source returning data of the first source station in real time, and determining the service quality of the first source station according to the relevant information of the source returning data.
Specifically, the implementation process and principle of S404 and S103 are consistent, and are not described herein again.
S405, if the service quality is lower than a preset service quality threshold, switching the first source station to a source station ordered behind the first source station as a second source station based on the ordering sequence of the source stations in the source station list.
Specifically, the implementation process and principle of S405 and S104 are consistent, and are not described herein again.
The embodiment of the present disclosure determines a source station list providing the target content, including: determining a plurality of source stations that provide the target content; and sequencing the source stations based on the state related information of the source stations to obtain a source station list. The sequencing of the source stations can be random sequencing, and the sequencing of the source stations can also be carried out according to the respective state related information of the source stations, so that the selection of the first source station is more flexible, the source station with the best quality can be used for acquiring data at the beginning, and the network interruption of the source stations can be reduced, so that the source stations can continuously transmit data to the server, the server can also continuously transmit the data to the electronic equipment, and the watching quality of a user is further improved.
Fig. 5 is a flowchart of a source station switching method according to another embodiment of the present disclosure, and as shown in fig. 5, the method includes the following steps:
s501, obtaining a request aiming at the target content, and determining a source station list providing the target content.
Specifically, the implementation process and principle of S501 and S101 are consistent, and are not described herein again.
S502, based on the sequencing sequence of each source station in the source station list, selecting the source station with the first sequencing as a first source station, and acquiring the source return data of the target content from the first source station as a response.
The source station list shown in fig. 3 is obtained by the server 21 after sorting a plurality of source stations that can provide the target content. The server 21 selects a first source station from the source station list as a first source station, and sends a request for target content to the first source station, where the first source station is configured to transmit source return data of the target content to the server 21 after receiving the request sent by the server 21, and the server 21 transmits the received source return data of the target content back to the electronic device 22.
S503, carrying out real-time statistics on the relevant information of the source returning data of the first source station, and determining the service quality of the first source station according to the relevant information of the source returning data.
Specifically, the implementation process and principle of S503 and S103 are consistent, and are not described herein again.
And S504, judging whether the service quality is lower than a preset service quality threshold, if so, executing S505, otherwise, executing S508.
After receiving the source return data of the target content returned by the first source station, the server 21 counts the relevant information of the source return data in real time, and determines the service quality of the first source station according to the factors such as the actual code rate, the number of times of hitching, the stability, the response time, and the like.
For example, taking the data amount as an example, after the server 21 and the first source station establish a connection, theoretically, the first source station may continuously transmit the return data to the server 21, assuming that one minute is counted, the server 21 may receive the data amount of one minute in one minute, and if the actually received data amount is less than the data amount of one minute, it is determined that the service quality of the first source station is lower than the preset service quality.
The determination process in other aspects is similar to the determination process of the data amount. It can be understood that the service quality of the first source station is determined to be lower than the preset service quality as long as any one of the actual code rate, the number of times of hitching, the stability and the response time is lower than the preset service quality.
If the service quality is lower than a preset service quality threshold, executing the following steps S505 and the steps after S505; if the service quality is not lower than the preset service quality threshold, step S508 is executed.
And S505, counting the switching times in a preset time interval.
The server 21 counts the number of times of switching of the source station in a preset time interval, and the number of times is counted every time the source station is switched. For example, the source station switches 5 times within the preset time interval, that is, the number of times of switching of the source station within the preset time interval is 5.
And S506, judging whether the switching frequency is smaller than a preset switching frequency threshold value, if so, executing S507, and otherwise, executing S508.
The server 21 compares the counted switching times of the source station within the preset time interval with a preset switching time threshold, and if the switching times is smaller than the preset switching time threshold, the following steps S507 and steps after S507 are executed; if the switching number is not less than the preset switching number threshold, step S508 is executed.
And S507, switching the first source station into a source station which is sequenced after the first source station and is a second source station based on the sequencing sequence of each source station in the source station list.
As shown in fig. 3, if the qos is lower than the preset qos threshold, the server 21 switches the first source station to a source station ordered after the first source station as a second source station based on the ordered sequence of the source stations in the source station list. Then, the server 21 establishes a connection with the second source station, and sends a request for the target content to the second source station, where the second source station is configured to transmit the source data of the target content to the server 21 after receiving the request sent by the server 21, and the server 21 transmits the received source data of the target content back to the electronic device 22.
And S508, finishing the switching.
After the source station switching is completed, the above steps S501 to S507 are repeated.
In the embodiment of the present disclosure, a source station that orders a first order is selected as a first source station based on an ordering sequence of each source station in the source station list, and the first source station is switched to a source station that orders after the first source station as a second source station based on the ordering sequence of each source station in the source station list, where relevant information of the source-backed data includes at least one of: the determining the service quality of the first source station according to the relevant information of the source return data comprises the following steps: according to the data amount per second, determining the number of times of source return blockage, code rate and/or stability of the first source station, and/or according to the status code, determining the response time of the first source station to source return, and before switching the first source station to a second source station in the source station list, the method further includes: and counting the switching times in a preset time interval, judging whether the switching times are smaller than a preset switching time threshold, and executing the step of switching the first source station to a second source station in the source station list when the switching times are smaller than the switching time threshold and the service quality is lower than a preset service quality threshold. According to the method, the relevant information of the source returning data of the first source station is counted in real time, the service quality of the first source station is judged according to the relevant information of the source returning data of the first source station, the service quality comprises the time of blocking, the code rate, the stability, the response time and the like, when any one of the service qualities is lower than a preset service quality threshold value, the server can actively switch the source station, the source station does not need to be actively disconnected due to time waste and the like or the data is disconnected due to overtime request, so that the server can receive the data, correspondingly, the electronic equipment can also receive the data, the time is not wasted, and the watching quality of a user is improved.
In addition, the sequencing of the source stations can be random sequencing, and the sequencing of the source stations can also be performed according to the respective state related information of the source stations, so that the selection of the first source station is more flexible, the source station with the best quality can be used for acquiring data at the beginning, and the network interruption of the source stations can be reduced, so that the source stations can continuously transmit data to the server, the server can also continuously transmit the data to the electronic equipment, and the watching quality of a user is further improved.
Fig. 6 is a schematic structural diagram of a source station switching device according to an embodiment of the present disclosure. The source station switching device may be a server as described in the above embodiments, or the source station switching device may be a component or assembly in the server. The source station switching apparatus provided in the embodiment of the present disclosure may execute the processing procedure provided in the embodiment of the source station switching method, as shown in fig. 6, the source station switching apparatus 60 includes: the device comprises an acquisition module 61, a selection module 62, a determination module 63 and a switching module 64; the obtaining module 61 is configured to obtain a request for target content, and determine a source station list providing the target content; the selection module 62 is configured to select a first source station from the source station list, and obtain source-back data of the target content from the first source station as a response; the determining module 63 is configured to count relevant information of source return data of the first source station in real time, and determine quality of service of the source return of the first source station according to the relevant information of the source return data; the switching module 64 is configured to switch the first source station to a second source station in the source station list if the service quality is lower than a preset service quality threshold.
Optionally, determining a source station list providing the target content;
the obtaining module 61 is specifically configured to: determining a plurality of source stations that provide the target content; and sequencing the source stations based on the state related information of the source stations to obtain a source station list.
Optionally, selecting a first source station from the source station list;
the selecting module 62 is specifically configured to select a source station with the first rank as a first source station based on the ranking sequence of each source station in the source station list.
Optionally, the first source station is switched to a second source station in the source station list;
the switching module 64 is specifically configured to switch, based on the sorting sequence of each source station in the source station list, the first source station to a source station that is sorted after the first source station and is a second source station.
Optionally, the relevant information of the source data includes at least one of the following: data volume per second, status code;
determining the service quality of the first source station according to the relevant information of the source return data;
the determining module 63 is specifically configured to: determining the back source blocking times, code rate and/or stability of the first source station according to the data volume per second; and/or determining the source return response time of the first source station according to the status code.
Optionally, the switching module 64 includes: the device comprises a counting unit 641, a judging unit 642 and a switching unit 643, wherein the counting unit 641 is configured to count switching times within a preset time interval; the determining unit 642 is configured to determine whether the switching frequency is smaller than a preset switching frequency threshold; the switching unit 643 is configured to perform the step of switching the first source station to the second source station in the source station list when the number of times of switching is smaller than the threshold of times of switching and the quality of service is lower than a preset threshold of quality of service.
The source station switching device in the embodiment shown in fig. 6 may be used to implement the technical solution of the above method embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
Fig. 7 is a schematic structural diagram of a source station switching apparatus according to an embodiment of the present disclosure. The device may be a server as described in the above embodiments. As shown in fig. 7, the source station switching device 70 may perform the processing procedure provided in the source station switching method embodiment, and includes: memory 71, processor 72, computer programs and communication interface 73; wherein a computer program is stored in the memory 71 and is configured to execute the source station switching method as described above by the processor 72.
In addition, the embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the source station switching method described in the foregoing embodiment.
Furthermore, the embodiments of the present disclosure also provide a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, the method for switching the source station as described above is implemented.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (14)

1. A source station switching method, applied to any node of a content distribution network, the method comprising:
acquiring a request aiming at target content, and determining a source station list providing the target content;
selecting a first source station from the source station list, and acquiring back source data of the target content from the first source station as a response;
counting relevant information of source returning data of the first source station in real time, and determining the service quality of the first source station according to the relevant information of the source returning data;
and if the service quality is lower than a preset service quality threshold, switching the first source station to a second source station in the source station list.
2. The method of claim 1, wherein determining a list of source stations that provide the target content comprises:
determining a plurality of source stations that provide the target content;
and sequencing the source stations based on the state related information of the source stations to obtain a source station list.
3. The method of claim 1, wherein selecting the first source station from the list of source stations comprises:
and selecting the source station with the first rank as the first source station based on the ranking sequence of the source stations in the source station list.
4. The method of claim 3, wherein the switching the first source station to a second source station in the list of source stations comprises:
and switching the first source station to a source station ordered after the first source station as a second source station based on the ordering sequence of the source stations in the source station list.
5. The method of claim 1, wherein the information related to the source data comprises at least one of: data volume per second, status code;
the determining the service quality of the first source station according to the information related to the source return data includes:
determining the back source blocking times, code rate and/or stability of the first source station according to the data volume per second;
and/or the presence of a gas in the gas,
and determining the source returning response time of the first source station according to the state code.
6. The method of claim 1, wherein prior to the switching the first source station to the second source station in the list of source stations, the method further comprises:
counting the switching times in a preset time interval;
judging whether the switching times are smaller than a preset switching time threshold value or not;
and when the switching times are smaller than the switching time threshold and the service quality is lower than a preset service quality threshold, executing the step of switching the first source station to a second source station in the source station list.
7. A source station switching apparatus, applied to any node of a content distribution network, the apparatus comprising:
the acquisition module is used for acquiring a request aiming at target content and determining a source station list providing the target content;
a selection module, configured to select a first source station from the source station list, and obtain source-backed data of the target content from the first source station as a response;
the determining module is used for counting relevant information of source returning data of the first source station in real time and determining the service quality of the source returning of the first source station according to the relevant information of the source returning data;
and the switching module is used for switching the first source station to a second source station in the source station list if the service quality is lower than a preset service quality threshold.
8. The source station switching apparatus according to claim 7, wherein a source station list providing the target content is determined;
the acquisition module is specifically configured to:
determining a plurality of source stations that provide the target content;
and sequencing the source stations based on the state related information of the source stations to obtain a source station list.
9. The source station switching apparatus according to claim 7, wherein a first source station is selected from the source station list;
the selection module is specifically configured to:
and selecting the source station with the first rank as the first source station based on the ranking sequence of the source stations in the source station list.
10. The source station switching apparatus according to claim 9, wherein the switching the first source station to a second source station in the source station list;
the switching module is specifically configured to:
and switching the first source station to a source station ordered after the first source station as a second source station based on the ordering sequence of the source stations in the source station list.
11. The source station switching apparatus according to claim 7, wherein the information related to the source return data includes at least one of:
data volume per second, status code;
determining the service quality of the first source station according to the relevant information of the source return data;
the determining module is specifically configured to:
determining the back source blocking times, code rate and/or stability of the first source station according to the data volume per second;
and/or the presence of a gas in the gas,
and determining the source returning response time of the first source station according to the state code.
12. The source station switching apparatus according to claim 8, wherein the switching module comprises: the device comprises a counting unit, a judging unit and a switching unit;
the statistical unit is used for counting the switching times in a preset time interval;
the judging unit is used for judging whether the switching times are smaller than a preset switching time threshold value;
the switching unit is configured to execute the step of switching the first source station to a second source station in the source station list when the switching number is smaller than the switching number threshold and the qos is lower than a preset qos threshold.
13. A source station switching apparatus, applied to any node of a content distribution network, comprising:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any one of claims 1-6.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN202111256455.6A 2021-10-27 2021-10-27 Source station switching method, device, equipment and computer readable storage medium Pending CN113992997A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111256455.6A CN113992997A (en) 2021-10-27 2021-10-27 Source station switching method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111256455.6A CN113992997A (en) 2021-10-27 2021-10-27 Source station switching method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113992997A true CN113992997A (en) 2022-01-28

Family

ID=79742626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111256455.6A Pending CN113992997A (en) 2021-10-27 2021-10-27 Source station switching method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113992997A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815022A (en) * 2009-02-20 2010-08-25 华为技术有限公司 Source switching method, device and system in peer-to-peer network
CN103067997A (en) * 2011-10-19 2013-04-24 中国电信股份有限公司 Method and device capable of judging whether terminal is switched between two wireless networks
CN109495936A (en) * 2018-10-25 2019-03-19 惠州Tcl移动通信有限公司 The switching method and storage device of a kind of mobile device and its communication band
CN109640106A (en) * 2018-12-10 2019-04-16 网宿科技股份有限公司 A kind of method and device of the multi-source station switching of live broadcast system
CN110650214A (en) * 2019-10-21 2020-01-03 北京知道创宇信息技术股份有限公司 Agent method, device, electronic equipment and storage medium
CN111741319A (en) * 2020-06-23 2020-10-02 北京金山云网络技术有限公司 Live broadcast data processing method and device and electronic equipment
CN112039710A (en) * 2020-09-02 2020-12-04 曙光信息产业(北京)有限公司 Service fault processing method, terminal device and readable storage medium
CN113453047A (en) * 2021-07-02 2021-09-28 北京金山云网络技术有限公司 Resource request processing method and device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815022A (en) * 2009-02-20 2010-08-25 华为技术有限公司 Source switching method, device and system in peer-to-peer network
CN103067997A (en) * 2011-10-19 2013-04-24 中国电信股份有限公司 Method and device capable of judging whether terminal is switched between two wireless networks
CN109495936A (en) * 2018-10-25 2019-03-19 惠州Tcl移动通信有限公司 The switching method and storage device of a kind of mobile device and its communication band
CN109640106A (en) * 2018-12-10 2019-04-16 网宿科技股份有限公司 A kind of method and device of the multi-source station switching of live broadcast system
CN110650214A (en) * 2019-10-21 2020-01-03 北京知道创宇信息技术股份有限公司 Agent method, device, electronic equipment and storage medium
CN111741319A (en) * 2020-06-23 2020-10-02 北京金山云网络技术有限公司 Live broadcast data processing method and device and electronic equipment
CN112039710A (en) * 2020-09-02 2020-12-04 曙光信息产业(北京)有限公司 Service fault processing method, terminal device and readable storage medium
CN113453047A (en) * 2021-07-02 2021-09-28 北京金山云网络技术有限公司 Resource request processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105677719B (en) The management method and device of application program
US20160117079A1 (en) Method and apparatus for displaying application icons on terminal
US11129063B2 (en) Method, terminal and system for updating transmission paths
CN100462977C (en) Capture server, distribution server, method and system for generating webpage capture
CN109819285A (en) A kind of live broadcasting method, device, electronic equipment and storage medium
CN109257658A (en) A kind of live streaming even wheat method, apparatus and server
CN112492334A (en) Live video pushing method, device and equipment
US11051272B2 (en) Method for arranging broadcast message in operating system and electronic device
CN109117039B (en) Display method and terminal equipment
US10097292B2 (en) Method, device, terminal and storage medium for adjusting broadcast message queue
CN106775533B (en) Method, device and terminal for displaying information by using multiple screens
CN109089169A (en) Live broadcast room switching method and device and storage medium
CN111625690A (en) Object recommendation method, device, equipment and medium
CN104753929A (en) Content pushing method, server, terminal and system
CN110809170B (en) Time delay determination method and device, commodity link display method and device and server
CN102333280B (en) A kind of method, system and the Service Process Server of business cipher key renewal
CN108600780A (en) Method for pushed information
CN109688217B (en) Message pushing method and device and electronic equipment
CN112600897B (en) Multi-user access control method and device for intelligent equipment
CN109408737B (en) User recommendation method, device and storage medium
CN104581224A (en) Play content switching method and device and terminal
CN106330660B (en) Service processing method, server, and computer-readable storage medium
CN114201301A (en) Equipment control method, device and system and electronic equipment
WO2015067994A1 (en) Method and apparatus for automatic detection and selection of an alternative roaming provider
CN113992997A (en) Source station switching method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination