Background technology
Along with popularizing of Streaming Media, network transmission system faces the increasing pressure.The transmission of traditional network designs at the general data transmission and optimizes, but a lot of characteristics of Streaming Media, comprises that high bandwidth, real-time etc. challenge for traditional transmission.As present popular content distributing network, its root is suggested in order to transmit static page.A lot of relevant technology also tightly develop around the characteristic of static page and file.Current nearly all content distributing network provides the commercial city that the server of oneself is carried out layering, with convenient management.Specifically, content distributing network is divided into root server and Edge Server with the server of transmission network.The root server is for Edge Server provides data, and Edge Server directly provides service for the end user, forms layer structure.According to the difference of content distributing network scale, it is hundreds of even tens thousand of that the quantity of server can reach.
Real time flow medium is more and more welcome, estimates will be more general in the near future.Main content distributing network provides the commercial city to begin to provide the transmission support of real time flow medium.But their network architecture does not still break away from the influence of conventional transmission network.Specifically, they still keep strict hierarchy, have just added in order to support real time flow medium to inject the Media Stream that server is accepted the user.
As shown in Figure 3.Wherein S is data source, flows to the cloud transmission network by injecting the server I transmission medium.Suppose to have two cloud transmission server S1 and S2 to provide real-time stream to the user.According to prior art, S1 and S2 must obtain Media Stream from I, cause two paths IS1 and IS2 of transmission network.So from the flow direction of Media Stream, the transmission of Streaming Media of the prior art must strict process be injected server, the root service just can go to Edge Server, final incoming terminal user.A kind of like this framework is not optimum from the network transmission cost, can cause the waste of network transmission resource under many circumstances.
Summary of the invention
At above-mentioned defective, the cloud IaaS operating system platform and the flow-medium transmission method that the object of the present invention is to provide multiple spot to optimize, it can improve the Streaming Media efficiency of transmission, saves the network transmission cost, avoids network transmission resource transmission waste.
To achieve these goals, the invention provides a kind of flow-medium transmission method, comprising: inject server and receive the stream medium data that data source is uploaded, and described transmission of flow media data is arrived the cloud transmission network, this cloud transmission network comprises a plurality of cloud transmission servers; Described cloud transmission server receives the Streaming Media transmission request from client, determines best upstream cloud transmission server; Described cloud transmission server is from described best upstream cloud transmission server receiving stream media data and be forwarded to described client.
According to flow-medium transmission method of the present invention, determine that the step of best upstream cloud transmission server comprises:
The cloud transmission server is determined best upstream cloud transmission server according to the longest path of user or system's appointment, the cost of server-to-server and the state of upstream cloud transmission server.
According to flow-medium transmission method of the present invention, the cloud transmission server is determined in the step of best upstream cloud transmission server according to the longest path of user or system's appointment, the cost of server-to-server and the state of upstream cloud transmission server: the state of described upstream cloud transmission server comprises: the transmission state of the connection status of cloud transmission server and cloud transmission server.
According to flow-medium transmission method of the present invention, described method also comprises: described client is determined first cloud transmission server by additional DNS, if this first cloud transmission server just at the transport stream medium, then receives described stream medium data from this first cloud transmission server.
The corresponding cloud IaaS operating system platform that provides a kind of multiple spot to optimize of the present invention, described platform comprises:
Inject server, be used for receiving the stream medium data that data source is uploaded, and described transmission of flow media data is arrived the cloud transmission network, this cloud transmission network comprises a plurality of cloud transmission servers; The cloud transmission server be used for to receive the Streaming Media transmission request from client, determines best upstream cloud transmission server, and from described best upstream cloud transmission server receiving stream media data and be forwarded to described client; Client is used for to the transmission request of described cloud transmission server transmission Streaming Media and from described cloud transmission server receiving stream media data.
According to cloud IaaS operating system platform of the present invention, described cloud transmission server comprises: the path limiting module, for the longest path that receives user or system's appointment; Cost is measured module, is used for determining transmission cost according to the road strength length between the described cloud transmission server; The server state detection module is for detection of the state of upstream cloud transmission server; The cloud transmission engine is used for receiving the request that described client is sent, and determines described best upstream cloud transmission server according to the information that path limiting module, cost mensuration module, server state detection module are sent.
According to cloud IaaS operating system platform of the present invention, the state of described upstream cloud transmission server comprises: the transmission state of the connection status of cloud transmission server and cloud transmission server.
According to cloud IaaS operating system platform of the present invention, described client is determined first cloud transmission server by additional DNS, if this first cloud transmission server just at the transport stream medium, then receives described stream medium data from this first cloud transmission server.
The transmission of flow media data that the present invention uploads data source by the injection server arrives the cloud transmission network, and the cloud transmission server in the cloud transmission network receives the Streaming Media transmission request from client, determines best upstream cloud transmission server; Again from the receiving stream media data of cloud transmission server upstream, best upstream and be forwarded to client.Must be from injecting the mode that server obtains stream medium data with respect to cloud transmission servers all in the prior art, each cloud transmission server of the present invention can be selected suitable upstream server according to the broadcast situation of concrete Media Stream, if begun to transmit certain real-time media stream on the server, then it can provide the service of forwarding to other servers.Thereby reduced path-length, improved the Streaming Media efficiency of transmission, saved the network transmission cost, avoided network transmission resource transmission waste.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explaining the present invention, and be not used in restriction the present invention.
As shown in Figure 2, the cloud IaaSoperating system platform 100 that multiple spot of the present invention is optimized comprises and injectsserver 10,cloud transmission server 20,client 30 anddata source 40.
Injectserver 10, be used for receiving the stream medium data thatdata source 40 is uploaded, and transmission of flow media data is arrived the cloud transmission network, this cloud transmission network comprises a plurality ofcloud transmission servers 20.
Cloud transmission server 20 be used for to receive the Streaming Media transmission request fromclient 30, determines best upstream cloud transmission server, and from best upstream cloud transmission server receiving stream media data and be forwarded to client 30.Cloud transmission server 20 comprisespath limiting module 21,cost mensuration module 22, serverstate detection module 23 andcloud transmission engine 24, andpath limiting module 21 is used for receiving the longest path of user or system's appointment; Cost is measuredmodule 22 and is used for determining transmission cost according to the road strength length between thecloud transmission server 20; Serverstate detection module 23 also namely detects the connection status ofcloud transmission server 20 and the transmission state ofcloud transmission server 20 for detection of the state of upstream cloud transmission server;Cloud transmission engine 24 is used for receiving the request thatclient 30 is sent, and determines best upstream cloud transmission server according to the information thatpath limiting module 21,cost mensuration module 22, serverstate detection module 23 are sent.
Client 30 is used for to the 20 transmission Streaming Media transmission requests of cloud transmission server and fromcloud transmission server 20 receiving stream media data.
Core of the present invention iscloud transmission engine 24, and it is accepted user's requirement and carries out alternately with other assemblies, determines best upstream flow media server (upstream cloud transmission server) then.Path limiting module 21 is accepted the appointment of user or system and is determined longest path.The cost of server-to-server is to measuremodule 22 by cost to finish.The state of streaming media server is to determine that by serverstate detection module 23 connection between the server of each content distributing network is mounted or removes the renewal that all can cause state.
In one embodiment, when the new live broadcast stream that begins,client 30 is determined firstcloud transmission server 20 by additional DNS, if this firstcloud transmission server 20 is just at the transport stream medium, then from these firstcloud transmission server 20 receiving stream media data.Otherwisecloud transmission engine 24 will be determined best upstreamcloud transmission server 20, andcloud transmission engine 24 is determined all candidate upstreamcloud transmission servers 20 by inquiring about various server states.Wherein, all candidate upstreamcloud transmission servers 20 are all at this Media Stream of transmission.
A concrete Application Example of the cloud IaaS operating system platform that multiple spot of the present invention is optimized as shown in Figure 3, in Fig. 3, inject server I and be used for receiving the stream medium data that data source S uploads, and with transmission of flow media data to the cloud transmission network, cloud transmission server S1 obtains stream medium data from injecting server I, and cloud transmission server S2 obtains stream medium data from cloud transmission server S1, rather than obtains from injecting server I.Such two media delivery paths be by inject server I to cloud transmission server S1 and by cloud transmission server S1 to cloud transmission server S2.Cloud transmission server S2 to the path of cloud transmission server S1 less than cloud transmission server S2 under the situation of the path of injecting server I, with respect to the prior art among Fig. 1, path of the present invention and smaller, the network transmission cost is lower, the network pressure that injects server simultaneously is also less, does not influence the end user and experiences.Although the example that shows in Fig. 3 only has the simple scenario of single medium stream and two streaming media servers, if network size very big (such as hundreds of streaming media servers), the Media Stream of transmission a lot (such as thousands of Media Streams), optimization system structure of the present invention is obviously saved network cost more with respect to prior art.
Eachcloud transmission server 20 of the present invention can be selected suitable upstream server according to the broadcast situation of concrete Media Stream, if begun to transmit certain real-time media stream on a server, then it can provide the service of forwarding to other servers.Thereby reduced path-length, improved the Streaming Media efficiency of transmission, saved the network transmission cost, avoided network transmission resource transmission waste.
As shown in Figure 4, the present invention is corresponding to provide a kind of flow-medium transmission method, it is realized byplatform 100 as shown in Figure 2, this method comprises: step S401, inject server and receive the stream medium data that data source is uploaded, and with transmission of flow media data to the cloud transmission network, this cloud transmission network comprises a plurality of cloud transmission servers.This step realizes jointly by injectingserver 10 anddata source 40.
Step S402, cloud transmission server receive the Streaming Media transmission request from client, determine best upstream cloud transmission server.This step realizes bycloud transmission server 20.
Step S403, the cloud transmission server is from best upstream cloud transmission server receiving stream media data and be forwarded to client.This step realizes bycloud transmission server 20.
Preferably, among the step S402, determine that the step of best upstream cloud transmission server comprises: the cloud transmission server is determined best upstream cloud transmission server according to the longest path of user or system's appointment, the cost of server-to-server and the state of upstream cloud transmission server.The state of upstream cloud transmission server comprises: the transmission state of the connection status of cloud transmission server and cloud transmission server.
Preferably, flow-medium transmission method also comprises: client is determined first cloud transmission server by additional DNS, if this first cloud transmission server is just at the transport stream medium, then from these first cloud transmission server receiving stream media data.
The invention provides one and aim at the real time flow medium application and the server selection mechanism of design, its purpose is to save transmission cost, but does not influence end user's experience.Technological core is tree-shaped dynamically by the cloud transmission server is formed, and non-traditional layer structure.Each cloud transmission server can be selected suitable upstream server according to the broadcast situation of concrete Media Stream.If begun to transmit certain real-time media stream on the server, then it can provide the service of forwarding to other servers.In the above-described embodiments, for convenience, adopt path to represent transmission cost, but this simplification can not influence concrete application, because transmission cost can be considered other factors simultaneously, such as the geographical position etc.
In sum, the transmission of flow media data that the present invention uploads data source by the injection server arrives the cloud transmission network, and the cloud transmission server in the cloud transmission network receives the Streaming Media transmission request from client, determines best upstream cloud transmission server; Again from the receiving stream media data of cloud transmission server upstream, best upstream and be forwarded to client.Must be from injecting the mode that server obtains stream medium data with respect to cloud transmission servers all in the prior art, each cloud transmission server of the present invention can be selected suitable upstream server according to the broadcast situation of concrete Media Stream, if begun to transmit certain real-time media stream on the server, then it can provide the service of forwarding to other servers.Thereby reduced path-length, improved the Streaming Media efficiency of transmission, saved the network transmission cost, avoided network transmission resource transmission waste.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.