Data Communication Components · Computer Networks

Representation of Data

Watch lectures
SVGVector Architecture Diagram (SVG)
COMPUTER NETWORKS · Module 1★ High PriorityRepresentation of DataIT Sem 6 · Code 100602 · Text, numbers, images, audio, video as bitsMNEMONICText = ASCII/UTF-8, Image = pixels, Audio = samples, Video = frames. All of it is bits.Audio bit rate = sampling rate x bits per sample x channels.Core BreakdownMeaningEncoding information as bit patterns so computers can store and send it.Digital machines only handle 0 and 1; everything is a bit pattern.TextASCII: 7 bits, 128 values. Unicode: many scripts. UTF-8: 1-4 bytes per char.Receiver must decode the bytes with the same encoding as the sender.NumbersUnsigned, two's complement (n bits: -2^(n-1) to 2^(n-1)-1), floating point.One hex digit = 4 bits, so hex A = decimal 10 = binary 1010.ImagesA grid of pixels. Resolution = width x height; colour depth = bits per pixel.Size is about width x height x bits per pixel; compression shrinks it.AudioSample the wave: bit rate = sampling rate x bits per sample x channels.CD audio: 44,100 x 16 x 2 = 1,411,200 b/s = 1411.2 kb/s.VideoFrames plus audio; size depends on resolution, frame rate, depth, duration.Codecs compress it; lossy discards detail, lossless restores it exactly.Diagram: Information to SignalInformationtext, imageEncodeas bitsSignalvolts / lightChannel adds noise, receiver reverses:RecoverbitsDecodebitsInformationrestoredText encodings:ASCII7 bitsUnicodeall scriptsUTF-81-4 bytesBit rate = rate x bits x ch44,100 x 16 x 2 = 1,411,200 b/sLossless exact, lossy smaller⚠️ Exam Traps & Viva Favorites① Encoding vs modulation?Encoding maps information to bits or codes.Modulation maps those bits onto a signal themedium can carry (electrical, optical, radio).② ASCII vs Unicode vs UTF-8?ASCII is 7-bit with only 128 characters. Unicodeis the character set; UTF-8 is a variable-lengthencoding of it, 1 to 4 bytes per code point.③ Lossless vs lossy?Lossless (ZIP, PNG) restores the exact data.Lossy (JPEG, MP3) throws away detail to savespace and cannot be fully recovered.Tip: bit rate = rate x bits x channelsMaster Revision Table(learn it row by row!)MediumRepresentationKey parametersSize / rate formulaTextASCII / Unicode / UTF-8Code point, bytes per characterCharacters x bytes per charNumbersBinary, two's complement, floatBit width n, sign, exponentRange -2^(n-1) to 2^(n-1)-1ImageGrid of pixelsResolution, colour depthWidth x height x bits/pixelAudioPCM samplesSampling rate, bit depth, channelsRate x bits x channels (b/s)VideoFrames plus audioFrame rate, resolution, codecFrame size x fps x durationCompressionLossless / lossyRatio, qualitySmaller file, same or less detailQUICK FACTSASCII 7 bits = 128 values · UTF-8 uses 1 to 4 bytes · 1 byte = 8 bitsCD audio: 44,100 Hz x 16 bit x 2 ch = 1,411,200 b/s (1411.2 kb/s)Hex A = 10 = 1010 · image 1920 x 1080 x 24 bit = 6.22 MB uncompressedVERIFIED★ Golden rule: everything is bits; encode,signal, then decode at the receiver.

Representation of Data


1. Meaning

Data representation is the method used to encode information so computers can store, process, and communicate it. Digital computers work with bits (0 and 1). Text, numbers, images, audio, and video are ultimately encoded as bit patterns.

2. From Information to Network Signals

MermaidDiagram
Rendering diagram…

The sender encodes information into bits. The communication system represents those bits as electrical, optical, or radio signals. The receiver recovers the bit stream and decodes it into usable information.

3. Representation of Text

Text is represented by assigning numeric codes to characters.

  • ASCII: The original ASCII standard uses 7 bits and represents 128 values, including letters, digits, punctuation, and control characters.
  • Unicode: A character standard designed to represent text from many writing systems.
  • UTF-8: A widely used variable-length Unicode encoding that uses 1–4 bytes per code point.

The sender encodes characters into bytes. The receiver must interpret those bytes using the appropriate encoding.

4. Representation of Numbers

Numbers are represented using binary bit patterns.

  • Unsigned integers: Represent non-negative values.
  • Signed integers: Often use two's complement. For an n-bit two's-complement integer, the range is (-2^{n-1}) to (2^{n-1}-1).
  • Floating-point numbers: Represent real-number approximations using a sign, exponent, and significand.
  • Number systems: Binary uses base 2, decimal uses base 10, and hexadecimal uses base 16. One hexadecimal digit corresponds to four binary bits.

Example: Hexadecimal A represents decimal 10 and binary 1010.

5. Representation of Images

A digital image is commonly represented as a grid of pixels (picture elements).

  • Resolution: Width and height in pixels, such as 1920 × 1080.
  • Colour depth: Number of bits used per pixel. With b bits, up to (2^b) distinct values can be represented.
  • Uncompressed image size: Approximately width × height × bits per pixel, excluding headers and other overhead.
  • Compression: Reduces the data needed to store or transmit an image.

SVG illustration: pixels form an image

SVGVector Architecture Diagram (SVG)
PixelGrid An image is built from individual pixels

6. Representation of Audio

Digital audio represents sound by measuring an analogue waveform at regular intervals and converting each measurement to a digital value.

  • Sampling rate: Number of samples taken per second, measured in hertz (Hz).
  • Bit depth: Number of bits used for each sample.
  • Channels: Mono has one channel; stereo has two.
  • Uncompressed PCM bit rate:
Bit rate=sampling rate×bits per sample×channels\text{Bit rate}=\text{sampling rate}\times\text{bits per sample}\times\text{channels}

Worked example: For 44,100 samples/s, 16 bits/sample, and 2 channels:

44,100×16×2=1,411,200 bits/s44{,}100\times16\times2=1{,}411{,}200\text{ bits/s}

That is 1,411.2 kb/s, before protocol or file overhead.

7. Representation of Video

Digital video is a sequence of image frames, often accompanied by audio. Its data volume depends on frame resolution, frame rate (frames per second), colour depth, duration, audio quality, and compression. Video codecs reduce the amount of data needed for storage and network streaming.

8. Data Communication: Sender to Receiver

MermaidDiagram
Rendering diagram…

The quality of recovered data depends on correct encoding/decoding and channel reliability. Networks may use error detection, error correction, or retransmission to handle transmission errors.

9. Important Terms

Term Meaning
Bit (b) A binary digit, 0 or 1
Byte (B) Usually 8 bits
Data rate Amount of data transmitted per second, commonly bps
File size Amount of stored data, commonly bytes
Encoding Mapping information into a defined representation
Modulation Mapping data onto a signal suitable for transmission
Lossless compression Original data can be recovered exactly
Lossy compression Some information is discarded to reduce size

10. Quick Revision

  • All digital information is represented by bits.
  • ASCII and Unicode/UTF-8 are used for text.
  • Integers and floating-point formats represent numbers.
  • Images use pixels; resolution and colour depth affect size.
  • Audio uses sampling and quantization; bit rate depends on sample rate, bit depth, and channels.
  • Video consists of frames and usually uses compression.
  • A communication system converts bits into signals and reconstructs the data at the receiver.

11. Exam-Style Questions

  1. Define data representation and explain why digital systems use binary.
  2. Differentiate ASCII, Unicode, and UTF-8.
  3. Explain pixel, resolution, and colour depth.
  4. Define sampling rate and bit depth. Calculate the bit rate of 48 kHz, 16-bit stereo PCM audio.
  5. Differentiate lossless and lossy compression with examples.
  6. Explain how data is encoded, transmitted, and decoded in a communication system.
  7. Distinguish encoding from modulation.
Student FinanceWeb Platform

Pocketly — Personal Finance for Students

Keep your hostel and college expenses under control. Track accounts, log spending in seconds, and stay within your monthly budget.

← All Computer Networks modules