## 1.
The OSI Model and Network Layering
The Open Systems Interconnection (OSI) model is a conceptual framework developed by the
International Organization for Standardization (ISO) that standardizes the functions of a
telecommunication or computing system into 7 abstraction layers.
The 7 Layers of the OSI Model
Core Protocols /
Layer Name Function
Devices
Network services directly to end-users and HTTP, FTP, SMTP,
7 Application
applications. DNS
Data translation, encryption, compression, and SSL/TLS, JPEG,
6 Presentation
formatting. ASCII
Establishes, manages, and terminates sessions
5 Session NetBIOS, RPC
between applications.
End-to-end communication, reliability, flow
4 Transport TCP, UDP
control, and error recovery.
Logical addressing (IP) and routing packets
3 Network IP, ICMP, Routers
across networks.
Node-to-node physical addressing (MAC) and Ethernet, Switches,
2 Data Link
error detection. MAC
Transmission and reception of raw bit streams Cables, Hubs,
1 Physical
over a physical medium. Repeaters
Advantages of Dividing the Network into Layers
• Modularity and Simplification: Breaks complex network operations into smaller,
manageable pieces, making it easier to understand, design, and troubleshoot.
• Independent Development: Vendors can develop hardware and software for
specific layers without altering the entire system (e.g., changing a physical cable
doesn't require rewriting application software).
• Interoperability: Standardized layers ensure that products from different vendors
can communicate seamlessly.
• Easier Troubleshooting: Network issues can be isolated to a specific layer,
reducing diagnostic time.
• Standardized Interfaces: Defined standards allow different layers to interact
efficiently through well-documented interfaces.
2. Local Area Network (LAN) and Topologies
A Local Area Network (LAN) is a computer network that interconnects computers within a
limited geographical area such as a residence, school, laboratory, university campus, or office
building.
Characteristics that Differentiate LANs
• Topology: The geometric arrangement of devices (e.g., Star, Bus, Ring).
• Transmission Media: The physical medium used for connection (e.g., Twisted-pair
copper cables, Coaxial cables, Fiber optics, or Wireless Wi-Fi).
• Medium Access Control (MAC): The protocol used to control access to the shared
communication medium (e.g., Ethernet CSMA/CD, Token Passing).
• Data Transfer Rate: The speed at which data moves across the network (ranging
from 100 Mbps to 10 Gbps or higher).
LAN Topologies
1. Star Topology
• Description: All devices are connected to a central hub, switch, or computer.
• Advantages: Easy to install and wire; failure of one cable only takes down one node;
easy to diagnose faults.
• Disadvantages: High dependency on the central device (if the switch fails, the
whole network goes down); requires more cable length than a bus topology.
2. Bus Topology
• Description: Devices are connected to a single central cable (the "bus" or
backbone).
• Advantages: Easy to set up for small networks; requires minimal cable length.
• Disadvantages: Difficult to troubleshoot; a break in the main cable brings down the
entire network; performance degrades with heavy traffic due to collisions.
3. Ring Topology
• Description: Devices are connected in a circular loop. Data travels in one direction
from node to node.
• Advantages: No data collisions (token-passing mechanism); equal access for all
devices.
• Disadvantages: A break in any single cable or device disrupts the entire ring;
difficult to add or remove nodes without bringing down the network.
3. Transmission Media
Transmission media are the physical pathways that carry data between transmitters and receivers
in a communication system. They are broadly classified into two categories: Guided (Wired)
and Unguided (Wireless) media.
A. Guided (Wired) Media
1. Twisted-Pair Cable
• Description: Consists of two insulated copper wires twisted together to minimize
electromagnetic interference (EMI). Divided into Shielded Twisted-Pair (STP) and
Unshielded Twisted-Pair (UTP).
• Example: Ethernet cables (Cat5e, Cat6) used in LANs.
• Advantages: Inexpensive, easy to install, widely available.
• Disadvantages: Limited distance due to signal attenuation; susceptible to severe
interference.
2. Coaxial Cable
• Description: Features a central copper conductor wrapped in a dielectric insulator,
surrounded by a braided metallic shield and an outer plastic sheath.
• Example: Cable television (CATV) wiring, older broadband networks.
• Advantages: Higher bandwidth and better noise immunity over longer distances
than twisted-pair.
• Disadvantages: Bulky, expensive, and rigid compared to UTP.
3. Fiber Optic Cable
• Description: Transmits data as pulses of light through high-purity glass or plastic
fibers via total internal reflection. Divided into Single-Mode and Multi-Mode.
• Example: High-speed internet backbones, submarine communication cables.
• Advantages: Extremely high bandwidth, immune to electromagnetic interference,
very low signal loss over long distances.
• Disadvantages: High installation and hardware costs; fragile and difficult to splice.
B. Unguided (Wireless) Media
1. Radio Waves
• Description: Omnidirectional electromagnetic waves easily penetrating walls and
traveling long distances.
• Example: Wi-Fi, AM/FM radio broadcasting, cellular networks.
• Advantages: Supports mobility, no physical cabling required for endpoints, wide
coverage area.
• Disadvantages: Susceptible to interference and security vulnerabilities.
2. Microwaves
• Description: High-frequency, directional line-of-sight waves.
• Example: Satellite communication, long-distance telecommunication towers.
• Advantages: High data capacity, eliminates physical trenching for long distances.
• Disadvantages: Blocked by physical obstacles like mountains and buildings;
affected by severe weather.
4. Modulation
Modulation is the process of varying one or more properties of a periodic high-frequency
waveform—called the carrier signal—with a low-frequency modulating signal (representing
data or information) to transmit data efficiently over long distances.
Types of Modulation
1. Amplitude Modulation (AM)
• Description: The amplitude of the carrier wave is varied in proportion to the
message signal, while frequency and phase remain constant.
• Applications: AM radio broadcasting, aviation voice communications.
2. Frequency Modulation (FM)
• Description: The frequency of the carrier wave is varied in accordance with the
instantaneous values of the modulating signal, while amplitude remains constant.
• Applications: FM radio, television sound transmission, radar.
3. Phase Modulation (PM)
• Description: The phase angle of the carrier wave is varied in accordance with the
message signal. Closely related to FM.
• Applications: Satellite communication, digital cellular standards (GSM).
5. Data Link Layer Protocols and Pipelining
Data Link Layer Protocols
The Data Link Layer manages node-to-node data transfer across a physical network segment.
Key protocols include:
• Stop-and-Wait ARQ: The sender transmits one frame and stops to wait for an
acknowledgment (ACK) from the receiver before sending the next frame. If no ACK
arrives within a timeout period, the frame is retransmitted.
• Go-Back-N ARQ (Sliding Window): The sender can transmit up to N frames without
waiting for an acknowledgment. If an error occurs, all frames starting from the
corrupted/lost frame are retransmitted.
• Selective Repeat ARQ: Similar to Go-Back-N, but only the specific damaged or lost
frame is retransmitted, rather than re-sending the entire window of subsequent
frames.
• High-Level Data Link Control (HDLC): A bit-oriented synchronous data link layer
protocol that supports both point-to-point and multipoint communications.
• Point-to-Point Protocol (PPP): Used to establish a direct connection between two
nodes (commonly used over dial-up or DSL lines).
What is Pipelining?
Pipelining in data communication refers to the technique where multiple frames can be
transmitted consecutively by the sender before receiving an acknowledgment for the first frame.
Instead of waiting for an ACK after every single packet (like in Stop-and-Wait), pipelining
maximizes network utilization and throughput by keeping the communication channel
continuously busy. Sliding window protocols (like Go-Back-N and Selective Repeat) use
pipelining to improve efficiency.
6. Network Devices Across OSI Layers
Different network devices operate at specific layers of the OSI model to route, forward, or
regenerate signals.
• Layer 1 (Physical Layer) — Repeater & Hub:
o Repeater: Amplifies and regenerates weakened signals to extend cable
length limitations.
o Hub: A multiport repeater that broadcasts incoming electrical signals from
one port to all other ports without filtering.
• Layer 2 (Data Link Layer) — Switch & Bridge:
o Bridge: Connects two separate LAN segments and filters traffic using MAC
addresses.
o Switch: An intelligent multiport bridge that maintains a MAC address table to
forward frames directly to the intended destination port, reducing network
traffic.
• Layer 3 (Network Layer) — Router:
o Router: Connects different networks together, examines IP addresses, and
determines the optimal path for data packets using routing algorithms and
tables.
• Layers 4–7 (Upper Layers) — Gateway & Application Firewall:
o Gateway: Translates protocols between completely different network
architectures (e.g., translating TCP/IP to SNA).
o Application Firewall/Load Balancer: Inspects deep packet contents up to
the application layer to enforce security policies and distribute traffic loads.
7. Switching Techniques
Switching is the mechanism used to connect devices together to pass information across a
network.
1. Circuit Switching
• Description: Establishes a dedicated, physical communication path between the
sender and receiver for the entire duration of the communication session.
• Phases: 1. Circuit Establishment \rightarrow 2. Data Transfer \rightarrow 3. Circuit
Disconnection.
• Example: Traditional Public Switched Telephone Network (PSTN).
• Characteristics: Guaranteed bandwidth and constant delay once connected, but
inefficient resource utilization if the channel remains idle.
2. Message Switching
• Description: The source sends a complete message containing destination
addressing. Intermediate nodes receive, store the entire message in a buffer, and
forward it to the next node (Store-and-Forward approach).
• Characteristics: No dedicated path required; efficient use of network bandwidth;
high delay due to storage requirements at each node; impractical for real-time voice
communication.
3. Packet Switching
• Description: Messages are broken down into smaller, manageable blocks called
packets. Each packet contains routing and sequence information and is routed
independently through the network.
• Approaches:
o Datagram Packet Switching: Each packet is treated independently (e.g.,
Internet Protocol/IP).
o Virtual Circuit Packet Switching: A pre-planned logical route is established
before packet transmission (e.g., MPLS, X.25).
• Characteristics: Highly efficient, robust against network failures (alternate routing),
minimal delay, and optimal bandwidth sharing.
8. Network Congestion: Causes and Corrections
Causes of Network Congestion
Network congestion occurs when the load on the network (the volume of data packets trying to
pass through) exceeds the network's capacity.
• Insufficient Bandwidth: Links cannot handle the volume of traffic generated by
users.
• Traffic Bursts: Sudden, unexpected surges in traffic (e.g., massive file downloads,
video streaming spikes).
• Slow Processing Devices: Routers or switches with slow CPUs/queues that cannot
process packets fast enough.
• Routing Failures: Suboptimal routing forcing heavy traffic through narrow
bottlenecks.
• Unbalanced Load Distribution: Heavy concentration of traffic on a single path
while alternative paths remain underutilized.
Methods for Congestion Control and Correction
• Traffic Shaping (Leaky Bucket / Token Bucket algorithms): Regulates the rate at
which data is injected into the network to smooth out bursts.
• Choke Packets: A control message sent by a congested router back to the source
node instructing it to reduce its transmission rate.
• Load Shedding: When routers are overwhelmed, they drop low-priority packets to
preserve capacity for critical traffic.
• Explicit Congestion Notification (ECN): Marks packets passing through congested
routers to notify endpoints to slow down without dropping packets.
• Dynamic Routing: Automatically rerouting traffic away from congested links to
underutilized paths.
9. Encryption Techniques
Encryption is the process of converting plaintext data into unciphered ciphertext using an
algorithm and a key to protect sensitive information from unauthorized access.
Types of Encryption Techniques
1. Symmetric Encryption (Secret Key Cryptography)
• Description: Uses the same single key for both encryption (at the sender) and
decryption (at the receiver).
• Examples: Advanced Encryption Standard (AES), Data Encryption Standard (DES),
Triple DES.
• Advantages: Fast computation speed, highly efficient for large volumes of data.
• Disadvantages: Key distribution is a major security challenge (both parties must
securely share the secret key beforehand).
2. Asymmetric Encryption (Public Key Cryptography)
• Description: Uses a mathematically linked key pair: a Public Key for encryption
and a Private Key for decryption.
• Examples: RSA (Rivest-Shamir-Adleman), ECC (Elliptic Curve Cryptography), Diffie-
Hellman.
• Advantages: Eliminates the secure key-exchange problem; highly secure.
• Disadvantages: Computationally intensive and significantly slower than symmetric
encryption.
10. Short Notes
(i) Transmission Impairments
As signals travel through transmission media, they deteriorate before reaching their destination.
The primary causes are:
• Attenuation: The gradual loss of signal strength (amplitude) over distance, requiring
amplifiers or repeaters to restore the signal.
• Distortion: Alteration of the original signal shape due to differing propagation
speeds of frequencies making up the signal.
• Noise: Unwanted electrical or electromagnetic energy injected into the
communication channel (e.g., thermal noise, crosstalk, impulse noise) that
corrupts data signals.
(ii) Transmission Modes
Transmission modes define the direction of data flow between two connected devices:
• Simplex: Communication is strictly one-way (unidirectional). One device transmits,
and the other only receives (e.g., Keyboard to Computer, Radio broadcasting).
• Half-Duplex: Communication is two-way, but not simultaneously. Both devices
can transmit and receive, but only one at a time (e.g., Walkie-talkies).
• Full-Duplex: Communication is simultaneous two-way (bidirectional). Both
devices can transmit and receive data at the exact same time over the same
channel (e.g., Telephone conversations, modern Ethernet).
(iii) ISP (Internet Service Provider)
An Internet Service Provider (ISP) is a company or organization that provides individuals,
businesses, and organizations with access to the Internet and related services.
• Types of ISPs:
o Tier 1: Global backbone providers that interconnect with each other without
paying settlement fees (e.g., AT&T, Level 3).
o Tier 2: Regional ISPs that purchase transit from Tier 1 and peer with other Tier
2 providers.
o Tier 3 (Access ISPs): Local retail ISPs that directly serve residential and
business end-users via cable, DSL, fiber, or mobile cellular networks.
• Services Offered: Internet access, domain name registration, web hosting, email
accounts, and virtual private network (VPN) services.