Sikshya Plus Get appGet the app free
Class 12 · Computer Science

Data communication and Networking – Class 12 Computer Science Notes and Solutions

Complete solutions and answers for “Data communication and Networking”, a chapter in Class 12 Computer Science (NEB exam preparation). This page covers Section 1 — Multiple Choice Questions (MCQs), Section 2 — Short Answer Questions and Section 3 — Long / Descriptive Answer Questions.

  • Free, no login needed
  • 47 min read
  • Updated 1 July 2026

Chapter at a glance

This chapter provides a comprehensive overview of data communication and networking concepts. It covers the fundamental elements of communication systems, different types of signals and modulation techniques, data transmission modes, and various network topologies. The chapter also delves into network types (LAN, WAN), transmission media (guided and unguided), network impairments, and essential networking concepts like IP addresses, MAC addresses, subnetting, and network architectures (client-server, peer-to-peer).

  • Communication System Elements (Sender, Message, Medium, Receiver, Noise)
  • Modulation (AM, FM, PM)
  • Data Transmission Modes (Simplex, Half Duplex, Full Duplex)
  • Network Types (LAN, WAN)
  • Transmission Media (Guided: Twisted Pair, Coaxial, Fiber Optic; Unguided: Radio, Microwave, Infrared)
  • Network Impairments (Jitter, Crosstalk, Attenuation)
  • IP Addresses and Subnet Masks
  • MAC Addresses vs. IP Addresses

Exam focus: Students should focus on understanding the fundamental concepts of data transmission, network components, addressing schemes (IP and MAC), and the differences between various network types and architectures, as these are frequently tested.

Key formulas and definitions

  • Analog signal: Continuously changes value with time.
  • Simplex communication: Data flows in only one direction.
  • Full Duplex communication: Data flows in both directions simultaneously.
  • LAN (Local Area Network): Connects computers in a small local area.
  • WAN (Wide Area Network): Covers a large geographical area.
On this page (28 sections)
  1. Section 1 — Multiple Choice Questions (MCQs)
  2. Section 2 — Short Answer Questions
  3. 1. What are the basic elements of a communication system? Explain briefly.
  4. 2. What is modulation? Explain the types of modulations.
  5. 3. Explain briefly the elements of data communication.
  6. 4. Define simplex, half duplex and full duplex.
  7. 5. Define LAN. Write down its advantages and disadvantages.
  8. 6. What is WAN? What are the advantages of WAN?
  9. 7. What is transmission media? Explain the different transmission media.
  10. 8. Describe the unguided transmission media.
  11. 9. What is transmission impairment? Explain jitter and crosstalk.
  12. 10. List the differences between client-server and peer-to-peer network architectures.
  13. 11. What is client-server architecture? Write down its advantages and disadvantages.
  14. 12. What is an IP address? Why is IP address needed? Explain.
  15. 13. What are the different network classes? Explain them shortly.
  16. 14. What is a subnet mask? Why is a subnet mask needed? Explain.
  17. 15. How does the subnet mask identify that any two computers are on the same network or different?
  18. 16. What is a MAC address? Write the role of the MAC address in the local network.
  19. 17. Write the differences between an IP address and a MAC address.
  20. 18. Define the terms "Internet", "Intranet" and "Extranet".
  21. 19. What is a network switch? How does it work?
  22. Section 3 — Long / Descriptive Answer Questions
  23. 1. Describe about the transmission media that are used in data communication.
  24. 2. Draw a block diagram of the computer communication system and describe the communication system.
  25. 3. Describe terminology for transmission impairments.
  26. 4. Describe the different network architectures.
  27. 5. Describe the different IPv4 addresses and classes that are used on the Internet.
  28. 6. What is the OSI reference model? Describe it.

Solutions and answers

Complete exercise solutions with detailed explanations, definitions, and diagrams for thorough exam preparation.

📚 Class 12 Computer Science — All Questions Solved

Section 1 — Multiple Choice Questions (MCQs)

Select the correct option for each question with detailed explanations.

a. Communication system includes
i. Radio
ii. Computer
iii. Television
iv. All of the above
✅ Answer: iv. All of the above A communication system is any system that facilitates the transfer of information from a sender to a receiver. Radio transmits audio signals wirelessly, computers exchange digital data over networks, and television broadcasts audio-visual content. All three are fundamental examples of communication systems.
b. ________ is an element of communication system.
i. Information
ii. Signal
iii. Transducer
iv. All of the above
✅ Answer: iv. All of the above Information is the raw message/data to be communicated. A signal is the electrical, electromagnetic, or optical encoding of that information for transmission. A transducer is a device that converts one form of energy to another (e.g., a microphone converts sound waves into electrical signals). All three are essential elements of a communication system.
c. ________ signal continuously changes its value with time.
i. Digital
ii. Analog
iii. Electrical
iv. None of the above
✅ Answer: ii. Analog An analog signal is a continuous signal that varies smoothly over time, representing physical measurements such as sound, temperature, or light. Unlike digital signals (which have discrete values — typically 0 and 1), analog signals can take on any value within a given range, creating a smooth waveform.
d. The transmission of data from a mainframe to a monitor is an example of ________ communication mode.
i. Full Duplex
ii. Half Duplex
iii. Simplex
iv. None of the above
✅ Answer: iii. Simplex In simplex mode, data flows in only one direction — from sender to receiver. A mainframe sends display data to a monitor, but the monitor does not send data back to the mainframe. This unidirectional flow is the defining characteristic of simplex communication.
e. ________ modulation is a technique in which the frequency of the message signal is varied by modulating with a carrier wave.
i. Frequency
ii. Phase
iii. Amplitude
iv. None of the above
✅ Answer: i. Frequency Frequency Modulation (FM) is a modulation technique where the frequency of the carrier wave is varied in proportion to the amplitude of the message (modulating) signal, while the amplitude and phase of the carrier remain constant. FM is widely used in radio broadcasting because it is more resistant to noise compared to AM (Amplitude Modulation).
f. ________ transmission mode transfers data in both directions simultaneously.
i. Simplex
ii. Half Duplex
iii. Full Duplex
iv. Duplex
✅ Answer: iii. Full Duplex In full duplex mode, data can be transmitted in both directions at the same time. This is like a telephone conversation where both parties can speak and listen simultaneously. Half duplex also allows two-way communication, but not at the same time (e.g., a walkie-talkie).
g. A networking of computers in a small local area is
i. LAN
ii. MAN
iii. WAN
iv. None of the above
✅ Answer: i. LAN LAN (Local Area Network) is a network that connects computers within a limited geographical area such as a single building, school campus, or office. LANs typically offer high data transfer speeds and are owned by a single organization.
h. STP stands for
i. Shielded Twisted Pair
ii. Single Twisted Pair
iii. Shielded Twisted Pole
iv. Single Twisted Pole
✅ Answer: i. Shielded Twisted Pair STP (Shielded Twisted Pair) cable has an additional metallic foil or braided shielding around the twisted pairs of wires. This shielding provides extra protection against electromagnetic interference (EMI) and crosstalk, making STP suitable for environments with high electrical noise, though it is more expensive and less flexible than UTP (Unshielded Twisted Pair).
i. The ________ is the cause of imperfection in transmission media.
i. Cross talk
ii. Virus
iii. Bandwidth
iv. All of the above
✅ Answer: i. Cross talk Crosstalk is a well-known transmission impairment in which a signal traveling on one wire or channel creates an undesired effect on another wire or channel. It is caused by electromagnetic coupling between adjacent conductors. Virus is a software issue (not a transmission media issue) and bandwidth is a capacity measure, not an impairment.
j. The variation in packet arrival time to receiver is
i. Cross talk
ii. Jitter
iii. Attenuation
iv. Distortion
✅ Answer: ii. Jitter Jitter refers to the variation in the delay of received packets. When packets take different amounts of time to travel from sender to receiver (due to network congestion, route changes, etc.), the arrival time is inconsistent. Jitter is particularly problematic for real-time applications like voice over IP (VoIP) and video streaming.
k. A loss of the strength of the signal during propagation due to the resistance in medium is known as
i. Jitter
ii. Noise
iii. Distortion
iv. Attenuation
✅ Answer: iv. Attenuation Attenuation is the gradual loss of signal strength as it travels through a transmission medium. It is caused by the resistance of the medium itself, which converts some of the signal's energy into heat. The longer the distance, the greater the attenuation. Repeaters or amplifiers are used to boost weakened signals.
l. ISP is
i. A company that provides LAN facility.
ii. A company that provides the Internet.
iii. A company that controls and manages LAN.
iv. A company that controls and manages the Internet.
✅ Answer: ii. A company that provides the Internet. ISP (Internet Service Provider) is a company or organization that provides individuals and businesses with access to the Internet. ISPs connect users to the Internet through various technologies such as dial-up, DSL, fiber-optic, cable, or wireless. Examples include Nepal Telecom, WorldLink, Ncell, etc.
m. IP address refers to
i. A unique logical address of a computer on the Internet.
ii. A unique logical address of a network device.
iii. A unique physical address of a computer on the Internet.
iv. A physical address of a network device.
✅ Answer: i. A unique logical address of a computer on the Internet. An IP address (Internet Protocol address) is a unique logical address assigned to each device connected to a network that uses the Internet Protocol for communication. It is "logical" because it is assigned by software (not burned into hardware) and can change. This distinguishes it from a MAC address, which is a physical hardware address.
n. IPv4 addressing system uses ________ bits addressing system.
i. 64
ii. 32
iii. 48
iv. 128
✅ Answer: ii. 32 IPv4 (Internet Protocol version 4) uses a 32-bit addressing system, which provides approximately 232 = 4,294,967,296 unique addresses. An IPv4 address is written in dotted decimal notation with four octets (e.g., 192.168.1.1). IPv6 uses 128 bits.
o. The IP address 192.168.101.5 refers to
i. Class D
ii. Class C
iii. Class B
iv. Class A
✅ Answer: ii. Class C The first octet is 192. Class C addresses have a first octet range of 192 to 223. Since 192 falls within this range, the address 192.168.101.5 belongs to Class C.
p. In a Class A, the first ________ bits represent the network ID.
i. 32
ii. 24
iii. 16
iv. 8
✅ Answer: iv. 8 In Class A, the first 8 bits (the first octet) represent the network ID, and the remaining 24 bits represent the host ID. The first bit of a Class A address is always 0, giving a range of 0.0.0.0 to 127.255.255.255.
q. The Class B network has addresses range from
i. 128 to 191
ii. 0 to 127
iii. 192 to 223
iv. 224 to 239
✅ Answer: i. 128 to 191 Class B addresses have their first octet in the range 128 to 191. The first two bits are "10", the first 16 bits form the network ID, and the remaining 16 bits form the host ID.
r. The network ID of the computer whose IP address is 150.12.20.30 is
i. 150.12.20.0
ii. 150.12.0.0
iii. 150.0.0.0
iv. 150.12.20.30
✅ Answer: ii. 150.12.0.0 The first octet is 150, which falls in the Class B range (128–191). Class B uses the first two octets (16 bits) as the network ID. Therefore, the network ID is 150.12.0.0 (the host portion — the last two octets — is set to 0).
s. The subnet mask of the IP address 222.1.1.20/26 is
i. 255.255.248.0
ii. 255.255.255.0
iii. 255.255.255.192
iv. 255.255.192.0
✅ Answer: iii. 255.255.255.192 The /26 CIDR notation means the first 26 bits are the network portion.
11111111.11111111.11111111.11 | 000000
That is: 255.255.255.192 (the fourth octet: 11000000 = 192).
t. A network topology where all the nodes are commonly connected to a hub/switch
i. Bus topology
ii. Star topology
iii. Ring topology
iv. Mesh topology
✅ Answer: ii. Star topology In a star topology, every node (computer/device) is connected to a central device such as a hub or switch. All communication passes through this central device. It is the most commonly used topology in modern LANs due to its simplicity and ease of troubleshooting.
u. In which layer of the OSI model is a data packet formed?
i. Session Layer
ii. Transport Layer
iii. Network Layer
iv. Data Link Layer
✅ Answer: iii. Network Layer The Network Layer (Layer 3) is responsible for creating data packets that include source and destination IP addresses. This layer handles logical addressing and routing, determining the best path for data to travel from source to destination across multiple networks.

Section 2 — Short Answer Questions

Concise yet comprehensive answers covering all key concepts.

1. What are the basic elements of a communication system? Explain briefly.

A communication system is a system that facilitates the transfer of information from a source (sender) to a destination (receiver). Its basic elements are:

  1. Sender (Source / Transmitter): The device or entity that generates and sends the message. Examples include a computer, telephone, or television camera.
  2. Message (Information): The actual data or information that needs to be communicated. It can be text, audio, video, or any combination.
  3. Encoding (Encoder): The process of converting the message into a form suitable for transmission (e.g., converting voice into electrical signals using a microphone). A transducer performs this conversion.
  4. Transmission Medium (Channel): The physical path through which the encoded message travels from sender to receiver. It can be guided (twisted pair cable, coaxial cable, fiber optic) or unguided (radio waves, microwaves, infrared).
  5. Decoding (Decoder): The process of converting the received signal back into a form that the receiver can understand (e.g., a speaker converting electrical signals back into sound).
  6. Receiver (Destination): The device or entity that receives and interprets the message. Examples include a computer monitor, telephone earpiece, or television screen.
  7. Noise: Any unwanted signals or interference that corrupts the original message during transmission. Noise can be caused by electrical interference, signal attenuation, or crosstalk.
┌──────────┐    ┌──────────┐    ┌───────────────────┐    ┌──────────┐    ┌──────────┐
│  SENDER  │───▶│ ENCODER  │───▶│ TRANSMISSION      │───▶│ DECODER  │───▶│ RECEIVER │
│ (Source) │    │(Transducer)│   │ MEDIUM (Channel)  │    │          │    │(Destin.) │
└──────────┘    └──────────┘    │   ◈ Noise ◈       │    └──────────┘    └──────────┘
                                └───────────────────┘

2. What is modulation? Explain the types of modulations.

📌 Definition
Modulation is the process of modifying a high-frequency carrier wave according to the characteristics of the message (modulating) signal so that the information can be transmitted over long distances efficiently.

Modulation is necessary because low-frequency signals (like voice) cannot travel long distances efficiently through the air. By encoding them onto a high-frequency carrier wave, we can transmit them over great distances.

Types of Modulation:

  1. Amplitude Modulation (AM):
    • The amplitude of the carrier wave is varied in proportion to the amplitude of the message signal.
    • The frequency and phase of the carrier remain constant.
    • AM is simpler to implement but more susceptible to noise.
    • Used in AM radio broadcasting, aviation communication.
  2. Frequency Modulation (FM):
    • The frequency of the carrier wave is varied in proportion to the amplitude of the message signal.
    • The amplitude and phase remain constant.
    • FM is more resistant to noise and provides better sound quality.
    • Used in FM radio broadcasting, two-way radio systems.
  3. Phase Modulation (PM):
    • The phase of the carrier wave is varied in proportion to the amplitude of the message signal.
    • The amplitude and frequency remain constant.
    • PM is closely related to FM and is used in digital signal processing.
    • Used in satellite communication and Wi-Fi systems.

3. Explain briefly the elements of data communication.

Data communication is the exchange of data between two or more devices through some form of transmission medium. The five key elements are:

  1. Sender (Source):

    The device that sends the data message. It can be a computer, mobile phone, camera, or any other device capable of generating data.

  2. Receiver (Destination):

    The device that receives the data message. It can be a computer, printer, television, or any device capable of accepting data.

  3. Message (Data):

    The information or data to be communicated. Data can be in the form of text, numbers, images, audio, video, or any combination thereof.

  4. Transmission Medium:

    The physical path or channel through which the message travels from sender to receiver. Examples include twisted pair cables, coaxial cables, fiber optic cables, radio waves, and microwaves.

  5. Protocol:

    A set of rules and conventions that govern data communication. Protocols define the format, timing, sequencing, and error control of data transmission. Examples include TCP/IP, HTTP, FTP, and SMTP.

💡 Key Point
Without a protocol, the sender and receiver would not be able to understand each other, even if they are connected by a medium. Protocols ensure that communication is standardized, reliable, and error-free.

4. Define simplex, half duplex and full duplex.

Data transmission modes define the direction of data flow between two communicating devices. The three modes are:

  1. Simplex Mode:
    • Data flows in only one direction — from sender to receiver.
    • The receiver cannot send a response back to the sender.
    • It is a unidirectional communication.
    • Examples: Keyboard to computer, television broadcasting, monitor receiving data from CPU.
  2. Half Duplex Mode:
    • Data can flow in both directions, but not at the same time.
    • When one device is sending, the other must receive, and vice versa.
    • It is a two-way alternate communication.
    • Examples: Walkie-talkie, where one person speaks while the other listens, then they switch.
  3. Full Duplex Mode:
    • Data flows in both directions simultaneously.
    • Both devices can send and receive data at the same time.
    • It is a two-way simultaneous communication.
    • Examples: Telephone conversation, video conferencing.
SIMPLEX:          HALF DUPLEX:        FULL DUPLEX:
A ──────────▶ B   A ◀──────────▶ B    A ◀══════════▶ B
(one way)         (alternate)         (simultaneous)

5. Define LAN. Write down its advantages and disadvantages.

📌 Definition
LAN (Local Area Network) is a network that connects computers and devices within a limited geographical area such as a home, office building, school, or laboratory. LANs typically cover a range of up to a few kilometers.

Advantages of LAN:

  • High speed: LANs offer very high data transfer rates (100 Mbps to 10 Gbps and above).
  • Resource sharing: Hardware (printers, scanners) and software resources can be shared among all connected devices, reducing costs.
  • Easy communication: Users can communicate via email, messaging, and shared folders within the network.
  • Centralized data management: Data can be stored on a central server, making backup and security management easier.
  • Low cost: Setting up a LAN is relatively inexpensive compared to WANs.
  • Internet sharing: A single Internet connection can be shared among all devices on the LAN.
  • Easy maintenance: Since the network is confined to a small area, troubleshooting and maintenance are simpler.

Disadvantages of LAN:

  • Limited area: LANs cover only a small geographical area (typically a building or campus).
  • Security threats: If proper security measures (firewalls, encryption) are not implemented, unauthorized users may access sensitive data.
  • Setup requires expertise: Designing and setting up a LAN requires trained network administrators.
  • Single point of failure: If the central server or main switch fails, the entire network may become non-functional.
  • Viruses and malware: If one computer is infected, the virus can spread rapidly across the entire LAN.

6. What is WAN? What are the advantages of WAN?

📌 Definition
WAN (Wide Area Network) is a network that covers a large geographical area, spanning cities, countries, or even continents. The Internet is the largest WAN in the world. WANs connect multiple LANs and MANs together using technologies such as leased lines, satellites, and fiber optics.

Advantages of WAN:

  • Wide geographical coverage: WANs can connect offices, branches, and users across cities, countries, and continents.
  • Centralized data: Organizations can store all data on central servers accessible from any location, enabling efficient data management.
  • Global communication: Users can communicate and collaborate in real-time regardless of their physical location (video conferencing, email, VoIP).
  • Resource sharing: Software, applications, and databases can be shared across distant locations.
  • E-commerce and online services: WANs (especially the Internet) enable online shopping, banking, education, and government services.
  • High bandwidth options: Modern WAN technologies (fiber optic, satellite) provide very high data transfer speeds.
  • Business expansion: Companies can establish remote offices and manage operations globally through WANs.

7. What is transmission media? Explain the different transmission media.

📌 Definition
Transmission media is the physical pathway or channel through which data is transmitted from a sender to a receiver in a communication system. It forms the backbone of any network.

Transmission media are broadly classified into two categories:

A. Guided (Wired / Bounded) Media:

In guided media, signals are directed along a physical path (cable or wire).

  1. Twisted Pair Cable:
    • Consists of two insulated copper wires twisted together to reduce crosstalk and electromagnetic interference.
    • UTP (Unshielded Twisted Pair): Most common type, used in LANs (e.g., Cat5e, Cat6 cables). Cost-effective and easy to install.
    • STP (Shielded Twisted Pair): Has an extra metallic shielding for better noise protection. Used in environments with high electromagnetic interference.
    • Speed: Up to 1 Gbps (depending on category).
    • Distance: Up to approximately 100 meters.
  2. Coaxial Cable:
    • Has a central copper conductor surrounded by insulating material, a metallic shield, and an outer plastic jacket.
    • Better shielding than twisted pair, providing higher bandwidth and longer distance capability.
    • Used in cable television, broadband Internet, and older LAN installations.
    • Speed: Up to 10 Gbps.
    • Distance: Up to several hundred meters.
  3. Fiber Optic Cable:
    • Transmits data as pulses of light through thin glass or plastic fibers.
    • Offers the highest speed, longest distance, and is immune to electromagnetic interference.
    • Very secure, as tapping fiber optic cables is extremely difficult.
    • Used in backbone networks, long-distance telecommunications, and high-speed Internet.
    • Speed: Up to 100 Gbps and beyond.
    • Distance: Up to several kilometers without repeaters.

B. Unguided (Wireless / Unbounded) Media:

In unguided media, signals are broadcast through the air (or space) without any physical conductor.

  1. Radio Waves:
    • Electromagnetic waves that can travel long distances and penetrate through buildings.
    • Used in Wi-Fi, Bluetooth, AM/FM radio, television broadcasting, and mobile communication.
    • Frequency range: 3 kHz to 1 GHz.
  2. Microwaves:
    • High-frequency electromagnetic waves that travel in straight lines (line-of-sight).
    • Require towers or satellites for long-distance transmission.
    • Used in satellite communication, mobile phone networks, and point-to-point links.
    • Frequency range: 1 GHz to 300 GHz.
  3. Infrared:
    • Short-range signals that cannot penetrate through walls or solid objects.
    • Used in TV remote controls, short-range data transfer (IrDA), and some wireless peripherals.
    • Frequency range: 300 GHz to 400 THz.

8. Describe the unguided transmission media.

📌 Definition
Unguided transmission media (also called wireless media) transmit data through electromagnetic waves without the use of any physical conductor or cable. The signals propagate through the air or free space.

Types of Unguided Media:

  1. Radio Waves (3 kHz – 1 GHz):
    • Radio waves are omnidirectional — they spread out in all directions from the transmitting antenna.
    • They can travel long distances and penetrate through buildings and walls.
    • Applications: AM/FM radio, television broadcasting, Wi-Fi (IEEE 802.11), Bluetooth, mobile phones.
    • Advantages: Wide coverage area, can pass through obstacles, easy to deploy.
    • Disadvantages: Susceptible to interference from other radio sources, lower security (signals can be intercepted).
  2. Microwaves (1 GHz – 300 GHz):
    • Microwaves are unidirectional and travel in straight lines, requiring a clear line of sight between sender and receiver.
    • They are focused into narrow beams by parabolic antennas, allowing point-to-point communication.
    • Applications: Satellite communication, mobile phone towers (cellular networks), terrestrial microwave links, radar.
    • Advantages: Higher bandwidth than radio waves, suitable for long-distance communication via satellites.
    • Disadvantages: Requires line of sight, affected by weather conditions (rain fade), towers/repeaters needed for long distances.
  3. Infrared Waves (300 GHz – 400 THz):
    • Infrared signals have a very short range and cannot penetrate through walls or solid objects.
    • They are used for short-distance, point-to-point or point-to-multipoint communication.
    • Applications: TV remote controls, IrDA (Infrared Data Association) devices, wireless keyboards/mice, some printers.
    • Advantages: No interference with radio frequency devices, high security (contained within a room), inexpensive.
    • Disadvantages: Very short range, cannot pass through walls, line-of-sight required.

9. What is transmission impairment? Explain jitter and crosstalk.

📌 Definition
Transmission impairments are unwanted changes to a signal as it travels through a transmission medium. These impairments degrade the quality of the signal and may cause errors in the received data. The three main types are attenuation, distortion, and noise, along with jitter and crosstalk.

Jitter:

  • Jitter is the variation in the arrival time of data packets at the receiving end.
  • In an ideal network, packets should arrive at regular, predictable intervals. When packets experience different delays (due to network congestion, route changes, or queuing delays), jitter occurs.
  • Jitter is especially problematic for real-time applications such as:
    • Voice over IP (VoIP) — causes choppy or garbled audio.
    • Video streaming — causes buffering and frame drops.
    • Online gaming — causes lag and inconsistent performance.
  • Buffering and jitter buffers are commonly used techniques to smooth out jitter and ensure consistent playback.

Crosstalk:

  • Crosstalk is a type of noise where a signal transmitted on one wire or channel unintentionally interferes with a signal on an adjacent wire or channel.
  • It is caused by electromagnetic coupling between nearby conductors — when electrical signals flow through a wire, they create electromagnetic fields that can induce unwanted signals in neighboring wires.
  • Crosstalk is a common problem in:
    • Twisted pair cables (especially UTP without proper shielding).
    • Telephone lines (hearing another conversation faintly).
    • Dense network cabling installations.
  • Solutions to reduce crosstalk:
    • Twisting the wire pairs (hence the name "twisted pair").
    • Using shielded cables (STP, coaxial, or fiber optic).
    • Maintaining proper cable separation during installation.

10. List the differences between client-server and peer-to-peer network architectures.

Basis of Comparison Client-Server Architecture Peer-to-Peer Architecture
Basic Concept A central server provides services to multiple clients. Each computer (peer) acts as both client and server.
Centralization Centralized — server manages resources and access control. Decentralized — no central authority; all peers are equal.
Resource Sharing Resources are stored and managed on the server. Resources are distributed across all peers.
Security High — server enforces authentication and access control. Low — each peer manages its own security.
Scalability Highly scalable by upgrading the server. Scalability is limited as more peers increase traffic.
Cost Higher — requires a dedicated, powerful server. Lower — no dedicated server needed.
Reliability Depends on the server; if the server fails, the network fails. More resilient — failure of one peer doesn't affect others.
Example Web servers, email servers, database servers. File sharing networks (BitTorrent), blockchain.

11. What is client-server architecture? Write down its advantages and disadvantages.

📌 Definition
Client-Server Architecture is a network model in which one or more powerful computers called servers provide services and resources to other computers called clients. Clients send requests to the server, and the server processes those requests and sends back the appropriate responses.

In this model:

  • The server is a high-performance computer that hosts, manages, and delivers resources (files, databases, applications, web pages).
  • The client is a regular computer or device that requests services from the server (e.g., a web browser requesting a web page from a web server).

Advantages:

  • Centralized management: All data and resources are stored on the server, making backup, security, and administration easier.
  • High security: The server can enforce authentication, authorization, and encryption policies for all clients.
  • Scalability: The network can be scaled by adding more clients or upgrading the server hardware.
  • Easy maintenance: Software updates and patches need to be installed only on the server.
  • Resource efficiency: Expensive resources (printers, databases) are shared among many clients.

Disadvantages:

  • Single point of failure: If the server crashes, all connected clients lose access to services.
  • High cost: Requires powerful server hardware, server software licenses, and skilled IT staff.
  • Network congestion: If too many clients request services simultaneously, the server may become overloaded, causing slow response times.
  • Dependency: Clients are entirely dependent on the server and cannot function independently if the server is down.

12. What is an IP address? Why is IP address needed? Explain.

📌 Definition
An IP address (Internet Protocol address) is a unique logical address assigned to each device connected to a computer network that uses the Internet Protocol for communication. It serves two main functions: host identification and location addressing.

Why is an IP Address Needed?

  1. Unique Identification: Just as a postal address uniquely identifies a house, an IP address uniquely identifies a device on a network. Without it, data would not know where to go.
  2. Routing: Routers use IP addresses to determine the best path for forwarding data packets from source to destination across multiple networks.
  3. Device Communication: IP addresses enable devices to send and receive data. When you open a website, your computer uses the server's IP address to request the web page, and the server uses your IP address to send it back.
  4. Network Management: Administrators use IP addresses to manage network resources, configure firewalls, allocate bandwidth, and monitor network traffic.
  5. Differentiating Devices: On the Internet, billions of devices communicate simultaneously. IP addresses ensure that data packets reach the correct device.
📝 IPv4 Format
An IPv4 address is written in dotted decimal notation with four octets separated by dots, e.g., 192.168.1.1. Each octet ranges from 0 to 255 (8 bits × 4 = 32 bits total).

13. What are the different network classes? Explain them shortly.

IPv4 addresses are divided into five classes (A through E) based on the value of the first octet. Each class has a different allocation of bits for network ID and host ID:

Class First Octet Range First Bits Network ID Bits Host ID Bits Default Subnet Mask Usage
Class A 0 – 127 0 8 24 255.0.0.0 Very large organizations
Class B 128 – 191 10 16 16 255.255.0.0 Medium to large organizations
Class C 192 – 223 110 24 8 255.255.255.0 Small organizations / LANs
Class D 224 – 239 1110 Not divided N/A Multicasting
Class E 240 – 255 1111 Not divided N/A Reserved for research/experimental

Detailed Explanation:

  1. Class A:
    • First bit is always 0.
    • First 8 bits = Network ID, remaining 24 bits = Host ID.
    • Can support 126 networks (27 − 2) with 16,777,214 hosts each (224 − 2).
    • Default subnet mask: 255.0.0.0 or /8.
    • Ideal for very large organizations (e.g., governments, large corporations).
  2. Class B:
    • First two bits are always 10.
    • First 16 bits = Network ID, remaining 16 bits = Host ID.
    • Can support 16,384 networks (214) with 65,534 hosts each (216 − 2).
    • Default subnet mask: 255.255.0.0 or /16.
    • Assigned to medium to large organizations (e.g., universities).
  3. Class C:
    • First three bits are always 110.
    • First 24 bits = Network ID, remaining 8 bits = Host ID.
    • Can support 2,097,152 networks (221) with 254 hosts each (28 − 2).
    • Default subnet mask: 255.255.255.0 or /24.
    • Most commonly used for small LANs and organizations.
  4. Class D:
    • Reserved for multicast groups — data is sent to a group of devices simultaneously.
    • Not assigned to individual hosts.
    • Range: 224.0.0.0 to 239.255.255.255.
  5. Class E:
    • Reserved for experimental and research purposes.
    • Not used for general networking.
    • Range: 240.0.0.0 to 255.255.255.255.

14. What is a subnet mask? Why is a subnet mask needed? Explain.

📌 Definition
A subnet mask is a 32-bit number that divides an IP address into two parts: the network ID (prefix) and the host ID (suffix). It is used by network devices to determine which portion of an IP address refers to the network and which portion refers to the specific host.

How It Works:

  • In the subnet mask, 1s represent the network portion and 0s represent the host portion.
  • When a device performs a bitwise AND operation between an IP address and the subnet mask, it extracts the network address.
Example:
IP Address: 192.168.1.100 = 11000000.10101000.00000001.01100100
Subnet Mask: 255.255.255.0 = 11111111.11111111.11111111.00000000
─────────────────────────────────────────────
AND Result: 192.168.1.0 = 11000000.10101000.00000001.00000000
Network Address = 192.168.1.0

Why is a Subnet Mask Needed?

  1. Identifying Network vs. Host: It tells devices which part of an IP address is the network ID and which is the host ID.
  2. Subnetting: Allows a large network to be divided into smaller, more manageable subnets, improving performance and security.
  3. Routing Decisions: Routers use subnet masks to determine whether a destination IP is on the local network or a remote network, and route packets accordingly.
  4. Efficient IP Address Use: Subnetting prevents wastage of IP addresses by allocating only the required number of host addresses to each subnet.
  5. Reduced Broadcast Traffic: Smaller subnets limit the scope of broadcast traffic, improving overall network performance.

Default Subnet Masks by Class:

  • Class A: 255.0.0.0 (/8)
  • Class B: 255.255.0.0 (/16)
  • Class C: 255.255.255.0 (/24)

15. How does the subnet mask identify that any two computers are on the same network or different?

The subnet mask is used to extract the network portion of an IP address through a bitwise AND operation. If two computers have the same network address (after applying the subnet mask), they are on the same network. If the network addresses differ, they are on different networks.

Step-by-step process:

  1. Take the IP address of Computer A and perform a bitwise AND with the subnet mask → Result = Network Address of A.
  2. Take the IP address of Computer B and perform a bitwise AND with the subnet mask → Result = Network Address of B.
  3. If Network Address of A = Network Address of B, then both computers are on the same network.
  4. If they are different, the computers are on different networks.
Example 1 — Same Network:
Computer A: 192.168.1.10 | Subnet Mask: 255.255.255.0
Computer B: 192.168.1.50 | Subnet Mask: 255.255.255.0
Network A = 192.168.1.0
Network B = 192.168.1.0
✅ Same network!

Example 2 — Different Networks:
Computer A: 192.168.1.10 | Subnet Mask: 255.255.255.0
Computer C: 192.168.2.10 | Subnet Mask: 255.255.255.0
Network A = 192.168.1.0
Network C = 192.168.2.0
❌ Different networks! (Data must go through a router.)

16. What is a MAC address? Write the role of the MAC address in the local network.

📌 Definition
A MAC address (Media Access Control address) is a unique physical (hardware) address permanently assigned to a network interface card (NIC) by the manufacturer. It is also known as a physical address, hardware address, or Ethernet address.
  • A MAC address is a 48-bit address written in hexadecimal format, separated by colons or hyphens.
  • Example: 00:1A:2B:3C:4D:5E
  • The first 24 bits (3 bytes) represent the OUI (Organizationally Unique Identifier) — the manufacturer's code.
  • The last 24 bits (3 bytes) represent the device-specific identifier assigned by the manufacturer.

Role of MAC Address in a Local Network:

  1. Unique Device Identification: Every device on a LAN is uniquely identified by its MAC address, allowing precise data delivery within the local network.
  2. Frame Delivery: At the Data Link Layer (Layer 2), data is encapsulated in frames that contain source and destination MAC addresses. Switches use MAC addresses to forward frames to the correct destination device.
  3. Switching: Network switches maintain a MAC address table that maps MAC addresses to physical ports. When a frame arrives, the switch looks up the destination MAC address and forwards the frame only to the appropriate port.
  4. ARP (Address Resolution Protocol): When a device knows the destination IP but not the MAC address, ARP is used to discover the MAC address corresponding to an IP address on the local network.
  5. Security and Filtering: MAC addresses can be used for MAC filtering — allowing or denying network access to specific devices based on their MAC address.
  6. Network Monitoring: Administrators use MAC addresses to track and monitor devices connected to the network.

17. Write the differences between an IP address and a MAC address.

Basis of Comparison IP Address MAC Address
Full Form Internet Protocol Address Media Access Control Address
Also Known As Logical address, Internet address Physical address, Hardware address
Assigned By Network administrator or DHCP server (software-assigned) Manufacturer (burned into the NIC hardware)
Permanence Can be changed dynamically (dynamic IP) or statically Permanently assigned to the NIC (though can be spoofed)
Bit Length 32 bits (IPv4) or 128 bits (IPv6) 48 bits
Format Dotted decimal (e.g., 192.168.1.1) Hexadecimal (e.g., 00:1A:2B:3C:4D:5E)
OSI Layer Network Layer (Layer 3) Data Link Layer (Layer 2)
Function Identifies a device on a network (logical location) Identifies a device on the physical hardware level
Scope Used across the Internet and wide area networks Used primarily within local area networks (LANs)
Working Facilitates routing of data across different networks Facilitates delivery of data frames within the same network

18. Define the terms "Internet", "Intranet" and "Extranet".

Internet:

🌐 Internet
The Internet is a global, public network of interconnected computer networks that use the TCP/IP protocol suite to communicate. It is the world's largest WAN and provides services such as the World Wide Web (WWW), email, file transfer (FTP), and more. Anyone with an Internet connection can access it.

Intranet:

🏢 Intranet
An Intranet is a private network that belongs to an organization and is accessible only to authorized members (employees, students, staff). It uses Internet technologies (TCP/IP, HTTP, web browsers) but is not accessible from the public Internet. It is used for internal communication, document sharing, and collaboration. Example: A company's internal portal accessible only from within the office network.

Extranet:

🔗 Extranet
An Extranet is an extension of an intranet that allows limited, controlled access to authorized external users (such as business partners, suppliers, or customers) over the Internet. It uses security measures like VPNs, firewalls, and authentication to ensure only authorized outsiders can access specific resources. Example: A supplier checking inventory levels on a company's extranet portal.

Key Differences at a Glance:

  • Internet: Public, global, accessible by everyone.
  • Intranet: Private, internal to an organization, accessible only by members.
  • Extranet: Semi-private, extends intranet access to specific external users.

19. What is a network switch? How does it work?

📌 Definition
A network switch is a networking device that connects multiple devices within a Local Area Network (LAN) and uses MAC addresses to forward data frames only to the intended destination device, rather than broadcasting to all devices.

How a Switch Works:

  1. Learning:
    • When a device sends a frame through the switch, the switch reads the source MAC address and records it in its MAC address table (also called the Content Addressable Memory or CAM table), along with the port number it arrived on.
  2. Forwarding:
    • When a frame arrives, the switch examines the destination MAC address.
    • If the MAC address is found in the table, the switch forwards the frame only to the specific port associated with that MAC address.
    • This is called unicast forwarding and significantly reduces unnecessary network traffic.
  3. Flooding:
    • If the destination MAC address is not found in the MAC address table, the switch floods (broadcasts) the frame to all ports except the source port.
    • When the destination device responds, the switch learns its MAC address and port for future forwarding.
  4. Aging:
    • MAC address entries in the table have a timeout period. If no traffic is received from a MAC address within this period, the entry is removed to keep the table up to date.

Advantages of a Switch:

  • Reduces collisions by creating separate collision domains for each port.
  • Provides dedicated bandwidth to each connected device.
  • More intelligent than a hub — forwards data only where needed.
  • Supports full-duplex communication.
  • Improves overall network performance and efficiency.

Section 3 — Long / Descriptive Answer Questions

In-depth explanations with diagrams, examples, and comprehensive coverage.

1. Describe about the transmission media that are used in data communication.

📌 Overview
Transmission media refers to the physical pathway through which data travels from a sender to a receiver. It is a fundamental component of any communication system. Transmission media are broadly classified into two categories: Guided (Wired) and Unguided (Wireless).

A. Guided (Wired / Bounded) Transmission Media

In guided media, signals are confined to a physical path — a cable or wire. Three main types exist:

1. Twisted Pair Cable

  • Consists of two insulated copper wires twisted together in a helical pattern.
  • The twisting reduces electromagnetic interference (EMI) and crosstalk between adjacent pairs.
  • Types:
    • UTP (Unshielded Twisted Pair): No additional shielding. Categories include Cat5 (100 Mbps), Cat5e (1 Gbps), Cat6 (10 Gbps), Cat6a, Cat7. Most commonly used in LANs.
    • STP (Shielded Twisted Pair): Has a metallic foil or braided shield around the wire pairs. Provides better protection against EMI but is heavier and more expensive.
  • Connector: RJ-45
  • Maximum distance: ~100 meters
  • Speed: Up to 10 Gbps (Cat6a and above)
  • Applications: Ethernet LANs, telephone wiring, PoE (Power over Ethernet)
  • Advantages: Inexpensive, easy to install and terminate, widely available
  • Disadvantages: Limited distance, susceptible to EMI (UTP), lower bandwidth compared to fiber

2. Coaxial Cable

  • Has four concentric layers:
    1. Inner conductor: Solid copper wire that carries the electrical signal.
    2. Insulating layer: Dielectric insulator surrounding the conductor.
    3. Metallic shield: Braided or foil mesh that blocks EMI.
    4. Outer jacket: Protective plastic covering.
  • Types:
    • Thinnet (10Base2): Thinner, more flexible, up to 185 meters.
    • Thicknet (10Base5): Thicker, more durable, up to 500 meters.
  • Connectors: BNC (Bayonet Neill-Concelman), F-type connector
  • Speed: Up to 10 Gbps
  • Applications: Cable television (CATV), broadband Internet, CCTV, older LANs
  • Advantages: Better shielding than twisted pair, higher bandwidth, longer distance
  • Disadvantages: More expensive and less flexible than UTP, being gradually replaced by fiber

3. Fiber Optic Cable

  • Transmits data as pulses of light through thin glass or plastic fibers.
  • Structure: Core (glass/plastic) → Cladding (reflective coating) → Buffer coating → Outer jacket
  • Types:
    • Single-mode fiber (SMF): Very thin core (~9 μm), allows only one mode of light. Used for long-distance transmission (up to 100 km). Higher cost but lower signal loss.
    • Multi-mode fiber (MMF): Larger core (~50-62.5 μm), allows multiple modes of light. Used for shorter distances (up to 2 km). Lower cost but higher signal dispersion.
  • Connectors: SC, ST, LC, MTRJ
  • Speed: Up to 100 Gbps and beyond
  • Distance: Up to several kilometers without repeaters
  • Applications: Backbone networks, long-distance telecommunication, FTTH (Fiber to the Home), data centers
  • Advantages: Highest bandwidth, longest distance, immune to EMI, very secure (hard to tap), lightweight
  • Disadvantages: Expensive, fragile, requires specialized equipment for installation and termination

B. Unguided (Wireless / Unbounded) Transmission Media

In unguided media, data is transmitted as electromagnetic waves through the air or free space, without any physical conductor.

1. Radio Waves (3 kHz – 1 GHz)

  • Omnidirectional — propagate in all directions from the antenna.
  • Can travel long distances and penetrate through buildings and obstacles.
  • Applications: AM/FM radio, television, Wi-Fi, Bluetooth, cellular communication, RFID.
  • Advantages: Wide area coverage, can pass through walls, easy deployment.
  • Disadvantages: Susceptible to interference, lower security, limited bandwidth.

2. Microwaves (1 GHz – 300 GHz)

  • Unidirectional — travel in straight lines requiring line-of-sight.
  • Transmitted using parabolic dish antennas focused into narrow beams.
  • Applications: Satellite communication, cellular networks (4G/5G towers), terrestrial microwave links, radar.
  • Advantages: Higher bandwidth than radio waves, supports long-distance via satellites.
  • Disadvantages: Requires line-of-sight, affected by weather (rain fade), needs repeater towers for long distances.

3. Infrared (300 GHz – 400 THz)

  • Short-range signals that cannot penetrate through walls.
  • Used for point-to-point or point-to-multipoint communication within a room.
  • Applications: TV remote controls, IrDA data transfer, wireless peripherals.
  • Advantages: No RF interference, high security (contained in a room), inexpensive.
  • Disadvantages: Very short range, blocked by walls and obstacles, line-of-sight required.

4. Satellite Communication

  • Uses satellites orbiting the Earth as relay stations for microwave signals.
  • Types: GEO (Geostationary, ~36,000 km), MEO (Medium Earth Orbit), LEO (Low Earth Orbit).
  • Applications: GPS, weather monitoring, satellite TV, Internet in remote areas, military communication.
  • Advantages: Global coverage, suitable for remote areas, supports broadcasting.
  • Disadvantages: High latency (especially GEO), expensive to launch and maintain, affected by weather.

2. Draw a block diagram of the computer communication system and describe the communication system.

A computer communication system facilitates the exchange of data between computing devices. The following block diagram illustrates its components:

╔══════════════════════════════════════════════════════════════════════════════════╗
║                      COMPUTER COMMUNICATION SYSTEM                             ║
╠══════════════════════════════════════════════════════════════════════════════════╣
║                                                                                ║
║   ┌─────────┐     ┌─────────┐     ┌──────────────────┐     ┌──────────┐       ║
║   │         │     │         │     │                  │     │          │       ║
║   │  SOURCE │────▶│TRANSMIT-│────▶│  TRANSMISSION    │────▶│ RECEIVER │       ║
║   │ (Sender)│     │  TER    │     │  MEDIUM (Channel)│     │          │       ║
║   │         │     │(Encoder)│     │                  │     │(Decoder) │       ║
║   └─────────┘     └─────────┘     │   ┌──────────┐  │     └──────────┘       ║
║                                    │   │  NOISE   │  │                         ║
║   Information  →  Signal    →      │   │(Interfer.)│  │   →   Data            ║
║   (Message)      (Encoded)        │   └──────────┘  │         (Decoded)       ║
║                                    └──────────────────┘                         ║
║                                                                                ║
║   ┌──────────────────────────────────────────────────────────────┐             ║
║   │                    PROTOCOLS & STANDARDS                     │             ║
║   │            (TCP/IP, HTTP, FTP, IEEE 802.x, etc.)            │             ║
║   └──────────────────────────────────────────────────────────────┘             ║
╚══════════════════════════════════════════════════════════════════════════════════╝

Description of Components:

  1. Source (Sender):

    The source is the device that generates and initiates the communication. In a computer communication system, the source could be a computer, smartphone, server, sensor, or any data-generating device. It produces the message or data that needs to be transmitted.

  2. Transmitter (Encoder):

    The transmitter converts the data from the source into a format suitable for transmission over the chosen medium. This process includes encoding, modulation, and signal shaping. For example, a modem converts digital signals from a computer into analog signals for transmission over telephone lines. A transducer may also be used to convert between different forms of energy.

  3. Transmission Medium (Channel):

    The channel is the physical path or wireless link through which the encoded signal travels from sender to receiver. It can be:

    • Guided: Twisted pair cable, coaxial cable, fiber optic cable.
    • Unguided: Radio waves, microwaves, infrared, satellite links.
  4. Noise and Interference:

    Any unwanted signal that corrupts or distorts the original message during transmission. Sources of noise include electromagnetic interference, crosstalk, thermal noise, and signal attenuation. Noise is an inherent challenge in every communication system.

  5. Receiver (Decoder):

    The receiver captures the transmitted signal from the medium and performs decoding and demodulation to convert it back into a form that the destination device can understand. It also performs error detection and correction to ensure data integrity.

  6. Destination (Receiver Device):

    The destination is the final device that consumes or processes the received data. It could be a computer monitor, printer, storage device, or any application that uses the communicated data.

  7. Protocols and Standards:

    Protocols are the sets of rules that govern how data is formatted, transmitted, received, and acknowledged. They ensure that the sender and receiver "speak the same language." Key protocols include TCP/IP, HTTP, FTP, SMTP, and IEEE 802.x standards.

3. Describe terminology for transmission impairments.

Transmission impairments are unwanted changes that occur to a signal as it travels from sender to receiver through a transmission medium. These impairments cause the received signal to differ from the transmitted signal and may result in data errors. The three primary types of impairments are:

1. Attenuation

📉 Attenuation
Attenuation is the loss of signal strength (reduction in amplitude) as it travels through a transmission medium. It occurs because the medium converts some of the signal's energy into heat due to its inherent resistance.
  • Cause: Resistance of the medium (copper wire, fiber, air).
  • Effect: The signal becomes weaker over distance. If it becomes too weak, the receiver cannot distinguish the signal from noise, leading to errors.
  • Unit: Measured in decibels (dB). A loss of 3 dB means the signal power is halved.
  • Solution: Use amplifiers (for analog signals) or repeaters (for digital signals) at regular intervals to boost the signal. Choose media with lower attenuation (e.g., fiber optic has very low attenuation).
  • Frequency dependence: Attenuation increases with frequency and distance.

2. Distortion

🔀 Distortion
Distortion occurs when the shape or form of the signal changes during transmission. It is particularly problematic for composite signals (signals made up of multiple frequencies).
  • Cause: Different frequency components of a signal travel at different speeds through the medium, arriving at the receiver at slightly different times. This is called delay distortion.
  • Effect: The received signal is a distorted version of the original, leading to errors in interpretation — especially in digital communication where bit boundaries may shift.
  • Solution: Use equalization techniques, select appropriate media, and limit the frequency range of the signal.

3. Noise

🔊 Noise
Noise is any unwanted signal that mixes with the original signal during transmission, corrupting its content.
  • Types of Noise:
    • Thermal Noise: Random noise generated by the thermal agitation of electrons in a conductor. It is present in all electronic devices and is proportional to temperature and bandwidth.
    • Induced Noise: Comes from external sources such as motors, power lines, and other electrical devices. Also called electromagnetic interference (EMI).
    • Crosstalk: Signal from one wire leaking into an adjacent wire due to electromagnetic coupling.
    • Impulse Noise: Sudden, sharp bursts of energy caused by lightning, power surges, or faulty equipment. Highly disruptive to digital data.
  • Solution: Use shielded cables (STP, coaxial), increase signal power (improves signal-to-noise ratio), use error detection and correction codes.

4. Jitter

⏱️ Jitter
Jitter is the variation in packet arrival times at the receiving end.
  • Cause: Network congestion, route changes, queuing delays, and varying processing times at intermediate devices.
  • Effect: Inconsistent data delivery, which is especially harmful for real-time applications (VoIP, video streaming, online gaming).
  • Solution: Use jitter buffers (which temporarily store packets and release them at regular intervals), implement Quality of Service (QoS), and reduce network congestion.

5. Crosstalk (in detail)

  • Crosstalk is a specific type of noise where a signal on one channel creates an unwanted effect on another channel.
  • Causes: Electromagnetic coupling between adjacent conductors in a cable bundle.
  • Types:
    • Near-End Crosstalk (NEXT): Occurs at the same end as the transmitter.
    • Far-End Crosstalk (FEXT): Occurs at the far end from the transmitter.
  • Solution: Twist wire pairs, use shielded cables, maintain physical separation between cables.

6. Latency

  • Latency is the total time it takes for a data packet to travel from source to destination.
  • Components: Propagation delay + Transmission delay + Processing delay + Queuing delay.
  • High latency causes slow response times and poor performance in interactive applications.

4. Describe the different network architectures.

Network architecture defines how computers are organized, how they communicate, and how resources are shared within a network. The two primary network architectures are:

A. Client-Server Architecture

🖥️ Client-Server Model
In this architecture, one or more powerful computers act as servers that provide services and resources to other computers called clients. Clients send requests, and servers respond with the appropriate data or service.
  • Server: A high-performance computer dedicated to managing network resources, storing data, running applications, and serving client requests. Servers are always ON and available.
  • Client: A regular computer or device that requests services from the server. Clients depend on the server for resources.
  • Communication: Clients initiate communication by sending requests; servers process and respond.

Types of Servers:

  • File Server: Stores and manages files for network users.
  • Web Server: Hosts websites and serves web pages (e.g., Apache, Nginx).
  • Database Server: Manages databases and processes queries.
  • Email Server: Handles sending and receiving of emails.
  • Print Server: Manages network printing.
  • DHCP Server: Assigns IP addresses to devices dynamically.
  • DNS Server: Translates domain names to IP addresses.

Advantages of Client-Server:

  • Centralized data management and security control.
  • Easy to scale by upgrading server hardware.
  • Efficient resource sharing among many clients.
  • Centralized backup and disaster recovery.
  • Access control and authentication managed at the server.

Disadvantages of Client-Server:

  • Server is a single point of failure — if it goes down, all clients are affected.
  • Higher cost due to dedicated server hardware and software.
  • Requires skilled network administrators.
  • Network congestion when many clients request services simultaneously.

B. Peer-to-Peer (P2P) Architecture

🔗 Peer-to-Peer Model
In a peer-to-peer architecture, there is no dedicated server. Every computer (peer) acts as both a client and a server. Each peer can request services from and provide services to other peers.
  • No central authority: All peers have equal status and share resources directly with each other.
  • Decentralized: Resources (files, processing power) are distributed across all peers.
  • Self-organizing: Peers discover and connect to each other dynamically.

Advantages of Peer-to-Peer:

  • Low cost — no dedicated server required.
  • Easy to set up and configure (especially for small networks).
  • Resilient — failure of one peer does not affect the rest of the network.
  • Scalable in terms of adding peers without overloading a central server.

Disadvantages of Peer-to-Peer:

  • Weak security — no centralized access control or authentication.
  • Difficult to manage and administer as the network grows.
  • Performance depends on individual peer capabilities.
  • Data backup is decentralized and harder to enforce.
  • Not suitable for large organizations or mission-critical applications.

Examples:

  • Client-Server: World Wide Web (browser → web server), email (Outlook → mail server), online banking.
  • Peer-to-Peer: BitTorrent file sharing, blockchain networks (Bitcoin), Skype (early versions), LAN gaming.

5. Describe the different IPv4 addresses and classes that are used on the Internet.

📌 IPv4 Overview
IPv4 (Internet Protocol version 4) is the fourth version of the Internet Protocol and is the most widely used protocol for identifying devices on a network. An IPv4 address is a 32-bit numerical label written in dotted decimal notation (four octets, each ranging from 0 to 255).

IPv4 Address Format:

Format: A.B.C.D
Example: 192.168.1.1
In binary: 11000000.10101000.00000001.00000001
Each octet = 8 bits → Total = 32 bits → 232 ≈ 4.3 billion addresses

Structure of an IPv4 Address:

An IPv4 address consists of two parts:

  • Network ID: Identifies the network to which the device belongs. Devices on the same network share the same network ID.
  • Host ID: Identifies the specific device (host) within that network.

The division between network and host portions depends on the class of the address.

IPv4 Address Classes:

┌─────────┬──────────────┬────────┬────────────────┬──────────────────────────┐
│  CLASS  │ FIRST OCTET  │ PREFIX │  NETWORK:HOST  │    DEFAULT SUBNET MASK   │
├─────────┼──────────────┼────────┼────────────────┼──────────────────────────┤
│  A      │   0 - 127    │  0___  │   8 : 24       │    255.0.0.0  (/8)       │
│  B      │ 128 - 191    │  10__  │  16 : 16       │    255.255.0.0  (/16)    │
│  C      │ 192 - 223    │  110_  │  24 : 8        │    255.255.255.0  (/24)  │
│  D      │ 224 - 239    │  1110 │  (Multicast)    │    N/A                   │
│  E      │ 240 - 255    │  1111 │  (Reserved)     │    N/A                   │
└─────────┴──────────────┴────────┴────────────────┴──────────────────────────┘

Class A (0.0.0.0 – 127.255.255.255):

  • First bit is always 0.
  • 8 bits for Network ID, 24 bits for Host ID.
  • Supports 126 networks (0 and 127 are reserved) with up to 16,777,214 hosts each.
  • Default subnet mask: 255.0.0.0.
  • Designed for: Very large organizations (e.g., multinational corporations, governments).
  • Examples: 10.0.0.1 (private), 54.239.28.85 (Amazon).

Class B (128.0.0.0 – 191.255.255.255):

  • First two bits are always 10.
  • 16 bits for Network ID, 16 bits for Host ID.
  • Supports 16,384 networks with up to 65,534 hosts each.
  • Default subnet mask: 255.255.0.0.
  • Designed for: Medium to large organizations (e.g., universities, large companies).
  • Examples: 172.16.0.1 (private), 150.12.20.30.

Class C (192.0.0.0 – 223.255.255.255):

  • First three bits are always 110.
  • 24 bits for Network ID, 8 bits for Host ID.
  • Supports 2,097,152 networks with up to 254 hosts each.
  • Default subnet mask: 255.255.255.0.
  • Designed for: Small organizations and LANs.
  • Examples: 192.168.1.1 (private), 222.1.1.20.

Class D (224.0.0.0 – 239.255.255.255):

  • First four bits are 1110.
  • Reserved for multicasting — data is sent to a group of hosts simultaneously.
  • Not assigned to individual hosts.
  • Examples: 224.0.0.1 (all hosts on local network), 224.0.0.5 (OSPF routers).

Class E (240.0.0.0 – 255.255.255.255):

  • First four bits are 1111.
  • Reserved for experimental and research purposes.
  • Not used for general networking on the Internet.

Special IP Addresses:

  • 127.0.0.1 — Loopback address (refers to the local machine itself, "localhost").
  • 0.0.0.0 — Represents "any address" or "no specific address."
  • 255.255.255.255 — Broadcast address for all hosts on the local network.

Private IP Address Ranges:

🔒 Private IP Ranges (Not routable on the Internet)
  • Class A: 10.0.0.0 – 10.255.255.255
  • Class B: 172.16.0.0 – 172.31.255.255
  • Class C: 192.168.0.0 – 192.168.255.255
These addresses are used within local networks and are translated to public addresses using NAT (Network Address Translation) when accessing the Internet.

6. What is the OSI reference model? Describe it.

📌 Definition
The OSI (Open Systems Interconnection) model is a conceptual framework developed by the ISO (International Organization for Standardization) in 1984. It standardizes the functions of a communication system into seven abstract layers. Each layer has specific responsibilities and communicates with the layers directly above and below it.

Purpose of the OSI Model:

  • Provides a universal standard for network communication.
  • Allows interoperability between different vendors' equipment and software.
  • Breaks down complex networking processes into manageable, modular layers.
  • Simplifies troubleshooting by isolating issues to specific layers.
  • Enables independent development and improvement of each layer.

The Seven Layers (Bottom to Top):

  ┌─────────────────────────────────────────┐
  │        7. APPLICATION LAYER             │  ← User-facing (HTTP, FTP, SMTP)
  ├─────────────────────────────────────────┤
  │        6. PRESENTATION LAYER            │  ← Data formatting, encryption
  ├─────────────────────────────────────────┤
  │        5. SESSION LAYER                 │  ← Session management, dialog control
  ├─────────────────────────────────────────┤
  │        4. TRANSPORT LAYER               │  ← End-to-end delivery, segmentation
  ├─────────────────────────────────────────┤
  │        3. NETWORK LAYER                 │  ← Routing, logical addressing (IP)
  ├─────────────────────────────────────────┤
  │        2. DATA LINK LAYER               │  ← Framing, MAC addressing, error detection
  ├─────────────────────────────────────────┤
  │        1. PHYSICAL LAYER                │  ← Bits on the wire, cables, signals
  └─────────────────────────────────────────┘
     (Mnemonic: "All People Seem To Need Data Processing")

Layer 1: Physical Layer

  • Function: Responsible for the physical transmission of raw binary data (bits: 0s and 1s) over a communication medium.
  • Deals with: Electrical signals, light pulses, radio waves, cable specifications, pin layouts, voltages, data rates, and transmission distances.
  • Data Unit: Bits
  • Devices: Hubs, repeaters, cables (twisted pair, coaxial, fiber optic), network interface cards (NICs).
  • Protocols/Standards: RS-232, Ethernet (physical), USB, Bluetooth (physical), DSL.

Layer 2: Data Link Layer

  • Function: Provides node-to-node (hop-to-hop) data transfer. It packages raw bits from the Physical Layer into frames, handles MAC addressing, and performs error detection (and sometimes correction).
  • Sub-layers:
    • LLC (Logical Link Control): Flow control and error checking.
    • MAC (Media Access Control): Physical addressing (MAC addresses) and media access control.
  • Data Unit: Frames
  • Devices: Switches, bridges.
  • Protocols: Ethernet (802.3), Wi-Fi (802.11), PPP, HDLC.

Layer 3: Network Layer

  • Function: Responsible for logical addressing (IP addresses) and routing — determining the best path for data packets from source to destination across multiple networks.
  • Data Unit: Packets
  • Devices: Routers, Layer 3 switches.
  • Protocols: IP (IPv4, IPv6), ICMP, ARP, OSPF, BGP.

Layer 4: Transport Layer

  • Function: Provides end-to-end communication between applications. It segments data from the Session Layer and reassembles it at the destination. It handles flow control, error recovery, and reliable data transfer.
  • Data Unit: Segments (TCP) / Datagrams (UDP)
  • Protocols:
    • TCP (Transmission Control Protocol): Connection-oriented, reliable, ordered delivery.
    • UDP (User Datagram Protocol): Connectionless, faster but unreliable.

Layer 5: Session Layer

  • Function: Manages sessions (connections) between applications. It establishes, maintains, synchronizes, and terminates communication sessions. It also handles dialog control (determining whose turn it is to transmit).
  • Protocols: NetBIOS, PPTP, RPC, SQL sessions.

Layer 6: Presentation Layer

  • Function: Acts as a translator between the application and the network. It handles data formatting, encryption/decryption, compression/decompression, and character encoding (ASCII, EBCDIC, Unicode).
  • Examples: JPEG, GIF, MPEG, SSL/TLS encryption, ASCII, EBCDIC.

Layer 7: Application Layer

  • Function: The layer closest to the end user. It provides network services directly to user applications. This is NOT the application itself, but the protocols that applications use to communicate over the network.
  • Protocols: HTTP/HTTPS (web), FTP (file transfer), SMTP/POP3/IMAP (email), DNS (domain name resolution), DHCP, Telnet, SSH, SNMP.

Data Flow Through the OSI Model:

🔄 Encapsulation & De-encapsulation

Sending (Encapsulation): Data flows down from Layer 7 to Layer 1. At each layer, a header (and sometimes trailer) is added to the data unit.

Receiving (De-encapsulation): Data flows up from Layer 1 to Layer 7. At each layer, the corresponding header is removed.

  • Application → Data
  • Transport → Segment (TCP header added)
  • Network → Packet (IP header added)
  • Data Link → Frame (MAC header + trailer added)
  • Physical → Bits (converted to electrical/optical signals)

Mnemonic to Remember:

🧠 Memory Aid (Bottom to Top)
"All People Seem To Need Data Processing"
Application → Presentation → Session → Transport → Network → Data Link → Physical

Frequently asked questions

What is Data communication and Networking about?

This chapter provides a comprehensive overview of data communication and networking concepts. It covers the fundamental elements of communication systems, different types of signals and modulation techniques, data transmission modes, and various network topologies. The chapter also delves into network types (LAN, WAN), transmission media (guided and unguided), network impairments, and essential networking concepts like IP addresses, MAC addresses, subnetting, and network architectures (client-server, peer-to-peer).

Which topics are covered in Data communication and Networking?

Class 12 Computer Science “Data communication and Networking” covers: Communication System Elements (Sender, Message, Medium, Receiver, Noise); Modulation (AM, FM, PM); Data Transmission Modes (Simplex, Half Duplex, Full Duplex); Network Types (LAN, WAN); Transmission Media (Guided: Twisted Pair, Coaxial, Fiber Optic; Unguided: Radio, Microwave, Infrared); Network Impairments (Jitter, Crosstalk, Attenuation); IP Addresses and Subnet Masks; MAC Addresses vs. IP Addresses.

What should I focus on in Data communication and Networking for the exam?

Students should focus on understanding the fundamental concepts of data transmission, network components, addressing schemes (IP and MAC), and the differences between various network types and architectures, as these are frequently tested.

What are the key formulas or definitions in Data communication and Networking?

Analog signal: Continuously changes value with time.; Simplex communication: Data flows in only one direction.; Full Duplex communication: Data flows in both directions simultaneously.; LAN (Local Area Network): Connects computers in a small local area.; WAN (Wide Area Network): Covers a large geographical area..

Where can I read the Class 12 Computer Science “Data communication and Networking” solutions?

Right on this page. They are free and you do not need to sign up. For chapter quizzes and the AI tutor, install the Sikshya Plus app.

Study tips

Free for Class 9 to 12

Do not just read it. Practice it.

You have read the solutions for Data communication and Networking. Now test yourself, ask the AI tutor and keep your streak going.

Sikshya Plus chapter quiz screen with class, subject and difficulty options
Sikshya AI personal tutor chat inside the app
Sikshya Plus AI tools screen: question assistant, summarizer, translator, grammar checker
Chapter list with Past Q, materials, posts and books tabs
  • AI quizzes for this chapterTest yourself with instant feedback and explanations after every answer.
  • AI tutor, free, 24/7Stuck on a question? Ask in your own words and get a step-by-step explanation.
  • 14 AI tools in one appSummarizer, grammar checker, flashcards, essay help, math solver and more.
  • Past questions and notesPast papers and your own notes organized chapter by chapter.
Download free on Google Play Scan with your phone to install