Introduction
Open in the Padhaiko app1.1 Analog Data Communication, Data Representation, and Data Flows
Data communication is the exchange of data between two or more devices across a transmission medium (wired or wireless) governed by an agreed set of rules called a protocol. Five components form any data communication link: message (information to send), sender, receiver, transmission medium, and protocol.
Data, Information, Signal, and Communication
- Data: Raw facts, symbols, or quantities representing objects or events.
- Analog data takes continuous values over an interval (e.g., the smooth sweep of an analog clock's hands or human speech pressure variations).
- Digital data takes discrete states (e.g., a digital clock jumping from
08:05to08:06, or binary bits and ).
- Message: The organized payload of data (text, numbers, audio, image, or video) intended for communication.
- Information: Processed, meaningful data that resolves uncertainty at the receiver.
- Signal: Any physical quantity (electric voltage, current, electromagnetic wave, or optical pulse) that varies with time or space to carry data across a medium.
- Communication: The reliable transfer and interpretation of information from a source to a destination.
Data Representation
Modern networks encode heterogeneous media into binary bit streams so that a single digital infrastructure can store, route, and process all information types uniformly.
| Data Type | Underlying Representation | Typical Encoding / Standards |
|---|---|---|
| Text | Sequence of bit patterns (code points) mapping characters to integers | ASCII (-bit / -bit), UTF-8, UTF-16 (Unicode) |
| Numbers | Direct binary positional conversion (not character-by-character ASCII) | Unsigned/Two's complement integers, IEEE 754 floating-point |
| Images | Matrix of picture elements (pixels) or geometric primitives (vector) | Monochrome (), Grayscale (), RGB (); PNG, JPEG |
| Audio | Continuous acoustic wave sampled at discrete intervals and quantized | PCM ( voice, CD), MP3, AAC |
| Video | Rapid sequence of image frames (–) synchronized with audio | H.264/AVC, H.265/HEVC, MPEG-4 |
Analog vs. Digital Communication
In analog communication, information is transmitted as a continuous waveform whose amplitude, frequency, or phase varies smoothly with the message. In digital communication, information is mapped to discrete symbols (typically binary bits) before transmission.
| Aspect | Analog Communication | Digital Communication |
|---|---|---|
| Signal Nature | Continuous amplitude and continuous time (e.g., sinusoidal carriers) | Discrete states/levels representing bits ( and ) |
| Noise & Distortion Immunity | Poor; noise adds cumulatively and cannot be separated from the signal at repeaters | High; regenerative repeaters reconstruct clean pulses and eliminate accumulated noise |
| Error Control | No built-in error detection or correction | Supports parity, CRC, Hamming, and forward error correction (FEC) |
| Bandwidth Requirement | Relatively low for raw voice/video | Higher raw bandwidth, offset by source compression and TDM |
| Power & Hardware | Higher transmit power; precision analog filters and linear amplifiers | Lower transmit power; inexpensive, reliable VLSI digital hardware |
| Security & Storage | Difficult to encrypt or store without degradation | Easy encryption, multiplexing, multimedia integration, and lossless storage |
Data Flows (Transmission Modes)
The directionality of signal flow between two connected stations determines the transmission mode.
| Mode | Directionality | Channel Allocation | Practical Examples |
|---|---|---|---|
| Simplex | Unidirectional only; one station always transmits, the other always receives | Entire channel capacity dedicated to one direction | Keyboard-to-CPU, commercial FM radio, television broadcast |
| Half-Duplex | Bidirectional, but only one station transmits at a time | Full channel capacity alternates between the two directions | Walkie-talkie (push-to-talk), citizen-band radio, early Ethernet hubs |
| Full-Duplex | Bidirectional simultaneously | Capacity is split into two sub-channels or uses two separate physical paths | Telephone voice call, switched Gigabit Ethernet, cellular LTE/5G links |
1.2 Evolution of Data Communication
Data communication evolved from mechanical signaling over single copper wires to global, packet-switched optical and wireless networks.
| Era | Milestone / Technology | Significance |
|---|---|---|
| 1830s–1840s | Electrical Telegraph (Samuel Morse) | First practical electrical transmission of discrete text symbols (dots and dashes) over wire. |
| 1876 | Telephone (Alexander Graham Bell) | Enabled real-time analog voice transmission over the Public Switched Telephone Network (PSTN). |
| 1890s–1920s | Wireless Radio & Broadcast | Guglielmo Marconi demonstrated long-distance radio telegraphy; AM/FM broadcasting followed. |
| 1950s–1960s | Mainframes, Modems & SAGE | Early digital terminals communicated with central computers over voice lines using modems. |
| 1969 | ARPANET & Packet Switching | Introduced store-and-forward packet switching; evolved into the global Internet with TCP/IP (). |
| 1970s–1980s | Ethernet LAN & OSI Standardization | Bob Metcalfe's Ethernet enabled local office networking; ISO published the -layer OSI model (). |
| 1990s–2000s | World Wide Web, Fiber Optics & Broadband | Single-mode optical fiber, ADSL, and IEEE Wi-Fi brought megabit speeds to homes and offices. |
| 2010s–Present | , Cloud & IoT | Multi-gigabit mobile broadband, software-defined networking (SDN), cloud data centers, and billions of IoT endpoints. |
1.3 Communication Model and Data Communication Model
Generic Communication Model
Every communication system—analog or digital—can be abstracted into five functional stages:
[Source] ---> [Transmitter] ---> [Transmission System / Channel] ---> [Receiver] ---> [Destination]
(Data) (Signal Encoder/ (Guided or Unguided Medium; (Decoder/ (Recovered
Modulator) adds Noise & Attenuation) Demodulator) Data)- Source: Generates the raw message (e.g., voice, sensor reading, or computer file).
- Transmitter: Converts the source output into electromagnetic signals matched to the medium.
- Transmission System: A single physical link or a complex network carrying the signal, where attenuation, distortion, and noise act.
- Receiver: Recovers the transmitted signal from the noisy channel and reconstructs the data.
- Destination: Consumes the recovered message.
Data Communication System Models
In practice, digital and analog transmitters differ in how they condition the signal before launching it onto the channel.
Functional Blocks of a Digital Communication System
- Input Transducer: Converts a non-electrical physical quantity (sound, light, temperature) into an electrical analog signal (e.g., a microphone).
- Analog-to-Digital Converter (ADC): Samples the electrical analog signal at discrete time intervals and quantizes amplitudes into binary digits.
- Source Encoder: Compresses the binary stream by removing statistical redundancy to save bandwidth and storage (e.g., JPEG for images, MP3 for audio).
- Channel Encoder: Adds controlled redundancy (parity bits, CRC, Hamming, or block codes) so the receiver can detect or correct channel errors.
- Line Encoder: Maps binary data to baseband voltage pulses suited to the physical cable (e.g., NRZ, AMI, Manchester).
- Multiplexer (MUX): Combines multiple independent streams onto one shared physical channel (e.g., TDM, FDM, WDM).
- Modulator: Impresses the signal onto a high-frequency sinusoidal carrier by varying amplitude, frequency, or phase (ASK, FSK, PSK, QAM) for bandpass or wireless transmission.
At the receiving side of a half-duplex link, each stage is reversed in exact mirror order (Demodulator Demultiplexer Line Decoder Channel Decoder Source Decoder DAC Output Transducer). In a full-duplex system, each endpoint contains both a complete transmit chain and a complete receive chain operating simultaneously.
Physical +------------+ +-----+ +--------+ +---------+ +------+ +-----+ +---------+
Input --> | Input |-->| ADC |-->| Source |-->| Channel |-->| Line |-->| MUX |-->|Modulator|
| Transducer | +-----+ |Encoder | | Encoder | |Encod.| +-----+ +---------+
+------------+ +--------+ +---------+ +------+ |
v
[Channel + Noise]
|
Physical +------------+ +-----+ +--------+ +---------+ +------+ +-----+ +---------+
Output <-- | Output |<--| DAC |<--| Source |<--| Channel |<--| Line |<--|DEMUX|<--|Demodul. |
| Transducer | +-----+ |Decoder | | Decoder | |Decod.| +-----+ +---------+
+------------+ +--------+ +---------+ +------+An analog communication system omits ADC, source coding, channel coding, and line coding. Its transmitter consists of Input Transducer Multiplexer (FDM) Modulator (AM, FM, or PM), and its receiver reverses those three blocks (Demodulator Demultiplexer Output Transducer).
1.4 Networks, Simplified Network Architecture, and the OSI Model
Network Classifications (LAN, MAN, WAN)
Computer networks are classified primarily by geographic span, ownership, and underlying transmission technology.
| Characteristic | Local Area Network (LAN) | Metropolitan Area Network (MAN) | Wide Area Network (WAN) |
|---|---|---|---|
| Geographic Span | Single room, building, or campus () | City or metropolitan area () | Region, country, or globe () |
| Ownership | Private (organization, university, home) | Telecom operator, municipality, or consortium | Public telecom carriers, ISPs, or leased enterprise backbones |
| Data Rate & Delay | Very high ( to ); ultra-low latency | High ( to ); moderate latency | Lower per-user bandwidth; higher propagation & queuing delay |
| Technologies | Switched Ethernet (IEEE ), Wi-Fi (IEEE ) | Metro Ethernet, FDDI, DOCSIS cable, fiber rings | MPLS, optical DWDM backbones, submarine cables, satellite |
Simplified Network Architecture and Protocol Layering
Because end-to-end communication involves physical signaling, framing, routing across intermediate hops, and application formatting simultaneously, networks use a layered architecture. Each layer provides well-defined services to the layer above it while hiding implementation details of the layers below. As data moves down the sender's stack, each layer attaches its own control header (encapsulation); the receiver strips those headers layer by layer (decapsulation).
The Seven-Layer OSI Model
Developed by the International Organization for Standardization (ISO), the Open Systems Interconnection (OSI) model partitions network communication into seven standardized layers.
| Layer | Name | PDU | Core Responsibilities | Example Protocols / Devices |
|---|---|---|---|---|
| 7 | Application | Data | User-facing network services (file transfer, web, email) | HTTP, HTTPS, FTP, SMTP, DNS |
| 6 | Presentation | Data | Syntax translation, character encoding, encryption, compression | SSL/TLS, JPEG, MPEG, ASCII |
| 5 | Session | Data | Dialog control (half/full-duplex), session establishment, checkpoints | NetBIOS, RPC, SQL sessions |
| 4 | Transport | Segment | Process-to-process delivery, port addressing, flow & error control | TCP, UDP |
| 3 | Network | Packet | Logical addressing (IP), path determination (routing) across networks | IPv4, IPv6, ICMP, Routers |
| 2 | Data Link | Frame | Node-to-node framing, physical (MAC) addressing, error detection, media access | Ethernet, PPP, Switches |
| 1 | Physical | Bits | Raw bit transmission as electrical, optical, or radio signals; connectors, bit rate | UTP, Fiber, Hubs, Repeaters |
Connection-Oriented vs. Connectionless Protocols (TCP vs. UDP)
At the Transport layer (Layer 4), applications choose between reliable connection-oriented delivery and lightweight connectionless delivery.
| Aspect | Connection-Oriented (TCP) | Connectionless (UDP) |
|---|---|---|
| Connection Setup | Requires -way handshake (SYN, SYN-ACK, ACK) before data transfer | No handshake; sends datagrams immediately |
| Reliability & Ordering | Guarantees in-order, error-free delivery via ACKs and retransmissions | Best-effort delivery; packets may arrive out of order or be dropped |
| Flow & Congestion Control | Built-in sliding window and congestion control | None at transport layer |
| Header Overhead & Latency | -byte minimum header; higher latency | -byte header; minimal latency |
| Typical Applications | Web browsing (HTTP/HTTPS), file transfer (FTP), email (SMTP) | Live video/VoIP, online gaming, DNS queries, DHCP |
1.5 Data Communication and Networking for Today's Enterprise
Modern enterprises integrate high-speed wired backbones, dense wireless access, IoT telemetry, and distributed computing platforms into a unified communication fabric.
- Wired and Wireless Enterprise Frameworks: Campus backbones rely on Gigabit/ switched Ethernet with Virtual LANs (VLANs) for traffic segmentation, paired with enterprise Wi-Fi ( / Wi-Fi 6) and Software-Defined WAN (SD-WAN) over fiber/MPLS to connect branch offices securely via VPNs.
- Internet of Things (IoT) Communication: Billions of embedded sensors, smart meters, and industrial controllers transmit periodic telemetry over low-power wireless links (BLE, Zigbee, LoRaWAN, NB-IoT, Wi-Fi) through edge gateways using lightweight protocols such as MQTT and CoAP.
- Enterprise Data Computing Models: Enterprises match computing placement to latency, bandwidth, and scalability requirements.
| Computing Model | Architecture | Primary Advantage | Representative Use Case |
|---|---|---|---|
| Centralized / On-Premises | Single corporate data center hosts servers and storage | Full physical control over hardware and sensitive records | Internal banking core, local ERP databases |
| Cloud Computing | Elastic virtualized compute and storage over WAN (IaaS, PaaS, SaaS) | On-demand scalability, pay-per-use, global availability | Enterprise SaaS apps, large-scale data analytics |
| Edge & Fog Computing | Compute nodes placed near data sources (factory floor, cell tower, gateway) | Ultra-low latency, reduced WAN backhaul bandwidth | Autonomous vehicles, real-time industrial robotics, smart cameras |
| Distributed / Hybrid | Workloads split across on-premises servers, edge nodes, and public clouds | Balances regulatory compliance, latency, and cloud elasticity | Multi-branch retail POS synced with cloud inventory |
Worked Examples
1
A microphone captures human speech and feeds a Digital Communication System. The ADC samples the speech at with bits per sample, and the source encoder achieves an compression ratio. If a channel encoder then adds redundancy (rate ), determine:
- The raw digital bit rate leaving the ADC.
- The compressed bit rate leaving the source encoder.
- The final coded bit rate entering the line encoder.
Raw bit rate leaving the ADC: Each second produces samples, and each sample is quantized into bits:
Compressed bit rate leaving the source encoder: With an lossless/lossy compression ratio, the source encoder reduces the bit rate by a factor of :
Coded bit rate entering the line encoder: Adding parity/FEC redundancy (coding rate ) multiplies the compressed bit rate by :
- ADC output rate:
- Source encoder output rate:
- Channel encoder output rate:
2
Classify each communication scenario by (a) data flow mode, (b) network type (LAN/MAN/WAN), and (c) preferred transport protocol (TCP or UDP), justifying each choice briefly:
- Live multicast video monitoring from IP cameras inside a university campus building to the security server room.
- Two-way voice dispatch between field engineers using push-to-talk radios across a city.
- Automated nightly encrypted backup of patient records from a Kathmandu clinic to a cloud data center in Singapore.
Scenario 1 (Campus IP camera streaming):
- Data flow mode: Primarily Simplex (video flows one way from camera to NVR server, though control commands use separate half/full-duplex channels).
- Network type: LAN (confined within a single campus building).
- Transport protocol: UDP (real-time video tolerates occasional packet loss better than TCP retransmission delays).
Scenario 2 (City-wide push-to-talk dispatch):
- Data flow mode: Half-Duplex (both stations can transmit and receive, but only one speaks while holding the PTT button).
- Network type: MAN (spans an entire city/metropolitan area).
- Transport protocol: UDP (if carried over IP/VoIP dispatch, real-time voice demands minimal latency without TCP handshake or retransmission stalls).
Scenario 3 (Kathmandu-to-Singapore encrypted database backup):
- Data flow mode: Full-Duplex (data chunks stream to Singapore while TLS handshakes and TCP acknowledgments return simultaneously).
- Network type: WAN (cross-continental link spanning thousands of kilometers).
- Transport protocol: TCP (database backups require bit-accurate, in-order delivery).
- Simplex · LAN · UDP
- Half-Duplex · MAN · UDP
- Full-Duplex · WAN · TCP
3
An application generates a message and sends it over a TCP/IP-over-Ethernet stack. Suppose the Transport layer adds a TCP header, the Network layer adds a IPv4 header, and the Data Link layer adds an Ethernet header and trailer ( header FCS). Calculate the total frame size at Layer 2 and the protocol transmission efficiency.
Encapsulate the payload down the stack:
- Transport Layer (Segment):
- Network Layer (Packet):
- Data Link Layer (Frame):
Compute protocol efficiency:
Total Layer-2 frame size is , and protocol transmission efficiency is .
Exercises
Exercises
Distinguish between analog data and digital data, and explain the three data flow modes (simplex, half-duplex, and full-duplex) with one real-world example of each.
Analog vs. digital data:
- Analog data varies continuously over time and can take an infinite number of intermediate values (e.g., human speech acoustic pressure or an analog thermometer reading).
- Digital data consists of discrete states or symbols drawn from a finite alphabet (e.g., text characters stored as ASCII bytes or binary bits and ).
Data flow modes:
- Simplex: Data travels in only one fixed direction; one device is strictly a transmitter and the other is strictly a receiver (e.g., a keyboard sending keystrokes to a computer, or FM radio broadcasting).
- Half-Duplex: Both devices can transmit and receive, but not simultaneously; the channel alternates direction (e.g., walkie-talkies).
- Full-Duplex: Both devices transmit and receive simultaneously over shared or separate paths (e.g., a telephone conversation or switched Ethernet).
Analog data is continuous whereas digital data is discrete. Data flows are simplex (one-way, e.g., TV broadcast), half-duplex (two-way alternating, e.g., walkie-talkie), and full-duplex (two-way simultaneous, e.g., telephone call).
Draw a clean functional block diagram of a full-duplex digital communication system and explain the specific roles of the ADC, Source Encoder, Channel Encoder, and Line Encoder.
Block diagram of a full-duplex digital communication system: Each transceiver contains both an independent transmit path and an independent receive path:
Station A Station B
[Mic/Sensor] -> [ADC -> Src Enc -> Ch Enc -> Line Enc -> MUX -> Mod] ==(Tx A->B)==> [Demod -> DEMUX -> Line Dec -> Ch Dec -> Src Dec -> DAC] -> [Speaker]
[Speaker] <- [DAC <- Src Dec <- Ch Dec <- Line Dec <- DEMUX <- Demod] <==(Tx B->A)== [Mod <- MUX <- Line Enc <- Ch Enc <- Src Enc <- ADC] <- [Mic/Sensor]Roles of the four specified blocks:
- ADC (Analog-to-Digital Converter): Samples continuous electrical signals from the input transducer and quantizes each sample into binary bits.
- Source Encoder: Removes statistical redundancy (data compression) to minimize the number of bits required per unit time (e.g., MP3, JPEG).
- Channel Encoder: Introduces controlled redundant bits (parity, CRC, or FEC) so the receiver can detect and/or correct bit errors caused by channel noise.
- Line Encoder: Converts abstract binary s and s into physical voltage waveforms (e.g., NRZ, Manchester, AMI) suitable for baseband transmission.
A full-duplex digital transceiver pairs complete transmit and receive chains at each end; the ADC digitizes analog inputs, the Source Encoder compresses redundancy, the Channel Encoder adds error-control redundancy, and the Line Encoder formats bits into physical line waveforms.
Why has digital communication largely replaced analog communication in modern enterprise and telecom networks? List any five advantages of digital over analog communication.
Key advantages of digital communication:
- Superior Noise Immunity: Threshold detection distinguishes and accurately even in moderate noise, and regenerative repeaters remove accumulated noise at each hop.
- Error Detection and Correction: Channel coding (CRC, Hamming, FEC) enables reliable recovery from channel bit errors.
- Bandwidth Efficiency via Compression & Multiplexing: Digital data supports lossless/lossy source compression and tight Time Division Multiplexing (TDM).
- Built-in Security: Cryptographic algorithms (AES, TLS) and authentication apply directly to bit streams.
- Hardware Integration & Lossless Storage: Compatible with VLSI processors, software-defined switches, and error-free disk/memory archiving.
Digital communication provides higher noise immunity with regenerative repeaters, built-in error detection/correction, efficient compression and multiplexing, straightforward encryption, and seamless integration with digital computers and storage.
List the seven layers of the OSI reference model in order from Layer 1 to Layer 7, stating the Protocol Data Unit (PDU) and primary responsibility of each layer.
OSI layers from bottom (Layer 1) to top (Layer 7):
- Layer 1 — Physical (PDU: Bits): Electrical/optical/radio signaling, bit synchronization, connectors, and physical topology.
- Layer 2 — Data Link (PDU: Frame): Framing, MAC addressing, error detection (FCS/CRC), and media access control.
- Layer 3 — Network (PDU: Packet): Logical addressing (IP) and routing packets across interconnected networks.
- Layer 4 — Transport (PDU: Segment): End-to-end process delivery via port numbers, segmentation, flow control, and reliability (TCP/UDP).
- Layer 5 — Session (PDU: Data): Establishing, managing, synchronizing, and terminating communication sessions.
- Layer 6 — Presentation (PDU: Data): Data syntax conversion, character encoding, compression, and encryption/decryption.
- Layer 7 — Application (PDU: Data): Providing network interfaces and services directly to user applications (HTTP, DNS, SMTP, FTP).
From Layer 1 to Layer 7: Physical (Bits), Data Link (Frame), Network (Packet), Transport (Segment), Session (Data), Presentation (Data), and Application (Data).
A real-time VoIP application sends audio payloads using UDP ( header) over IPv4 ( header) and Ethernet ( total framing overhead). Why is UDP chosen instead of TCP for VoIP, and what is the resulting Layer-2 frame size and payload efficiency?
Why UDP is preferred over TCP for VoIP: Real-time voice cannot wait for TCP's -way handshake or retransmission of lost packets, which would cause audible stalls and jitter. UDP offers minimal overhead and immediate transmission; an occasional dropped voice packet is less disruptive than delayed audio.
Layer-2 frame size and efficiency calculation:
UDP avoids handshake and retransmission delays critical to real-time voice; the Layer-2 frame size is with payload efficiency.
Distinguish between LAN, MAN, and WAN, and explain how Cloud Computing and Edge Computing work together in an enterprise IoT deployment.
LAN vs. MAN vs. WAN:
- LAN: Covers a local room, building, or campus (), privately owned, offering high speeds (–) with Ethernet/Wi-Fi.
- MAN: Spans a city or metropolitan region (–), interconnecting multiple LANs via metro fiber rings or cable infrastructure.
- WAN: Covers countries or continents (), interconnecting LANs/MANs over ISP backbones, MPLS, optical fiber, or satellite links.
Cloud vs. Edge Computing in enterprise IoT:
- Edge Computing processes time-critical sensor data locally at gateways or on-site servers (yielding millisecond latency and filtering redundant raw telemetry before sending it over the WAN).
- Cloud Computing aggregates historical and multi-site summaries in scalable data centers for long-term storage, enterprise dashboards, and machine-learning model training.
LAN, MAN, and WAN differ by geographic scale (building, city, global). In enterprise IoT, Edge Computing handles low-latency local control and filtering while Cloud Computing provides scalable long-term analytics and centralized management.