Stream medium data transmission system, transmission method and data distributing server
Technical field
The present invention relates to a kind of stream medium data transmission system, transmission method and data distributing server.
Background technology
Stream medium data is transmitted to will be by multilayer intermediate node during client terminal from data source.Intermediate node, in case subsequently using in being stored in local buffer area after decoding, sends to next node when the stream medium data of node-node transmission of data source or upper level is received after then the stream medium data of buffer area is encoded again.In this way, stream medium data in transmitting procedure, it is necessary to by repeatedly decoding, coding and repeatedly caching could be transmitted to client terminal, client terminal asks more long to the stand-by period for receiving stream medium data from stream medium data is sent.
The content of the invention
In view of this, it is necessary to which a kind of quickly stream medium data can transmission from data source to the stream medium data transmission system of client terminal, transmission method and data distributing server is provided.
A kind of stream medium data transmission system,Including multiple client terminals,Data source server and multiple data distributing servers,Multiple data distributing server framves constitute tree,Form multilayer content distribution nodes,Data source server is the root node of the tree,Client terminal is the leaf node of the tree,The local profile of each child node includes the address information of its father node and child node,Data source server is transmitted to the data distributing server being connected with data source server the IP address of the stream medium data and the client terminal when the stream medium data for receiving a client terminal is asked,Each data distributing server includes copied cells,Judging unit and Dispatching Unit,Whether the IP address of the client terminal that judging unit is transmitted according to father node judges the client terminal on the branch node of local data Distributor,Copied cells replicates the stream medium data when the client terminal is on its branch node,Dispatching Unit is transmitted to its child node until by the transmission of flow media data to the client terminal IP address of the stream medium data and the client when the client terminal is on the branch node of local data Distributor.
A kind of data distributing server,Multiple data distributing servers constitute the stream medium data transmission system of a tree with multiple client terminal machine data source servers,Data source server is the root node of the tree,Client terminal is the leaf node of the tree,Data source server is transmitted to the data distributing server being connected with data source server the IP address of the stream medium data and the client terminal when the stream medium data for receiving a client terminal is asked,The local profile of the data distributing server includes the address information of its father node and child node,The data distributing server also includes copied cells,Judging unit and Dispatching Unit,Whether the IP address of the client terminal that judging unit is transmitted according to father node judges the client terminal on the branch node of local data Distributor,Copied cells replicates the stream medium data when the client terminal is on its branch node,Dispatching Unit is transmitted to its child node the IP address of the stream medium data and the client when the client terminal is on the branch node of local data Distributor.
A kind of streaming media data transmission method, the method is applied in a stream medium data transmission system, multiple client terminals, data source server and multi-layer data Distributor frame are constituted tree by the stream medium data transmission system, data source server is the root node of the tree, client terminal is the leaf node of the tree, and the method comprising the steps of:The IP address of the stream medium data of request and the client terminal is transmitted to the data distributing server being connected with data source server when the stream medium data for receiving client terminal transmission is asked;Such as ask the client terminal of the stream medium data that the stream medium data is replicated on the branch node of local data Distributor and when not being the client terminal being connected with local data Distributor and the IP address of the stream medium data and the client terminal is transmitted to its child node;And as when the client terminal is the client terminal being connected with local data Distributor by the transmission of flow media data to the client terminal.
Above-mentioned stream medium data transmission system, transmission method and data distributing server can be by the stream medium datas while being replicated and being transmitted to child node when the stream medium data of father node transmission is received, so that without being stored to it before transmitting the stream medium data, saving the time for transmitting the stream medium data while subsequent distribution stream medium data is not influenceed.
Brief description of the drawings
The framework map of the stream medium data transmission system of the embodiment that Fig. 1 is provided for the present invention.
Fig. 2 is the module map of the data distributing server in Fig. 1.
The flow chart of the streaming media data transmission method of the embodiment that Fig. 3 is provided for the present invention.
Main element symbol description
Stream medium data transmission system |
100 |
Client terminal |
20 |
Data source server |
40 |
Data distributing server |
60 |
Judging unit |
62 |
Copied cells |
64 |
Dispatching Unit |
66 |
Storage element |
68 |
Streaming media data transmission method |
Step S502-S514 |
Following specific embodiment will further illustrate the present invention with reference to above-mentioned accompanying drawing.
Specific embodiment
The present invention is described in further detail below in conjunction with accompanying drawing.
Fig. 1 is referred to, a kind of stream medium data transmission system 100 includes multiple client terminals 20, data source server 40 and multiple data distributing servers 60.The frame of multiple data distributing servers 60 constitutes tree, forms multilayer content distribution nodes.Data source server 40 is the root node of the tree, and client terminal 20 is the leaf node of the tree.The local profile of each child node includes the address information of its father node and child node.The address information includes IP address and port numbers.Data distributing server 60 is used to that the stream medium data request of client terminal 20 to be transmitted to data source server 40 and be transmitted to client terminal 20 stream medium data from data source server 40.
Client terminal 20 sends first-class media data request and the IP address of client terminal 20 is sent to data source server 40 by multilayer content distribution nodes.Data source server 40 is transmitted to the data distributing server 60 being connected with data source server 40 IP address comprising the stream medium data asked of client terminal 20 and the client terminal 20 for asking the stream medium data when stream medium data request is received.
Fig. 2 is referred to, each data distributing server 60 includes judging unit 62, copied cells 64, Dispatching Unit 66 and storage element 68.Whether the IP address of the client terminal 20 that judging unit 62 is transmitted according to father node judges the client terminal 20 for asking the stream medium data on the branch node of local data Distributor 60.Copied cells 64 replicates the stream medium data when asking the client terminal 20 of the stream medium data on the branch node of local data Distributor 60.Dispatching Unit 66 is transmitted to its child node the IP address of the stream medium data and the client terminal 20 for seeking the stream medium data when asking the client terminal 20 of the stream medium data on the branch node of local data Distributor 60.Storage element 68 stores the stream medium data of duplication to the buffer area of local data Distributor 60, also the stream medium data is stored to the buffer area of local data Distributor 60 when asking the client terminal 20 of the stream medium data not on the branch node of local data Distributor 60, in case subsequently distributing the stream medium data again.So transmission is until the stream medium data is transferred to the client terminal 20 for asking the stream medium data.
In another embodiment, data source server 40 is also transmitted to the data distributing server 60 being connected with data source server 40 IP address of data source server 40 when stream medium data request is received.Dispatching Unit 66 is also transmitted to its child node the IP address of data source server 40 when asking the client terminal 20 of the stream medium data on the branch node of local content server.
Refer to Fig. 3, it is a kind of flow chart of streaming media data transmission method, the method is applied in a stream medium data transmission system 100, and multiple client terminals 20, data source server 40 and the frame of multi-layer data Distributor 60 are constituted tree by the stream medium data transmission system 100.Data source server 40 is the root node of the tree, and client terminal 20 is the leaf node of the tree.The streaming media data transmission method is used to from data source server 40 transmit stream medium data to client terminal 20, as follows should the step of the method includes.
Data source server 40 is transmitted to the data distributing server 60 being connected with data source server 40 IP address of the stream medium data of request and the client terminal 20 when the stream medium data for receiving the transmission of a client terminal 20 is asked(Step S502).
Whether judging unit 62 judges the client terminal 20 for asking the stream medium data on the branch node of local data Distributor 60(Step S504).
Such as ask the client terminal 20 of the stream medium data on the branch node of local data Distributor 60, flow goes to step S506;Such as ask the client terminal 20 of the stream medium data not on the branch node of local data Distributor 60, flow goes to step S512.
Copied cells 64 replicates the stream medium data(Step S506).
Storage element 68 stores the stream medium data to the buffer area of local data Distributor 60(Step S512).
Judging unit 62 judges whether the client terminal 20 of the request stream medium data is the client terminal 20 being connected with local data Distributor 60(Step S508).
The client terminal 20 for such as asking the stream medium data is not the client terminal 20 being connected with local data Distributor 60, flow to step S510;Otherwise flow is to step 514.
Dispatching Unit 66 transmits to its child node the IP address of the stream medium data and the client terminal 20 for asking the stream medium data(Step S510).
Its child node judge to ask again the stream medium data client terminal 20 whether on the branch node of local data Distributor 60 until untill the client terminal 20 of the request stream medium data is the client terminal 20 being connected with local content server.
Dispatching Unit 66 is by the transmission of flow media data to the client terminal 20 for asking the stream medium data(Step S514).
Data distributing server 60 in above-mentioned stream medium data transmission system 100 and streaming media data transmission method can be by the stream medium data while being replicated and being transmitted to child node when the stream medium data of father node transmission is received, so that without being stored to it before transmitting the stream medium data, saving the time for transmitting the stream medium data while subsequent distribution stream medium data is not influenceed.
Those skilled in the art will be appreciated that, implementation method above is intended merely to the explanation present invention, and be not used as limitation of the invention, as long as within spirit of the invention, the appropriate change and change made to above example all fall within the scope of disclosed in this invention.