CN101945100A - Digital house streaming media server and serving method - Google Patents
Digital house streaming media server and serving method Download PDFInfo
- Publication number
- CN101945100A CN101945100A CN2010102414978A CN201010241497A CN101945100A CN 101945100 A CN101945100 A CN 101945100A CN 2010102414978 A CN2010102414978 A CN 2010102414978A CN 201010241497 A CN201010241497 A CN 201010241497A CN 101945100 A CN101945100 A CN 101945100A
- Authority
- CN
- China
- Prior art keywords
- client
- file
- server
- cache
- module
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 238000004891 communication Methods 0.000 claims abstract description 12
- 230000015654 memory Effects 0.000 claims description 43
- 230000010365 information processing Effects 0.000 abstract 2
- 238000012544 monitoring process Methods 0.000 abstract 1
- 238000005516 engineering process Methods 0.000 description 5
- 230000002085 persistent effect Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 239000012634 fragment Substances 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a digital house streaming media server and a digital house streaming media serving method. The server comprises a communication module, an information processing module, a cache module and a file processing module, wherein the communication module is used for monitoring a specific port, waiting for a connection request sent by a client, receiving the request of the client, feeding back information and transmitting a streaming media file to the client; the information processing module is used for analyzing the information sent by the client to acquire the requirements of the client according to a communication protocol customized by the server and the client; the cache module is used for establishing a two-stage cache structure at the server, storing all the media files by a databank and updating and managing a cache; and the file processing module is used for processing and treating the media files stored at the server and operating the files. The scheme of the invention can reduce the waiting time of the client request and the load on the databank of the server at the same time and improve the service quality streaming media server when the files required by the client are searched for.
Description
Technical field
The present invention relates to digital home technical field, be specifically related to a kind of digital home streaming media server and method of servicing.
Background technology
Along with the development that deepens continuously of 3C integration technology, digital home becomes the focus that more people pay close attention to, and is that digital home's industry of core is developed rapidly with digital home's key technology.Under the drive of technical development and user's request, expectation fully is applied to the 3C integration technology each aspect of family.
Service application based on stream media technology is very extensive, as the playback of the excellent goal fragment of world cup, film appreciation, pop music appreciation etc.Digital home's streaming media service can be the user of digital home multimedia broadcasts such as online continual sound, image and animation is provided, and the user need not download to this locality in advance, just can play multiple media formats.
But compare with the non-stream medium, mainly there is following problem in streaming video: 1) the more network bandwidth of streaming video consumption; 2) user's convection type medium have the requirement of media quality: 3) time-delay of user's convection type medium is relatively more responsive.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of digital home streaming media server and method of servicing, can reduce the client requests stand-by period, alleviates the burden of server end database simultaneously, can improve the service quality of streaming media server end.
Purpose of the present invention is achieved by the following technical programs:
The invention provides a kind of digital home streaming media server, this server comprises:
Communication module is used to monitor particular port, and the wait client is sent connection request, receives client-requested and also returns feedback information, transmits files in stream media to client;
Message processing module is used for according to server end and the customized communication protocol of client, resolves the information that client sends over, and obtains client demand;
Cache module is used for setting up the two-level cache structure at server end, and preserves all media files by database, simultaneously buffer memory is carried out more new management;
Document processing module is used for the media file that is stored in server end is processed and handled, and carries out file operation.
Wherein, the two-level cache structure that described cache module is set up is carried out memory cache and hard disk cache to the focus file, and is preserved all media files by database.
Wherein, described cache module changes the media file that is kept in each buffer memory according to the variation of focus file popularity when buffer memory does not have redundant space.
Wherein, described cache module carries out piecemeal to the focus file, and its first content and filename and satellite information leave in the internal memory; Buffer memory is through the file of document processing module well cutting in the hard disk.
The present invention also provides a kind of digital home stream media service method, comprising:
Start server, described server has been set up the two-level cache structure;
Described server is monitored fixed port, receives client-requested;
Described server process described request specifically comprises:
Search the Hash table of safeguarding in the internal memory of server end earlier, if the file that finds client to need in Hash table, return data is given client immediately;
If do not find the file of client-requested in the Hash table, the hard disk directory search file to server end just returns to client if find, simultaneously the updating memory table.
Further, this method also comprises if do not find this document under the hard disk catalogue of server end, then removes to search database, if find the client that just file is returned to request this document in database, and upgrades hard disk cache.
Further, this method also comprises if do not find file in database, then writes and searches the failure daily record.
Technique scheme is as can be seen:
Because the embodiment of the invention adopts a kind of digital home's streaming media server framework based on two-level cache, therefore can be when searching the needed file of client, reduce the client requests stand-by period, alleviate the burden of server end database simultaneously, improve the service quality of streaming media server end.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use among the embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the general structure schematic diagram of server end of the present invention;
Fig. 2 is the structural representation of cache module of the present invention;
Fig. 3 is a method of servicing flow chart of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making all other embodiment that obtained under the creative work prerequisite.
Adopt server end framework among the present invention, can when searching the needed file of client, reduce the client requests stand-by period, alleviate the burden of server end database simultaneously, can improve the service quality of streaming media server end based on two-level cache.
Below in conjunction with accompanying drawing the present invention is elaborated respectively.
As shown in Figure 1, server provided by the invention comprises with lower module:
1) communication module: be used to monitor particular port, the wait client is sent connection request, receives client-requested and also returns to feedback informations such as client reception success or failure, transmits files in stream media to client;
2) message processing module: be used for according to server end and the customized communication protocol of client, resolve the information that client sends over, thereby obtain client demand;
3) cache module: be used for setting up the two-level cache structure at server end, the focus file is carried out memory cache and hard disk cache, and preserve all media files by database, like this can be when searching the needed file of client, reduce the client requests stand-by period, alleviate the burden of server end database simultaneously;
Simultaneously buffer memory is carried out more new management, promptly when buffer memory does not have redundant space, change media file in buffer memorys at different levels according to the variation of focus file popularity;
4) document processing module: be used for the media file that is stored in server end is processed and handled, and carry out some file operations, to satisfy the needs of system.
Framework of the present invention has comprehensively adopted pipeline-filter software architecture mode and layered model, and communication module inserts client-requested, and the intention that message processing module obtains client is put in request.
This message processing module is equivalent to the processing center of the filter in pipeline-filter pattern, and cache module, media file processing module and persistent object layer and data Layer combine and be equivalent to another big processing center, and this processing center has been divided into Business treatment, persistent object layer and the data Layer of being made up of cache module and document processing module by layered model again.Message processing module passes to this big processing center with the information of the file that needs are searched, the needed file of client is searched at cache module by system then, if file is not in buffer memory, but in database, will continue to visit following persistent object layer and data Layer, if find file, this document will pass to communication module and send back to client more earlier through the processing of document processing module before passing to communication module so.
Server end is to the two-level cache structure of focus file, and promptly the structure of cache module is as shown in Figure 2:
The buffer memory of internal memory level adopts a Hash table, mainly deposits first content of filename He these files of some focus files in this table, and about other information of this file, as size, access times, access time etc. at last.
The buffer memory of hard disk level is the file that buffer memory has passed through the document processing module well cutting, a complete file of from database, taking out, and its all partitioning portion all leaves in below this hard disk catalogue.And what deposit in the database is the absolute path of file, and this document may be distributed in each different file system.
Server end is monitored some fixed ports after starting always, and client just is connected to this port when sending connection request, then request queue is put in request.When request queue was not sky, server end started processing threads and goes to handle request.
The process of handling request is:
Search that Hash table of safeguarding in the internal memory of server end earlier, if the file that has found client to need in this table, return data is given client immediately;
If there is not the file of client-requested, some hard disk catalogues of the server end of arriving down to search this document, just return to client if find, simultaneously the updating memory table.If do not find this document, just remove to search database, if in database, find the client that just file is returned to request this document, and upgrade hard disk cache, do not search the failure daily record if in database, find just to write.
Fig. 3 is the workflow schematic diagram of native system, now in conjunction with a concrete example operation workflow of native system is carried out following explanation:
Suppose user end to server end demand file A, A then asks flow process as follows in internal memory level buffer memory:
1) server end is received request, and this document A is searched in beginning in internal memory;
2) in internal memory, find file A, first the content of the file A that preserves in the internal memory is beamed back relevant information in client and the updating memory, under hard disk cache, remainder is sent back to client then;
3) request finishes.
Suppose user end to server end demand file B, B then asks flow process as follows in hard disk level buffer memory:
1) server end is received request, and this document B is searched in beginning in internal memory;
2) do not find file B in the internal memory, forward locating file under the hard disk catalogue of appointment to;
3) in hard disk, find file B, directly the file of finding is beamed back client and updating memory level buffer memory;
4) request finishes.
Suppose user end to server end demand file C, C then asks flow process as follows in database:
1) server end is received request, and this document C is searched in beginning in internal memory;
2) do not find file C in the internal memory, forward locating file under the hard disk catalogue of appointment to;
3) do not find file C in the hard disk, connect, search database with database.
4) found file C in database, the file that finds is handled through document processing module, the file that will handle is beamed back client and is upgraded hard disk level buffer memory then;
5) request finishes.
Suppose user end to server demand file D, D then asks flow process as follows not in the file system of server admin:
1) server end is received request, and this document D is searched in beginning in internal memory;
2) do not find file D in the internal memory, forward locating file under the hard disk catalogue of appointment to;
3) do not find file D in the hard disk, connect, search database with database;
4) in database, do not find file D, return an order of searching failure, and write journal file;
5) request finishes.
Technique scheme as can be seen, owing to adopt server end framework among the present invention, therefore can when searching the needed file of client, reduce the client requests stand-by period based on two-level cache, alleviate the burden of server end database simultaneously, can improve the service quality of streaming media server end.
More than to a kind of digital home streaming media server and method of servicing that the embodiment of the invention provided, be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (7)
1. digital home's streaming media server is characterized in that, this server comprises:
Communication module is used to monitor particular port, and the wait client is sent connection request, receives client-requested and also returns feedback information, transmits files in stream media to client;
Message processing module is used for according to server end and the customized communication protocol of client, resolves the information that client sends over, and obtains client demand;
Cache module is used for setting up the two-level cache structure at server end, and preserves all media files by database, simultaneously buffer memory is carried out more new management;
Document processing module is used for the media file that is stored in server end is processed and handled, and carries out file operation.
2. digital home according to claim 1 streaming media server is characterized in that:
The two-level cache structure that described cache module is set up is carried out memory cache and hard disk cache to the focus file, and is preserved all media files by database.
3. digital home according to claim 1 and 2 streaming media server is characterized in that:
Described cache module changes the media file that is kept in each buffer memory according to the variation of focus file popularity when buffer memory does not have redundant space.
4. digital home according to claim 1 and 2 streaming media server is characterized in that:
Described cache module carries out piecemeal to the focus file, and its first content and filename and satellite information leave in the internal memory; Buffer memory is through the file of document processing module well cutting in the hard disk.
5. digital home's stream media service method is characterized in that, comprising:
Start server, described server has been set up the two-level cache structure;
Described server is monitored fixed port, receives client-requested;
Described server process described request specifically comprises:
Search the Hash table of safeguarding in the internal memory of server end earlier, if the file that finds client to need in Hash table, return data is given client immediately;
If do not find the file of client-requested in the Hash table, the hard disk directory search file to server end just returns to client if find, simultaneously the updating memory table.
6. digital home according to claim 5 stream media service method is characterized in that:
Also comprise if under the hard disk catalogue of server end, do not find this document, then remove to search database,, and upgrade hard disk cache if in database, find the client that just file is returned to request this document.
7. according to claim 5 or 6 described digital home stream media service methods, it is characterized in that:
Also comprise if in database, do not find file, then write and search the failure daily record.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102414978A CN101945100A (en) | 2010-07-30 | 2010-07-30 | Digital house streaming media server and serving method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102414978A CN101945100A (en) | 2010-07-30 | 2010-07-30 | Digital house streaming media server and serving method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101945100A true CN101945100A (en) | 2011-01-12 |
Family
ID=43436869
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010102414978A Pending CN101945100A (en) | 2010-07-30 | 2010-07-30 | Digital house streaming media server and serving method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101945100A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024442A (en) * | 2012-10-15 | 2013-04-03 | 中国海洋大学 | Family stream media server based on digital television network |
CN103562918A (en) * | 2011-06-06 | 2014-02-05 | 国际商业机器公司 | Interception of database queries for delegation to an in memory data grid |
CN105956063A (en) * | 2016-04-27 | 2016-09-21 | 华自科技股份有限公司 | Method and system for storing data of multiple detecting points |
CN109446172A (en) * | 2017-10-12 | 2019-03-08 | 贵阳朗玛信息技术股份有限公司 | Log storing method, read method and device |
CN114465989A (en) * | 2020-10-30 | 2022-05-10 | 京东方科技集团股份有限公司 | Streaming media data processing method, server, electronic device and readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101005371A (en) * | 2006-01-19 | 2007-07-25 | 思华科技(上海)有限公司 | Caching method and system for stream medium |
CN101232600A (en) * | 2008-03-04 | 2008-07-30 | 华为技术有限公司 | Device, system and method for providing order program contents |
-
2010
- 2010-07-30 CN CN2010102414978A patent/CN101945100A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101005371A (en) * | 2006-01-19 | 2007-07-25 | 思华科技(上海)有限公司 | Caching method and system for stream medium |
CN101232600A (en) * | 2008-03-04 | 2008-07-30 | 华为技术有限公司 | Device, system and method for providing order program contents |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103562918A (en) * | 2011-06-06 | 2014-02-05 | 国际商业机器公司 | Interception of database queries for delegation to an in memory data grid |
US10120897B2 (en) | 2011-06-06 | 2018-11-06 | International Business Machines Corporation | Interception of database queries for delegation to an in memory data grid |
US11281666B2 (en) | 2011-06-06 | 2022-03-22 | International Business Machines Corporation | Interception of database queries for delegation to an in memory data grid |
CN103024442A (en) * | 2012-10-15 | 2013-04-03 | 中国海洋大学 | Family stream media server based on digital television network |
CN105956063A (en) * | 2016-04-27 | 2016-09-21 | 华自科技股份有限公司 | Method and system for storing data of multiple detecting points |
CN105956063B (en) * | 2016-04-27 | 2019-03-15 | 华自科技股份有限公司 | The date storage method and system of more reconnaissance points |
CN109446172A (en) * | 2017-10-12 | 2019-03-08 | 贵阳朗玛信息技术股份有限公司 | Log storing method, read method and device |
CN114465989A (en) * | 2020-10-30 | 2022-05-10 | 京东方科技集团股份有限公司 | Streaming media data processing method, server, electronic device and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10657174B2 (en) | Systems and methods for providing identification information in response to an audio segment | |
US20200265489A1 (en) | Item Hub | |
EP2394435B1 (en) | Server-side support for seamless rewind and playback of video streaming | |
CN101410816B (en) | Background transcoding | |
US9407974B2 (en) | Segmenting video based on timestamps in comments | |
US7181444B2 (en) | System and process for searching a network | |
US8683009B2 (en) | Wireless synchronization between media player and host device | |
RU2343536C2 (en) | Mechanism of peer broadcasting of information content | |
CN102769638B (en) | A kind of download the method for file, Apparatus and system | |
US8726359B2 (en) | Method and system for content distribution management | |
CN101390080B (en) | Serving cached query results based on a query portion | |
US8280987B2 (en) | Cloud data persistence engine | |
US7908270B2 (en) | System and method for managing access to media assets | |
US20080046948A1 (en) | Creation, management and delivery of personalized media items | |
US11226930B2 (en) | Distributed file system with integrated file object conversion | |
US20100179973A1 (en) | Systems, methods, and computer programs for delivering content via a communications network | |
US20090320082A1 (en) | Method of delivering content data | |
US20120311080A1 (en) | Management of Downloads from a Network-Based Digital Data Repository | |
US8145727B2 (en) | Network accessible media object index | |
US20120109952A1 (en) | System, method, and computer program for remote management of digital content | |
CN104506643A (en) | Server of distributed storage system and data synchronizing method between servers | |
JP2007527575A (en) | Method and apparatus for synchronizing and identifying content | |
CN101945100A (en) | Digital house streaming media server and serving method | |
US20090100062A1 (en) | Playlist Resolver | |
US10664170B2 (en) | Partial storage of large files in distinct storage systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20110112 |