Follow Us
Select Medium / माध्यम चुनें:
Eng (English) Hindi (हिन्दी)
JAC • Class XII • Computer Science • Ch 11
Estimated Time: 45 Mins
Study Progress: In Progress

Data Communication

In CBSE Class 12 Computer Science, "Data Communication" provides an exhaustive master resource on signal transmission, transmission modes, network switching techniques, IP addressing, and protocol suites. This comprehensive chapter covers the 5-component communication model, transmission modes (Simplex, Half-Duplex, Full-Duplex), switching paradigms (Circuit Switching vs Packet Switching), IP addressing (IPv4 vs IPv6, classless subnetting), MAC addresses, the Domain Name System (DNS), URL anatomy, and network application protocols (`TCP/IP`, `HTTP`, `HTTPS`, `FTP`, `SMTP`, `POP3`, `VoIP`) aligned with the 2026–27 CBSE curriculum.

How Does a WhatsApp Voice Call Reach London in Real Time Without Reserving a Dedicated Wire?

In the early days of telephony, making a phone call from Mumbai to London required physical switchboard operators to plug copper cables into jacks, creating a dedicated, continuous electrical circuit across the globe for the entire duration of the call—even when both parties were silent! If that circuit was severed, the call dropped. Today, billions of WhatsApp voice calls, Netflix streams, and credit card transactions flow simultaneously over the exact same shared cables. How does modern packet switching break conversations into discrete numeric packets, route them over different geographic paths, reassemble them in order, and translate human web addresses like `targetexams.com` into numeric IP addresses in milliseconds? This chapter explores data communication protocols.

Why This Chapter Matters

Data communication protocols govern how software systems talk to each other across the globe. Whether you are building REST APIs, configuring secure HTTPS certificates, troubleshooting DNS lookup failures, or optimizing packet transmission over WebSockets, understanding the OSI/TCP-IP networking model is fundamental for every backend engineer, cybersecurity analyst, and cloud architect.

Before You Begin (Prerequisites)

  • Computer network classifications (LAN, WAN) and topologies (Chapter 10).
  • Binary representation of numbers and byte calculations.
  • Conceptual familiarity with web browsers and web URLs.

What You Will Learn (Core Objectives)

  • Analyze the 5-component Data Communication Model: Sender, Receiver, Message, Medium, and Protocol.
  • Compare Transmission Modes: Simplex, Half-Duplex, and Full-Duplex with real-world communication systems.
  • Differentiate Circuit Switching (dedicated physical path) from Packet Switching (store-and-forward packet routing).
  • Contrast 32-bit IPv4 Addressing with 128-bit IPv6 Addressing and explain the IPv4 address exhaustion problem.
  • Distinguish physical MAC addresses (48-bit hardware identifier) from logical IP addresses.
  • Trace the Domain Name System (DNS) resolution hierarchy from root servers down to authoritative name servers.
  • Explain core application protocols: TCP/IP, HTTP, HTTPS, FTP, SMTP, POP3, and VoIP.

Chapter Roadmap & Progression

1 1. The Data Communication Model & T...
2 2. Switching Techniques: Circuit Sw...
3 3. Addressing: MAC Address vs. IP A...
4 4. DNS Resolution & Core Network Pr...

Complete Concept Guide (100% Curriculum Coverage)

1. The Data Communication Model & Transmission Modes

Understand

Data communication is the exchange of digital data between two devices via a transmission medium. Any communication system comprises five essential components:

  • 1. Sender: The device that initiates and transmits the data message (computer, workstation, smartphone).
  • 2. Receiver: The destination device that accepts the message.
  • 3. Message: The information/payload to be communicated (text, numbers, images, audio, video).
  • 4. Medium: The physical transmission path carrying the signal (twisted pair, fiber optic, radio waves).
  • 5. Protocol: The formal set of governing rules, formats, and conventions that define how data is transmitted and parsed. Without a protocol, two devices may be physically connected but cannot communicate (like two humans speaking different languages).
Transmission Modes (Directionality of Flow)
Transmission ModeDirectionalityChannel Capacity UtilizationReal-World Example
SimplexStrictly Unidirectional (One-way only)Entire bandwidth used in single direction.Keyboard to CPU, Television broadcast, Monitor display
Half-DuplexBidirectional, but ONE direction at a timeDevices alternate between transmitting and receiving.Walkie-talkie ("Over and out!"), CB radio
Full-DuplexSimultaneous Bidirectional (Both ways at once)Channel capacity split or uses dual channels.Telephone conversation, Modern switched Ethernet, Video calls

2. Switching Techniques: Circuit Switching vs. Packet Switching

Understand & Comparison
A. Circuit Switching (Traditional Telephony)

Establishes a dedicated, physical communication path between sender and receiver before data transfer begins. The dedicated circuit remains exclusively reserved for the entire duration of the session, even during periods of silence. Guaranteed bandwidth, but highly inefficient line utilization.

B. Packet Switching (The Internet Standard)

The message is broken into small, discrete, variable-sized chunks called Packets. Each packet contains payload data plus header metadata (Source IP, Destination IP, Sequence Number). Packets travel independently through the network along diverse routers using store-and-forward routing, and are reassembled into the original message at the destination:

  • No dedicated circuit reservation; highly efficient channel utilization.
  • Packets may arrive out of order; TCP sequence numbers reassemble them correctly.

3. Addressing: MAC Address vs. IP Address (IPv4 & IPv6)

Understand & Hardware vs Logical
ParameterMAC Address (Media Access Control)IP Address (Internet Protocol)
NaturePhysical / Hardware Address (Burned into NIC)Logical / Software Address (Assigned dynamically by network)
Bit Length48 bits (6 bytes)IPv4: 32 bits (4 bytes) • IPv6: 128 bits (16 bytes)
Format NotationHexadecimal separated by colons or hyphens:
`00:1A:2B:3C:4D:5E`
IPv4: Dotted Decimal (`192.168.1.1`)
IPv6: 8 groups of 4 hex digits (`2001:0db8::1`)
OSI LayerData Link Layer (Layer 2)Network Layer (Layer 3)
PermanencePermanently hardwired by manufacturer (does not change when moving).Dynamic; changes when moving between different Wi-Fi/networks.

4. DNS Resolution & Core Network Protocols

Protocols & DNS
Domain Name System (DNS)

The "phonebook of the Internet". Humans remember symbolic domain names (e.g., `www.targetexams.com`), while networking routers route packets using numeric IP addresses (e.g., `77.237.235.240`). DNS servers translate domain names into corresponding IP addresses.

Anatomy of a URL: `https://www.targetexams.com:443/school-syllabus/index.html`
  • `https://`: Protocol used for communication.
  • `www.targetexams.com`: Domain name (host address).
  • `:443`: Port number (443 for HTTPS, 80 for HTTP).
  • `/school-syllabus/index.html`: File directory path and resource name on server.
Core Application Protocols:
  • TCP/IP: Transmission Control Protocol ensures reliable, ordered packet delivery with error checking; Internet Protocol handles packet addressing and routing.
  • HTTP / HTTPS: HyperText Transfer Protocol for transmitting web pages. HTTPS adds SSL/TLS encryption for end-to-end security.
  • FTP: File Transfer Protocol for uploading/downloading files between client and remote server.
  • SMTP vs POP3: Simple Mail Transfer Protocol sends emails; Post Office Protocol retrieves emails from mail servers.
  • VoIP: Voice over Internet Protocol converts analog audio into digital IP packets for telephone calls over the Internet (e.g., WhatsApp Call, Skype).

Key Programming Syntax, Statements & Translator Rules

IPv4 Address Space Capacity
$$2^{32} = 4,294,967,296 \text{ unique addresses}$$
Exhausted globally, necessitating migration to IPv6.
IPv6 Address Space Capacity
$$2^{128} \approx 3.4 \times 10^{38} \text{ unique addresses}$$
Virtually inexhaustible addressing capacity.

Packet Switching & DNS Resolution Architecture

Packet Switching & DNS Translation Architecture Packet Switching (Internet Standard) Sender P1 P2 P3 Receiver Store-and-Forward Routing • Message chopped into packets with headers • Packets travel independent dynamic routes • TCP reassembles packets in correct sequence DNS Resolution Architecture Client Browser targetexams.com Domain Query IP: 77.237.235.240 DNS Server Mapping Table MAC vs IP vs URL • MAC: 48-bit physical chip address (burned-in) • IPv4: 32-bit logical address (192.168.1.1) • IPv6: 128-bit hex address (2001:db8::1) • DNS translates human URLs to IP addresses

Chapter Summary & 10 Key Takeaways

Takeaway 1
Data communication requires five components: Sender, Receiver, Message, Medium, and Protocol.
Takeaway 2
Transmission modes are Simplex (one-way), Half-Duplex (two-way alternate), and Full-Duplex (simultaneous two-way).
Takeaway 3
Circuit Switching reserves a dedicated physical line; Packet Switching chops messages into independent packets.
Takeaway 4
MAC Address is a 48-bit physical hardware identifier permanently burned into the Network Interface Card.
Takeaway 5
IP Address is a logical software address assigned to devices; IPv4 uses 32 bits, while IPv6 uses 128 bits.
Takeaway 6
Domain Name System (DNS) translates human-readable domain names into machine-routable IP addresses.
Takeaway 7
A URL contains protocol, domain name, port number, and file path.
Takeaway 8
TCP guarantees reliable, ordered packet delivery; IP routes packets across intermediate networks.
Takeaway 9
HTTP transmits web pages in plaintext; HTTPS encrypts communications using SSL/TLS encryption.
Takeaway 10
SMTP sends outgoing emails; POP3/IMAP retrieves incoming emails; VoIP transmits voice calls over IP.

Check Your Understanding (Diagnostic Practice Questions)

Diagnostic questions testing core conceptual clarity. Answers are hidden initially — solve each problem first, then click to reveal the step-by-step verified solution.

1
Differentiate between Simplex, Half-Duplex, and Full-Duplex transmission modes with one real-world example of each.
Reveal Answer & Explanation
Answer: • Simplex: Communication is strictly unidirectional (one-way). One device transmits, the other only listens. Example: Television broadcast or computer keyboard.
• Half-Duplex: Communication is bidirectional, but only one direction at a time. Devices must take turns. Example: Police walkie-talkies.
• Full-Duplex: Communication is simultaneous in both directions at the same time. Example: Telephone conversation or full-duplex Ethernet.
Simplex = 1-way; Half-Duplex = 2-way alternate; Full-Duplex = 2-way simultaneous.
2
Explain how Packet Switching works and why it is superior to Circuit Switching for the Internet.
Reveal Answer & Explanation
Answer: In Packet Switching, messages are divided into discrete data packets containing header information (Source IP, Destination IP, sequence number). Packets travel independently through dynamic routes across routers and are reassembled in order at the destination. It is superior to Circuit Switching because it does not lock dedicated physical lines, allowing millions of users to share the same transmission lines simultaneously with high resilience against line cuts.
Chopped into packets traveling independent routes without locking dedicated circuits.
3
Compare a MAC Address and an IP Address on: (a) Bit length, (b) Representation format, (c) Permanence/Portability.
Reveal Answer & Explanation
Answer: • (a) Bit Length: MAC address is 48 bits (6 bytes); IPv4 address is 32 bits (4 bytes), IPv6 is 128 bits.
• (b) Format: MAC is represented as 6 pairs of hexadecimal digits separated by colons (`00:1A:2B:3C:4D:5E`); IPv4 is represented in dotted-decimal notation (`192.168.1.1`).
• (c) Permanence: MAC is a permanent hardware address burned into the NIC; IP is a logical address that changes dynamically when moving between networks.
MAC = 48-bit permanent physical hex; IP = 32-bit dynamic logical dotted-decimal.
4
Why is the world actively transitioning from IPv4 to IPv6? What is the size of the address space in each?
Reveal Answer & Explanation
Answer: IPv4 uses 32 bits, providing $2^{32} \approx 4.29\text{ billion}$ unique addresses. With the explosive proliferation of smartphones, laptops, servers, and IoT smart devices worldwide, IPv4 addresses have been completely exhausted. IPv6 uses 128 bits, providing $2^{128} \approx 3.4 \times 10^{38}$ unique addresses—a virtually infinite address pool that assigns trillions of unique IP addresses to every square meter of Earth.
IPv4 (32 bits, 4.3B) is exhausted; IPv6 (128 bits, 3.4*10^38) provides endless addresses.
5
Deconstruct the following URL into its functional components:
`https://www.targetexams.com:443/cbse/syllabus.html`
Reveal Answer & Explanation
Answer: • `https`: Transfer Protocol (HyperText Transfer Protocol Secure).
• `www.targetexams.com`: Domain Name / Host Server Address.
• `443`: Port Number (default standard port for encrypted HTTPS traffic).
• `/cbse/syllabus.html`: File path / resource location on the web server.
Protocol, Domain name, Port, and Path to resource.
6
What is the Domain Name System (DNS)? Trace what happens when a user types a website name into their browser.
Reveal Answer & Explanation
Answer: DNS is the hierarchical distributed database that translates human-readable domain names into numeric IP addresses.
Resolution steps:
1. User types `www.example.com`.
2. Browser queries the local DNS resolver cache.
3. If absent, the resolver queries Root DNS servers → TLD (.com) servers → Authoritative DNS server for `example.com`.
4. The authoritative server returns the target IP address (e.g., `93.184.216.34`).
5. The browser establishes an HTTP/HTTPS connection directly with that IP address.
Translates domain names into IP addresses via root, TLD, and authoritative servers.
7
Differentiate between SMTP and POP3 protocols in electronic mail systems.
Reveal Answer & Explanation
Answer:

• SMTP (Simple Mail Transfer Protocol): A push protocol used by email clients to send emails from the sender's computer to the mail server, and to relay emails between intermediate mail servers.
• POP3 (Post Office Protocol version 3): A pull protocol used by email clients to retrieve and download emails from the incoming mail server onto a local device.


SMTP sends (pushes) email; POP3 downloads (pulls) email.
8
What is VoIP (Voice over Internet Protocol)? Name two real-world consumer applications that utilize VoIP.
Reveal Answer & Explanation
Answer: VoIP is a communication methodology and set of protocols that allows voice telephone calls and multimedia sessions to be transmitted over IP networks (the Internet) rather than traditional public switched telephone networks (PSTN). It digitizes analog voice signals into digital packets, transmits them over IP, and converts them back to sound at the receiver.
Applications: WhatsApp Voice Calls, Skype, Zoom, Google Meet.
Transmits voice calls as digital IP packets over the Internet; WhatsApp Calls and Skype.
Finished Studying This Chapter?
READY TO PRACTICE?

Timed CBT Practice Tests (Exam Simulator)

Put your concepts to the test with official curriculum-aligned Foundation and Advanced practice tests. Get instant accuracy scores, time metrics, and step-by-step verified explanations.