(Grade XII) Chapter 2: Data Communication and Networking

 




1. Data Communication

Data communication means exchanging data (text, image, audio, video) between two devices through some transmission medium (like wire or wireless).

 

Basic Components of Data Communication

·       Message: the information to be sent (text, number, image, audio, video)

·       Sender: device that sends the message

·       Receiver: device that receives the message

·       Medium: the path through which the message travels (cable, air, etc.)

·       Protocol: set of rules that both sender and receiver agree to follow for communication

 

2. Data Communication Terminologies

Bandwidth: the amount of data that can be transmitted in a fixed time. Measured in bits per second (bps).

Baud rate: number of signal changes (symbols) per second.

Bit rate: number of bits transmitted per second.

Throughput: the actual speed of data transfer achieved.

Attenuation: loss of signal strength as it travels a long distance.

Noise: unwanted disturbance that affects a signal during transmission.

 

example

Bandwidth = how big the pipe is. A big pipe can let more water through.

Baud rate = how many times per second you turn the tap/water pump on and off.

Bit rate = how much water actually comes out per second.

Throughput = how much water you really get at the end, in real life (after problems).

Attenuation = the water gets weaker the longer the pipe is.

Noise = dirt or shaking that messes up the water flow.

 

3. Data Transmission Modes

This tells the direction of data flow between two devices.

Mode

Description

Example

Simplex

Data flows in one direction only

Radio, TV broadcasting

Half-Duplex

Data flows in both directions but not at the same time

Walkie-talkie

Full-Duplex

Data flows in both directions at the same time

Telephone call

Pg 45- difference

 

4. Types of Signals

Analog Signal: continuous signal that varies smoothly over time (e.g., human voice, old telephone lines).

Digital Signal: signal made of discrete values, usually represented as 0s and 1s (used in computers).

 

Modem (Modulator + Demodulator) converts digital signal to analog (modulation) and analog back to digital (demodulation), used mainly for internet connection over telephone lines.

 

Analog Signal

Digital Signal

Continuous signal that varies smoothly over time

Discrete signal made up of distinct values (0s and 1s)

Can take infinite values within a range

Takes only two values: high (1) and low (0)

More affected by noise and attenuation during transmission

Less affected by noise; easier to filter and regenerate

Harder to process, store, and secure

Easier to process, store, compress, and encrypt

Example: Human voice, old telephone lines, radio broadcast

Example: Data inside computers, digital telephone lines, CDs

 

5. Transmission Media

Transmission media is the physical path through which data travels from sender to receiver.

Guided Media

Unguided Media

Data travels through a physical cable/wire

Data travels through air/space without any physical cable

Also called wired media

Also called wireless media

More secure, less chance of signal interception

Less secure, signal can be intercepted easily

Limited mobility — devices must be physically connected

Higher mobility — devices can move freely within range

Example: Twisted pair cable, coaxial cable, fiber optic cable

Example: Radio wave, microwave, satellite, infrared

 

A. Guided (Wired) Media

Data travels through a physical cable.

 

1.     Twisted Pair Cable: two insulated copper wires twisted together. Cheap, easy to install. Used in telephone lines, LAN. Types: UTP (Unshielded), STP (Shielded)

2.     Coaxial Cable: central copper wire surrounded by insulation and metal shield. Used in cable TV, older networks. Less interference than twisted pair.

3.     Fiber Optic Cable: uses light signals through thin glass/plastic fiber. Very high speed, long distance, no electrical interference. Expensive and harder to install.

 

B. Unguided (Wireless) Media

Data travels through air without any physical cable.

 

1.     Radio Wave: used in FM radio, cordless phones

2.     Microwave: used for long-distance communication, needs line of sight (e.g., between towers)

3.     Satellite: microwave signal relayed through a satellite, used for TV, GPS, global communication

4.     Infrared: short-range communication (e.g., TV remote)

 

6. Network Topology

Topology means the arrangement/layout of computers and devices in a network.

Topology

Description

Advantage

Disadvantage

Bus

All devices connected to a single central cable (backbone)

Cheap, easy to install

If main cable fails, whole network fails

Star

All devices connected to a central device (hub/switch)

Easy to manage, failure of one node doesn't affect others

If central device fails, whole network fails

Ring

Devices connected in a circular manner, data flows in one direction

Data flows in order, no collision

Failure of one node can break the network


























7. Types of Network (by area covered)

LAN

MAN

WAN

Local Area Network

Metropolitan Area Network

Wide Area Network

Covers a small area like one building, school, or office

Covers a city or town

Covers a large geographical area, even countries or continents

High speed of data transfer

Moderate speed of data transfer

Comparatively lower speed of data transfer

Low cost to set up and maintain

Moderate cost to set up and maintain

High cost to set up and maintain

Ownership is usually private (single organization)

Ownership can be private or by a group of organizations

Ownership is usually distributed among many organizations

Example: Computer lab network, office network

Example: Cable TV network in a city, network connecting offices across a city

Example: The Internet

 


 
















8. Network Devices

Device

Function

Modem

Converts digital signal to analog and vice versa

Hub

Connects multiple devices in a network, sends data to all ports (no intelligence)

Switch

Connects multiple devices, sends data only to the intended device (smarter than hub)

Router

Connects different networks together and directs data between them

Repeater

Boosts/regenerates a weak signal so it can travel further

Bridge

Connects two LANs and filters traffic between them

Gateway

Connects two different types of networks (different protocols)

NIC (Network Interface Card)

Hardware that allows a computer to connect to a network

 

9. Switching Techniques

Switching decides how data moves from source to destination through the network.

Circuit Switching: a dedicated path/circuit is set up between sender and receiver for the whole communication. Example: Traditional telephone call. Fixed bandwidth, wastes resources if not fully used.

Packet Switching: data is broken into small packets, each sent separately, and may take different paths. Packets reassembled at destination. Example: Internet. More efficient use of bandwidth.

10. Network Protocols (Basic Idea)

A protocol is a set of rules that governs data communication.

TCP/IP: Transmission Control Protocol/Internet Protocol – basic protocol suite of the Internet

HTTP: HyperText Transfer Protocol – used for transferring web pages

FTP: File Transfer Protocol – used for transferring files

SMTP: Simple Mail Transfer Protocol – used for sending emails

 

IP Addressing – IntroductionExample:

Think of an IP address like your home address.

Your home address helps the DARAZ delivery boy to drop ordered stuff  to your house.

Similarly,

An IP address helps the internet deliver information to the correct device (computer, phone, tablet, etc.).

IP (Internet Protocol) gives each device on a network a unique address and routes data between devices.

IP ensures data sent from one computer reaches the correct destination.

Two Versions:

•        IPv4 (Internet Protocol version 4) — most widely used today

•        IPv6 (Internet Protocol version 6) — newer, developed to overcome IPv4 limitations

IPv4 (Internet Protocol Version 4)

IPv6 (Internet Protocol Version 6)

IPv4 uses 32-bit addresses.

IPv6 uses 128-bit addresses.

Address is written in dotted decimal format.

Example: 192.168.1.1

Address is written in hexadecimal format separated by colons.

Example: 2001:0db8:85a3:0000:0000:8a2e:0370:7334

Address length is 4 bytes.

Address length is 16 bytes.

Widely used in most existing networks today.

Gradually replacing IPv4 and increasingly used in modern networks.

Limited scalability for future Internet growth.

Designed to support the future growth of the Internet.

 

Classes of IP Address

Class

First Octet Range

Default Subnet Mask

How the IP is Divided

Purpose

Example

A

1 – 126

255.0.0.0

1st octet = Network, remaining 3 = Host

Very large networks

25.10.20.5

B

128 – 191

255.255.0.0

1st 2 octets = Network, remaining 2 = Host

Medium-sized networks

150.20.10.5

C

192 – 223

255.255.255.0

1st 3 octets = Network, 4th = Host

Small networks

192.168.1.10

D

224 – 239

Not applicable

Used for multicast, not divided into Network/Host in the usual way

Multicasting

224.0.0.1

E

240 – 255

Not applicable

Reserved for experimental use

Experimental/Reserved

240.10.20.30

 

OSI MODEL (Open Systems Interconnection Model)

It is a model (framework) made by ISO that shows how data travels from one computer to another over a network. It divides the whole communication process into 7 layers. Each layer has its own job.

 

The 7 Layers (from top to bottom)

Easy trick to remember (top to bottom): All People Seem To Need Data Processing (Application, Presentation, Session, Transport, Network, Data Link, Physical)

 

1. Physical Layer

·       Deals with the actual hardware — cables, wires, connectors, signals.

·       Sends raw bits (0s and 1s) as electrical, light, or radio signals.

·       Example devices: cables, hubs, connectors.

 

2. Data Link Layer

·       Takes the raw bits from the physical layer and organizes them into frames.

·       Checks for errors in the data.

·       Handles MAC addresses (physical address of device).

·       Example device: Switch, NIC (Network Interface Card).

 

3. Network Layer

·       Decides the best path (route) for data to travel from sender to receiver.

·       Uses IP addresses for identifying devices.

·       Example device: Router.

 

4. Transport Layer

·       Makes sure data is delivered completely and correctly.

·       Breaks big data into small pieces called segments.

·       Checks for errors and re-sends lost data.

Two main protocols: TCP (reliable, ordered) and UDP (fast, no guarantee).

 

5. Session Layer

·       Opens, manages, and closes a connection (session) between two computers.

·       Makes sure sessions don't mix up with each other.

 

6. Presentation Layer

·       Also called the "translator" layer.

·       Converts data into a form both computers understand.

·       Handles encryption/decryption and compression.

 

7. Application Layer

·       The layer closest to the user.

·       Provides services directly used by applications like browsers, email, etc.

·       Examples: HTTP, FTP, SMTP, DNS.

 

Why OSI Model is important?

·       It helps in understanding how networks work step by step.

·       Makes it easy to find and fix problems in a network.

·       Different companies can make hardware/software that work together because they follow the same layers.