CN105554524B - A kind of method and system playing program - Google Patents
A kind of method and system playing program Download PDFInfo
- Publication number
- CN105554524B CN105554524B CN201510926455.0A CN201510926455A CN105554524B CN 105554524 B CN105554524 B CN 105554524B CN 201510926455 A CN201510926455 A CN 201510926455A CN 105554524 B CN105554524 B CN 105554524B
- Authority
- CN
- China
- Prior art keywords
- program
- playback terminal
- segment purpose
- description information
- segment
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/24—Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
- H04N21/2405—Monitoring of the internal components or processes of the server, e.g. server load
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/24—Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
- H04N21/2402—Monitoring of the downstream path of the transmission network, e.g. bandwidth available
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management 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/262—Content 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/26208—Content 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/4424—Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47202—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of method and system for playing program, which comprises program release manager PPM obtains the first segment purpose description information that at least one playback terminal request in the first presumptive area plays;The PPM determines that being stored with the first segment purpose first is sliced server PS according to the first segment purpose description information;Super node SN obtains first program from the first PS, and first program is relayed at least one playback terminal in first presumptive area.
Description
Technical field
The present invention relates to computer field, in particular to a kind of method and system for playing program.
Background technique
Currently, the most of website in China is by the way of centralized services, i.e., by server centered trustship in a data
It in center, provides uniform services to the user in the whole nation or even the whole world, carries out unified management.This mode has one on equipment management
Fixed convenience, but it is also inevitably present the technical issues of not can guarantee to the service quality of user, lead to the technology
Problem Producing reason may be: server handling ability is limited or the connection of limited bandwidth resources or user and server not
Stablize.
Summary of the invention
The embodiment of the present invention provides a kind of method and system for playing program, which is according to efficient, stable and flexible
Principle and design, be applied to live streaming media order program service, ensure that the service quality to user.
First aspect of the embodiment of the present invention provides a kind of method for playing program, which comprises
Program release manager PPM obtains the first segment that at least one playback terminal request in the first presumptive area plays
Purpose description information;
The PPM is determined according to the first segment purpose description information is stored with the slice of first segment purpose first service
Device PS;
Super node SN obtains first program from the first PS, and first program is relayed to described
At least one playback terminal in one presumptive area.
Second aspect of the embodiment of the present invention provides a kind of method for playing program, which comprises
The first segment purpose description information that first playback terminal request plays is sent to content by the first playback terminal
Router CR;
The CR determines the first TS, and the first segment purpose is retouched according to the loading condition of each tracking server TS
It states information and is sent to the first TS;
First TS is based on the first segment purpose description information, is determined as being playing the first segment purpose broadcasting
Terminal provides the first segment purpose network equipment;
First playback terminal obtains first program from the offer first segment purpose network equipment.
The third aspect of the embodiment of the present invention provides a kind of system for playing program, the system comprises:
Program release manager PPM, is used for: obtaining what at least one playback terminal request in the first presumptive area played
First segment purpose description information;Determine that being stored with the first segment purpose first is sliced according to the first segment purpose description information
Server PS;
Super node SN is used for: obtain first program from the first PS, and by first program relay to
At least one playback terminal in first presumptive area.
Fourth aspect of the embodiment of the present invention provides a kind of system for playing program, the system comprises:
First playback terminal, content router CR, tracking server TS;
Wherein, first playback terminal is used to the first segment purpose that first playback terminal request plays describing letter
Breath is sent to the CR;
The CR is used for according to the loading condition of each tracking server TS, determines the first TS, and by described first
The description information of program is sent to the first TS;
First TS is used for: being based on the first segment purpose description information, is determined as being playing first program
Playback terminal the first segment purpose network equipment is provided;
First playback terminal is used for: obtaining first program from providing in the first segment purpose network equipment.
The one or more technical solutions provided in the embodiment of the present invention, have at least the following technical effects or advantages:
The system provided in an embodiment of the present invention for playing program is designed according to efficient, stable and flexible principle,
Applied to live streaming media order program service.It is ensured that user's high speed watches the programme televised live of high definition in real time, while guaranteeing system
The module loading condition dynamic self-adapting pressure current according to system, guarantee the quality of service.System can be sudden
It can restore rapidly when systemic breakdown caused by irresistible factor, guarantee the stabilization and robustness of system.According to normal client and
The different demands of group user (cloud service), which can affix one's name to change by smaller part, is able to satisfy requirement, reserves corresponding functional interface and mould
Block guarantees the flexibility of system.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this
For the those of ordinary skill in field, without any creative labor, it can also be obtained according to these attached drawings
His attached drawing.
Fig. 1 is a kind of schematic diagram of system for playing program provided in an embodiment of the present invention;
Fig. 2 is the system schematic for starting the initialization process of the system in the embodiment of the present invention and being applicable in;
Fig. 3 is that PS live video issues the applicable system schematic of process in the embodiment of the present invention;
Fig. 4 is the flow chart of the method for the first broadcasting program provided in an embodiment of the present invention;
Fig. 5 is the flow chart of the method for second provided in an embodiment of the present invention broadcasting program;
Fig. 6 is the system diagram that the process that CR of the embodiment of the present invention expands is applicable in;
Fig. 7 is the system schematic that the process that TS of the embodiment of the present invention expands is applicable in;
Fig. 8 is the applicable system schematic of the fault-tolerant process of TS of the embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Referring to FIG. 1, Fig. 1 is a kind of schematic diagram of system for playing program provided in an embodiment of the present invention.The broadcasting section
Purpose system includes: resource network, access net, core net, P2P (Chinese: equity;English: Peer to Peer) network.
Wherein, there are more Taiwan investment source servers in resource network, such as: FTP (Chinese: File Transfer Protocol;English: File
Transfer Protocol) server, for providing request program in order program service;VS (Chinese: recording service device;English
Text: Video Server), for providing programme televised live in direct broadcast service.
It is provided with PPM (Chinese: program release manager in the core network;English: Programme Publish
Manager), it is additionally provided with PS (Chinese: slice server;English: Partition Server) cluster, RC (Chinese: resource control
Control server;English: Resource Controller).Wherein, PS cluster includes more PS.Particularly, for direct broadcast service,
It is provided with Live PPM (Chinese: programme televised live release manager in the core network;English: Live PPM).
TS (Chinese: tracking server is provided in access net;English: Tracking Server), CR (Chinese: content
Router;English: Content Router), SN (Chinese: super node;English: Super Node).
Each of P2P network playback terminal can serve as request program requestor and other playback terminals
Request makes a response, oneself will have been downloaded into local program and is supplied to other playback terminals.For convenience of management, P2P network
Coverage area can be divided into multiple regions, have multiple playback terminals in each region.
Each network equipment in the system of the broadcasting program provided in an embodiment of the present invention is briefly described below.
1) VS:
VS be responsible for receive acquisition programme televised live original signal and take suitable encoding scheme to be encoded, program with
The information of coding issues PS.
The feature list of VS:
Live streaming original program is acquired by picture pick-up device, while and recording original video program;
Suitable coding and decoding scheme is used to encode the original video of acquisition, audio signal;
The case where obtaining the information of PS cluster from RC, analyzing each PS in PS cluster, the server for selecting load pressure small
PSˊ.The data of TV station information belonging to VS, the coding and decoding information and Video coding that save destination name and program are sent
Give PS ˊ.
2) RC:
RC is the resource status control centre of system, collects the status information of modules, makes strategy for certain module
It determines to provide information.It is responsible for communicating with PS, SN, TS, CR.
Feature list:
RC and PS establishes long connection, and status information (CPU, Memory, the Network of each PS are collected by heartbeat message
Equal load pressures);
RC and SN establishes long connection, and status information (CPU, Memory, the Network of each SN are collected by heartbeat message
Equal load pressures);
RC and TS establishes long connection, updates PS-program mapping information to TS by heartbeat message;
RC and CR establishes long connection, updates program-peerlist mapping ruler information on CR by heartbeat message.
3) PS:
PS is responsible for obtaining the programme televised live of VS publication, and respective program stream is pushed to corresponding SN.
Feature list:
RC is actively connected after PS starting, and maintains long connection, the status information of oneself is reported by heartbeat message, including
The information such as the load of CPU, Memory, Network;
PS monitors the connection request that LPPM (i.e. Live PPM) is initiated, and receives the data that LPPM is sent;
The program data that initiates the connection and receive VS be broadcast live of the PS to VS;
PS monitors the connection of SN, and provides service to SN.
4) SN:
A region in one SN management P2P network, SN is responsible for obtaining the program stream of local area configuration of territory from PS, and gives
Client (i.e. playback terminal) in region provides direct broadcast service;
RC is actively connected after SN starting, and maintains long connection, the status information of oneself is reported by heartbeat message, including
The information such as the load of CPU, Memory, Network;
SN monitors the connection request that LPPM is sent, and receives the data that LPPM is sent;
SN is initiated the connection to PS, and receives the configured program data in one's respective area;
SN monitors the connection of Client, and provides direct broadcast service to Client.
5) CR:
CR is responsible for the access of playback terminal, inquires TS relevant to program for playback terminal.Long connection is established with RC, it is synchronous
RC database (English: database;Program-PS map information and program-TS mapping ruler letter inside referred to as: DB)
Breath.
Feature list:
RC is actively connected after CR starting, establishes synchronous with RCDB after connection, obtains corresponding program-PS map information, with
And the information such as program-TS mapping ruler;
CR monitors the connection of client, is responsible for receiving and handling the request of client;
CR obtains service client's by program-PS map information according to the description information of the client program sent
PS。
6)TS:
TS is responsible for playback terminal and provides service, and playback terminal is helped to establish the connection of P2P.Safeguard program-peerlist
Mapping relations.
After TS starting and RC establishes long connection, obtains program-PS map information from RC.
After Client connection TS, establishing peerlist for program, (i.e. peer list refers to and has currently downloaded program
The list of client), and it is another to this according to the corresponding peerlist of the description information of another client program sent lookup
client。
Long connection is established with client, by the status information of heartbeat timed collection client, and is timely updated
peerlist。
The initialization process for starting the system is described in detail below.Referring to FIG. 2, starting the initialization of the system
Process the following steps are included:
1. the walks: starting VS, opens corresponding port and monitors PS, DB is written in VS information configuration by LPPM;
2. the walks: starting RC module, RC open corresponding port and monitor LPPM, PS, SN;LPPM configures good corresponding in DB
Mapping relations, the mapping relations of PS (SN) and program;
3. the walks: actively establishing long connection after CR starting with RC, the description information and program-of all programs are obtained from RC
SN mapping ruler information is initialized and is saved in memory, and periodically reports state by heartbeat message, while listening for
The connection of Client;
4. the walks: actively establishing long connection after PS starting with RC, the status information of oneself is reported by heartbeat.Monitor LPPM
With the connection of SN;Long connection is actively established after SN starting with RC, the status information of oneself is reported by heartbeat.Monitor LPPM and
The connection of Client;
5. the walks: equally establishing long connection after TS starting with RC, obtain the information such as program-SN and initialized, and periodically
The state for reporting oneself monitors the connection of client;
6. the walks: after LPPM starting, reading all program phases that DB data or Administrator configuration system are broadcast live
Data information is closed to initialize two tables of data: (1) information of VS;(2) mapping relations of PS (SN) and programme televised live.
After the system starts and completes initialization, video distribution can be broadcast live.Next, being issued to live video
Process is described in detail.
It is PS live video publication process first.Referring to FIG. 3, PS live video publication process the following steps are included:
Step 1: LPPM actively connects RC, obtains all PS and SN information, distinguishes PS and SN according to rule;
Step 2: LPPM gets PS list, selects legal PS (i.e. the PS that LPPM has distributed legal PSID for it), and
And long connection is established with the PS for not setting up connection;
Step 3: LPPM to the PS for newly establishing connection sends UserInfo information, and (LPPM is wrapped for distinguishing PS and SN
Address information containing CR is for SN use), notify that its attribute is PS;
Step 4: PS receives the UserInfo information of LPPM transmission, judges its legitimacy, modifies oneself if legal
Attribute be PS, and reply result to LPPM, as a result include result code.If (identity of PS be it is undefined, receive
It is invalid that any order is all considered as);
Step 5: it after LPPM receives the replying message of PS, if PS modification attribute is unsuccessful, is followed according to error code
More than ring 1-4 step is successfully replied until receiving PS modification attribute;
LPPM periodically inquires the PS- program publishing table of oneself.Program if there is being allocated to PS is not issued, then judges this PS
Whether connect, if not connected, obtained PS list from RC, has established long connection and issue program request to PS;If
This PS has built up connection, and directly publication program is to PS;
PS receives the posting request of LPPM, carries out the initial work of respective live process, and reply result to
LPPM, success or failure, will unsuccessfully set corresponding error code;
LPPM receives the result information of PS, if it succeeds, this PS- program publication Success Flag is set to success, and
And notice RC publication program success, RC can be synchronized to CR, TS;If it fails, checking error code, corresponding operating and then secondary is done
Send posting request;
LPPM and PS establishes long connection, and by heartbeat message interaction, checks other side's survival condition.
PS abnormal conditions:
1) live streaming process in the road PS hangs, and PS notifies the road LPPM program to hang, and LPPM then notifies RC to delete this PS- program
Information is synchronized to CR and TS.
2) connection of PS and RC break or heartbeat timeout, then PS kills all live streaming processes, and exits, and LPPM is received
After the FIN of PS hair, modify the information of this PS, send the removal request of all programme informations of this PS to RC, RC be synchronized to CR and
TS。
3) connection of PS and LPPM is broken, and LPPM modifies the information of this PS, sends deleting for all programme informations of this PS to RC
Except request, RC is synchronized to CR and TS.
Process is issued followed by SN live video.
SN live video publication process is roughly the same with PS live video publication process, can refer to Fig. 3, difference is:
LPPM is sent in posting request to SN, it is only necessary to the information of InfoHash is filled in, because SN is to walk by the address of PS
The process of CR, TS, LPPM are not necessarily to send the address information of PS to SN.UserInfo information is required in SN live video publication process
The CR address information for including must be accurate.
Break certain program if necessary, then system execution is needed to break program process.Next, to program process is broken
It is described in detail.
The difference of LPPM correlation data table and DB, checks whether PS (SN) has the program being illegally broadcast live (there was only LPPM at present
It can just be checked in the case of restarting);
If PS (SN) has the program being illegally broadcast live, LPPM transmission is broken message and is given PS (SN), and PS (SN), which receives to break, to disappear
After breath, PS (SN) closes the direct broadcast service process, and result is replied to LPPM;
LPPM is received reply message after, break failure, then repeat the above process, if what is continuously received for 3 times replies message
All it is failure, then modifies tables of data (state that the road program is broadcast live in PS (SN) is changed to be broadcast live), RC is then notified to delete this road section
Purpose relevant information, RC are synchronized to CR and TS;
LPPM is received reply message after, break success, then modifying tables of data, (state that the road program is broadcast live in PS (SN) is changed to
Live streaming), then RC is notified to delete the relevant information of this road program, RC is synchronized to CR and TS.
It, can be with program request programme televised live after the system is broadcast live video distribution.Next, to program request programme televised live process
It is described in detail.
After Client starting initialization, with obtaining list and the CR of the description information of the configured program stream in one's respective area
Location;
The program that Client clicks viewing sends corresponding description information to CR, is retouched after the legitimacy of CR verifying program according to this
It states information and chooses suitable this domain TS by corresponding rule, return to the information such as its IP to Client;
Client is connected after receiving response message to corresponding TS initiation length and the heartbeat message of transmission timing, establishes connection
The description information of program is sent to TS afterwards, TS, which receives to search after the description information of program, is actively watching all of this program
client;
It is given according to the part peerlist and SN that certain policy selection obtains best (delay is most short, plays smooth)
Client;
Client is received to be initiated the connection according to the Peer of certain policy selection part Peer, Xiang Xuanzhong after peerlist and be obtained
Take program data;
If the Peerlist returned is sky or unavailable, initiated the connection to the SN of return;
Program data is sent to Client by SN.
Based on above-mentioned program request programme televised live process, the method for playing program the embodiment of the invention provides two kinds.Lower kept man of a noblewoman
First the first method for playing program is described in detail.
Referring to FIG. 4, Fig. 4 is the flow chart of the method for the first broadcasting program provided in an embodiment of the present invention.This method
Include:
Step 41: program release manager PPM obtains at least one playback terminal in the first presumptive area and requests to play
First segment purpose description information;
Step 42: the PPM is stored with the first segment purpose first according to first segment purpose description information determination
It is sliced server PS;
Step 43: super node SN obtains first program from the first PS, and first program is relayed
To at least one playback terminal in first presumptive area.
Optionally, the step 42 includes:
The PPM is stored with the first segment purpose PS list according to first segment purpose description information determination;
The PPM determines the first PS according to the loading condition of each PS in the PS list.
Specifically, the first presumptive area is any region in the multiple regions of the P2P network coverage.First presumptive area
It is interior to there is a playback terminal request to play the first program, there can also be multiple playback terminals to request to play the first program,
How many playback terminal in the first presumptive area counted and requests the first program by PPM, and obtains first segment purpose description letter
Breath.PPM is stored with first segment purpose PS (hereinafter referred to as the first PS) according to the determination of first segment purpose description information, finally, management
The SN of first presumptive area obtains the first program from the first PS, and the first program is transmitted in the first presumptive area and is requested
Play first segment purpose playback terminal.
Optionally, PPM according to first segment purpose description information may determine it is multiple be stored with first segment purpose PS, it is more
A first segment purpose PS that is stored with constitutes PS list, at this point, loading condition of the PPM according to PS each in PS list, from PS list
In each PS in determine the small PS of load pressure as the first PS.
Optionally, the method also includes:
Tracking server TS receives the notification message for supporting the playback terminal of download function to send, the notification message characterization
Second program is locally downloading by the playback terminal for supporting download function;
The TS obtains the description letter for the second program that at least one playback terminal request in the second presumptive area plays
Breath;
Description information of the TS based on the second program obtains institute from the playback terminal for supporting download function
Second program is stated, and the second program is relayed at least one playback terminal in second presumptive area.
Specifically, if playback terminal support download function, playback terminal after second program is locally downloading,
It can send a notification message to TS, in this way, which playback terminal TS, which has been known that in, is stored with second program.Second presumptive area
It is similar with the first presumptive area, it is any region in the multiple regions of the P2P network coverage.TS is counted to be had in the second presumptive area
How many a playback terminals request second program, and obtain the description information of second program.Then, TS is according to second program
Description information obtains second program from the playback terminal for be stored with second program, and second program is transmitted to second in advance
Determine the playback terminal that request in region plays second program.
Next the method for playing program to second first is described in detail.
Referring to FIG. 5, Fig. 5 is the flow chart of the method for second provided in an embodiment of the present invention broadcasting program.This method
Include:
Step 51: the first playback terminal sends the first segment purpose description information that first playback terminal request plays
Give content router CR;
Step 52: the CR determines the first TS according to the loading condition of each tracking server TS, and by the first segment
Purpose description information is sent to the first TS;
Step 53: the first TS is based on the first segment purpose description information, is determined as being playing the first segment
Purpose playback terminal provides the first segment purpose network equipment;
Step 54: first playback terminal obtains the first segment from the offer first segment purpose network equipment
Mesh.
Specifically, if the request of the first playback terminal plays the first program, the first playback terminal is by first segment purpose
Description information issues CR, and CR determines that the small TS of load pressure makees according to the loading condition of TS each in system from each TS
For the first TS, and first segment purpose description information is sent to the first TS.Then, the first TS describes to believe according to first segment purpose
Breath, determination are playing first segment purpose playback terminal, and then are determined as being playing first segment purpose playback terminal and provide the
The network equipment of one program, finally, the first playback terminal obtains the first program from the offer first segment purpose network equipment.
Optionally, the step 53 includes:
First TS determines the first list for being playing the first segment purpose playback terminal;
First TS is determined from the first list by the locally downloading playback terminal of the first segment mesh
Second list;
First TS determines that described second plays eventually according to the loading condition of playback terminal each in the second list
End, second playback terminal is the first segment purpose network equipment.
Specifically, the first TS is determined as being playing the first segment purpose playback terminal offer first segment purpose network equipment
Method may is that firstly, the first TS determines there is which playback terminal is locally downloading by first segment mesh, by the first program
Locally downloading playback terminal forms second list, and then, the first TS is according to the load of playback terminal each in second list
Situation determines the small playback terminal of load pressure as offer first segment purpose from each playback terminal in second list
The network equipment.
Optionally, the step 53 includes:
First TS is determined as being playing the first segment purpose playback terminal, and to provide the first segment purpose super
The third list of node SN;
First TS determines that the first SN, the first SN are according to the loading condition of each SN in the third list
For the first segment purpose network equipment.
Specifically, the first TS is determined as being playing the first segment purpose playback terminal offer first segment purpose network equipment
Method may is that firstly, it is which that the first TS, which is determined as being playing first segment purpose playback terminal to provide first segment purpose SN,
A bit, these SN form third list, and then, the first TS is according to the loading condition of SN each in third list, from third list
Each SN in determine the small SN of load pressure as providing the first segment purpose network equipment.
Next, carrying out Dynamic expansion, load balancing to the system provided in an embodiment of the present invention for playing program and being
Fault-tolerant process of uniting is described in detail.
1) CR expansion, load balancing and CR are fault-tolerant:
As access system Client is more and more, in order to improve service quality, expand CR quantity in one's respective area.
Referring to FIG. 6, the process that CR expands are as follows: actively connect RC after the CR2 starting newly increased, obtain the rendition list, section
Mesh-PS mapping relations.And it keeps synchronous with the DB of RC.The DB for being equal to CR2 does mirror image to the DB of CR1, and content is identical.
CR load balancing: after expanding CR, the CR that Client is accessed in system is an identical cluster, the broadcasting newly accessed
Terminal obtains CR list by the domain name mapping in this domain, and then clothes can be obtained in any one CR in this domain of Client random access
Business.Improve the speed of client response.
CR is fault-tolerant:
One, CR delay machine:
Due to synchronous when CR is with the DB of RC, content is identical.Therefore others CR can take over after a portion CR delay machine
Work, does not influence the normal operation of system.
Two, CR delay machine is restored:
Restore data to memory from disk after Step 1:CR restarting, actively connects RC, report oneself state.
Step 2:RC be collected into after the state of CR and local data relatively after, return to discrepant data to RC.
After Step 3:CR receives variance data, DB is updated, is updated successfully information to RC report.
Step 4:RC is received be updated successfully information after, CR can start to playback terminal provide service.
2) TS expansion, load balancing and TS are fault-tolerant:
Referring to FIG. 7, the process that TS expands are as follows: TS safeguards program-PS relationship, searches the corresponding Peerlist of program and gives
Client establishes the state that long connection updates Client with each Client, corresponding in order to improve with the increase of playback terminal
Speed increases TS quantity.
TS load balancing:
RC is actively connected after Step 1:TS2 starting, the state of TS2 is reported and obtains all programs, program-PS mapping is closed
It is (i.e. these contents are identical with TS1).
After Step 2:TS2 obtains program-PS content identical with TS1, reported to RC.It is (i.e. each that RC changes service regulation
TS how balancing service client) and to CR, the new rule of TS1, TS2 hair.
Step 3:TS2, which is received, only to be read TS2 by NFS file system by new service regulation after new rule and to service section
Purpose correlation peerlist is to memory.These information are solidificated in share directory by TS1, guarantee that the Client of new access TS2 is obtained
The peerlist of respective program.
Step 4:TS1 disconnect for regulation in new rule should in the Client that TS2 is serviced, Client again to
CR is initiated the connection, and CR returns to the address of TS2 according to new rule, and the service of TS2 can be obtained in Client.
Step 5: the client for newly accessing CR, CR return to the corresponding address TS to Client according to new rule.
Note: multiple TS in domain can share a program-peerlist mapping relations by NFS file system.Often
A TS can only change and (write) it and provide the corresponding peerlist of program of service.Each TS can read all programs inside NFS
Corresponding peerlist.
TS timing reports domain user to the demand information (hot information) of some programme televised live to RC, and RC reports each domain
The information of announcement is summarized, is arranged, and selects suitable domain to refer to when carrying out for LPPM and increase programme televised live copy.
After RC is handled the TS hot value reported by domain, is inquired when LPPM timing to RC and increase programme televised live copy
When request, RC returns to the temperature list of corresponding programme televised live, so that LPPM increase the decision of programme televised live copy.
LPPM increases SN programme televised live copy according to certain suitable domain of policy selection, and LPPM modification DB (adds into DB
Add a SN).
Start a SN, actively establishes long connection after SN starting with RC, the status information of oneself is reported by heartbeat.It monitors
The connection of LPPM and Client.
Walk the program publication process of SN.
TS is fault-tolerant:
The program stored on all TS in one's respective area-PS mapping relations are identical, and are protected by NFS file system
TS has identical program-peerlist mapping relations in card one's respective area.
Referring to FIG. 8, TS delay machine: if TS2 delay machine.RC is detected by heartbeat message and is sent after TS2 delay machine to CR, TS1
New service regulation.It allows TS1 to read the information such as program-peerlist of TS2 from NFS, TS1 is enable to provide for all programs
Service, this obtains being serviced after service client reconnects CR in TS1 on TS2.
TS delay machine is restored: the process that the system that reenters after TS2 is restarted provides the process of service and TS expands is identical.
3) PS (SN) expansion, load balancing and PS (SN) are fault-tolerant:
Step 1: restart PS (SN).
Long connection is actively established after Step 2:PS (SN) starting with RC, the status information of oneself is reported by heartbeat.It monitors
The connection of LPPM and SN (client)
Step 3: the publication process of PS (SN) is walked.
4) RC expansion, load balancing and RC are fault-tolerant:
RC uses two-node cluster hot backup, and guest machine takes over service immediately after host delay machine therein, does not influence the normal fortune of system
Row.
The system provided in an embodiment of the present invention for playing program is designed according to efficient, stable and flexible principle,
Applied to live streaming media order program service.It is ensured that user's high speed watches the programme televised live of high definition in real time, while guaranteeing system
The module loading condition dynamic self-adapting pressure current according to system, guarantee the quality of service.System can be sudden
It can restore rapidly when systemic breakdown caused by irresistible factor, guarantee the stabilization and robustness of system.According to normal client and
The different demands of group user (cloud service), which can affix one's name to change by smaller part, is able to satisfy requirement, reserves corresponding functional interface and mould
Block guarantees the flexibility of system.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (12)
1. a kind of method for playing program, which is characterized in that the described method includes:
Program release manager PPM obtains the first segment purpose that at least one playback terminal request in the first presumptive area plays
Description information;
The PPM determines that being stored with the first segment purpose first is sliced server according to the first segment purpose description information
PS;
Super node SN obtains first program from the first PS, and first program is relayed to described first in advance
Determine at least one playback terminal in region;
Programme televised live release manager LPPM and PS establishes long connection, receives the extension that PS is sent and message, and hangs according to described
Message sends to resource control service device RC and deletes message, and is synchronized to content router CR and tracking server TS, wherein institute
It states extension and message and be used to indicate the road PS program to hang, the deletions message, which is used to indicate the RC, deletes the PS- program and believe
Breath.
2. the method as described in claim 1, which is characterized in that the method also includes:
Tracking server TS receives the notification message for supporting the playback terminal of download function to send, the notification message characterization second
Program is locally downloading by the playback terminal for supporting download function;
The TS obtains the description information for the second program that at least one playback terminal request in the second presumptive area plays;
Description information of the TS based on the second program obtains described the from the playback terminal for supporting download function
Two programs, and the second program is relayed at least one playback terminal in second presumptive area.
3. the method as described in claim 1, which is characterized in that the PPM is determined according to the first segment purpose description information
It is stored with the first PS of first segment purpose, comprising:
The PPM is stored with the first segment purpose PS list according to first segment purpose description information determination;
The PPM determines the first PS according to the loading condition of each PS in the PS list.
4. a kind of method for playing program, which is characterized in that the described method includes:
The first segment purpose description information that first playback terminal request plays is sent to content routing by the first playback terminal
Device CR;
The CR determines the first TS, and the first segment purpose is described to believe according to the loading condition of each tracking server TS
Breath is sent to the first TS;
First TS is based on the first segment purpose description information, is determined as being playing the first segment purpose playback terminal
The first segment purpose network equipment is provided;
First playback terminal obtains first program from the offer first segment purpose network equipment;
The method also includes:
Expand the quantity of CR, the database of the CR of expansion and the database of original CR do mirror image;
The first segment purpose description information that first playback terminal request plays is sent to content routing by the first playback terminal
Device CR, comprising:
The first segment purpose description information that first playback terminal request plays is sent to arbitrarily by first playback terminal
One CR.
5. method as claimed in claim 4, which is characterized in that the first TS is determined as being playing the first segment purpose
Playback terminal provides the first segment purpose network equipment, comprising:
First TS determines the first list for being playing the first segment purpose playback terminal;
First TS is determined from the first list by the second of the locally downloading playback terminal of the first segment mesh
List;
First TS determines the second playback terminal according to the loading condition of playback terminal each in the second list, described
Second playback terminal is the first segment purpose network equipment.
6. method as claimed in claim 4, which is characterized in that the first TS is determined as being playing the first segment purpose
Playback terminal provides the first segment purpose network equipment, comprising:
First TS is determined as being playing the first segment purpose playback terminal offer first segment purpose super node
The third list of SN;
First TS determines the first SN, the first SN is institute according to the loading condition of each SN in the third list
State the first segment purpose network equipment.
7. a kind of system for playing program, which is characterized in that the system comprises:
Program release manager PPM, is used for: obtaining at least one playback terminal request in the first presumptive area plays first
The description information of program;It is determined according to the first segment purpose description information and is stored with the slice of first segment purpose first service
Device PS;
Super node SN is used for: obtaining first program from the first PS, and first program is relayed to described
At least one playback terminal in first presumptive area;
Programme televised live release manager LPPM, is used for: establishing long connection with PS, receives the extension that PS is sent and message, and according to institute
It states extension and message to resource control service device RC transmission deletion message, and be synchronized to content router CR and tracking server TS,
Wherein, it is described hang message and be used to indicate the road PS program hang, the deletions message is used to indicate the RC deletion PS-
Programme information.
8. system as claimed in claim 7, which is characterized in that the system also includes:
Tracking server TS, for receiving the notification message for supporting the playback terminal of download function to send, the notification message table
It is locally downloading by the playback terminal for supporting download function to levy second program;It obtains in the second presumptive area at least
The description information for the second program that one playback terminal request plays;Based on the description information of the second program, from the branch
It holds and obtains the second program in the playback terminal of download function, and the second program is relayed to second presumptive area
At least one interior playback terminal.
9. system as claimed in claim 7, which is characterized in that the PPM is used for:
The first segment purpose PS list is stored with according to first segment purpose description information determination;According in the PS list
The loading condition of each PS determines the first PS.
10. a kind of system for playing program characterized by comprising
Content router CR, first playback terminal tracking server TS, expands CR, the database of the CR of expansion and original CR
Database do mirror image;
Wherein, first playback terminal is used to send out the first segment purpose description information that first playback terminal request plays
Give the CR;
The CR is used for according to the loading condition of each tracking server TS, determines the first TS, and by first program
Description information be sent to the first TS;
First TS is used for: being based on the first segment purpose description information, is determined as being playing the first segment purpose and broadcast
It puts terminal and the first segment purpose network equipment is provided;
First playback terminal is used for: obtaining first program from providing in the first segment purpose network equipment;
First playback terminal is specifically used for: the first segment purpose description information that first playback terminal request plays is sent out
Give any one CR.
11. system as claimed in claim 10, which is characterized in that the first TS is used for:
Determine the first list for being playing the first segment purpose playback terminal;
It determines from the first list by the second list of the locally downloading playback terminal of the first segment mesh;
According to the loading condition of playback terminal each in the second list, the second playback terminal is determined, described second plays eventually
End is the first segment purpose network equipment.
12. system as claimed in claim 10, which is characterized in that the first TS is used for:
It is determined as being playing the first segment purpose playback terminal and the third column of the first segment purpose super node SN is provided
Table;
According to the loading condition of each SN in the third list, determine that the first SN, the first SN are first program
The network equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510926455.0A CN105554524B (en) | 2015-12-14 | 2015-12-14 | A kind of method and system playing program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510926455.0A CN105554524B (en) | 2015-12-14 | 2015-12-14 | A kind of method and system playing program |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105554524A CN105554524A (en) | 2016-05-04 |
CN105554524B true CN105554524B (en) | 2019-03-12 |
Family
ID=55833429
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510926455.0A Active CN105554524B (en) | 2015-12-14 | 2015-12-14 | A kind of method and system playing program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105554524B (en) |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101282281B (en) * | 2007-04-03 | 2011-03-30 | 华为技术有限公司 | Medium distributing system and apparatus as well as flow medium play method |
CN102231762B (en) * | 2011-08-12 | 2014-03-19 | 乐视网信息技术(北京)股份有限公司 | Peer-to-peer (p2p) server architecture capable of being unlimitedly and horizontally expanded |
US9531802B2 (en) * | 2011-11-10 | 2016-12-27 | Kabushiki Kaisha Square Enix | Data transmission and reception system |
-
2015
- 2015-12-14 CN CN201510926455.0A patent/CN105554524B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105554524A (en) | 2016-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10033548B2 (en) | Method, system, service selection entity, and service management entity for selecting service provision entity | |
US8112479B2 (en) | Method, system and device for establishing a peer to peer connection in a P2P network | |
CN107861686B (en) | File storage method, server and computer readable storage medium | |
EP2874378B1 (en) | Apparatus for performing server handoff in a name-based content distribution system | |
CN102333029B (en) | Routing method in server cluster system | |
US9432452B2 (en) | Systems and methods for dynamic networked peer-to-peer content distribution | |
CN108307198B (en) | Flow service node scheduling method and device and scheduling node | |
US20130007253A1 (en) | Method, system and corresponding device for load balancing | |
US10848586B2 (en) | Content delivery network (CDN) for uploading, caching and delivering user content | |
CN112437329B (en) | Method, device and equipment for playing video and readable storage medium | |
EP2709337B1 (en) | Service data processing method, device and system | |
CN104717314A (en) | IP management method and system, client-side and server | |
WO2011138359A1 (en) | Content delivery over a peer-to-peer network | |
CN107306279B (en) | Data processing method, content distribution network node and resident gateway | |
CN112596911A (en) | Automatic operation and maintenance method and system for high-availability distributed system | |
CN114466344A (en) | Edge cloud discovery and selection method suitable for wireless self-organizing network environment | |
EP3868071B1 (en) | Distributed state recovery in a system having dynamic reconfiguration of participating nodes | |
US9015371B1 (en) | Method to discover multiple paths to disk devices cluster wide | |
CN105554524B (en) | A kind of method and system playing program | |
CN109547508B (en) | Method, device and system for realizing resource access | |
CN114866854B (en) | Video access mode dynamic allocation method, system, electronic equipment and storage medium | |
CN114124797B (en) | Server routing method and device, electronic equipment and storage medium | |
CN110555040A (en) | Data caching method and device and server | |
JP2007527067A (en) | Hierarchical distribution of UI assets | |
CN110191346B (en) | Cloud management method and device and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |