Summary of the invention
The invention provides a kind of multimedia service implementation method, system and device based on HTTP, bigger in order to solve prior art user capture amount, the problem that need wait for when realizing based on the multimedia service of HTTP.
The invention provides a kind of multimedia service implementation method based on HTTP, described method comprises:
Load-balanced server receives the multimedia service solicited message that client sends, and wherein carries the identification information of multimedia resource to be asked in this multimedia service solicited message;
According to described multimedia service solicited message, the code rate information of the multimedia resource of this identification information of preserving is carried in the described multimedia resource address information returns described client, and the Download Server that indication is determined provides described multimedia resource according to described code rate information to described client.
The invention provides a kind of multimedia service implement device based on HTTP, described device comprises:
Receiver module is used to receive the multimedia service solicited message that client sends, and wherein carries the identification information of multimedia resource to be asked in this multimedia service solicited message;
Module is provided, be used for according to described multimedia service solicited message, the code rate information of this multimedia resource of preserving is carried in the described multimedia resource address information returns described client, and the Download Server that indication is determined provides described multimedia resource according to described code rate information to described client.
The invention provides a kind of multimedia service based on HTTP and realize system, described system comprises:
Client is used for sending the multimedia service solicited message to load-balanced server, wherein carries the identification information of multimedia resource to be asked in this multimedia service solicited message;
Load-balanced server, be used for according to the multimedia service solicited message that receives, the code rate information of the multimedia resource of this identification information of preserving is carried in the described multimedia resource address information returns described client, and be defined as the Download Server that this client provides service;
Download Server is used for providing described multimedia resource according to described code rate information to described client.
The invention provides a kind of multimedia service implementation method, system and device based on HTTP, in this method when load-balanced server receives the multimedia service solicited message that client sends, identification information according to this multimedia resource, and be saved in the code rate information of every kind of multimedia resource, the code rate information of the multimedia resource of this identification information is carried at returns client in the address information, and the indication Download Server provides multimedia resource according to this code rate information to this client.Because the code rate information of in invention, in load-balanced server, preserving every kind of multimedia resource, therefore load-balanced server can be carried at this code rate information in the address information at multimedia resource place, and make Download Server return this multimedia resource to client according to this code rate information, thereby make bandwidth more smoothly avoid Rush Hour, the quantity of handling the concurrent user is provided, increase network utilization, and improve user experience.
Embodiment
In order to make technical problem to be solved by this invention, technical scheme and beneficial effect clearer, clear,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The present invention increases network utilization in order to improve the quantity of handling the concurrent user, and improves user experience, and a kind of multimedia service implementation method, system and device based on HTTP is provided.
Fig. 1 is the multimedia service implementation procedure schematic diagram based on HTTP provided by the invention, and this process may further comprise the steps:
S101: load-balanced server receives the multimedia service solicited message that client sends, and wherein carries the identification information of multimedia resource to be asked in this multimedia service solicited message.
Load-balanced server receives before the multimedia service solicited message of client transmission, and described method also comprises:
Receive the issue request of multimedia resource;
According to described issue request, obtain the code rate information and the preservation of multimedia resource to be released.
And the concrete code rate information of obtaining multimedia resource to be released in the present invention comprises:
Judge whether supplier provides its code rate information in this multimedia resource to be released;
When supplier provides its code rate information, obtain this code rate information,
Otherwise,, determine and obtain the code rate information of this multimedia resource according to the duration of this multimedia resource to be released and the byte number that comprises.
S102: according to described multimedia service solicited message, the code rate information of the multimedia resource of this identification information of preserving is carried in the described multimedia resource address information returns described client, and the Download Server that indication is determined provides described multimedia resource according to described code rate information to described client.
Described address information comprises uniform resource position mark URL information.Described client is initiated request according to the described URL information that receives to described Download Server.In addition, provided by the invention should not only can being applied in based on HTTP and realizing in the multiple systems of multimedia service, for example in the communication system based on the multimedia service implementation procedure of HTTP, TD SDMA (TD-SCDMA) system, perhaps code division multiple access (CDMA) 2000 systems etc.
Because the code rate information of in invention, in load-balanced server, preserving every kind of multimedia resource, therefore load-balanced server can be carried at this code rate information in the address information at multimedia resource place, and make Download Server return this multimedia resource to client according to this code rate information, thereby make bandwidth more smoothly avoid Rush Hour, the quantity of handling the concurrent user is provided, increase network utilization, and improve user experience.
Fig. 2 is that provided by the invention being somebody's turn to do based on the multimedia service of HTTP realized the system configuration schematic diagram, and this system comprises: client 11, load-balanced server 12 and Download Server 13.
Wherein, client 11 is used for sending the multimedia service solicited message to load-balanced server 12, wherein carries the identification information of multimedia resource to be asked in this multimedia service solicited message;
Load-balanced server 12, be used for according to the multimedia service solicited message that receives, the code rate information of the multimedia resource of this identification information of preserving is carried in the described multimedia resource address information returns described client, and be defined as the Download Server 13 that this client 11 provides service;
Download Server 13 is used for providing described multimedia resource according to described code rate information to described client 11.
When client 11 receive that load-balanced server 12 returns carry this multimedia resource address information of code rate information the time, be specially the URL information of this multimedia resource, client 11 is clicked this address information, initiate request to Download Server 13, carry this code rate information in this request, ask this multimedia resource.After Download Server 13 receives this request, provide this multimedia resource to client 11 according to the code rate information of carrying in this request.
Concrete, the code rate information of this every kind multimedia resource is kept in the load-balanced server in the present invention, for the ease of being saved in code rate information, in load-balanced server, preserve the identification information of every kind of multimedia resource and the corresponding relation of code rate information for any multimedia resource.
And load-balanced server 12 obtains the code rate information of this multimedia resource when issuing this multimedia resource in supplier.Concrete, (Content Management System CMS) 21 is published to content distributing network with this multimedia resource (Content Delivery Network, CDN) platform 10 by Content Management System in supplier.
CMS21 is published to CDN platform 10 with the content interface of multimedia resource by CDN platform 10 of issue, when CDN platform 10 receives the multimedia resource of this issue, judge that whether supplier provides its code rate information at the multimedia resource of this issue, when supplier provides its code rate information, obtain this code rate information, when supplier does not provide its code rate information, then, determine and obtain the code rate information of this multimedia resource according to the duration of this issuing multimedia resource and the byte number that comprises.Concrete load-balanced server 12 and Download Server 13 are arranged in this CDN platform 10.
When supplier issues this multimedia resource, can fill in the code rate information of this multimedia resource to be released, in order to carry this code rate information, code check field value of expansion in document entity content RKB, interface in the entity content release of CMS is also expanded this field value, and this code rate information can be carried in the field of expansion.When the CDN platform receives the multimedia resource of CSM issue, when load-balanced server monitors the interface of entity content release of CMS when empty, according to the duration of this multimedia resource to be released and the byte number that comprises, obtain the code rate information of this multimedia resource, load-balanced server is this code check value warehouse-in, and information that will this multimedia resource to be released writes the magnetic battle array.
After the CDN platform had been issued every kind of multimedia resource, the user can ask the multimedia resource issued on the CDN platform.The multimedia service solicited message that concrete client sends sends to load-balanced server, after load-balanced server receives this multimedia service solicited message, owing to can obtain the code rate information of the multimedia resource of each identification information, therefore load-balanced server adds this code rate information in the HTTP URL address information of returning to the user, and it feeds back to client with this address information.
After client receives HTTP URL address information, initiate request to the corresponding download server, Download Server is resolved the code rate information among this HTTP URL, reads the length of file such as buffer area, the give out a contract for a project issue speed etc. of size and per second at every turn according to the code rate information adjustment of resolving.
When downloading code rate information that server receives and be 1M, can determine that then per second sends out the packet of 128k K, the size that file is read in adjustment is 32K/ time, the size of giving out a contract for a project is 16K, packet sending speed is 160K/s, this packet sending speed can guarantee the smooth and easy broadcast of client, then need need read 5 secondary data to disk 1 second and enter into buffer area this moment, and the process of giving out a contract for a project per second is sent out 10 times.When downloading code rate information that server receives and be 4M, because the code check of 4M just in time needs per second to send out the packet of 512K, then can adjust and read file size is 128K/ time, the size of giving out a contract for a project is 64K, packet sending speed is 640K/s, then 1 second of this moment need read 5 secondary data to disk and enter into buffer area, the process of giving out a contract for a project is that per second is sent out 10 times.
Fig. 3 is a kind of multimedia service implement device structural representation based on HTTP provided by the invention, and described device comprises:
Receiver module 31 is used to receive the multimedia service solicited message that client sends, and wherein carries the identification information of multimedia resource to be asked in this multimedia service solicited message;
Module 32 is provided, be used for according to described multimedia service solicited message, the code rate information of this multimedia resource of preserving is carried in the described multimedia resource address information returns described client, and the Download Server that indication is determined provides described multimedia resource according to described code rate information to described client.
Described device also comprises:
Acquisition module 33 is used to receive the issue request of multimedia resource; According to described issue request, obtain the code rate information and the preservation of multimedia resource to be released.
Described acquisition module 33 is used for specifically judging whether this multimedia resource to be released supplier provides its code rate information; When supplier provides its code rate information, obtain this code rate information, otherwise, according to the duration of this multimedia resource to be released and the byte number that comprises, determine and obtain the code rate information of this multimedia resource.
This concrete device can be arranged in load-balanced server.
The invention provides a kind of multimedia service implementation method, system and device based on HTTP, in this method when load-balanced server receives the multimedia service solicited message that client sends, identification information according to this multimedia resource, and be saved in the code rate information of every kind of multimedia resource, the code rate information of the multimedia resource of this identification information is carried at returns client in the address information, and the indication Download Server provides multimedia resource according to this code rate information to this client.Because the code rate information of in invention, in load-balanced server, preserving every kind of multimedia resource, therefore load-balanced server can be carried at this code rate information in the address information at multimedia resource place, and make Download Server return this multimedia resource to client according to this code rate information, thereby make bandwidth more smoothly avoid Rush Hour, the quantity of handling the concurrent user is provided, increase network utilization, and improve user experience.
Above-mentioned explanation illustrates and has described a preferred embodiment of the present invention, but as previously mentioned, be to be understood that the present invention is not limited to the disclosed form of this paper, should not regard eliminating as to other embodiment, and can be used for various other combinations, modification and environment, and can in invention contemplated scope described herein, change by the technology or the knowledge of above-mentioned instruction or association area.And change that those skilled in the art carried out and variation do not break away from the spirit and scope of the present invention, then all should be in the protection range of claims of the present invention.