The cloud IaaS operating system platform of Multi point optimization and flow-medium transmission method
Technical field
The present invention relates to the communications field, particularly relate to cloud IaaS operating system platform and the flow-medium transmission method of Multi point optimization.
Background technology
Along with popularizing of Streaming Media, network transmission system faces the increasing pressure.Traditional Internet Transmission designs for general data transmission and optimizes, but a lot of characteristics of Streaming Media, comprise high bandwidth, real-time etc. and challenge to traditional transmission.As present popular content distributing network, its root is suggested to transmit static page.A lot of relevant technology also tightly develops around the characteristic of static page and file.Content distributing network nearly all now provides commercial city that the server of oneself is carried out layering, to facilitate management.Specifically, the server of transmission network is divided into root server and Edge Server by content distributing network.Root server is for Edge Server provides data, and Edge Server is directly for end user provides service, forms layer structure.According to the difference of content distributing network scale, the quantity of server can reach hundreds of even tens thousand of.
Real time flow medium is more and more welcome, estimates will be more general in the near future.Main content distributing network provides commercial city to start to provide the transmission support of real time flow medium.But their network architecture does not still depart from the impact of conventional transmission network.Specifically, they still maintain strict hierarchy, just inject server to accept the Media Stream of user to support real time flow medium to add.
As shown in Figure 3.Wherein S is data source, flows to cloud transmission network by injecting server I transmission medium.Suppose have two cloud transmission server S1 and S2 to provide real-time streams to user.Conventionally, S1 and S2 must obtain Media Stream from I, causes two paths IS1 and IS2 of transmission network.So from the flow direction of Media Stream, server is injected in necessary strict the passing through of transmission of Streaming Media of the prior art, and root service just can go to Edge Server, final incoming terminal user.A kind of like this framework becomes originally to say it is not optimum from Internet Transmission, can cause the waste of network transmission resource under many circumstances.
Summary of the invention
For above-mentioned defect, the object of the present invention is to provide cloud IaaS operating system platform and the flow-medium transmission method of Multi point optimization, it can improve streaming media efficiency, saves Internet Transmission cost, avoids network transmission resource to transmit waste.
To achieve these goals, the invention provides a kind of flow-medium transmission method, comprising: inject the stream medium data that server reception data source is uploaded, and by described transmission of flow media data to cloud transmission network, this cloud transmission network comprises multiple cloud transmission server; Described cloud transmission server receives the streaming media 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 state of the longest path that cloud transmission server is specified according to user or system, the cost of server-to-server and upstream cloud transmission server determines best upstream cloud transmission server.
According to flow-medium transmission method of the present invention, the state of the longest path that cloud transmission server is specified according to user or system, the cost of server-to-server and upstream cloud transmission server is determined in the step of best upstream cloud transmission server: the state of described upstream cloud transmission server comprises: the connection status of cloud transmission server and the transmission state of cloud transmission server.
According to flow-medium transmission method of the present invention, described method also comprises: described client determines first cloud transmission server by additional DNS, if this first cloud transmission server is just at transport stream media, then receive described stream medium data from this first cloud transmission server.
The corresponding cloud IaaS operating system platform that a kind of Multi point optimization is provided of the present invention, described platform comprises:
Inject server, for receiving the stream medium data that data source is uploaded, and by described transmission of flow media data to cloud transmission network, this cloud transmission network comprises multiple cloud transmission server; Cloud transmission server, for receiving the streaming media request from client, determine best upstream cloud transmission server, and be forwarded to described client from described best upstream cloud transmission server receiving stream media data; Client, for sending streaming media request and from described cloud transmission server receiving stream media data to described cloud transmission server.
According to cloud IaaS operating system platform of the present invention, described cloud transmission server comprises: path limiting module, for receiving the longest path that user or system are specified; Cost measures module, for determining transmission cost according to the road strength length between described cloud transmission server; Server state detection module, for detecting the state of upstream cloud transmission server; Cloud transmission engine, 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 connection status of cloud transmission server and the transmission state of cloud transmission server.
According to cloud IaaS operating system platform of the present invention, described client determines first cloud transmission server by additional DNS, if this first cloud transmission server is just at transport stream media, then receive described stream medium data from this first cloud transmission server.
The present invention is by injecting the transmission of flow media data data source uploaded of server to cloud transmission network, and the cloud transmission server reception in cloud transmission network, from the streaming media request of client, determines best upstream cloud transmission server; Be forwarded to client from the receiving stream media data of cloud transmission server upstream, best upstream again.The mode of stream medium data must be obtained from injection server relative to cloud transmission servers all in prior art, the present invention's each cloud transmission server can select suitable upstream server according to the broadcasting situation of concrete Media Stream, if a server has started to transmit certain real-time media stream, then it can provide to other servers the service of forwarding.Thus reduce path-length, improve streaming media efficiency, save Internet Transmission cost, avoid network transmission resource to transmit waste.
Accompanying drawing explanation
Fig. 1 is the one application schematic diagram of the stream media transmission system of prior art;
Fig. 2 is the system construction drawing of the cloud IaaS operating system platform of Multi point optimization of the present invention;
Fig. 3 is the schematic diagram of a kind of Application Example of the cloud IaaS operating system platform of Multi point optimization of the present invention;
Fig. 4 is the flow chart of flow-medium transmission method of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, 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 explain the present invention, be not intended to limit the present invention.
As shown in Figure 2, the cloud IaaS operating system platform 100 of Multi point optimization of the present invention, comprises and injects server 10, cloud transmission server 20, client 30 and data source 40.
Inject server 10, for receiving the stream medium data that data source 40 is uploaded, and by transmission of flow media data to cloud transmission network, this cloud transmission network comprises multiple cloud transmission server 20.
Cloud transmission server 20, for receiving the streaming media request from client 30, determine best upstream cloud transmission server, and be forwarded to client 30 from best upstream cloud transmission server receiving stream media data.Cloud transmission server 20 comprises path limiting module 21, cost measures module 22, server state detection module 23 and cloud transmission engine 24, the longest path that path limiting module 21 is specified for receiving user or system; Cost measures module 22 for determining transmission cost according to the road strength length between cloud transmission server 20; Namely server state detection module 23, for detecting the state of upstream cloud transmission server, also detects the connection status of cloud transmission server 20 and the transmission state of cloud transmission server 20; The request that cloud transmission engine 24 is sent for receiving client 30, and determine best upstream cloud transmission server according to the information that path limiting module 21, cost mensuration module 22, server state detection module 23 are sent.
Client 30, for sending streaming media request and from cloud transmission server 20 receiving stream media data to cloud transmission server 20.
Core of the present invention is cloud transmission engine 24, and it accepts the requirement of user and carries out alternately with other assemblies, then determines best upstream flow media server (upstream cloud transmission server).Path limiting module 21 accepts the appointment of user or system and determines longest path.The cost of server-to-server measures module 22 by cost to complete.The state of streaming media server is determined by server state detection module 23, and the connection between the server of each content distributing network is mounted or removes the renewal that can cause state.
In one embodiment, when new live a beginning plays stream, client 30 determines first cloud transmission server 20, if this first cloud transmission server 20 is just at transport stream media, then from these first cloud transmission server 20 receiving stream media data by additional DNS.Otherwise cloud transmission engine 24 will determine best upstream cloud transmission server 20, and cloud transmission engine 24 determines all candidate upstreams cloud transmission server 20 by inquiring about various server state.Wherein, all candidate upstream cloud transmission servers 20 are all at this Media Stream of transmission.
An embody rule embodiment of the cloud IaaS operating system platform of Multi point optimization of the present invention as shown in Figure 3, in figure 3, inject the stream medium data that server I is uploaded for receiving data source S, and by transmission of flow media data to cloud transmission network, cloud transmission server S1 obtains stream medium data from injection server I, and cloud transmission server S2 obtains stream medium data from cloud transmission server S1, instead of obtain from injection server I.Such two media transmission paths be by injection server I to cloud transmission server S1 and by cloud transmission server S1 to cloud transmission server S2.Cloud transmission server S2 is less than to when injecting the path of server I in the path of cloud transmission server S2 to cloud transmission server S1, relative to the prior art in Fig. 1, path of the present invention and smaller, Internet Transmission cost is lower, the network pressure simultaneously injecting server is also less, does not affect end user and experiences.Although the example shown in figure 3 only has the simple scenario of single medium stream and two streaming media servers, if network size very large (such as hundreds streaming media server), the Media Stream a lot (such as thousands of media stream) of transmission, optimization system structure of the present invention obviously saves network cost more relative to prior art.
The present invention's each cloud transmission server 20 can select suitable upstream server according to the broadcasting situation of concrete Media Stream, if a server has started to transmit certain real-time media stream, then it can provide to other servers the service of forwarding.Thus reduce path-length, improve streaming media efficiency, save Internet Transmission cost, avoid network transmission resource to transmit waste.
As shown in Figure 4, the present invention is corresponding provides a kind of flow-medium transmission method, it is realized by platform 100 as shown in Figure 2, the method comprises: step S401, inject the stream medium data that server reception data source is uploaded, and by transmission of flow media data to cloud transmission network, this cloud transmission network comprises multiple cloud transmission server.This step is realized jointly by injection server 10 and data source 40.
Step S402, cloud transmission server receives the streaming media request from client, determines best upstream cloud transmission server.This step is realized by cloud transmission server 20.
Step S403, cloud transmission server is from best upstream cloud transmission server receiving stream media data and be forwarded to client.This step is realized by cloud transmission server 20.
Preferably, in step S402, determine that the step of best upstream cloud transmission server comprises: the state of the longest path that cloud transmission server is specified according to user or system, the cost of server-to-server and upstream cloud transmission server determines best upstream cloud transmission server.The state of upstream cloud transmission server comprises: the connection status of cloud transmission server and the transmission state of cloud transmission server.
Preferably, flow-medium transmission method also comprises: client determines first cloud transmission server, if this first cloud transmission server is just at transport stream media, then from these first cloud transmission server receiving stream media data by additional DNS.
The invention provides a server aiming at real time flow medium application and design selects mechanism, its object to be save transmission cost, but does not affect end user and experience.Technological core is by cloud transmission server is formed tree-shaped dynamically, and unconventional layer structure.Each cloud transmission server can select suitable upstream server according to the broadcasting situation of concrete Media Stream.If a server has started to transmit certain real-time media stream, then it can provide to other servers the service of forwarding.In the above-described embodiments, for convenience, adopt path to represent transmission cost, but this simplification can not affect concrete application, because transmission cost can consider other factors simultaneously, such as geographical position etc.
In sum, the present invention is by injecting the transmission of flow media data data source uploaded of server to cloud transmission network, and the cloud transmission server reception in cloud transmission network, from the streaming media request of client, determines best upstream cloud transmission server; Be forwarded to client from the receiving stream media data of cloud transmission server upstream, best upstream again.The mode of stream medium data must be obtained from injection server relative to cloud transmission servers all in prior art, the present invention's each cloud transmission server can select suitable upstream server according to the broadcasting situation of concrete Media Stream, if a server has started to transmit certain real-time media stream, then it can provide to other servers the service of forwarding.Thus reduce path-length, improve streaming media efficiency, save Internet Transmission cost, avoid network transmission resource to transmit waste.
Certainly; the present invention also can have other various embodiments; when not deviating from the present invention's spirit and essence thereof; those of ordinary skill in the art are when making various corresponding change and distortion according to the present invention, but these change accordingly and are out of shape the protection range that all should belong to the claim appended by the present invention.