0% found this document useful (0 votes)
2 views28 pages

Lesson Notes

Uploaded by

emmanuel kyalo
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views28 pages

Lesson Notes

Uploaded by

emmanuel kyalo
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Infrared Transmission

Infrared (IR) waves lie between the visible light spectrum and microwaves. They have
wavelengths ranging from 700 nm to 1 mm and frequencies between 300 GHz and 430 THz.

Infrared waves are commonly used for short-range communication, such as television remote
controls. Infrared transmission is directional because the waves travel in a straight line. Due to
their high frequency, infrared waves cannot penetrate solid obstacles such as walls, which
limits their use to line-of-sight communication.

Advantages of Infrared Transmission

1. Low interference – Infrared signals do not interfere with radio-frequency


systems, making communication more reliable in confined spaces.
2. High security – Since infrared cannot pass through walls, the signal remains
confined to a single room, reducing the risk of eavesdropping.
3. Low power consumption – Infrared devices require minimal power, making
them suitable for battery-operated devices like remote controls.
4. Simple and low cost – Infrared transmitters and receivers are inexpensive and
easy to implement.

Disadvantages of Infrared Transmission

1. Very short range – Infrared communication works only over short distances,
limiting its applications.
2. Line-of-sight requirement – The transmitter and receiver must be aligned;
obstacles can easily block the signal.
3. Cannot penetrate walls – Solid objects such as walls completely block infrared
waves, restricting coverage.
4. Affected by ambient light – Strong sunlight or artificial lighting can interfere
with infrared signals.

Light Transmission

This form of transmission is commonly achieved using LASER technology. In light


transmission systems, the laser acts as the transmitter (Tx) while the photo-detector
functions as the receiver (Rx).

Laser signals cannot penetrate obstacles such as walls, rain, or thick fog. Furthermore, laser
beams can be distorted by environmental factors including wind, atmospheric conditions, and
temperature variations along the transmission path.

Laser transmission is unidirectional, meaning that a laser source is required at the transmitting
end and a photo-detector at the receiving end. Since a laser beam is typically about 1 mm wide,
precise alignment is required, especially over long distances, to ensure accurate data reception

Laser communication is considered secure because the laser beam is typically about 1 mm wide,
making it extremely difficult to intercept without disrupting the communication channel.

Due to the very high frequency of light waves, they travel strictly in a straight line, making light
transmission a line-of-sight communication system. As a result, the transmitter and receiver
must be directly aligned with each other.
Networking Devices

1. Router

A router is a networking device that connects two or more networks and forwards data
packets between them. It operates at the Network Layer (Layer 3) of the OSI model, where it
uses IP addresses to determine the best path for data transmission.

When data is sent from a source device, the router examines the destination IP address, consults
its routing table, and forwards the packet through the most efficient route toward the destination
network. This allows multiple devices within a local network to communicate with other
networks, including the Internet.

1. Distance Vector Routing Algorithms

Routers using this approach share information with directly connected neighbors only. Each router decides the best path based on distance (cost) and direction
(next hop).

Examples

RIP (Routing Information Protocol)

IGRP (Interior Gateway Routing Protocol – legacy)

2. Link State Routing Algorithms

Each router builds a complete map of the network topology and independently calculates the shortest path using algorithms like Dijkstra’s algorithm.

[Link] Vector Routing Algorithms

Used mainly for routing between large networks (Autonomous Systems) such as the internet.

In addition to routing data, routers often provide network security, traffic management, and
internet sharing, making them essential components of modern computer networks.

Short exam summary:


A router is a Layer 3 device that connects networks and routes data packets based on IP
addresses.

2. Switch

A switch is a networking device used to connect multiple devices within the same local area
network (LAN). It operates at the Data Link Layer (Layer 2) of the OSI model and uses
MAC addresses to forward data frames to the correct destination device.

When a device sends data, the switch examines the destination MAC address, checks its MAC
address table, and forwards the frame only to the specific port connected to the intended device.
This reduces unnecessary network traffic and improves overall network efficiency.

Switches improve network performance by minimizing collisions and allowing multiple devices
to communicate simultaneously within the same network.
Short exam summary:
A switch is a Layer 2 device that connects devices in a LAN and forwards data using MAC
addresses.

3. Hub

A hub is a basic networking device used to connect multiple devices within the same local area
network (LAN). It operates at the Physical Layer (Layer 1) of the OSI model and does not
perform any intelligent data processing.

When a hub receives data from one device, it broadcasts the data to all connected devices,
regardless of the intended destination. Because it does not recognize MAC or IP addresses, all
devices share the same bandwidth, which can lead to network congestion and collisions.

Due to its inefficiency and lack of security, hubs are largely obsolete and have been replaced by
switches in modern networks.

Short exam summary:


A hub is a Layer 1 device that connects network devices and broadcasts data to all ports.

4. Port

A port is a communication interface that allows devices or applications to send and receive data.
Ports can be physical or virtual, each serving a different purpose in networking.

Physical Port

A physical port is a hardware interface on a networking device used to connect cables or


external devices. Examples include Ethernet ports, USB ports, and HDMI ports. Physical
ports operate mainly at the Physical Layer (Layer 1) of the OSI model and provide the actual
medium through which data signals are transmitted.

Virtual Port

A virtual port (also called a logical port) is a software-based communication endpoint used
by applications and services. Virtual ports operate at the Transport Layer (Layer 4) and are
identified by port numbers (e.g., HTTP uses port 80, HTTPS uses port 443). They allow
multiple applications to communicate over the same network connection without interference.

Short exam summary:


A port is an interface for data communication; physical ports are hardware connection points,
while virtual ports are logical endpoints identified by port numbers.
5. Computer

A computer is an electronic device that accepts data (input), processes it according to a set of
instructions (programs), stores it, and produces information (output). It is an essential
component in a network, acting as either a source, destination, or intermediate processing
device for data.

A computer consists of key components such as the Central Processing Unit (CPU), memory,
storage devices, and input/output devices. In networking, a computer uses a network interface
card (NIC) to connect to a network and communicate with other devices using standard
protocols.

Computers interact with all layers of the OSI model, from the Physical Layer (sending electrical
or wireless signals) up to the Application Layer (running user applications such as web browsers
and email).
Short exam summary:
A computer is an electronic device that processes data into information and communicates on a
network using hardware and software components.

Below is a clear, student-friendly explanation you can use directly in class.

Categories of Computer Networks (Network


Architectures)
Computer networks can be grouped based on how computers share resources and
responsibilities.
The two main categories are:

1. Peer-to-Peer (P2P) Network


2. Client–Server Network

1. Peer-to-Peer (P2P) Network

Explanation

In a peer-to-peer network, all computers are equal.


There is no central computer controlling the network.

Each computer:

 Can share resources (files, printers)


 Can use resources from other computers
 Acts as both a client and a server

Key Characteristics

 No dedicated server
 Easy to set up
 Low cost
 Suitable for small networks

Example

 A small office where 5 computers share files directly


 Home networks where users share music or documents

Advantages

 Simple to install
 No special server required
 Low maintenance cost

Disadvantages

 Weak security
 Data is not centralized
 Poor performance when many users are connected

2. Client–Server Network

Explanation

In a client–server network, there is a central computer called a server.

 The server provides services (files, printing, internet, databases)


 The clients (other computers) request services from the server
 The server controls security, access, and data storage

Key Characteristics

 One or more dedicated servers


 Centralized management
 Used in large organizations

Example

 A school system where students log into a central server


 Banks and hospitals storing data on servers
Advantages

 Strong security
 Centralized data storage
 Easy backup and management
 Better performance for large networks

Disadvantages

 Expensive to set up
 Requires skilled administration
 If the server fails, clients are affected

Simple Comparison Table


Feature Peer-to-Peer Client–Server
Central server ❌ No ✅ Yes
Network size Small Medium to large
Security Low High
Cost Low High
Management Difficult Easy

Summary

 Peer-to-peer → All computers are equal


 Client–server → One powerful computer serves others

How to Connect Computers to a Network


Connecting computers to a network allows users to access the Internet, shared printers,
storage devices, and other computers on the same network. Most home and workplace
networks use either Ethernet (wired) connections or Wi-Fi (wireless) connections. The method
used depends on the type of network being set up and the available equipment.

How to Connect to a Wired Network


A wired network uses Ethernet cables to connect computers directly to networking devices
such as a modem and router. Wired networks are commonly used in homes, offices, and
institutions because they provide fast, stable, and secure connections.

Required Equipment

To connect to a wired network, you need:

 An Internet modem
 A router (unless the modem has a built-in router)
 Ethernet cables
 Computers with Ethernet (LAN) ports

Steps to Connect to a Wired Network

1. Connect the Internet service cable (DSL or coaxial) to the modem’s Internet/Cable
port.
2. Use an Ethernet cable to connect the modem to the router’s WAN (Internet) port.
(Skip this step if the modem includes a built-in router.)
3. Connect each computer to the router using an Ethernet cable plugged into the LAN
ports.
4. Turn on the modem, router, and computers.
5. Check the network icon on the computer to confirm a wired connection.
6. Open a web browser and access a website to verify that the connection is working.

Advantages of a Wired Network

 High speed and reliability compared to wireless networks


 Improved security, as physical access is required
 Low interference from other electronic devices

Disadvantages of a Wired Network

 Limited mobility, as devices must remain connected by cables


 Installation complexity, due to running Ethernet cables
 Limited number of connections, depending on router ports

Short exam summary:


A wired network connects computers to a modem and router using Ethernet cables, providing
fast, stable, and secure network communication.
How to Connect to a Wireless Network

A wireless network (Wi-Fi) allows computers and other devices to connect to a network
without using physical cables. It uses radio waves transmitted by a wireless router to provide
network and Internet access. Wireless networks are widely used in homes, offices, and public
places due to their mobility and convenience.

Required Equipment

To connect to a wireless network, you need:

 An Internet modem
 A wireless-enabled router
 An Ethernet cable (to connect the modem to the router)
 Computers or devices with wireless network adapters (built-in or external)

Steps to Connect to a Wireless Network

1. Connect the Internet service cable (DSL or coaxial) to the modem.


2. Use an Ethernet cable to connect the modem to the wireless router’s WAN (Internet)
port.
3. Power on the modem and wireless router.
4. On the computer, enable Wi-Fi from network settings.
5. Select the wireless network name (SSID) from the available networks.
6. Enter the Wi-Fi password when prompted.
7. Open a web browser and visit a website to confirm the connection is successful.
Advantages of a Wireless Network

 Mobility and flexibility, allowing users to move freely within coverage range
 Easy installation, with no need for extensive cabling
 Supports multiple devices, including smartphones and tablets

Disadvantages of a Wireless Network

 Lower speed and stability compared to wired networks


 Security risks if not properly encrypted
 Interference, caused by walls, distance, and other electronic devices

Short exam summary:


A wireless network connects devices using radio waves through a wireless router, providing
flexible and cable-free network access.

HomeGroup in Windows
A HomeGroup is a Windows networking feature that allows computers on the same home
network to easily share files, folders, and printers using a common password. It was mainly
used in Windows 7 and Windows 8/8.1 to simplify network sharing without complex
configuration.

HomeGroup uses a single password to allow trusted computers to join and share resources
securely.
How to Create a HomeGroup
1. Connect the computer to a home network (wired or wireless).
2. Open Control Panel → Network and Internet → HomeGroup.
3. Click Create a HomeGroup.
4. Select what you want to share (Documents, Pictures, Music, Videos, Printers).
5. Click Next.
6. Windows generates a HomeGroup password—note it down.
7. Click Finish to complete the setup.

How to Add Computers to a HomeGroup


1. Connect the new computer to the same network as the HomeGroup.
2. Open Control Panel → Network and Internet → HomeGroup.
3. Windows detects the existing HomeGroup and displays Join now.
4. Click Join now.
5. Enter the HomeGroup password.
6. Choose what you want to share and click Finish.

The computer is now part of the HomeGroup and can access shared resources.

How to Add (Share) Printers in a HomeGroup


1. Ensure the printer is installed and working on one computer in the HomeGroup.
2. Open Control Panel → HomeGroup.
3. Ensure Printers & Devices sharing is turned ON.
4. Other HomeGroup computers can now automatically detect and use the shared printer.
5. When printing for the first time, Windows may install the required printer drivers
automatically.

Advantages of HomeGroup
 Easy file and printer sharing
 Simple setup using a single password
 Secure sharing within a trusted home network

Limitations of HomeGroup
 Available only in older Windows versions
 Works only on private (home) networks
 Removed in Windows 10 (version 1803 and later)

Short exam summary:

A HomeGroup is a Windows feature that enables easy sharing of files and printers among
computers on the same home network using a common password.
Element 3: Configure Network Devices
Network Configuration
Network configuration refers to the process of setting up and managing network devices so
that they can communicate effectively.

It involves assigning IP addresses, configuring routers, switches, firewalls, setting network


parameters, and defining security rules.

Proper network configuration ensures reliable connectivity, efficient data flow, and secure
communication between devices on a network.

Short exam summary:


Network configuration is the setup of network devices and settings to enable proper
communication and security.

System Administrator
A system administrator (sysadmin) is a professional responsible for installing, maintaining,
and managing computer systems and networks. The system administrator ensures that
systems operate efficiently, securely, and without interruption.

Key responsibilities include user management, network monitoring, data backup, software
updates, troubleshooting, and enforcing security policies.

Short exam summary:


A system administrator manages and maintains computer systems and networks to ensure
reliable and secure operation.

Network Architecture
Network architecture is the structural design of a network, defining how devices and services
communicate.

It defines how data flows within the network and how components interact.

Common network architectures include client–server architecture and peer-to-peer


architecture. A good network architecture improves performance, scalability, and security.

Short exam summary:


Network architecture is the structural design of a network, defining how devices and services
communicate.
Network Protocols
Network protocols are a set of rules and standards that govern how data is transmitted,
received, and interpreted across a network. They ensure that different devices can communicate
reliably, even if they use different hardware or software.

Examples of network protocols include TCP/IP, HTTP, FTP, and SMTP. Without protocols,
network communication would not be possible.

Short exam summary:


Network protocols are rules that control how data is transmitted and received over a network.

OSI Model (Open Systems Interconnection Model)

Definition

The OSI (Open Systems Interconnection) model is a conceptual framework that standardizes
how data is transmitted between computers in a network. It divides network communication into
seven distinct layers, each with specific responsibilities, to ensure interoperability, clarity,
and easier troubleshooting.

Historical Foundation of the OSI Model


The OSI model was developed in the late 1970s and early 1980s by the International
Organization for Standardization (ISO). At that time, computer networks were being built by
different manufacturers using incompatible technologies, making communication between
systems difficult.

To solve this problem, ISO proposed the OSI model as a universal standard that would allow
systems from different vendors to communicate by following a common layered approach.
Although the OSI model itself is mostly theoretical today, it remains fundamental for
understanding, designing, and troubleshooting networks.

The Seven Layers of the OSI Model


(Explained with an example of two computers communicating)

The OSI Model – Combined and Deep Explanation of the 7


Layers
Continuous Example to Remember

👉 Computer A requests a webpage from Computer B.


Data travels down the OSI layers on Computer A, across the network, then up the layers on
Computer B.

7. Application Layer
Function

Provides network services directly to user applications. This is the layer closest to the user and
where network communication begins.

Examples

 Web browsers
 Email clients
 File transfer applications

Communication Example

Computer A opens a web browser and requests a webpage from Computer B. This request is
generated at the Application layer.

6. Presentation Layer
Function

Handles data formatting, encryption, compression, and translation, ensuring data is readable
and secure for the receiving system.

Communication Example

The webpage request is formatted and encrypted, allowing Computer B to correctly interpret
the data regardless of operating system or hardware differences.

5. Session Layer
Function

Establishes, manages, and terminates communication sessions between devices, keeping data
exchanges organized and synchronized.

Communication Example

A session is created between Computer A and Computer B to keep the communication active
and synchronized while the webpage is being loaded.
4. Transport Layer
Function

Ensures reliable or fast data delivery, manages error checking, and controls data flow
between devices.

Key Protocols

 TCP – reliable and accurate delivery


 UDP – faster but less reliable delivery

Communication Example

The webpage data is broken into segments, numbered, and sent using TCP, ensuring that any
missing data is retransmitted.

3. Network Layer
Function

Handles logical addressing and routing of data between different networks.

Key Concept

 IP addressing

Communication Example

The data segments are assigned source and destination IP addresses, and routers determine the
best path for the data to travel from Computer A to Computer B.

2. Data Link Layer


Function

Provides node-to-node delivery, performs error detection, and uses MAC addresses to deliver
data within the local network.

Communication Example

Within the LAN, data is packaged into frames and delivered using MAC addresses, ensuring
the data reaches the correct device.

1. Physical Layer
Function

Transmits raw bits (0s and 1s) over the physical medium.
Examples

 Ethernet cables
 Fiber optics
 Wi-Fi radio signals

Communication Example

The frames are converted into electrical signals, light pulses, or radio waves and physically
transmitted from Computer A to Computer B.

What Happens on the Receiving Computer (Computer B)


1. Physical layer receives signals
2. Data Link layer checks MAC address
3. Network layer checks IP address
4. Transport layer reassembles data
5. Session layer manages the session
6. Presentation layer decrypts and formats data
7. Application layer displays the webpage

Key Understanding Points


 Each OSI layer has a specific responsibility
 Layers work together but independently
 The model simplifies design, learning, and troubleshooting

Memory Tip (Exam Favorite)

All People Seem To Need Data Processing


(Application → Physical)
The TCP/IP Model

1. Introduction to the TCP/IP Model (Five-Layer Version)

1.1 Definition of the TCP/IP Model

The TCP/IP model (Transmission Control Protocol / Internet Protocol) is a layered networking
model that explains how data is transmitted from one device to another across interconnected
networks, especially the Internet.

TCP/IP is commonly represented as a five-layer model:

1. Physical
2. Data Link
3. Internet
4. Transport
5. Application

Each layer performs a specific function, working together to ensure accurate, reliable, and
efficient communication.

1.2 Purpose of the TCP/IP Protocol Suite

The TCP/IP protocol suite is a collection of communication protocols designed to enable end-
to-end data transmission across different networks.

Its main purposes are to:

 Allow devices from different vendors to communicate


 Provide logical addressing (IP addresses)
 Enable routing across multiple networks
 Ensure reliable data delivery (TCP)
 Support fast, best-effort communication (UDP)

1.3 History and Development of TCP/IP

 TCP/IP was developed in the early 1970s


 Sponsored by the U.S. Department of Defense (DoD)
 Originally created for ARPANET, the predecessor of the modern Internet

Major milestones:

 1974 – TCP proposed


 Late 1970s – TCP divided into TCP and IP
 1983 – TCP/IP adopted as the standard protocol for ARPANET

1.4 Why TCP/IP Was Developed Before the OSI Model

TCP/IP was developed before the OSI model because it was created to solve immediate, real-
world networking problems.

TCP/IP characteristics:

 Practical and implementation-driven


 Built, tested, and improved through real use
 Focused on working communication, not theory

OSI model characteristics:

 Developed later by International Organization for Standardization


 Primarily a theoretical reference model
 Used mainly for learning, design, and comparison

📌 Key contrast for exams:

 TCP/IP → Practical, real implementation


 OSI → Conceptual and educational

The Importance of the TCP IP

[Link] backbone
TCP/IP is the foundation of the Internet. All online services such as web browsing, email, and
file transfer rely on TCP/IP.

2. Interoperability

TCP/IP enables communication between different devices, operating systems, and manufacturers
using standard protocols.

3. Scalability
The model supports both small networks and large global networks, allowing easy network
expansion.

4. Reliable Data Transmission

Through protocols like TCP, the model ensures error-free, ordered, and reliable data delivery.

5. Support for Modern Technologies

TCP/IP powers cloud computing, mobile networks, video conferencing, and IoT systems.

6. Fault Tolerance

If a network path fails, TCP/IP can reroute data, ensuring continuous communication.

7. Open and Cost-Effective Standard

TCP/IP is an open standard, making it affordable and widely adopted worldwide.

8. Industry Standard

TCP/IP is universally supported by network hardware, operating systems, and applications.


TCP/IP Model – Application Layer
1. What happens in the Application Layer

The Application Layer is the topmost layer of the TCP/IP model that combines the roles of
Application, Presentation, and Session layers of the OSI model. It is the layer closest to the user
and is responsible for providing network services directly to application software (e.g.,
browsers, email clients, file transfer tools).

Key functions

 Enables user applications to communicate over the network


 Defines rules, formats, and procedures for data exchange
 Handles data representation, session initiation, and service requests
The Application Layer does not represent the application itself (e.g., Chrome), but the protocols
that applications use to communicate.

2. Common Application Layer Protocols and Their Functions


a) HTTP (HyperText Transfer Protocol)

 Used for accessing web pages


 Follows a request–response model
 Stateless protocol
 Uses TCP
 Default port: 80

b) HTTPS (HTTP Secure)

 Secure version of HTTP


 Uses encryption (TLS/SSL) for confidentiality and integrity
 Used in online banking, e-commerce
 Uses TCP
 Default port: 443

c) FTP (File Transfer Protocol)

 Used to upload and download files


 Uses two connections:
o Control connection
o Data connection
 Not secure by default
 Uses TCP
 Default ports: 21 (control), 20 (data)

e) SMTP (Simple Mail Transfer Protocol)

 Used to send emails


 Works between mail servers
 Cannot retrieve emails
 Uses TCP
 Default ports: 25, 587

f) POP3 (Post Office Protocol v3)

 Used to retrieve emails


 Downloads emails from server to client
 Emails often deleted from server after download
 Uses TCP
 Default port: 110
g) IMAP (Internet Message Access Protocol)

 Used to retrieve and manage emails


 Emails remain on the server
 Supports synchronization across devices
 Uses TCP
 Default port: 143

h) DNS (Domain Name System)

 Translates domain names to IP addresses


 Example: [Link] → 142.250.x.x
 Uses UDP (fast queries) and TCP (zone transfers)
 Default port: 53

i) DHCP (Dynamic Host Configuration Protocol)

 Automatically assigns:
o IP address
o Subnet mask
o Gateway
o DNS server
 Uses UDP
 Ports: 67 (server), 68 (client)

j) SNMP (Simple Network Management Protocol)

 Used for network monitoring and management


 Collects device statistics and status
 Uses UDP
 Default ports: 161 (queries), 162 (traps)

k) Telnet

 Used for remote command-line access


 Sends data in plain text
 Insecure (largely obsolete)
 Uses TCP
 Port: 23

l) SSH (Secure Shell)

 Secure remote access


 Encrypts communication
 Replacement for Telnet
 Uses TCP
 Port: 22
TCP/IP Model – Transport Layer

1. What happens in the Transport Layer


The Transport Layer provides end-to-end process communication between applications
running on different devices across a network.

Core functions

1. Segmentation
o Breaks large application data into smaller units called segments
o Makes transmission efficient and manageable
2. Reassembly
o Reorders and combines received segments into the original data
3. Port Addressing
o Uses port numbers to identify sending and receiving applications
o Example: Web server uses port 80 or 443
4. Multiplexing and Demultiplexing
o Allows multiple applications to share the network simultaneously
o Delivers received data to the correct application
5. Flow Control
o Prevents a fast sender from overwhelming a slow receiver
6. Error Control
o Detects lost or corrupted segments
o Ensures accurate delivery (protocol-dependent)
7. Connection Management
o Establishes, maintains, and terminates logical connections (if supported)

2. Transport Layer Protocols (Fully Explained)

a) TCP – Transmission Control Protocol

TCP is a reliable, connection-oriented transport protocol designed to ensure accurate and


ordered data delivery.

How TCP works

1. Connection establishment (Three-Way Handshake)


o SYN → SYN-ACK → ACK

Steps

a. SYN
o The client sends a synchronize (SYN) segment to the server
o Indicates: “I want to start a connection”
b. SYN–ACK
o The server responds with SYN + ACK
o Indicates: “I received your request and I’m ready”
c. ACK
o The client sends an ACK
o The connection is now established

📌 This handshake synchronizes sequence numbers used to track data

2. Data transfer

3. Error handling
o Lost segments are retransmitted
o Corrupted data is detected using checksums
4. Flow control
o Uses a sliding window mechanism
o The receiver advertises a window size (available buffer space).
o If the receiver is busy: It advertises a smaller window
o If it has more capacity: It advertises a larger window
o Adjusts sending rate based on receiver capacity
5. Congestion control

TCP monitors the network for congestion signs such as; Packet loss and Increased delays
When congestion is detected, TCP reduces the sending rate

When the network is stable: TCP gradually increases the sending rate

6. Connection termination
o Graceful connection close using FIN and ACK flags

Steps

o One side sends FIN (Finish) → “I have no more data”


o Other side replies with ACK
o Other side sends its own FIN
o First side replies with ACK

b) UDP – User Datagram Protocol

UDP is an unreliable, connectionless transport protocol designed for speed and efficiency.

How UDP works

 Sends data as datagrams


 No prior connection setup
 No acknowledgment or retransmission
 Minimal protocol overhead

Key characteristics of UDP

 Fast data transmission


 Low latency
 No guarantee of delivery
 No ordering of data
 No flow or congestion control

Why UDP is still useful

UDP is ideal when:

 Speed is more important than reliability


 Small delays or data loss are acceptable

c) SCTP – Stream Control Transmission Protocol (advanced / optional)

SCTP is a hybrid transport protocol combining features of TCP and UDP.

Key features

 Reliable data delivery (like TCP)


 Message-oriented (like UDP)
 Supports multi-streaming (multiple independent streams in one connection)
 Supports multi-homing (multiple IP addresses per endpoint)

3. TCP vs UDP (Clear Comparison)


Feature TCP UDP
Connection Connection-oriented Connectionless
Reliability Guaranteed Not guaranteed
Error Yes No
recovery
Ordering Maintained Not maintained
Speed Slower Faster
Use case Accuracy-critical Time-critical

You might also like