Research and Implementation of Storage Solutions in Disks of Proxy Server for Streaming Media

Author
XieYunYing
Advisor
WangZuoXuan
School
Jilin University
Major
Applied Computer Technology
Classification
TP368.5 Servers, workstations
Degree
Master's thesis
Year
2006
Downloads
110
Citations
0

Request the full text

Abstract

With the developments and popularizations of Internet technology,people need more and more streaming media. But the characters of streamingmedia, which are real time, high speed and high bandwidth, make the Internetresources can’t meet its requirements. The conflicts between the limitedInternet resources and wide applications of streaming media are more serious.There are several disadvantages in the traditional Client-Server service modeas follows: high delay and frequent dither when playing in clients;overloadof streaming media server;the blocks of network. So the proxy server forstreaming media is proposed in order to solve the problems above.On the other hand, the single disk can’t meet the requirements forstoring streaming media because of its character of large volume. Therequirements for storage have become more highly, so the storage solutionsact as a vital role in the proxy server system. RAID has the characters oflarge capability and high reliability, which makes it be the primary storagefacility;SCSI protocol can transfer with high speed, which makes it be thepreferred mode to link RAID.In this paper, we researched and implemented the storage solutions indisks of proxy server for streaming media based on the existent theories ofproxy server and storage in disks, using RAID as the storage facility andusing SCSI protocol. And we also implemented three cache technologies forstreaming media, they are const-length based segment, variant-length basedsegment and dynamic cache.We partition some space in disk to be Cache in order to improve theefficiency of the system. When streaming media is requested, it is searched inCache first, if found it will be sent to clients directly. We needn’t to get datafrom disks, which can reduce the cost of the system. If it is not found inCache, we will look for streaming media in disks. Then it is transferred intoCache after found and sent to clients. If it is not found in disks, the request istransferred to the original server to get data. Then the proxy server sends toclients the data coming from the original server, and store data in its disks.When writing data into disks, we write it into Cache first, and write it intodisks not at once but when the system is not busy. So we implemented theoperations to reading and writing requests in RAID.Considering the popularity degree, we used const-length based segment,variant-length based segment and dynamic cache technologies. We divide themedia into two parts during the transmission for sake of starting time, theformer small in size is called prefix, the later large in size is called suffix.Const-length based segment means we store the prefix. The prefix isdelivered to the client immediately when requested, then, the proxy requeststhe suffix from the original server and delivers the suffix to the client, whichreduces the delay time efficient.If the amount being requested of any streaming media reaches a certainvalue, it can be stored using variant-length based segment method. Theprinciple of this method is we divide the suffix into fixed length segments.The first one’s length is equal to its prefix’, each of the later segments isdouble of their previous segment.The data in Cache need to be replaced according to replacementalgorithm when the space is not enough. For const-length based segment, theone has smallest popularity will be replaced. The popularity is related to thesize and the number being requested of the segments: the larger one, thesmaller value of popularity;the bigger number, the bigger value of popularity.For variant-length based segment, we adopt segment-based replacement andLRU replacement policy. Calculate the cache value of the stored parts of themedia, and sort all replaceable segments according to the ascending cachevalue, then select the smallest one to replace.Dynamic cache ensures the continuous services to the clients, its lengthmust hold integer blocks and can accumulate the whole line of a batch, and itcan server all the clients in the batch. Its content varies according to the time,while size varies according to the number of clients. Some clients may quitduring the process and if there is only one client left, the proxy will withdrawthe dynamic cache and send data to the client directly. This method ensuresthe most popular media is served to the clients best.The suffix stored is replaced prior according to its replacement policywhen there is not enough space for dynamic cache. If there is no appropriatesuffix, the dynamic cache working will be replaced. We calculate the lifevalue of dynamic cache, select the dynamic cache whose life value is smallerand total length is longer than the data being requested to replace.Const-length based segment, variant-length based segment and dynamiccache relations, and they must be used combinable. Streaming media is givencorresponding cache space according to its popularity to improve theutilization rate of space in Cache and the quality of services to clients.A filter-driver-program is used to implement the cache technologies, andit is embedded into the driver program stacks of the system. It receives theIRP(I/O Request Packet) and analysis the information in IRP, then doesdifferent operations by using its functions such as Read(), Write() etc.Meanwhile, another procedure is used to monitor the requests and judgewhether the system is idle. If so, we transfer the new data from Cache todisks. We use a queue to record the new data, and add the latest data to thetail of the queue in turn. When the system is idle, we transfer the data fromthe head of the queue, and delete it after done. Let the next node be the headand operate it like that. The transaction will be interrupted if there is anyrequest during this period, and continued in the next idle time.The researches of storage solutions for streaming media have been getmore attention, and there are many solutions can be fulfilled. In this paper,we implement the storage in disks for streaming media based on the existenttheories, which is helpful for the further researches.

Table of contents

Chapter 1 Introduction 8-12 1.1 Background and Significance 8 1.2 research status 8-10 1.3 The main work 10-11 1.4 This paper is structured 11-12 streaming technology nbsp 12-26 2.1 streaming media basic principles; 12-13 2.2 streaming media technology development status quo 13 2.3 streaming media transmission 13-15 2.4 the Streaming Transfer Protocol 15 - 24 2.4.1 Real-time Transport Protocol RTP and RTCP 15-18 2.4.2 Real Time Streaming the Transfer Protocol RTSP (RFC2326) 18-23 2.4.3 Resource Reservation Protocol RSVP (RFC 2205) 23-24 2.5 the Streaming proxy server 24-26 Chapter RAID technology 26-32 <br / > 3.1 RAID technology basic content 26 3.2 RAID advantages 26-27 the 3.3 measure RAID performance indicators 27-28 3.4 RAID the basic structure and characteristics of the system 28-30 3.4.1 Typical RAID controller diagram 28-29 3.4.2 array management software architecture 29 -30 3.5 RAID disk read and write requests basic characteristics the 30-32 3.5.1 normal state of the read and write 30-31 3.5.2 Fault state read and write 31-32 Chapter SCSI protocol 32-37 4.1 SCSI development history 32 4.2 SCSI characteristics 32-33 4.3 SCSI structure 33-35 4.4 SCSI messages and commands 35-37 4.4.1 SCSI 35-36 4.2.2 SCSI command 36-37 Chapter disk storage method 37-61 5.1 given long segments (CONST-LENGTH BASED SEGMENT) 37-45 5.1.1 fixed-length segment size 37-38 5.1.2 fixed-length segments Management and Implementation 38-41 5.1.3 fixed-length segment replacement strategy 41-45 5.2 variable-length segment (VARIANT-LENGTH BASED SEGMENT) nbsp variable-length segment length; 45-51 5.2.1 determine to control 5.2.2 admittance, 45-46 46-47 5.2.3 change the long the segment cache value calculation 47-49 5.2.4 replacement policy 49-51 5.3 dynamic cache (DYNAMIC CACHING is) of 51-54 < br /> 5.3.1 Dynamic Cache length 52 5.3.2 dynamic cache admission control and replacement policy the 52-54 5.4 caching technology to achieve nbsp the structure and function of the program modules; 54-57 5.4.1 54-55 5.4.2 method 55-57 5.5 RAID disk array read write processing to achieve 57-61 5.5.1 of the read request processing 57-58 5.5.2 write request processing 58-59 5.5.3 data migration 59-61 Chapter VI summarizes the 61-62 References 62-63 summary for 63-66 ABSTRACT 66-69 Acknowledgements 69-70 tutors and Author 70

Related dissertations

  1. Research and Implementation of Streaming Media Proxy Cache
    LiSiHai ·Shandong University ·2007 ·Master's thesis
  2. Research and Implementation of Streaming Media Proxy Cache
    CaoDaZhou ·Jilin University ·2005 ·Master's thesis
  3. QoS Based Research and Implementation of Streaming Media Proxy Cache
    LiYanZuo ·Jilin University ·2006 ·Master's thesis
  4. Firewall and Log Analysis on Linux
  5. The architecture of B/S auto repair technical support system design and Implementation Based on
  6. Research of Streaming Data Scheduling Algorithm Base on P2P Network
    ZhaoDi ·Chengdu University of Technology ·2013 ·Master's thesis
  7. The Design of Disk Array Storage System Based on FPGA
    HuZuo ·Harbin Engineering University ·2013 ·Master's thesis
  8. Electronic Image Stabilization Method Based on Block Matching and Random Ferns
  9. Researching and Achieving for Prefecture-county Integrated of Dispatch Automation
    WangYuQin ·Shandong University ·2013 ·Master's thesis
  10. Design and implementation of remote monitoring terminal transportation vehicle
  11. Design and Implemention of Portable Recorder Base on PowerPC
    LiuWenJun ·Harbin Engineering University ·2012 ·Master's thesis
  12. Research and Implementation on IPv6Support Online Proxy Technology
    LiaoQingWei ·Harbin Institute of Technology ·2013 ·Master's thesis
  13. The Application of Streaming Transmission to the Three-dimensional Terrain Model
    WangWei ·Lanzhou Jiaotong University ·2013 ·Master's thesis
  14. Electronic Image Stabilization Based on Persistence of Vision Effect
  15. Research and Design of the I/O Schedule Module for RAID System
    LiuLiBo ·Shanghai Jiaotong University ·2007 ·Master's thesis
  16. Construction of the Large Database System for Communication Enterprises
  17. Online Examination System of Party Members and Cadres
    ZhaoPeng ·Shandong University ·2012 ·Master's thesis
  18. Research on Video Watermarking Technology for Streaming
  19. Design and Implementation of Iscsi Controller Based IOP8134X Processor
  20. Coding Algorithm Based on Repeat-Code and Binary-Matrix in RAID
    ZhuWeiWei ·Hunan University ·2011 ·Master's thesis