Computer Networks
Computer Networks
COMPUTER NETWORKS
Data Communications & Networks
MODULE – 01
/ISE/DS/AIML
1. Introduction
1. DATA COMMUNICATIONS
1. Components
2. Data Representation
3. Data Flow
2. NETWORKS
1. Network Criteria
2. Physical Structures
3. NETWORK TYPES
1. Local Area Network
2. Wide Area Network
3. Switching
4. The Internet
5. Accessing the Internet
/ISE/DS/AIML
DATA COMMUNICATIONS
• Data communications are the exchange of data between two devices
via some form of transmission medium such as a wire cable.
• The process of transferring data from one point to another using a
communication system.
• Involves essential components and mechanisms to ensure accurate
and timely delivery of data.
/ISE/DS/AIML
Components of Data Communication System
1. Message: The data/information being communicated (e.g.,
text, images, audio).
2. Sender: Device that sends the message (e.g., computer,
smartphone).
3. Receiver: Device that receives the message (e.g., computer,
printer).
4. Transmission Medium: Physical path for data transmission
(e.g., cables, radio waves).
5. Protocol: Set of rules governing communication between
devices for proper data exchange.
/ISE/DS/AIML
Components of Data Communication System
Key performance Characteristics of Data Communication
1. Delivery: Ensures data reaches the correct destination.
2. Accuracy: Data must be transmitted without errors.
3. Timeliness: Data should be delivered promptly, especially in
real-time applications.
4. Jitter: Refers to inconsistencies in packet arrival times,
affecting quality (e.g., video streaming).
/ISE/DS/AIML
Components of Data Communication System
Data Representation
Different forms of representing data based on communication
needs:
1. Text: Represented as bits using encoding like ASCII,
Unicode.
2. Numbers: Directly in binary form.
3. Images: Matrix of pixels, color coded (e.g., RGB, YCM).
4. Audio: Captured as a continuous signal, digitized for
transmission.
5. Video: Sequence of frames, each frame represented as bit
patterns.
/ISE/DS/AIML
Components of Data Communication System
Data Flow
Modes of data transmission between devices:
1. Simplex: One-way communication (e.g., keyboard to
computer).
2. Half-Duplex: Two-way communication, but not simultaneous
(e.g., walkie-talkie).
3. Full-Duplex: Simultaneous two-way communication (e.g.,
phone conversation).
/ISE/DS/AIML
Data flow (simplex, half-duplex, and full-duplex)
/ISE/DS/AIML
NETWORKS
A network is a set of devices (often referred to as nodes) connected
by communication links. A node can be a computer, printer, or any
other device capable of sending and/or receiving data generated by
other nodes on the network.
/ISE/DS/AIML
NETWORKS
Interconnection of devices capable of communication.
• Transmission Media:
1. Wired: Cables (Ethernet, fiber).
A heterogeneous
network made of
four WANs and
two LANs
/ISE/DS/AIML
Switching
Switching is the process of forwarding data packets in a network
from a source to a destination through intermediate devices
called switches.
/ISE/DS/AIML
Switching
Types of Switching:
1. Circuit Switching:
• A fixed connection (circuit) is established between two devices
for the duration of the communication, typically used in
telephone networks.
• Key Features:
• A dedicated path is established before data transmission.
• The connection remains until the communication ends.
• Continuous and reserved bandwidth throughout the session.
/ISE/DS/AIML
Switching
Types of Switching:
1. Circuit Switching:
/ISE/DS/AIML
Switching
1. Circuit Switching:
• Example (Figure 1.13):
• Four telephones on each side are connected to a switch.
• The switch creates a connection between two phones on opposite sides.
• The main line between the switches has the capacity for four simultaneous
voice calls.
• Scenario 1: All phones are in use, using the full capacity of the line.
• Scenario 2: One phone is in use, with only one-quarter of the capacity used.
• Disadvantages:
• Inefficiency when fewer devices are active.
• The thick line must have four times the capacity of a single voice line to
handle all potential calls.
• Resources remain dedicated even when not in use.
/ISE/DS/AIML
Switching
2. Packet Switching:
Data is divided into packets that are transmitted independently
over the network. No dedicated path is established as in circuit
switching.
• Key Features:
• Data is split into small packets, sent independently, and reassembled
at the destination.
• Efficient use of network resources as bandwidth is shared dynamically.
• Packets may take different routes to reach the destination.
/ISE/DS/AIML
Switching
2. Packet Switching:
/ISE/DS/AIML
Switching
2. Packet Switching:
• Example (Figure 1.14):
• Two sets of four computers are connected across two sites through routers.
• Packets are queued and forwarded by the router when the network is ready.
• Scenario: The main connection has twice the capacity of the smaller lines. If
only two computers are communicating, packets move without delay. If the
connection is busy, packets are queued.
• Disadvantages:
• Can introduce delays when the network is congested.
• Requires more complex routing and addressing mechanisms compared to
circuit switching.
/ISE/DS/AIML
THE INTERNET
The Internet is a global system of interconnected computer networks
using the TCP/IP protocol to link billions of devices worldwide.
Characteristics:
• Decentralized: No central controlling entity.
• Based on TCP/IP: The foundation for communication across the Internet.
• Enables Various Services: Web browsing, email, file sharing, video
streaming, etc.
Components:
• Clients: Devices (computers, smartphones) requesting services from
servers.
• Servers: Systems providing resources and services to clients.
• Routers & Switches: Devices that direct data traffic across the network.
• ISPs (Internet Service Providers): Organizations providing Internet access
to users.
/ISE/DS/AIML
THE INTERNET
/ISE/DS/AIML
THE INTERNET
• The Internet is a
communication system
that has brought a wealth
of information to our
fingertips and organized it
for our use.
/ISE/DS/AIML
THE INTERNET
Accessing the Internet
1. Dial-up
• Uses a telephone line to connect to the Internet.
• Low-speed: Outdated, up to 56 kbps.
2. DSL (Digital Subscriber Line)
• Uses telephone lines but allows simultaneous voice and data
transmission.
• Faster than Dial-up: Up to 100 Mbps.
/ISE/DS/AIML
THE INTERNET
Accessing the Internet
3. Cable
• Uses cable television lines for Internet access.
• High-speed: Up to 1 Gbps.
4. Fiber Optic
• Uses light signals transmitted through optical fibers.
• Extremely high-speed: Up to 10 Gbps and beyond.
• 5. Satellite
• Internet via satellite communication, ideal for remote areas.
• Slower than fiber or cable, but wide coverage.
/ISE/DS/AIML
THE INTERNET
6. Mobile Broadband
• Wireless Internet access through cellular networks (3G, 4G,
5G).
• Widely accessible, but may have data limits.
7. Wi-Fi Access
• Wireless local area network technology that enables Internet
access within the range of a wireless router.
• Common in homes, offices, and public places.
/ISE/DS/AIML
4. PROTOCOL LAYERING
1. Scenarios
2. Principles of Protocol Layering
3. Logical Connections
5. TCP/IP PROTOCOL SUITE
1. Layered Architecture
2. Layers in the TCP/IP Protocol Suite
3. Description of Each Layer
4. Encapsulation and Decapsulation
5. Addressing
6. Multiplexing and Demultiplexing
/ISE/DS/AIML
Protocol Layering
• Protocol layering is a design principle in computer networks where
tasks are divided into multiple layers.
• Each layer has a specific function and works with other layers to
enable communication.
/ISE/DS/AIML
Protocol Layering
Scenario:
A Three-Layer Protocol
• Third Layer (Plaintext
Creation): Generates original
message.
• Second Layer
(Encryption/Decryption):
Encrypts plaintext to
ciphertext.
• First Layer (Mailing): Sends
encrypted message with
addresses.
/ISE/DS/AIML
Protocol Layering
Applications of Protocol Layering:
• Data transmission over the internet.
• Communication between devices (e.g., computer and printer).
• Telecommunications for efficient voice signal transmission.
• Multimedia streaming with error correction and synchronization.
Advantages:
• Modularity: Each layer is independent.
• Service Separation: Implementation is separated from services.
• Intermediate Systems: Intermediate devices handle specific layers, reducing
complexity.
Disadvantages:
• Complexity: Integrating layers can add complexity.
• Layer Failure: Problems with one layer might require replacing the entire system.
/ISE/DS/AIML
Principles of Protocol Layering
1. First Principle: Bidirectional Communication
• Each layer must handle two tasks: one for incoming and one for outgoing
communication.
2. Second Principle: Identical Objects
• Objects processed at each layer must be identical at both ends (e.g., plaintext,
ciphertext, mail).
/ISE/DS/AIML
5. TCP/IP PROTOCOL SUITE
• Widely used for Internet communication.
• Commonly represented as a five-layer model.
• Layered Architecture in TCP/IP Communication involves multiple
devices and layers.
Example: Three LANs interconnected by a router.
• Host A (source) communicates with Host B (destination) through five
devices:
1. Source Host (Computer A)
2. Link-layer switch in LAN 1
3. Router
4. Link-layer switch in LAN 2
5. Destination Host (Computer B)
/ISE/DS/AIML
TCP/IP PROTOCOL
/ISE/DS/AIML
TCP/IP Layers in Host Devices
•Hosts (Source and Destination)
• Operate at all five layers:
1. Application Layer: Message creation and initial transmission.
2. Transport Layer: Ensures reliable delivery.
3. Network Layer: Encapsulation into packets.
4. Data Link Layer: Preparation for physical transmission.
5. Physical Layer: Actual transmission over the medium.
• Host B receives and processes the message up through the layers.
/ISE/DS/AIML
Types of Links
1. Wired LANs: Often with link-layer switches.
2. Wireless LANs: Local wireless networks.
3. Wired WANs: Wide area networks with physical connections.
4. Wireless WANs: Wide area networks using wireless connections.
/ISE/DS/AIML
Description of Each Layer
2. Data-link Layer:
• Routing: Ensures packets are directed along the most efficient route.
Routing Protocols
• IP Routing: Responsible for actual routing of packets.
• Unicast & Multicast: Creates forwarding tables to assist
routers.
• Unicast: One-to-one communication.
• Multiplexing occurs at a protocol layer that handles multiple types of data from
higher layers.
1. Multimode
• Multiple light beams travel through the core
• Step-Index Fiber: Uniform core density, abrupt direction changes at boundaries
• Graded-Index Fiber: Core density gradually decreases, reducing distortion
2. Single-Mode
• Smaller core, light beams travel nearly parallel, minimizing delay and distortion
/ISE/DS/AIML
6.TRANSMISSION MEDIA
Fiber-Optic Cable
Fiber Sizes
• Classified by core to cladding diameter
ratio (in micrometers)
1. Single-mode: Smaller core diameter
2. Multimode: Larger core diameter
/ISE/DS/AIML
6.TRANSMISSION MEDIA
Fiber-Optic Cable
Fiber-Optic Cable Composition
• Outer jacket (PVC or Teflon)
• Kevlar strands for strength
• Plastic coating for cushioning
• Core and cladding for light transmission
Fiber-Optic Connectors
• SC (Subscriber Channel): Push/pull locking, used in cable TV
• ST (Straight Tip): Bayonet locking, used in networking
• MT-RJ: Same size as RJ45, used in data networks
/ISE/DS/AIML
6.TRANSMISSION MEDIA
Fiber-Optic Cable
Performance
• Less signal attenuation compared to twisted-pair and coaxial cables
• Supports higher data rates, especially with Wavelength-Division Multiplexing
(WDM)
Applications of Fiber-Optic Cables
• Backbone Networks: Used in high-bandwidth networks like SONET
• Hybrid Networks: Mix of fiber-optic and coaxial cables in cable TV
• LANs: Used in networks like 100Base-FX and 1000Base-X
/ISE/DS/AIML
6.TRANSMISSION MEDIA
Fiber-Optic Cable
Advantages of Optical Fiber
• Higher bandwidth for faster data rates
• Less signal attenuation, longer distances without repeaters
• Immunity to electromagnetic interference
• Resistant to corrosive materials
• Lightweight and easy to handle
• Greater immunity to tapping for enhanced security
Disadvantages of Optical Fiber
• Installation and maintenance require specialized skills
• Unidirectional light propagation: Requires two fibers for bidirectional communication
• Higher cost compared to other cables, especially in low-bandwidth applications
/ISE/DS/AIML
UNGUIDED MEDIA: WIRELESS
• Unguided media refers to communication channels that use wireless signals to
transmit data.
• Signals travel through the air without physical conductors like cables or wires.
• Common types: Radio waves, microwaves, and infrared.
Wireless Communication
• Wireless communication transmits electromagnetic waves without physical
conductors.
• Signals are broadcast through free space.
• Any device equipped to receive can access the signal.
/ISE/DS/AIML
UNGUIDED MEDIA: WIRELESS
Electromagnetic Spectrum for Wireless Communication
• Wireless communication uses a portion of the electromagnetic spectrum.
• Frequency range: 3 kHz to 900 THz.
• Different frequencies allow for various signal transmission methods.
/ISE/DS/AIML
UNGUIDED MEDIA: WIRELESS
Types of Propagation
Unguided signals travel in three main ways:
1. Ground Propagation
2. Sky Propagation
3. Line-of-Sight Propagation
Ground Propagation
• Low-frequency radio waves travel near the Earth’s surface.
• Follows the curvature of the planet.
• Signal power determines the travel distance.
Sky Propagation
• Higher-frequency radio waves are transmitted to the ionosphere.
• Reflected back to Earth.
• Enables long-distance communication with low power.
/ISE/DS/AIML
UNGUIDED MEDIA: WIRELESS
Line-of-Sight Propagation
• Very high-frequency signals travel directly between antennas.
• Antennas must be aligned or tall enough to avoid Earth’s curvature.
• Complex due to imperfect focusing of radio waves.
/ISE/DS/AIML
UNGUIDED MEDIA: WIRELESS
Frequency Bands
• Electromagnetic spectrum is divided into eight frequency bands.
• Regulated by government authorities.
• Different bands have unique propagation characteristics and
applications.
/ISE/DS/AIML
Frequency Bands
Band Range Propagation Application
Very Low Frequency (VLF) 3–30 kHz Ground Long-range radio navigation
Low Frequency (LF) 30–300 kHz Ground Radio beacons, navigational locators
Extremely High Frequency (EHF) 30–300 GHz Line-of-sight Radar, satellite communication
300 GHz–900
Light Wave (Infrared) Line-of-sight Infrared communication
THz
/ISE/DS/AIML
UNGUIDED MEDIA: WIRELESS
Radio Waves
• Frequency Range: 3 kHz to 1 GHz
• Characteristics of Radio Waves:
• Omnidirectional Propagation: Spreads in all directions; no alignment
needed between antennas.
• Long-Distance Travel: Sky-mode propagation allows for long-range
communication, e.g., AM radio.
• Penetration of Walls: Low and medium frequency waves can penetrate
walls but may cause signal leakage.
/ISE/DS/AIML
UNGUIDED MEDIA: WIRELESS
Radio Waves
• Frequency Range: 3 kHz to 1 GHz
/ISE/DS/AIML
UNGUIDED MEDIA: WIRELESS
Radio Waves
Limitations:
• Narrow frequency band (<1 GHz) with subbands offering low data rates.
• Spectrum is regulated; requires official permission to use.
• Licensed Bands: FM Radio: 88-108 MHz
• Unlicensed Bands: Wi-Fi: 2.4 GHz, 5 GHz
• Omnidirectional Antennas: Used for broadcasting in all
directions.
Applications:
• AM/FM Radio, TV broadcasting, maritime radio, cordless phones, paging
systems.
/ISE/DS/AIML
UNGUIDED MEDIA: WIRELESS
Microwaves
• Frequency Range: 1 GHz to 300 GHz
• Characteristics:
• Line-of-sight required; cannot penetrate obstacles like buildings.
• Utilizes unidirectional antennas for focused transmission.
• Applications:
• Satellite communications, radar systems, microwave ovens.
• Point-to-point communication and cellular networks.
/ISE/DS/AIML
UNGUIDED MEDIA: WIRELESS
Microwaves
• Frequency Range: 1 GHz to 300 GHz
/ISE/DS/AIML
UNGUIDED MEDIA: WIRELESS
Infrared
• Frequency Range: 300 GHz to 400 THz
• Characteristics:
• Short-range communication; does not penetrate walls.
• Highly directional; requires line-of-sight transmission.
• Applications:
• Remote controls, short-range data transfer between devices, infrared sensors
(security, medical).
/ISE/DS/AIML
Packet Switching
Division of messages into smaller units called packets for transmission.
• Packet Sizes: Can be fixed or variable depending on the network
protocol.
Key Features of Packet Switching
1. No Resource Allocation:
• No dedicated resources (e.g., bandwidth, processing time).
• Packets processed on a first-come, first-served basis.
2. Possible Delays:
• Packets may face delays due to network congestion or busy switches.
/ISE/DS/AIML
Packet Switching
Types of Packet-Switched Networks
1. Datagram Networks:
• Each packet is independent and may take different routes.
2. Virtual Circuit Networks:
• A pre-determined path is established, and all packets follow the same route.
Advantages of Packet Switching
• Efficiency:
• Multiple users can share network resources.
• Resources are used only when needed, ensuring optimal bandwidth
utilization.
/ISE/DS/AIML
Packet Switching
Datagram Networks
Key Features
1. Packet Independence:
• Each packet is routed independently.
2. Routing:
• Packets are routed based on the destination address at the network layer.
• Routers manage packet forwarding.
3. No Fixed Path:
• Packets may take different paths, potentially arriving out of order or facing variable
delays.
4. Connectionless:
• No setup phase required, and no connection state maintained.
/ISE/DS/AIML
Packet Switching
Working of Datagram Networks
• Dynamic Routing:
• Packets may follow different routes depending on network congestion and
available resources.
Routing Table Dynamic Tables:
• Updated regularly to determine the appropriate forwarding ports.
• Destination Address:
• Each packet has a header with the destination address, used by routers for
forwarding.
/ISE/DS/AIML
Packet Switching
Working of Datagram Networks
/ISE/DS/AIML
Packet Switching
Datagram Networks - Delays
• Transmission Time: Time to send packets.
• Propagation Delay: Time for signals to travel through the medium.
• Waiting Time: Time spent waiting at routers due to congestion.
Advantages of Datagram Networks
• Efficiency:
• Better utilization of network resources as no reserved bandwidth.
/ISE/DS/AIML
Packet Switching
Datagram Networks - Delays
/ISE/DS/AIML
Packet Switching
Virtual-Circuit Networks (VCN)
A hybrid model combining features of circuit-switched and datagram networks.
• Transmission Method: Balances connection-oriented and connectionless
transmission.
/ISE/DS/AIML
Packet Switching
Virtual-Circuit Networks (VCN)
Key Features of Virtual-Circuit Networks
1. Connection Phases:
1. Setup Phase: Establishes path before data transmission.
2. Data Transfer Phase: Data sent via packets along the established
path.
3. Teardown Phase: Connection is terminated, and resources are
released.
2. Resource Allocation:
• Pre-allocated during setup or dynamically allocated during
transmission.
4. Packetized Data with Local Addressing:
• Packets carry local addresses for switching, not end-to-end.
/ISE/DS/AIML
Packet Switching
Virtual-Circuit Networks (VCN)
Path Consistency & Layer of Operation
• Consistent Path for Packets: All packets follow the same path once
connection is established.
• Layer of Operation: Typically at the data-link layer.
/ISE/DS/AIML
Packet Switching
Virtual-Circuit Networks (VCN)
Addressing in Virtual-Circuit Networks
1. Global Addressing:
1. Used during setup for source-destination identification.
2. Virtual-Circuit Identifier (VCI):
1. Used during data transfer.
2. VCI changes at each switch for efficient packet forwarding.
/ISE/DS/AIML
Packet Switching
Virtual-Circuit Networks (VCN)
Phases in a Virtual-Circuit Network
1. Setup Phase:
1. Source and destination use global addresses.
2. Switches create table entries for routing data.
2. Data Transfer Phase:
1. Data routed using Virtual Circuit Identifiers (VCIs).
2. Switches update VCIs at each hop.
3. Teardown Phase:
1. Signals sent to remove table entries and free up resources.
/ISE/DS/AIML
Packet Switching
Virtual-Circuit
Networks (VCN)
Data Transfer Phase in
Detail
• Frame Switching:
• Switch uses incoming
port and VCI to identify
outgoing port and VCI.
• Example: Switch 1
updates VCI 14 → 22
and forwards the frame.
/ISE/DS/AIML
Packet Switching
Virtual-Circuit Networks (VCN)
Setup Phase in Detail
1. Setup Request:
1. Frame sent from source to destination, table entries created at each switch.
2. Acknowledgment:
1. Destination assigns VCI, and switches update tables.
Teardown Phase
• Process: Source and destination send signals to remove table entries and
terminate the connection.
• Effect: Frees resources for future connections.
/ISE/DS/AIML
Packet Switching
Virtual-Circuit Networks (VCN)
Setup Phase in Detail
/ISE/DS/AIML
Packet Switching
Virtual-Circuit Networks (VCN)
Setup Phase in Detail
/ISE/DS/AIML
END
Module - 1