Pages

Tuesday, October 6, 2009

CD-ROM

CD-ROM (pronounced /ˌsiːˌdiːˈrɒm/, an acronym of "compact disc read-only memory") is a pre-pressed compact disc that contains data accessible to, but not writable by, a computer for data storage and music playback. The 1985 “Yellow Book” standard developed by Sony and Philips adapted the format to hold any form of binary data.

CD-ROMs are popularly used to distribute computer software, including games and multimedia applications, though any data can be stored (up to the capacity limit of a disc). Some CDs hold both computer data and audio with the latter capable of being played on a CD player, while data (such as software or digital video) is only usable on a computer (such as ISO 9660 format PC CD-ROMs). These are called enhanced CDs.
Although many people use lowercase letters in this acronym, proper presentation is in all capital letters with a hyphen between CD and ROM. At the time of the technology's introduction it had more capacity than computer hard drives common at the time. The reverse is now true, with hard drives far exceeding CDs, DVDs and Blu-ray, though some experimental descendants of it such as HVDs may have more space and faster data rates than today's biggest hard drive.

Media
CD-ROM discs are identical in appearance to audio CDs, and data are stored and retrieved in a very similar manner (only differing from audio CDs in the standards used to store the data). Discs are made from a 1.2 mm thick disc of polycarbonate plastic, with a thin layer of aluminium to make a reflective surface. The most common size of CD-ROM disc is 120 mm in diameter, though the smaller Mini CD standard with an 80 mm diameter, as well as numerous non-standard sizes and shapes (e.g., business card-sized media) are also available. Data is stored on the disc as a series of microscopic indentations. A laser is shone onto the reflective surface of the disc to read the pattern of pits and lands ("pits", with the gaps between them referred to as "lands"). Because the depth of the pits is approximately one-quarter to one-sixth of the wavelength of the laser light used to read the disc, the reflected beam's phase is shifted in relation to the incoming beam, causing destructive interference and reducing the reflected beam's intensity. This pattern of changing intensity of the reflected beam is converted into binary data.

Standard
Several formats are used for data stored on compact discs, known as the Rainbow Books. These include the original Red Book standards for CD audio, White Book and Yellow Book CD-ROM. The ISO/IEC 10149 / ECMA-130 standard, which gives a thorough description of the physics and physical layer of the CD-ROM, inclusive of cross-interleaved Reed-Solomon coding (CIRC) and eight-to-fourteen modulation (EFM), can be downloaded from ISO or ECMA.
ISO 9660 defines the standard file system of a CD-ROM, although it is due to be replaced by ISO 13490 (which also supports CD-R and multi-session). UDF extends ISO 13346 (which was designed for non-sequential write-once and re-writeable discs such as CD-R and CD-RW) to support read-only and re-writeable media and was first adopted for DVD. The bootable CD specification, to make a CD emulate a hard disk or floppy, is called El Torito.
CD-ROM drives are rated with a speed factor relative to music CDs (1× or 1-speed which gives a data transfer rate of 150 KiB/s). 12× drives were common beginning in early 1997. Above 12× speed, there are problems with vibration and heat. Constant angular velocity (CAV) drives give speeds up to 30× at the outer edge of the disc with the same rotational speed as a standard constant linear velocity (CLV) 12×, or 32× with a slight increase. However due to the nature of CAV (linear speed at the inner edge is still only 12×, increasing smoothly in-between) the actual throughput increase is less than 30/12 – in fact, roughly 20× average for a completely full disc, and even less for a partially filled one.
Problems with vibration, owing to e.g. limits on achievable symmetry and strength in mass produced media, mean that CDROM drive speeds have not massively increased since the late 90s. Over 10 years later, commonly available drives vary between 24× (slimline and portable units, 10× spin speed) and 52× (typically CD- and read-only units, 21× spin speed), all using CAV to achieve their claimed "max" speeds, with 32× through 48× most common. Even so, these speeds can cause poor reading (drive error correction having become very sophisticated in response) and even shattering of poorly made or physically damaged media, with small cracks rapidly growing into catastrophic breakages when centripetally stressed at 10,000 – 13,000rpm (i.e. 40–52× CAV). High rotational speeds also produce undesirable noise from disc vibration, rushing air and the spindle motor itself. Thankfully, most 21st century drives allow forced low speed modes (by use of small utility programs) for the sake of safety, accurate reading or silence, and will automatically fall back if a large number of sequential read errors and retries are encountered.
Other methods of improving read speed were trialled such as using multiple pickup heads, increasing throughput up to 72× with a 10× spin speed, but along with other technologies like 90~99 minute recordable media and "double density" recorders, their utility was nullified by the introduction of consumer DVDROM drives capable of consistent 36× CDROM speeds (4× DVD) or higher. Additionally, with a 700mb CDROM fully readable in under 2½ minutes at 52× CAV, increases in actual data transfer rate are decreasingly influential on overall effective drive speed when taken into consideration with other factors such as loading/unloading, media recognition, spin up/down and random seek times, making for much decreased returns on development investment. A similar stratification effect has since been seen in DVD development where maximum speed has stabilised at 16× CAV (with exceptional cases between 18× and 22×) and capacity at 4.3 and 8.5GiB (single and dual layer), with higher speed and capacity needs instead being catered to by Blu-Ray drives.

CD-ROM format
A CD-ROM sector contains 2,352 bytes, divided into 98 24-byte frames. Unlike a music CD, a CD-ROM cannot rely on error concealment by interpolation, and therefore requires a higher reliability of the retrieved data. In order to achieve improved error correction and detection, a CD-ROM has a third layer of Reed–Solomon error correction. A Mode-1 CD-ROM, which has the full three layers of error correction data, contains a net 2,048 bytes of the available 2,352 per sector. In a Mode-2 CD-ROM, which is mostly used for video files, there are 2,336 user-available bytes per sector. The net byte rate of a Mode-1 CD-ROM, based on comparison to CDDA audio standards, is 44100 Hz × 16 bits/sample × 2 channels × 2,048 / 2,352 /8 = 153.6 kB/s = 150 KiB/s. The playing time is 74 minutes, or 4,440 seconds, so that the net capacity of a Mode-1 CD-ROM is 682 MB or, equivalently, 650 MiB.
A 1× speed CD drive reads 75 consecutive sectors per second.