WO2000057635A1 - Multimedia server - Google Patents

Multimedia server Download PDF

Info

Publication number
WO2000057635A1
WO2000057635A1 PCT/EP2000/001888 EP0001888W WO0057635A1 WO 2000057635 A1 WO2000057635 A1 WO 2000057635A1 EP 0001888 W EP0001888 W EP 0001888W WO 0057635 A1 WO0057635 A1 WO 0057635A1
Authority
WO
WIPO (PCT)
Prior art keywords
bit rate
streams
stream
data
class
Prior art date
Application number
PCT/EP2000/001888
Other languages
French (fr)
Inventor
Johannes H. M. Korst
Pascal F. A. Coumans
Original Assignee
Koninklijke Philips Electronics N.V.
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Koninklijke Philips Electronics N.V. filed Critical Koninklijke Philips Electronics N.V.
Priority to EP00909311A priority Critical patent/EP1080577A1/en
Priority to JP2000607406A priority patent/JP2002540545A/en
Publication of WO2000057635A1 publication Critical patent/WO2000057635A1/en

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10009Improvement or modification of read or write signals
    • G11B20/10481Improvement or modification of read or write signals optimisation methods
    • G11B20/10509Improvement or modification of read or write signals optimisation methods iterative methods, e.g. trial-and-error, interval search, gradient descent or feedback loops
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/002Programmed access in sequence to a plurality of record carriers or indexed parts, e.g. tracks, thereof, e.g. for editing
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/232Content retrieval operation locally within server, e.g. reading video streams from disk arrays
    • H04N21/2326Scheduling disk or memory reading operations
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/1062Data buffering arrangements, e.g. recording or playback buffers
    • G11B2020/10675Data buffering arrangements, e.g. recording or playback buffers aspects of buffer control
    • G11B2020/10703Data buffering arrangements, e.g. recording or playback buffers aspects of buffer control processing rate of the buffer, e.g. by accelerating the data output
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10TECHNICAL SUBJECTS COVERED BY FORMER USPC
    • Y10STECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10S707/00Data processing: database and file management or data structures
    • Y10S707/99931Database or file accessing
    • Y10S707/99932Access augmentation or optimizing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10TECHNICAL SUBJECTS COVERED BY FORMER USPC
    • Y10STECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10S707/00Data processing: database and file management or data structures
    • Y10S707/99931Database or file accessing
    • Y10S707/99933Query processing, i.e. searching
    • Y10S707/99936Pattern matching access
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10TECHNICAL SUBJECTS COVERED BY FORMER USPC
    • Y10STECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10S707/00Data processing: database and file management or data structures
    • Y10S707/99941Database schema or data structure
    • Y10S707/99942Manipulating data structure, e.g. compression, compaction, compilation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10TECHNICAL SUBJECTS COVERED BY FORMER USPC
    • Y10STECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10S707/00Data processing: database and file management or data structures
    • Y10S707/99941Database schema or data structure
    • Y10S707/99944Object-oriented database structure
    • Y10S707/99945Object-oriented database structure processing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10TECHNICAL SUBJECTS COVERED BY FORMER USPC
    • Y10STECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10S707/00Data processing: database and file management or data structures
    • Y10S707/99941Database schema or data structure
    • Y10S707/99948Application of database or data structure, e.g. distributed, multimedia, or image

Definitions

  • the invention relates to a system for retrieving blocks of data, such as audio and/or video, from a storage medium and supplying the blocks in the form of a plurality of streams to users, wherein a stream of a first class of the streams may have an actual bit rate between a first minimum bit rate and a first maximum bit rate, the first minimum bit rate and the first maximum bit rate potentially being identical thus yielding a first constant bit rate, wherein a stream of a second class of the streams may have an actual bit rate between a second minimum bit rate and a second maximum bit rate, the second minimum bit rate and the second maximum bit rate potentially being identical thus yielding a first constant bit rate, and wherein the first maximum bit rate is substantially higher than the second maximum bit rate, the system comprising: for each stream an associated buffer for storing the blocks of data; a reader for in a sweep reading a data block from the storage medium for each stream of a selected group of the streams and for storing the read blocks in the respective buffers; and a scheduler for repeatedly selecting the group of the streams for
  • the invention further relates to a method of retrieving blocks of data, such as audio and/or video, from a storage medium and supplying the blocks in the form of a plurality of streams to users, wherein a stream of a first class of the streams may have an actual bit rate between a first minimum bit rate and a first maximum bit rate, the first minimum bit rate and the first maximum bit rate potentially being identical thus yielding a first constant bit rate, wherein a stream of a second class of the streams may have an actual bit rate between a second minimum bit rate and a second maximum bit rate, the second minimum bit rate and the second maximum bit rate potentially being identical thus yielding a second constant bit rate, and wherein the first maximum bit rate is substantially higher than the second maximum bit rate, the method comprising the steps of: for each stream storing the blocks of data in an associated buffer; in a sweep reading a data block from the storage medium for each stream of a selected group of the streams and storing the read blocks in the respective buffers; and repeatedly selecting the group of the streams for which a block is to
  • a user consumes data from a corresponding buffer via some communication network at a rate that may vary between zero and a maximum consumption rate. Users may have mutually different maximum consumption rates.
  • the known system operates in so-called sweeps, also called rounds, whereby blocks are fetched from disk in a single sweeping movement of the disk reading heads.
  • a scheduler determines at the beginning of a sweep which buffers have enough free space for receiving a new block. The scheduler then orders a block of data for these buffers from the disk reader.
  • the size of the buffer of each user is designed in such a way that the buffer does not become empty before actually receiving a new block.
  • the cited paper describes for instance the double buffer algorithm for fixed consumption rates and the triple buffer algorithm for variable consumption rates.
  • the buffer can contain two blocks of data and in the triple buffer algorithm, the buffer can contain three blocks of data.
  • a block must contain enough data for a user to consume at a maximum rate during the period of a worst-case sweep.
  • the size of a block of each of the streams must therefore at least be equal to the product of the maximum duration of the sweep and the maximum consumption rate of the respective stream.
  • the duration of a sweep is determined by the actual blocks to be fetched, since each block requires a switch time for locating the block on the disk and a transfer time for actually reading the block from the disk at a given transfer rate. The switch time and the transfer rate are dependent on the specific hard disks used in the system.
  • the transfer time is further dependent on the size of the block to be read, since a larger block will require a longer time to be read.
  • the minimum respective block sizes are calculated on the basis of the performance parameters of the hard disks of the system and on the basis of the required maximum number of users to be serviced.
  • This object is achieved according to the invention in a system, which is characterized in that the scheduler is operative to select a stream of the second class less often in the group for which a block is to be read than a stream of the first class, such in the situation where the actual bit rate of the stream of the second class equals the second maximum bit rate and the actual bit rate of the stream of the first class equals the first maximum bit rate. So in the steady situation, where both streams are consumed at their respective maximum rates, the stream of the second class, i.e. the one with the smaller consumption rate, is serviced less often.
  • servicing a stream means that the scheduler verifies whether the buffer of this stream has enough free space to receive a new block and if such is the case, selects this stream into the group for which a block is to be read in the next sweep, and have this block read.
  • the sweep or sweeps in which the data stream of the second class is not serviced will be shorter.
  • the size of a block for the stream of the first class may be designed smaller because it must contain now at least sufficient data to be consumed during the shorter period of the sweep.
  • the penalty for not servicing the stream of the second class in every sweep is that the size of a block for this stream is to be designed larger, since it must contain enough data to be consumed during a number of sweeps.
  • This object is achieved according to the invention in a method, which is characterized in that a stream of the second class is selected less often in the group for which a block is to be read than a stream of the first class, such in the situation where the actual bit rate of the stream of the second class equals the second maximum bit rate and the actual bit rate of the stream of the first class equals the first maximum bit rate.
  • Figure 1 schematically shows a block diagram of a system 100 according to the invention
  • FIG. 2 shows an overview of the sweeps over time in the first embodiment of the system according to the invention
  • Figure 3 shows an overview of the sweeps over time in the second embodiment of the system according to the invention
  • Figure 4 shows the memory requirements of the first and the second embodiment for different values of k
  • Figure 5 shows a flow chart of the operation of the scheduler.
  • FIG. 1 schematically shows a block diagram of a system 100 according to the invention.
  • An example of such a system 100 is a multimedia server.
  • Multimedia applications can be characterized by an extensive use of audio- visual material.
  • a multimedia server For the playback of audio or video a (near-)continuous supply of audio/video data is required.
  • Known examples of a multimedia server include a near-video-on-demand server and a video-on-demand server.
  • the service provider determines when a title is reproduced.
  • a data stream containing the data of the title may be received by many users simultaneously.
  • a video-on-demand system typically the user selects a title and controls, with VCR-like controls, the reproduction of the title.
  • a multimedia server is usually implemented using a file server which is specifically designed to supply continuous data streams for a large number of users in parallel.
  • a background storage medium 110 normally disks, such as hard disks, are used as the background storage medium 110, based on their large storage capacity at low cost and the possibility of random access. It will be appreciated that also other storage media, such as optical disks, tape, or even solid state memory may be used.
  • the storage medium 110 may be divided into a plurality of storage units (shown are 102, 104, 106 and 108). As such, the storage medium 110 may be formed by a cluster of storage units, such as a RAID system.
  • the storage unit such as a hard disk, may itself be further subdivided (resulting in a hierarchical cluster).
  • the number of storage units forming the storage medium 110 is usually determined by the required bandwidth.
  • the data streams are bounded by a maximum consumption rate of c max data elements per second, where a data element may for instance be a byte. Different streams may have different maximum consumption rate depending on the contents of the reproduced material, e.g. an audio stream has a far lower maximum consumption rate than a video stream.
  • the maximum consumption rate will typically be chosen to be between approximately 2 or 15 Mbit/sec, depending on the desired quality.
  • the data blocks are striped over all or a group of disks.
  • a request for a data block results then in a disk access to all (or the group of) disks in the array.
  • the storage medium 110 is formed by one storage unit with a suitably high bandwidth and/or storage capacity (whereas actually more than one storage unit may be used). It will be appreciated that in practice the maximum consumption rate for some data streams may be lower, for instance if the corresponding title is of a lower quality or a different type (e.g. audio, whereas most streams relate to a combination of audio and video) than a worse case situation for which the system usually is designed.
  • the system 100 comprises a reader 180 for reading data from the storage medium 1 10.
  • the reader 180 may, for instance, be implemented using a SCSI interface.
  • the storage medium 110 is also included in the system 100.
  • data is retrieved in units of a Disk Access Block (DAB), where a DAB is formed by a sequence of consecutive sectors.
  • DABs which are successively read from a same disk are not stored contiguously on the disk.
  • DABs which are successively read from the same disk belong to different files (where a file is the collection of blocks belonging to one title) since the disk has to supply DABs for a plurality of data streams in some interleaved manner.
  • a reader 180 is used which accepts a batch of read requests and internally performs the necessary scheduling of the requested read operations in order to perform the most optimal sweep for the specific disk.
  • the reader 180 may also include a caching memory for temporarily storing data read from the disk before supplying the data, potentially in a different sequence than read from disk, via a bus 140 to the remainder of the system 100.
  • the role of the reader 180 such as controlling the reading, arranging a sweeping sequence and caching read data, may also be distributed, where each of the storage units has its own controller performing these functions. If so, a main task of the reader 180 is to co-ordinate the operations of the various control units.
  • a data stream may be very voluminous.
  • compression techniques are used.
  • the compression scheme may result in a fixed rate data stream, for instance using a fixed rate form of MPEG- 1 encoding, or a variable rate data stream, for instance using a variable rate form of MPEG-2 encoding.
  • the system according to the invention may be used for fixed rate systems as well as variable rate systems.
  • a fixed maximum consumption rate of c max data elements per second may be given, which rate may be different for different streams and which is used for dimensioning the system (e.g. bandwidth of the system and/or size of storage) in order to ensure that the system still operates in a worst case situation (e.g. when all data streams consume data at the maximum data rate).
  • the system has at least two classes of data streams, each with its own maximum consumption rate.
  • one class includes audio streams and the other class includes video streams.
  • the data is stored in the storage medium 110 and processed by the system 100 in a compressed form. Only at the user 130 the data stream is decompressed, using a decoder.
  • the system 100 may also be able to support VCR-like control functions.
  • a data stream may be in one of a plurality of states like an active and a new/halted state, where an active data stream may supply data to a user (i.e.
  • a new or halted data stream may (currently) not supply data to a user (i.e. no sufficient data is present for consumption by a user without running the risk that underflow of the corresponding buffer occurs).
  • the stream stays active. If the user switches stream (e.g. explicitly selects a new title or implicitly is provided with a new stream by, for instance, instructing the system to play in fast forward mode which results in selecting a new stream with the same title being displayed fast), the stream is temporarily halted allowing for new data to be loaded.
  • a slow motion function may be implemented by consuming data at a low rate (the stream remains active) or switching to a new stream (the stream is temporarily halted).
  • the system 100 maintains for the data stream a stream status which indicates the current state.
  • the stream status for one or more data streams may be stored in a status memory 190, such as the main memory (RAM) of the server or special registers.
  • Data is read from the storage medium 110 for a batch of data streams where the data of the batch is supplied as a time multiplexed stream via the bus 140.
  • the storage medium 110 is not capable of simultaneously supplying continuous data streams to all users of the system. Instead, data for a subset of data streams is read and supplied to the remainder of the system 100 at a higher data rate then consumed by the corresponding data streams.
  • the system 100 therefore, comprises buffers 125 for achieving supply of data at the required rate to the users 130. Usually, the buffers 125 are implemented using RAM in a part 120 of the system's memory.
  • the system 100 further comprises communication means 150 for transferring data of the data streams to users.
  • the communication means 150 may be formed by any suitable means, such as a local area network, for supplying the data to users located near the system 100. In practice, a telecommunication or cable network is used for supplying the data over a longer distance.
  • the system 100 also comprises a control unit 160 for controlling the system 100.
  • a main part of the control unit is formed by the scheduler 170, which determines which DABs should be read by the reader 180 from the storage medium 110 in order to avoid that an underflow or overflow of the buffers 125 occurs.
  • the control unit is typically formed by a processor, such as a RISC-, or CISC-type microprocessor, which is operated under control of a real-time operating system, loaded from a storage medium, such as ROM or a hard disk.
  • the scheduler 170 may be implemented as a software module integrated into the operating system or loaded as an application program.
  • the scheduler 170 receives status information, such as a filling degree of the buffers, upon which the scheduler 170 bases its decision.
  • the scheduler also receives information regarding the status of a stream. In such systems, typically, control information is received from the users 130 via the communication means 150.
  • Data is stored in concentric circles, called tracks, on the disk.
  • Each track consists of an integer number of sectors.
  • Tracks near the outer edge of a disk may contain more sectors than tracks near the inner edge.
  • modern disks arrange the set of tracks in non-overlapping zones, where the tracks in a zone have the same number of sectors and different zones correspond to different number of sectors per track.
  • a disk rotates at a constant angular velocity, so that reading from tracks in a zone near the outer edge results in a higher data transfer rate than reading from tracks in a zone near the inner edge.
  • the time required for accessing data from the disk is mainly determined by: a seek time, i.e. the time needed to move the reading head to the desired track, a rotational latency, i.e. the time that passes before the required data moves under the reading head once the track has been reached, and a read time, i.e. the time needed to actually read the data.
  • the sum of the seek time and the rotational latency is referred to as
  • the read time depends on the amount of data to be read and the radial position of the track(s) on which the data is stored.
  • the rotational latency per access takes at most one revolution of the disk.
  • the seek time per access is maximal if the reading head has to be moved from the inner edge to the outer edge of the disk, or vice versa. To avoid that such a maximum seek has to be taken into account for each access, disk accesses are handled in batches, called a sweep. As the head moves from the inner edge to the outer edge, or vice versa, the required data blocks are read in the order in which they are encountered on disk.
  • the total seek time that is required to execute a sweep withy accesses has been shown to be maximal when ally seeks cross an equal number of tracks.
  • the storage medium is characterized by a guaranteed data transfer rate r and a switch time function s(l).
  • the switch time function s(l) gives the time that is maximally spent on switching when / data blocks have to be retrieved in a single sweep.
  • the data transfer rate r gives the minimum guaranteed rate at which data can be read. To avoid that this data rate has to be based on the data rate of the inner tracks of a disk, track pairing may be used where, for instance, a block which is striped over all disks of the array.
  • data for the block to be read from a track / of one disk is paired with reading data from a track tr max - i + 1 , 1 ⁇ i ⁇ tr max , of another disk, where tr max denotes the maximum number of tracks.
  • tr max denotes the maximum number of tracks.
  • a particular implementation of a video-on-demand server is used.
  • This server has a maximum of n high bit rate streams and m low bit rate streams.
  • the high bit rate streams have a fixed bit rate C h and the low bit rate streams have a fixed bit rate c / .
  • the double buffer algorithm is used as described in the paper "Disk scheduling for variable-rate data streams", J. Korst, V. Pronk, and P. Coumans, Proceedings European Workshop on Interactive Distributed Multimedia Systems and Telecommunication Services, IDMS '97, Darmstadt, September 10-12, Lecture Notes in Computer Science, 1309 (1997) 1 19-132.
  • This implementation is an example and the invention can be applied in other systems as well, e.g. for more than two levels of bit rate, for variable bit rates and for a different buffering algorithm.
  • the streams are serviced in strictly periodic sweep, where the duration of a sweep is large enough to retrieve a block for each of the streams.
  • the size of a block for a stream is exactly the amount of data that is consumed during a sweep.
  • a data block retrieved in sweep i is consumed in sweep i + X .
  • the constraints for the block size B), for the high bit rate streams and the block size R / for the low bit rate streams are given by the following equations:
  • n is the number of high bit rate streams
  • C h is the consumption rate of the high bit rate streams
  • m is the number of low bit rate stream
  • a is the consumption rate of the low bit rate streams
  • r is the minimal guaranteed transfer of the disk
  • s(x) is the worst case switch time for retrieving x data blocks in one sweep.
  • a low bit rate stream is no longer serviced in every sweep.
  • a low bit rate stream is serviced only once every k sweeps and all low bit rate streams are serviced in the same sweeps.
  • Figure 2 shows an overview of the sweeps over time in the first embodiment of the system according to the invention.
  • There is a large sweep 202 in which the n high bit rate streams and the m low bit rate streams are serviced.
  • the large sweep 202 is followed by A:- 1 small sweeps 204.
  • A:- 1 small sweeps 204 In a small sweep only the n high bit rate streams are serviced.
  • a large sweep is carried out servicing the n high bit rate streams and the m low bit rate streams.
  • k 4 or more bits.
  • the size R of a block for a low bit rate stream is chosen large enough to contain enough data for consumption at the rate c for k successive sweeps, which are k - 1 small sweeps and 1 large sweep.
  • the size B of a block for a high bit rate stream is chosen large enough that k of these block would contain enough data for consumption at a rate c / , during k successive sweeps, which are k - 1 small sweeps and 1 large sweep.
  • B h is the amount of data consumed at a rate C during a large sweep.
  • n is the number of high bit rate streams
  • C h is the consumption rate of the high bit rate streams
  • m is the number of low bit rate stream
  • c ⁇ is the consumption rate of the low bit rate streams
  • r is the minimal guaranteed transfer of the disk
  • s(x) is the worst case switch time for retrieving x data blocks in one sweep
  • k is the period of servicing a low bit rate stream, denoted in sweeps.
  • the total memory requirements for the buffers in this embodiment is given by the sum of equations (12) and (13). Different values of A: result in different amounts of memory required for the buffers. Below, a numerical example is given for this embodiment.
  • a block is read for a high bit rate stream in each sweep.
  • This block contains more data than the amount of data consumed in a small sweep and less data than consumed in a large sweep. So during the k - X small sweeps, a certain amount of data is saved up in the corresponding buffer. This amount is sufficient to be consumed in the period which equals the difference between the large sweep and the small sweep. Or in other words, this amount of saved data together with the block read in the previous sweep is enough to be consumed during a large sweep.
  • a low bit rate stream is also serviced only once every k sweeps, but reading blocks for the low bit rate streams is now evenly distributed over the k sweeps.
  • Figure 3 shows an overview of the sweeps over time in the second embodiment of the system according to the invention.
  • the n high bit rate streams are serviced and a fraction of the m low bit rate streams.
  • that stream is not serviced in the next k - 1 sweeps but in the sweep following those k- 1 sweeps.
  • a fraction o ⁇ mlk low bit rate streams is serviced in each sweep. If the expression mlk does not yield an integer value, it is rounded up to next higher integer value. The results of this rounding up is shown as ⁇ mlk ⁇ .
  • n is the number of high bit rate streams
  • C h is the consumption rate of the high bit rate streams
  • m is the number of low bit rate stream
  • a is the consumption rate of the low bit rate streams
  • r is the minimal guaranteed transfer of the disk
  • s(x) is the worst case switch time for retrieving x data blocks in a single sweep
  • k is the period of servicing a low bit rate stream, denoted in sweeps.
  • Figure 4 shows the memory requirements of the first and the second embodiment for different values of k.
  • the equations as given above for the first and second embodiment are used for the calculations.
  • the disk parameters of this numerical example are: minimum transfer rate: 75 Mbit/s worst case rotational latency: 6 ms worst case seek time: 16.6 ms
  • Line 402 indicates the total amount of memory required for the buffers of the first embodiment for different values of A ⁇
  • Line 404 indicates the total amount of memory required for the buffers of the second embodiment for different values of ⁇
  • the second embodiment can be improved by explicitly introducing sweeps in which [m/k] low bit rate streams are serviced and sweeps in which [_m/kj low bit rate streams are serviced.
  • the expression indicates the rounding down of the expression m/k if the latter does not yield an integer value.
  • FIG. 5 shows a flow chart of the operation of the scheduler.
  • the scheduler 170 controls reading of blocks from the storage medium 110.
  • the scheduler operates in a cyclical manner.
  • the scheduler 170 determines how many high bit rate streams are active at that moment.
  • the scheduler determines which of the low bit rate streams are to be serviced.
  • the scheduler determines whether this cycle is a small sweep or a large sweep. If it is a small sweep, none of the low bit rate streams must be serviced and if it is a large sweep all of the currently active low bit rate streams must be serviced.
  • the scheduler determines the next fraction of at most [m/k] low bit rate streams to be serviced now.
  • k fractions of at most [m/k] low bit rate streams are defined and each group is selected at its turn in a cyclic manner, thus servicing each group once every k sweeps.
  • the scheduler 170 assembles the group of data streams for which a block of data needs to be read within this cycle.
  • the scheduler 170 may actively check which of the buffers 125 have room for a new block.
  • the scheduler 170 may determine that a new block needs to be read for all selected streams.
  • step 540 the scheduler 170 causes the reader 180 to read the corresponding blocks (actually, the DABs associated with the blocks) from the storage medium 110.
  • the reader 180 arranges that the corresponding block is read from the storage medium 110.
  • the read block is stored in one of the buffers 125 which corresponds to the data stream for which the block is read.
  • the data is supplied from that buffer to a user.
  • the scheduler 170 starts the next cycle at step 510.

Abstract

A multimedia server (100) retrieves blocks of data from a storage medium (110) and supplies the blocks in the form of data streams to users (130). The streams include a group of high bit rate streams and a group of low bit rate streams. The system has a reader (180) for in a sweep reading data blocks from the storage medium for a selected group of streams and for storing the data blocks in respective buffers. The system further has a scheduler (170) for determining which of the streams is to be serviced, i.e. for which of the streams a block is to be read, in the next sweep of the reader. The proposed scheduler according to the invention is operative to determine to service a low bit rate stream less often than a high bit rate stream.

Description

Multimedia server.
The invention relates to a system for retrieving blocks of data, such as audio and/or video, from a storage medium and supplying the blocks in the form of a plurality of streams to users, wherein a stream of a first class of the streams may have an actual bit rate between a first minimum bit rate and a first maximum bit rate, the first minimum bit rate and the first maximum bit rate potentially being identical thus yielding a first constant bit rate, wherein a stream of a second class of the streams may have an actual bit rate between a second minimum bit rate and a second maximum bit rate, the second minimum bit rate and the second maximum bit rate potentially being identical thus yielding a first constant bit rate, and wherein the first maximum bit rate is substantially higher than the second maximum bit rate, the system comprising: for each stream an associated buffer for storing the blocks of data; a reader for in a sweep reading a data block from the storage medium for each stream of a selected group of the streams and for storing the read blocks in the respective buffers; and a scheduler for repeatedly selecting the group of the streams for which a block is to be read in a next sweep of the reader. The invention further relates to a method of retrieving blocks of data, such as audio and/or video, from a storage medium and supplying the blocks in the form of a plurality of streams to users, wherein a stream of a first class of the streams may have an actual bit rate between a first minimum bit rate and a first maximum bit rate, the first minimum bit rate and the first maximum bit rate potentially being identical thus yielding a first constant bit rate, wherein a stream of a second class of the streams may have an actual bit rate between a second minimum bit rate and a second maximum bit rate, the second minimum bit rate and the second maximum bit rate potentially being identical thus yielding a second constant bit rate, and wherein the first maximum bit rate is substantially higher than the second maximum bit rate, the method comprising the steps of: for each stream storing the blocks of data in an associated buffer; in a sweep reading a data block from the storage medium for each stream of a selected group of the streams and storing the read blocks in the respective buffers; and repeatedly selecting the group of the streams for which a block is to be read in a next sweep.
The paper "Disk scheduling for variable-rate data streams", J. Korst, V. Pronk, and P. Coumans, Proceedings European Workshop on Interactive Distributed Multimedia Systems and Telecommunication Services, IDMS '97, Darmstadt, September 10-12, Lecture Notes in Computer Science, 1309 (1997) 119-132, describes a video on demand server, also called multimedia server, which provides a plurality of users with audio and video data, which is stored on the disks of the system. The system repeatedly fetches a block of data for each of the users and stores it in respective buffers, each of which has room for a number of data blocks. The buffers are implemented in relatively fast Random Access Memory. A user consumes data from a corresponding buffer via some communication network at a rate that may vary between zero and a maximum consumption rate. Users may have mutually different maximum consumption rates. In order to use the disks efficiently, the known system operates in so-called sweeps, also called rounds, whereby blocks are fetched from disk in a single sweeping movement of the disk reading heads. A scheduler determines at the beginning of a sweep which buffers have enough free space for receiving a new block. The scheduler then orders a block of data for these buffers from the disk reader. The size of the buffer of each user is designed in such a way that the buffer does not become empty before actually receiving a new block. The cited paper describes for instance the double buffer algorithm for fixed consumption rates and the triple buffer algorithm for variable consumption rates. In the double buffer algorithm, the buffer can contain two blocks of data and in the triple buffer algorithm, the buffer can contain three blocks of data. A block must contain enough data for a user to consume at a maximum rate during the period of a worst-case sweep. The size of a block of each of the streams must therefore at least be equal to the product of the maximum duration of the sweep and the maximum consumption rate of the respective stream. The duration of a sweep is determined by the actual blocks to be fetched, since each block requires a switch time for locating the block on the disk and a transfer time for actually reading the block from the disk at a given transfer rate. The switch time and the transfer rate are dependent on the specific hard disks used in the system. The transfer time is further dependent on the size of the block to be read, since a larger block will require a longer time to be read. Given the above constraints, the minimum respective block sizes are calculated on the basis of the performance parameters of the hard disks of the system and on the basis of the required maximum number of users to be serviced.
It is an object of the invention to provide a system as described in the preamble in which the total memory required to implement the buffers for the streams is less than in the known system. This object is achieved according to the invention in a system, which is characterized in that the scheduler is operative to select a stream of the second class less often in the group for which a block is to be read than a stream of the first class, such in the situation where the actual bit rate of the stream of the second class equals the second maximum bit rate and the actual bit rate of the stream of the first class equals the first maximum bit rate. So in the steady situation, where both streams are consumed at their respective maximum rates, the stream of the second class, i.e. the one with the smaller consumption rate, is serviced less often. In the context of this description, servicing a stream means that the scheduler verifies whether the buffer of this stream has enough free space to receive a new block and if such is the case, selects this stream into the group for which a block is to be read in the next sweep, and have this block read. As a result of servicing this stream less often, the sweep or sweeps in which the data stream of the second class is not serviced will be shorter. This means that the size of a block for the stream of the first class may be designed smaller because it must contain now at least sufficient data to be consumed during the shorter period of the sweep. The penalty for not servicing the stream of the second class in every sweep is that the size of a block for this stream is to be designed larger, since it must contain enough data to be consumed during a number of sweeps. It can be shown that the decrease of the size of the block for the stream of the first class is larger than the increase of the size of the block for the stream of the second class. Therefore, the sum of the size of the blocks has decreased and the overall memory required for the buffers in the system has decreased. The fact that the sum of the block sizes has decreased is caused by the fact that the consumption rate of the stream of the second class is smaller than the one of the stream of the first class. In the known system, this has the result that the block size for the stream of the second class is relatively small and that the switch time for such a block is relatively large. By servicing the stream of the second class less often, the relative contribution of the switch time becomes smaller and the disk is being used more efficiently. An embodiment of the system according to the invention is described in claim
2. In the steady situation of this embodiment, a high bit rate stream is serviced every sweep and a low bit rate stream every k sweeps, which provides a simple mechanism to service a low bit rate stream less often than a high bit rate stream. Choosing k in dependence on the respective maximum consumption rates provides a good way of finding a value for k at which the memory required for the buffers is as small as possible.
An embodiment of the system according to the invention is described in claim
3. Servicing all low bit rate streams in one particular sweep, which is subsequently followed by k - X sweeps in which none of the low bit rate streams is being serviced, is a simple mechanism for servicing a low bit rate stream less often then a high bit rate stream. An embodiment of the system according to the invention is described in claim 4. Evenly distributing the servicing of the low bit rate streams over the sweeps gives a further reduction of the amount of memory required for the buffers. This is because the switching overhead for the low bit rate streams is no longer concentrated in one sweep. This concentration leads to a large sweep requiring a larger buffer to contain the amount of data for the high bit rate streams consumed during this sweep. By spreading the overhead over all sweeps, each sweep is increased slightly but their individual duration is shorter than the duration of the large sweep. This means that the buffers for the high bit rate streams may be chosen smaller. It is a further object of the invention to provide a method as described in the preamble in which the total memory for buffering the blocks of the streams is less than in the known system. This object is achieved according to the invention in a method, which is characterized in that a stream of the second class is selected less often in the group for which a block is to be read than a stream of the first class, such in the situation where the actual bit rate of the stream of the second class equals the second maximum bit rate and the actual bit rate of the stream of the first class equals the first maximum bit rate.
The invention and its attendant advantages will be further elucidated with the aid of exemplary embodiments and the accompanying schematic drawings, wherein:
Figure 1 schematically shows a block diagram of a system 100 according to the invention,
Figure 2 shows an overview of the sweeps over time in the first embodiment of the system according to the invention,
Figure 3 shows an overview of the sweeps over time in the second embodiment of the system according to the invention, Figure 4 shows the memory requirements of the first and the second embodiment for different values of k, and
Figure 5 shows a flow chart of the operation of the scheduler.
Figure 1 schematically shows a block diagram of a system 100 according to the invention. An example of such a system 100 is a multimedia server. Multimedia applications can be characterized by an extensive use of audio- visual material. For the playback of audio or video a (near-)continuous supply of audio/video data is required. Known examples of a multimedia server include a near-video-on-demand server and a video-on-demand server. In a near-video-on-demand system the service provider determines when a title is reproduced. A data stream containing the data of the title may be received by many users simultaneously. In a video-on-demand system, typically the user selects a title and controls, with VCR-like controls, the reproduction of the title. The level of interaction is higher and a data stream is typically only consumed by one user. A multimedia server is usually implemented using a file server which is specifically designed to supply continuous data streams for a large number of users in parallel. Usually, one or more multimedia titles are stored on a background storage medium 110. At this moment, normally disks, such as hard disks, are used as the background storage medium 110, based on their large storage capacity at low cost and the possibility of random access. It will be appreciated that also other storage media, such as optical disks, tape, or even solid state memory may be used. The storage medium 110 may be divided into a plurality of storage units (shown are 102, 104, 106 and 108). As such, the storage medium 110 may be formed by a cluster of storage units, such as a RAID system. The storage unit, such as a hard disk, may itself be further subdivided (resulting in a hierarchical cluster). For a typical video-on-demand system, which uses disk-based storage media, the number of storage units forming the storage medium 110 is usually determined by the required bandwidth. The data streams are bounded by a maximum consumption rate of cmax data elements per second, where a data element may for instance be a byte. Different streams may have different maximum consumption rate depending on the contents of the reproduced material, e.g. an audio stream has a far lower maximum consumption rate than a video stream. For variable bit-rate encoded MPEG-2 material the maximum consumption rate will typically be chosen to be between approximately 2 or 15 Mbit/sec, depending on the desired quality. In many systems, the data blocks are striped over all or a group of disks. A request for a data block results then in a disk access to all (or the group of) disks in the array. For the purpose of this description it is assumed that the storage medium 110 is formed by one storage unit with a suitably high bandwidth and/or storage capacity (whereas actually more than one storage unit may be used). It will be appreciated that in practice the maximum consumption rate for some data streams may be lower, for instance if the corresponding title is of a lower quality or a different type (e.g. audio, whereas most streams relate to a combination of audio and video) than a worse case situation for which the system usually is designed.
The system 100 comprises a reader 180 for reading data from the storage medium 1 10. The reader 180 may, for instance, be implemented using a SCSI interface. Advantageously, the storage medium 110 is also included in the system 100. For a disk oriented storage medium 110, data is retrieved in units of a Disk Access Block (DAB), where a DAB is formed by a sequence of consecutive sectors. Typically, DABs which are successively read from a same disk are not stored contiguously on the disk. Usually, DABs which are successively read from the same disk belong to different files (where a file is the collection of blocks belonging to one title) since the disk has to supply DABs for a plurality of data streams in some interleaved manner. Even if DABs which are to be read successively belong to the same file, successive blocks of a file need not be stored contiguously in one storage unit but can be distributed over the storage unit or even over several storage units of the storage medium 110. As a consequence of reading non-contiguous DABs, the disk head needs to be moved in between reading of a DAB and the appropriate starting point of the next DAB has to be awaited. Such a switch can take a considerable time, during which no data can be read. To reduce the switching overhead, the so-called disk sweeping technique is frequently used. In such a scheme, the reader 180 is able to read a number, of for instance eight DABs, from the storage unit 110 in one batch. The DABs of the batch are ordered based on their physical track position. For the read operation, the disk head is moved in only one direction (e.g. from the inner edge to the outer edge or vice versa), only stopping to read the DABs of the batch. In this way, the switching overhead is reduced significantly. Advantageously, a reader 180 is used which accepts a batch of read requests and internally performs the necessary scheduling of the requested read operations in order to perform the most optimal sweep for the specific disk. The reader 180 may also include a caching memory for temporarily storing data read from the disk before supplying the data, potentially in a different sequence than read from disk, via a bus 140 to the remainder of the system 100. It will be appreciated that the role of the reader 180, such as controlling the reading, arranging a sweeping sequence and caching read data, may also be distributed, where each of the storage units has its own controller performing these functions. If so, a main task of the reader 180 is to co-ordinate the operations of the various control units.
Particularly for video, a data stream may be very voluminous. To reduce the volume, typically, compression techniques are used. The compression scheme may result in a fixed rate data stream, for instance using a fixed rate form of MPEG- 1 encoding, or a variable rate data stream, for instance using a variable rate form of MPEG-2 encoding. The system according to the invention may be used for fixed rate systems as well as variable rate systems. For variable data rate streams a fixed maximum consumption rate of cmax data elements per second may be given, which rate may be different for different streams and which is used for dimensioning the system (e.g. bandwidth of the system and/or size of storage) in order to ensure that the system still operates in a worst case situation (e.g. when all data streams consume data at the maximum data rate). With respect to the maximum consumption rate, the system according to the invention has at least two classes of data streams, each with its own maximum consumption rate. For example, one class includes audio streams and the other class includes video streams. Normally, the data is stored in the storage medium 110 and processed by the system 100 in a compressed form. Only at the user 130 the data stream is decompressed, using a decoder. Particularly for a variable rate system, the system 100 may also be able to support VCR-like control functions. A data stream may be in one of a plurality of states like an active and a new/halted state, where an active data stream may supply data to a user (i.e. the user may consume data) and a new or halted data stream may (currently) not supply data to a user (i.e. no sufficient data is present for consumption by a user without running the risk that underflow of the corresponding buffer occurs). Typically, if a user temporarily stops consuming data, the stream stays active. If the user switches stream (e.g. explicitly selects a new title or implicitly is provided with a new stream by, for instance, instructing the system to play in fast forward mode which results in selecting a new stream with the same title being displayed fast), the stream is temporarily halted allowing for new data to be loaded. It will be appreciated that a slow motion function may be implemented by consuming data at a low rate (the stream remains active) or switching to a new stream (the stream is temporarily halted). The system 100 maintains for the data stream a stream status which indicates the current state. The stream status for one or more data streams may be stored in a status memory 190, such as the main memory (RAM) of the server or special registers.
Data is read from the storage medium 110 for a batch of data streams where the data of the batch is supplied as a time multiplexed stream via the bus 140. The storage medium 110 is not capable of simultaneously supplying continuous data streams to all users of the system. Instead, data for a subset of data streams is read and supplied to the remainder of the system 100 at a higher data rate then consumed by the corresponding data streams. The system 100, therefore, comprises buffers 125 for achieving supply of data at the required rate to the users 130. Usually, the buffers 125 are implemented using RAM in a part 120 of the system's memory. The system 100 further comprises communication means 150 for transferring data of the data streams to users. The communication means 150 may be formed by any suitable means, such as a local area network, for supplying the data to users located near the system 100. In practice, a telecommunication or cable network is used for supplying the data over a longer distance.
The system 100 also comprises a control unit 160 for controlling the system 100. A main part of the control unit is formed by the scheduler 170, which determines which DABs should be read by the reader 180 from the storage medium 110 in order to avoid that an underflow or overflow of the buffers 125 occurs. The control unit is typically formed by a processor, such as a RISC-, or CISC-type microprocessor, which is operated under control of a real-time operating system, loaded from a storage medium, such as ROM or a hard disk. The scheduler 170 may be implemented as a software module integrated into the operating system or loaded as an application program. Typically, the scheduler 170 receives status information, such as a filling degree of the buffers, upon which the scheduler 170 bases its decision. For systems which offer VCR-like controls, the scheduler also receives information regarding the status of a stream. In such systems, typically, control information is received from the users 130 via the communication means 150.
Data is stored in concentric circles, called tracks, on the disk. Each track consists of an integer number of sectors. Tracks near the outer edge of a disk may contain more sectors than tracks near the inner edge. For this purpose, modern disks arrange the set of tracks in non-overlapping zones, where the tracks in a zone have the same number of sectors and different zones correspond to different number of sectors per track. Typically, a disk rotates at a constant angular velocity, so that reading from tracks in a zone near the outer edge results in a higher data transfer rate than reading from tracks in a zone near the inner edge. The time required for accessing data from the disk is mainly determined by: a seek time, i.e. the time needed to move the reading head to the desired track, a rotational latency, i.e. the time that passes before the required data moves under the reading head once the track has been reached, and a read time, i.e. the time needed to actually read the data. The sum of the seek time and the rotational latency is referred to as switch time.
The read time depends on the amount of data to be read and the radial position of the track(s) on which the data is stored. The rotational latency per access takes at most one revolution of the disk. The seek time per access is maximal if the reading head has to be moved from the inner edge to the outer edge of the disk, or vice versa. To avoid that such a maximum seek has to be taken into account for each access, disk accesses are handled in batches, called a sweep. As the head moves from the inner edge to the outer edge, or vice versa, the required data blocks are read in the order in which they are encountered on disk. The total seek time that is required to execute a sweep withy accesses has been shown to be maximal when ally seeks cross an equal number of tracks. For the purpose of the description, it is assumed that the storage medium is characterized by a guaranteed data transfer rate r and a switch time function s(l). The switch time function s(l) gives the time that is maximally spent on switching when / data blocks have to be retrieved in a single sweep. The data transfer rate r gives the minimum guaranteed rate at which data can be read. To avoid that this data rate has to be based on the data rate of the inner tracks of a disk, track pairing may be used where, for instance, a block which is striped over all disks of the array. In such a case, data for the block to be read from a track / of one disk is paired with reading data from a track trmax - i + 1 , 1 < i ≤ trmax, of another disk, where trmax denotes the maximum number of tracks. In this way r can be given by d times the average rate of a single disk, where d denotes the number of disks in the array.
In the embodiments and the comparisons with the prior art given below, a particular implementation of a video-on-demand server is used. This server has a maximum of n high bit rate streams and m low bit rate streams. The high bit rate streams have a fixed bit rate Ch and the low bit rate streams have a fixed bit rate c/. The double buffer algorithm is used as described in the paper "Disk scheduling for variable-rate data streams", J. Korst, V. Pronk, and P. Coumans, Proceedings European Workshop on Interactive Distributed Multimedia Systems and Telecommunication Services, IDMS '97, Darmstadt, September 10-12, Lecture Notes in Computer Science, 1309 (1997) 1 19-132. This implementation is an example and the invention can be applied in other systems as well, e.g. for more than two levels of bit rate, for variable bit rates and for a different buffering algorithm.
In the prior art, the streams are serviced in strictly periodic sweep, where the duration of a sweep is large enough to retrieve a block for each of the streams. The size of a block for a stream is exactly the amount of data that is consumed during a sweep. A data block retrieved in sweep i is consumed in sweep i + X .The constraints for the block size B), for the high bit rate streams and the block size R/ for the low bit rate streams are given by the following equations:
Bh ^ nBh +mB,
> + s{n + m) 0)
B, nB, + mB,
— > — - L + s{n + m) (2)
Wherein: n is the number of high bit rate streams,
Ch is the consumption rate of the high bit rate streams, m is the number of low bit rate stream, a is the consumption rate of the low bit rate streams, r is the minimal guaranteed transfer of the disk, and s(x) is the worst case switch time for retrieving x data blocks in one sweep.
Solving these equations for the minimal Bf, and B\ results in:
rchs{n + m)
B, (3)
nch - mc,
B, =^Bh (4)
Hence, the block sizes are chosen proportional to the respective consumption rates. The total memory requirements for the buffers in this prior art system are given by:
2nBh + 2mB, (5)
According to the invention, a low bit rate stream is no longer serviced in every sweep. In a first embodiment, a low bit rate stream is serviced only once every k sweeps and all low bit rate streams are serviced in the same sweeps. Figure 2 shows an overview of the sweeps over time in the first embodiment of the system according to the invention. There is a large sweep 202, in which the n high bit rate streams and the m low bit rate streams are serviced. The large sweep 202 is followed by A:- 1 small sweeps 204. In a small sweep only the n high bit rate streams are serviced. After the k - 1 small sweeps, a large sweep is carried out servicing the n high bit rate streams and the m low bit rate streams. In the example of Figure 2, k equals 4, but it will be clear that other values may be chosen. The size R of a block for a low bit rate stream is chosen large enough to contain enough data for consumption at the rate c for k successive sweeps, which are k - 1 small sweeps and 1 large sweep. The size B of a block for a high bit rate stream is chosen large enough that k of these block would contain enough data for consumption at a rate c/, during k successive sweeps, which are k - 1 small sweeps and 1 large sweep. Furthermore, Bh is the amount of data consumed at a rate C during a large sweep. The constraints for the block size Bh for the high bit rate streams, for the block size Bι for the low bit rate streams and for the amount of data Bh are given by the following equations:
kB . (k-\)nB. +nBh +mB, ,- „, , , >± 1 — * * L + (k -\)s{n) + s(n + m) (6)
c,kBh
B, = (7)
Bh' > nBh +mBl
+ s{n + m) (8)
Wherein: n is the number of high bit rate streams,
Ch is the consumption rate of the high bit rate streams, m is the number of low bit rate stream, cι is the consumption rate of the low bit rate streams, r is the minimal guaranteed transfer of the disk, s(x) is the worst case switch time for retrieving x data blocks in one sweep, and k is the period of servicing a low bit rate stream, denoted in sweeps.
Solving these equations for the minimal Bh, B\ and BX results in:
rch {{k - \)s{ή) + s{n + m))
B„ (9) kr - knch - kmc.
B, = Α (10)
Bh = B c*n + mkCl ) + chs(n + m) (H)
The memory requirements for the buffers of the high bit rate streams in this embodiment are given by: n(Bh + Bh >) (12)
The memory requirements for the buffers of the low bit rate streams in this embodiment are given by:
(13) k '
The total memory requirements for the buffers in this embodiment is given by the sum of equations (12) and (13). Different values of A: result in different amounts of memory required for the buffers. Below, a numerical example is given for this embodiment.
It is to be noted that in this embodiment with fixed consumption rates, a block is read for a high bit rate stream in each sweep. This block contains more data than the amount of data consumed in a small sweep and less data than consumed in a large sweep. So during the k - X small sweeps, a certain amount of data is saved up in the corresponding buffer. This amount is sufficient to be consumed in the period which equals the difference between the large sweep and the small sweep. Or in other words, this amount of saved data together with the block read in the previous sweep is enough to be consumed during a large sweep.
In a second embodiment, a low bit rate stream is also serviced only once every k sweeps, but reading blocks for the low bit rate streams is now evenly distributed over the k sweeps. Figure 3 shows an overview of the sweeps over time in the second embodiment of the system according to the invention. In each sweep, the n high bit rate streams are serviced and a fraction of the m low bit rate streams. After a particular low bit rate stream has been serviced in a given sweep, that stream is not serviced in the next k - 1 sweeps but in the sweep following those k- 1 sweeps. To evenly distribute the reading of the low bit rate streams over the sweep, a fraction oϊmlk low bit rate streams is serviced in each sweep. If the expression mlk does not yield an integer value, it is rounded up to next higher integer value. The results of this rounding up is shown as \ mlk \.
In this second embodiment, in each sweep n blocks of size Bh for the high bit rate streams and at most \mlk \ blocks of size Bι for the low bit rate streams are read. The constraints for the block size Bh and for the block size Bι are given by the following equations:
Figure imgf000015_0001
c,kBh
B, = (15)
Wherein: n is the number of high bit rate streams,
Ch is the consumption rate of the high bit rate streams, m is the number of low bit rate stream, a is the consumption rate of the low bit rate streams, r is the minimal guaranteed transfer of the disk, s(x) is the worst case switch time for retrieving x data blocks in a single sweep, and k is the period of servicing a low bit rate stream, denoted in sweeps.
Solving these equations for the minimal Bh and R results in:
Figure imgf000015_0002
B = c'kBh (17)
The total memory requirements for the buffers in this second embodiment are given by the following equation:
m(k + X)
B, + 2nBh (18)
Figure 4 shows the memory requirements of the first and the second embodiment for different values of k. The equations as given above for the first and second embodiment are used for the calculations. The disk parameters of this numerical example are: minimum transfer rate: 75 Mbit/s worst case rotational latency: 6 ms worst case seek time: 16.6 ms
There are 10 high bit rate streams with a consumption rate of 5.625 Mbit/s and 10 low bit rate streams with a consumption rate of 0J75 Mbit/s. Line 402 indicates the total amount of memory required for the buffers of the first embodiment for different values of A\ Line 404 indicates the total amount of memory required for the buffers of the second embodiment for different values of λ\ The value of £ runs from k = l until k = 15. At k = 1, the low bit rate streams are serviced every sweep which corresponds with the prior art system. As shown by Figure 4, the buffers of that system require approximately 15.2 Mbyte of memory. Choosing k = 4 gives an optimal value for the first embodiment, at which approximately 12J Mbyte of memory is required for the buffers. This gives a saving of approximately 20% compared with the prior art system. In the second embodiment, choosing k = 4 gives the optimal value. Then approximately 11.2 Mbyte are required for the buffers, saving approximately 26% over the prior art system. The irregular path of trace 404 is caused by the effects of the rounding [m/k], which may result in a less effective algorithm for some values of A, e.g. k - 9.
The second embodiment can be improved by explicitly introducing sweeps in which [m/k] low bit rate streams are serviced and sweeps in which [_m/kj low bit rate streams are serviced. The expression
Figure imgf000016_0001
indicates the rounding down of the expression m/k if the latter does not yield an integer value. By introducing those two kinds of sweep, the memory requirements for the buffers vary more smoothly for increasing values of A:, potentially resulting in a smaller minimum.
Figure 5 shows a flow chart of the operation of the scheduler. The scheduler 170 controls reading of blocks from the storage medium 110. The scheduler operates in a cyclical manner. At the beginning of each cycle, the scheduler 170 in step 510 determines how many high bit rate streams are active at that moment. Then in step 520, the scheduler determines which of the low bit rate streams are to be serviced. When applied in the first embodiment, the scheduler determines whether this cycle is a small sweep or a large sweep. If it is a small sweep, none of the low bit rate streams must be serviced and if it is a large sweep all of the currently active low bit rate streams must be serviced. When applied in the second embodiment, the scheduler determines the next fraction of at most [m/k] low bit rate streams to be serviced now. To this end, k fractions of at most [m/k] low bit rate streams are defined and each group is selected at its turn in a cyclic manner, thus servicing each group once every k sweeps. Next in step 530, the scheduler 170 assembles the group of data streams for which a block of data needs to be read within this cycle. For variable rate systems, the scheduler 170 may actively check which of the buffers 125 have room for a new block. For a fixed bit rate scheduling algorithm, the scheduler 170 may determine that a new block needs to be read for all selected streams. Next, in step 540 the scheduler 170 causes the reader 180 to read the corresponding blocks (actually, the DABs associated with the blocks) from the storage medium 110. In response to a block read request issued by the scheduler 170, the reader 180 arranges that the corresponding block is read from the storage medium 110. The read block is stored in one of the buffers 125 which corresponds to the data stream for which the block is read. The data is supplied from that buffer to a user. After the reader 180 has substantially read the data blocks, the scheduler 170 starts the next cycle at step 510.

Claims

CLAIMS:
1. A system for retrieving blocks of data, such as audio and/or video, from a storage medium and supplying the blocks in the form of a plurality of streams to users, wherein a stream of a first class of the streams may have an actual bit rate between a first minimum bit rate and a first maximum bit rate, the first minimum bit rate and the first maximum bit rate potentially being identical thus yielding a first constant bit rate, wherein a stream of a second class of the streams may have an actual bit rate between a second minimum bit rate and a second maximum bit rate, the second minimum bit rate and the second maximum bit rate potentially being identical thus yielding a second constant bit rate, and wherein the first maximum bit rate is substantially higher than the second maximum bit rate, the system comprising: for each stream an associated buffer for storing the blocks of data; a reader for in a sweep reading a data block from the storage medium for each stream of a selected group of the streams and for storing the read blocks in the respective buffers; and a scheduler for repeatedly selecting the group of the streams for which a block is to be read in a next sweep of the reader, characterized in that the scheduler is operative to select a stream of the second class less often in the group for which a block is to be read than a stream of the first class, such in the situation where the actual bit rate of the stream of the second class equals the second maximum bit rate and the actual bit rate of the stream of the first class equals the first maximum bit rate.
2. A system as claimed in Claim 1 , wherein the scheduler is operative to select a particular stream of the second class in the group for which a block is to be read once every k sweeps, k being dependent on the first maximum consumption rate and the second maximum consumption rate.
3. A system as claimed in Claim 1 with m streams of the second class, wherein the scheduler is operative to select the m streams in the group for which a block is to be read in one particular sweep.
4. A system as claimed in Claim 2 with m streams of the second class, wherein the scheduler is operative to select a particular fraction m/k of the m streams in the group for which a block is to be read in one particular sweep, so as to evenly distribute selecting of the streams of the second class over the sweeps.
5. A method of retrieving blocks of data, such as audio and/or video, from a storage medium and supplying the blocks in the form of a plurality of streams to users, wherein a stream of a first class of the streams may have an actual bit rate between a first minimum bit rate and a first maximum bit rate, the first minimum bit rate and the first maximum bit rate potentially being identical thus yielding a first constant bit rate, wherein a stream of a second class of the streams may have an actual bit rate between a second minimum bit rate and a second maximum bit rate, the second minimum bit rate and the second maximum bit rate potentially being identical thus yielding a second constant bit rate, and wherein the first maximum bit rate is substantially higher than the second maximum bit rate, the method comprising the steps of: for each stream storing the blocks of data in an associated buffer; in a sweep reading a data block from the storage medium for each stream of a selected group of the streams and storing the read blocks in the respective buffers; and repeatedly selecting the group of the streams for which a block is to be read in a next sweep, characterized in that a stream of the second class is selected less often in the group for which a block is to be read than a stream of the first class, such in the situation where the actual bit rate of the stream of the second class equals the second maximum bit rate and the actual bit rate of the stream of the first class equals the first maximum bit rate.
PCT/EP2000/001888 1999-03-23 2000-03-06 Multimedia server WO2000057635A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP00909311A EP1080577A1 (en) 1999-03-23 2000-03-06 Multimedia server
JP2000607406A JP2002540545A (en) 1999-03-23 2000-03-06 Multimedia server

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
EP99200897 1999-03-23
EP99200897.9 1999-03-23

Publications (1)

Publication Number Publication Date
WO2000057635A1 true WO2000057635A1 (en) 2000-09-28

Family

ID=8240015

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/EP2000/001888 WO2000057635A1 (en) 1999-03-23 2000-03-06 Multimedia server

Country Status (5)

Country Link
US (1) US6477541B1 (en)
EP (1) EP1080577A1 (en)
JP (1) JP2002540545A (en)
KR (1) KR100746842B1 (en)
WO (1) WO2000057635A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7334103B2 (en) 2002-12-11 2008-02-19 Koninklijke Philips Electronics N.V. Methods and apparatus for improving the breathing of disk scheduling algorithms

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7096327B2 (en) * 2000-03-24 2006-08-22 Koninklijke Philips Electronics N.V. System for and method of accessing blocks on a storage medium
US7493289B2 (en) 2002-12-13 2009-02-17 Aol Llc Digital content store system
US7797064B2 (en) 2002-12-13 2010-09-14 Stephen Loomis Apparatus and method for skipping songs without delay
US7912920B2 (en) 2002-12-13 2011-03-22 Stephen Loomis Stream sourcing content delivery system
US7412532B2 (en) * 2002-12-13 2008-08-12 Aol Llc, A Deleware Limited Liability Company Multimedia scheduler
US20040154041A1 (en) * 2003-01-24 2004-08-05 Zhang Gary Xiao-Liang Optimized data streaming and uses thereof
US7924456B1 (en) * 2007-01-12 2011-04-12 Broadbus Technologies, Inc. Data distribution and buffering
EP2264604A1 (en) * 2009-06-15 2010-12-22 Thomson Licensing Device for real-time streaming of two or more streams in parallel to a solid state memory device array
US10951902B2 (en) 2019-06-12 2021-03-16 Rovi Guides, Inc. Systems and methods for multiple bit rate content encoding

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0762300A2 (en) * 1995-09-12 1997-03-12 Kabushiki Kaisha Toshiba Real time stream server for handling a plurality of real time stream data with different data rates
WO1997021173A2 (en) * 1995-12-01 1997-06-12 Philips Electronics N.V. Method and system for reading data for a number of users
WO1998028915A2 (en) * 1996-12-23 1998-07-02 Koninklijke Philips Electronics N.V. Method and system for supplying data streams

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5586264A (en) * 1994-09-08 1996-12-17 Ibm Corporation Video optimized media streamer with cache management
JPH09198199A (en) * 1995-11-17 1997-07-31 Matsushita Electric Ind Co Ltd Multimedia data reproduction method and multimedia server system
EP0923758A2 (en) * 1997-07-02 1999-06-23 Koninklijke Philips Electronics N.V. System for supplying data streams

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0762300A2 (en) * 1995-09-12 1997-03-12 Kabushiki Kaisha Toshiba Real time stream server for handling a plurality of real time stream data with different data rates
WO1997021173A2 (en) * 1995-12-01 1997-06-12 Philips Electronics N.V. Method and system for reading data for a number of users
WO1998028915A2 (en) * 1996-12-23 1998-07-02 Koninklijke Philips Electronics N.V. Method and system for supplying data streams

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
JEN-WEN DING ET AL: "Minimizing memory requirement for a multi-rate continuous media server", ISCE '97. PROCEEDINGS OF 1997 IEEE INTERNATIONAL SYMPOSIUM ON CONSUMER ELECTRONICS (CAT. NO.97TH8348), ISCE '97. PROCEEDINGS OF 1997 IEEE INTERNATIONAL SYMPOSIUM ON CONSUMER ELECTRONICS, SINGAPORE, 2-4 DEC. 1997, 1997, New York, NY, USA, IEEE, USA, pages 230 - 233, XP002138303, ISBN: 0-7803-4371-9 *
KORST J ET AL: "Comparing disk scheduling algorithms for VBR data streams", COMPUTER COMMUNICATIONS,NL,ELSEVIER SCIENCE PUBLISHERS BV, AMSTERDAM, vol. 21, no. 15, 1 October 1998 (1998-10-01), pages 1328 - 1343, XP004145247, ISSN: 0140-3664 *
KORST J ET AL: "Disk-scheduling for variable-rate data streams", INTERACTIVE DISTRIBUTED MULTIMEDIA SYSTEMS AND TELECOMMUNICATION SERVICES. 4TH INTERNATIONAL WORKSHOP, IDMS '97. PROCEEDINGS, INTERACTIVE DISTRIBUTED MULTIMEDIA SYSTEMS AND TELECOMMUNICATION SERVICES. 4TH INTERNATIONAL WORKSHOP, IDMS '97, DARMSTADT,, 1997, Berlin, Germany, Springer-Verlag, Germany, pages 119 - 132, XP000910675, ISBN: 3-540-63519-X *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7334103B2 (en) 2002-12-11 2008-02-19 Koninklijke Philips Electronics N.V. Methods and apparatus for improving the breathing of disk scheduling algorithms

Also Published As

Publication number Publication date
EP1080577A1 (en) 2001-03-07
KR20010043758A (en) 2001-05-25
US6477541B1 (en) 2002-11-05
KR100746842B1 (en) 2007-08-09
JP2002540545A (en) 2002-11-26

Similar Documents

Publication Publication Date Title
US6061732A (en) Data streaming system utilizing an asynchronous technique for retrieving data from a stream server
US6138221A (en) Method and system for supplying streams of data having identical maximum consumption rate in a storage medium
US5754773A (en) Multimedia on-demand server having different transfer rates
US5832523A (en) Archiving device and data file server using data file recorded in division over recording media
CA2499802C (en) Multiple user data storage, retrieval and distribution system
US5852705A (en) Method and apparatus for guaranteeing average case disk transfer bandwidth and seek time for a video server
EP0880736B1 (en) Data buffering system for plural data memory arrays
US6205525B1 (en) System for supplying data steams
US6477541B1 (en) Multimedia server
US6643083B2 (en) Method and system for retrieving blocks of data from a storage medium
WO1998054657A2 (en) System for retrieving data in a video server
US5737577A (en) Complementary block storage for breater minimumdata transfer rate
US7334103B2 (en) Methods and apparatus for improving the breathing of disk scheduling algorithms
Shastri et al. DVDs: Much Needed “Shot in the Arm” for Video Servers
JP2006520509A (en) Method and system for recording programs on disk for multiple user acquisitions
SAMPATH-KUMAR VIJNAN SHASTRI CEDT, Indian Institute of Science, Bangalore-560 012, India P. VENKAT RANGAN

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): JP KR

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE

WWE Wipo information: entry into national phase

Ref document number: 2000909311

Country of ref document: EP

121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 1020007013124

Country of ref document: KR

WWP Wipo information: published in national office

Ref document number: 2000909311

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 1020007013124

Country of ref document: KR