Font Size: a A A

Research And Realization Stream Management Based On Distributed Application

Posted on:2008-12-15Degree:MasterType:Thesis
Country:ChinaCandidate:Y GuFull Text:PDF
GTID:2178360215982500Subject:Communication and Information System
Abstract/Summary:PDF Full Text Request
Nowadays fast development and popularity of the internet provides strong market motion for development of stream media.Stream media becomes more popular increasingly.The development of stream media induces enormous demand for management software,which can not only watch video,but also process and operate multi-media stream.Network communications is complex and low effective due to diverse manufactory and system of equipment environment.Thus the new technology introduced urgently assures enhancement of high efficiency and suitability.So this paper put forward method of common network stream managment middleware,of which function includes some ordinary operation of stream data in the form of middle ware. This middleware can be easily developed again and suitable for many applications.The middleware is a kind of independent system software or service program.The distributed application software share the resource among different technology in virtue of the middleware.The middleware manages computer resource and network communications beyond OS of C/S.This Stream management middleware actual function includes:receicer,loader,sender,saver,caller and callbacker.Receiver:Receive data from network by Socket.The realization of network receive mode includs TCP(server mode and client mode),UDP(Unicast,Broadcast and Multicast).Loader:Read stream data form disk to memory at a certain rate.Sender:Send the received data to another IP.The realization of network send mode includs TCP(server mode and client mode),UDP(Unicast,Broadcast and Multicast).Saver:Save the received data in the disk.Caller:Application programs pull the data into the middleware.Callbacker:Data callbacks to application programs.Application programs operate the data according to needs.Receiver,loader,sender,saver,caller and callbacker must work on asynchronous mode--every module works in the form of a single thread.Because of the frequency of start and termination of the thread,it should adopt thread-pool method to mange threads in order to reduce the occupation of the system resource.In addition,every module ought to adopt dynamic management--malloc and free memory dynamically--to optimize memory occupation of the whole middleware.Because of the frequency of malloc and free memory,it should adopt memory-pool method to avoid memory fragments.This paper introduces core thought and realization of the stream management middleware.The design embodies the principles of high efficiency and security.It makes a further solution of optimization performance and evaluates its success.At the end,the paper sums up the whole working and puts forward the direction of further study and improved method.
Keywords/Search Tags:stream, efficiency, security, memory-pool, thread-pool
PDF Full Text Request
Related items