0% found this document useful (0 votes)
3 views71 pages

Computer Networking - Notes

The document provides an overview of computer networking, defining networking as the connection of devices for resource sharing and communication. It discusses various types of networks (PAN, LAN, MAN, WAN), network devices, and protocol architectures, including the OSI and TCP/IP models. Additionally, it covers basic networking concepts such as data transmission, bandwidth, latency, and IP addressing.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views71 pages

Computer Networking - Notes

The document provides an overview of computer networking, defining networking as the connection of devices for resource sharing and communication. It discusses various types of networks (PAN, LAN, MAN, WAN), network devices, and protocol architectures, including the OSI and TCP/IP models. Additionally, it covers basic networking concepts such as data transmission, bandwidth, latency, and IP addressing.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

COMPUTER NETWROKING CC:313

Introduction & Protocol Architecture


1. What is Networking?
Networking is the process of connecting devices (computers, servers, smartphones, IoT
devices(etc) to share resources and exchange data It enables communication, resource
sharing (like files or printers), and access to services (like the internet or email)
Networks can be local (LAN), wide (WAN), or global (the internet).
IoT devices(the Internet of Things (IoT) refers to everyday objects, or "things," that are
connected to the internet and can communicate and exchange data with other devices and
systems),

The first computer network is ARPHANET (advance research project agency network).
“a group of computer or devices are connected to each other for the purpose of sharing
the resources is called computer network”
- Example: A home Wi-Fi network connects your laptop, phone, and smart TV to share
internet access
- Key Purpose: Facilitate data transfer, communication, and resource sharing efficiently
and securely
Characteristics of computer networks;
1. Resource sharing
2. Communication speed
3. Backup
4. Scalability (more devices can connect in an network)
5. Reliability
6. Software and hardware sharing
7. Security
Advantages:
 Open to everyone
 File sharing
 Security
 Easy to add new devices
 Backup and Storage
Disadvantages:
 Network devices required
 Virus attack
 Required handler
 High speed internet
 Server
Network devices:
These devices use to build the network.
1. HUB
2. Switch
3. Router
4. Modem
5. Gateway
6. Bridge
7. Repeater etc.
Types of network:
1. PAN(personal area network)
 PAN Range is 10m
 Use in home(for the personal use)
2. LAN (local area network)
 LAN Range is 150m
 Use in particular office (building)
3. MAN (metropolitan area network)
Connection of LAN network is MAN
MAN Range id 50 km
Use with in city
4. WAN(wide area network)
Combination of LAN and WAN
WAN Range is not fixed.
Use for the countries (to connect the countries with a network)
LAN MAN WAN
local area network Metropolitan area network Wide area network
Use for the building ,home It is use for the cities It is use for the countries
or offices
Transmission speed of data Transmission speed of data Transmission speed of data
is high is average is low
Range 0 to 150m Range is 5 to 50 km Range is not fixed
LAN network ownership is MAN ownership may be WAN ownership also
private private or public private or public
Easy to maintain Difficult to maintain then It is also difficult to
LAN maintain then MAN as well
as LAN
Error rate and step up rate Error rate and step up rate Error rate and step up rate
is low is average is high
(all around the word.)

Difference b/w LAN,MAN &WAN

 Protocol Architecture
A protocol is a set of rules that governs how data is transmitted and received over a
network Protocol architecture organizes these rules into structured layers to
standardize communication and ensure interoperability between devices

- Two Major Models:


1 OSI Model (Open Systems Interconnection): A conceptual framework with 7 layers
2 TCP/IP Model (Transmission Control Protocol/Internet Protocol): A practical model
with 4 layers used in the internet

 OSI Model (7 Layers)


The OSI model divides network communication into seven layers, each handling a
specific task It’s a theoretical model used for understanding and designing networks
The OSI model stand for “open system interconnection model” it has been developed by
standard organization IOS “international organization standardization” in 1984.
There are 7 layer architecture where each layer having specific functionality
All the 7 layers work collaboratively to transmit the data form one network to another
network across the globe.

- Mnemonic: Please Do Not Touch Steve’s Pet Alligator (Physical, Data Link, Network,
Transport, Session, Presentation, Application)
- Key Idea: Each layer interacts with the layer above and below it For example, the
Network layer relies on the Data Link layer to deliver packets and provides services to
the Transport layer

1 Application layer: User interface, provides network services to applications use


protocols HTTP, FTP, SMTP, DNS.
OR

 It is the first layer from sender side called as application layer.


 It provide an interface so we can interact with any application and
transfer data.
 It providing an interface for applications to interact with the network. It
allows users to send data, access data, and use network services like
web browsing, email, and file transfer.
2 Presentation layer: Data formatting, encryption, and compression JPEG, SSL/TLS,
MPEG
OR
After application layer the 2nd layer is presentation layer, it shows the data transfer
to the sender to receiver in that format so the user can understand the data. It also
compress and do encryption & decryption, to provide the data security.

3 Session layer : Manages sessions between applications, maintains connections


NetBIOS, RPC
It provides an connection session between the sender and receiver until the data
transfers.

4 Transport layer: Reliable data transfer, error correction, flow control TCP, UDP.
The data come form the session layer it divide the data into segments (the
segmentation process).
TCP : use this protocol if the data send with the establishing the connection
UDP: use this protocol If the data send without establishing the connection send data
(fast transmission of data).

5 Network layer: Logical addressing, routing, path determination IP, ICMP, RIP, OSPF .
The data come from transport layer to network layer the network make packets of data
and transfer it .
 it will store the sender and receiver IP Address.
 It also decided the path the data transfer for the fast transmission.

6 Data Link layer: Error-free transfer of frames, MAC addressing, flow control
Ethernet, Wi-Fi, PPP .
The packet form network layer covert into the farms in the data link layer. OR the
data link layer coverts the packets data into farms.
Its responsibilities are:
1. It checks the data is error free or not.
2. Transfer the error free data ,if there is an error remove it and cleans the
data
3. Control the data flow in sender and receiver side (maintain the data
speed).

7 Physical layer: Transmission of raw bits over physical medium (cables, signals,
connectors) Cables, hubs, RJ45, fiber optics.
The data link layer send data to physical layer and the physical layer coverts the data
into the form of the bits (0,1) {digital or binary data}.
There are many network transfer data, it also decide the data send through wires or
wireless.
The sender physical layer and the receiver physical layer and the same process done
inversely.

TCP/IP Model (4 Layers)

The TCP/IP model is a set of rules used for sending data over the internet. It has 4
layers, and each layer has a specific job to help data move from one device to another.

[Link] Layer

This layer allows users and applications to access network services, such as browsing
websites or sending emails.

 What it does: Helps programs like web browsers or email apps talk to the
network.
 Examples:
o HTTP – used for websites
o SMTP – used for sending emails
o FTP – used for file transfers
 Think of it as: The layer where users interact with internet services.

2. Transport Layer

 This layer ensures reliable communication between devices. It checks for errors
and manages data flow.

 What it does: Makes sure data gets delivered correctly and in order.
 Examples:
o TCP – reliable and checks for errors
o UDP – faster but less reliable
 Think of it as: A delivery manager making sure your package reaches the right
place safely.

[Link] Layer

This layer is responsible for addressing and routing data between different networks
using IP addresses.

 What it does: Finds the best path to send the data across networks.
 Main protocol:
o IP (Internet Protocol) – adds IP addresses so the data knows where to go.
 Think of it as: A GPS that helps data find its way across different networks.

[Link] Access Layer

This layer handles the physical connection to the network. It manages how data is sent
over cables, Wi-Fi, or other media.

 What it does: Handles the actual hardware (like cables and Wi-Fi) that moves the
data.
 Includes:
o Physical devices (e.g., network cards, routers)
o Data link protocols (e.g., Ethernet, Wi-Fi)
 Think of it as: The road that the data physically travels on.

OR

Define the standard data transfer over the [Link] TCP/IP model is a simplified,
practical model used in real-world networking, particularly for the internet
TCP= transmission control protocol
IP= internet protoco

TCP/IP = 2 layers

transport layer (reliable Internet layer(responsible for the


data transfer) transmission of data packets
between the devices)
Transport layer

TCP(transmission UDP(user
control protocol) datagram protocol)

reliable data Fast data transfer


transfer)

Internet layer

IP(internet protocol) ARP(address resolution


protocol)
responsible for the
transmission of data packets Maps the IP address to
between the devices Physical address

Comparison with OSI:


 OSI’s Application, Presentation, and Session layers ≈ TCP/IP’s Application
layer
 OSI’s Transport layer ≈ TCP/IP’s Transport layer
 OSI’s Network layer ≈ TCP/IP’s Internet layer
 OSI’s Physical and Data Link layers ≈ TCP/IP’s Network Access/Link layer

Use: They divide complex networking tasks into manageable layers, enabling
standardization, troubleshooting, and interoperability
_____________________________________________________________
Basic Concepts of Networking
1 Data Transmission: The process of sending data from one device to another It can
be:
Unicast: One-to-one (eg, emailing a single person)
Multicast: One-to-many (eg, live streaming to a group)
Broadcast: One-to-all (eg, sending a message to all devices in a network)
OR(explaine)
Data transmission in a computer network is the process of moving data from one device
to another within the network, often using wired or wireless connections. This transfer
involves various methods and protocols to ensure the data is reliably and efficiently
conveyed.

Types:

 Simplex: One-way communication (e.g., TV broadcast).


 Half Duplex: Two-way communication, but one at a time (e.g., walkie-talkie).
 Full Duplex: Two-way communication at the same time (e.g., phone call).

Diagram:

Simplex: A→B
Half Duplex: A ↔ B (but one at a time)
Full Duplex: A ⇄ B (simultaneous)

 important factors of Data Transmission:


 Data:
The information being transmitted, which can be in the form of text, images, audio,
video, or other digital data.
 Transmission Medium:
The physical or wireless channel used to carry the data, such as cables, optical fibers,
or radio waves.
 Protocols:
Rules and standards that govern how data is formatted, packaged, and transmitted,
ensuring it can be understood by both the sender and receiver. Examples include
TCP/IP, HTTP, and various networking protocols.
 Methods:
Different approaches used to transmit data, such as serial or parallel transmission, and
synchronous or asynchronous transmission.
 Modes:
The direction in which data can be transmitted, which can be simplex (one-way), half-
duplex (bidirectional, but only one way at a time), or full-duplex (bidirectional,
simultaneously).
Examples:
Sending an email, Downloading a file from the internet, Streaming a video online, and
Communicating between two computers on a local network

2 Bandwidth: The maximum rate of data transfer, measured in bits per second (bps)
Higher bandwidth means faster data transfer
Formula:- (f_max - f_min) f= frequency the difference between the maximum and
minimum frequencies (f_max - f_min) a system can handle.
- Example: A 100 Mbps internet connection can transfer 100 megabits per second
OR(explaine)

Bandwidth:

the maximum capacity of a network or internet connection to transfer data within a


specific time frame

OR

Bandwidth is the maximum rate at which data can be transferred over a network path.
It is measured in bits per second (bps).

Example Calculation:
If you download a 100MB file with a bandwidth of 10 Mbps:
1. Convert file size to bits:
o 100 MB = 100 × 8 = 800 Megabits
2. Time = Data / Bandwidth = 800 Mb / 10 Mbps = 80 seconds

Diagram:

Higher Bandwidth → More data at once


|====|====|====|====|====|====|====|====| (Wide Pipe)

Lower Bandwidth → Less data at once


|==|==|==|==| (Narrow Pipe)
3 Latency(delay): The time it takes for data to travel from source to destination,
measured in milliseconds (ms) Lower latency is better for real-time applications like
gaming
OR(explanation)

the delay in communication, specifically the time it takes for data to travel from one
point to another.

It is usually measured in milliseconds (ms).

Real-Life Example:

 A ping test to a server shows 50ms. That means it takes 50 milliseconds for the
signal to reach the server and come back.

Diagram:

[You] ———50ms——→ [Server]


←——50ms——

 Total Round Trip Time (RTT) = 100ms

4 IP Addressing: A unique address assigned to each device on a network to identify it


(explained in detail under IPv4 vs IPv6)
OR(explanation)
An IP address, or Internet Protocol address, is a unique string of numbers assigned to
each device connected to a computer network that uses the Internet Protocol for
communication. It serves as an identifier that allows devices to send and receive data
over the network, ensuring that this data reaches the correct destination.

OR

An IP Address is like the home address of your computer or mobile on the internet.
It helps your device send and receive data correctly.

Just like your home address: House 12, Street 5, Lahore


Your computer's address might be: [Link]

Types of IP Address:

1. IPv4 (Most common type)

 Made of 4 numbers separated by dots


 Each number is between 0 and 255
Example: [Link]

2. IPv6 (New version, longer)

 Longer and uses both letters and numbers


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

Structure of IPv4 Address:

[Link]

Part Meaning
192.168.1 Network part (which street/area)
.5 Host part (house number)

Private vs Public IP Address:

Type Use Example


Private IP For inside your home or office [Link]
Public IP Seen on the internet [Link]

Private IP = Room name inside the house


Public IP = Main house address seen from outside
What does an IP Address do?

1. Helps send data to the right place


2. Identifies each device on a network
3. Lets devices communicate over the internet

Diagram:

IPv4 Example: [Link]


↑ ↑
Network Host

What is IPv4?

IPv4 stands for "Internet Protocol version 4"

Features:

 It is the older and most commonly used version.


 It uses 4 numbers, each from 0 to 255, separated by dots.
 Total size is 32 bits.
 It can make around 4.3 billion unique IP addresses.

Example:

[Link]

🧱 Structure:

[Number].[Number].[Number].[Number]
192 .168 . 0 . 1

Problem:

Since there are billions of devices today (mobiles, computers, smart TVs), IPv4 addresses
are running out.

What is IPv6?

IPv6 stands for "Internet Protocol version 6"


Features:

 It is the newer version made to replace IPv4.


 It uses 8 groups of numbers/letters, separated by colons :.
 Total size is 128 bits.
 It can make around 340 undecillion addresses (very huge!).

Example:

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

Structure:

[Group1]:[Group2]:[Group3]:...[Group8]

Benefits:

 No shortage of addresses
 Better security
 Faster routing in some networks

5 Client-Server Model: A client (eg, your browser) requests services from a server (eg,
a web server hosting a website)
- Example: Accessing Google’s website involves your browser (client) requesting data
from Google’s servers
OR(explanation)

Definition:
A network architecture where one system (server) provides services/resources and the
other (client) requests them.

Diagram:

+-----------+
| Server |
+-----------+
↑ ↑ ↑
/ | \
Client Client Client
Example: Web browsing – Your browser (client) sends a request to a web server to get a
webpage.

6 Peer-to-Peer (P2P): Devices act as both clients and servers, sharing resources
directly without a central server
- Example: File-sharing via BitTorrent
OR(explanation)

Definition:
All systems act as both clients and servers. Resources are shared directly without a
central server.

Diagram:

[A] ⇄ [B] ⇄ [C] ⇄ [D]


↖ ↘ ↖ ↘
Sharing files directly

Example: File-sharing apps like BitTorrent.

(BitTorrent is a protocol and software application for distributing files over the
internet in a peer-to-peer (P2P) manner. It works by breaking down large files
into smaller pieces and distributing these pieces among multiple users, or
peers.)

Network Topologies
Network topology refers to the physical or logical arrangement of devices in a network
Each topology has trade-offs in terms of cost, scalability, and reliability
1 Star Topology:
- All devices connect to a central hub or switch
- Advantages: Easy to install, scalable, failure of one device doesn’t affect others
- Disadvantages: Central hub failure disrupts the entire network
- Example: Most home Wi-Fi networks use a star topology with a router as the hub
2 Bus Topology:
- All devices connect to a single cable (bus)
- Advantages: Simple and inexpensive
- Disadvantages: Cable failure disrupts the network; collisions reduce efficiency
- Example: Early Ethernet networks
3 Ring Topology:
- Devices form a closed loop, with each device connected to the next
- Advantages: Equal access to the network, predictable performance
- Disadvantages: Failure of one device can disrupt the network
- Example: Token Ring networks
4 Mesh Topology:
- Every device connects to every other device (full mesh) or partially (partial mesh)
- Advantages: Highly reliable; multiple paths for data
- Disadvantages: Expensive and complex to implement
- Example: Large-scale wireless networks or internet backbone
- Exam Focus: Star topology is most common in modern networks (eg, offices, homes)
Bus topology is simpler but outdated
Layered Architecture
Structure (like OSI, TCP/IP) to divide tasks and simplify networking.

Example: TCP/IP is used in real-world internet applications.

 Purpose of Layered Architecture


- Divide and Conquer: Breaks complex networking tasks into smaller, manageable layers
- Standardization: Ensures devices from different vendors can work together
- Troubleshooting: Isolates issues to specific layers
- Modularity: Changes in one layer (eg, new hardware) don’t affect others

OSI vs TCP/IP
- OSI Model: Theoretical, detailed, with 7 layers Used for teaching and designing
protocols
- TCP/IP Model: Practical, simplified, with 4 layers Used in real-world internet
communication
- Key Difference: OSI separates Application, Presentation, and Session layers, while
TCP/IP combines them into a single Application layer

Physical Layer Functionalities


Deals with wires, connectors, signals; sends raw bits.

Example: Ethernet cables in LANs.

Role
The Physical layer deals with the physical connection between devices, transmitting raw
bits (0s and 1s) over a medium
Functions
Defines hardware specifications: Cables (eg, Ethernet, fiber optic), connectors (eg,
RJ45), and signals (eg, voltage levels)
- Transmits bits: Converts data into electrical, optical, or radio signals
- Specifies transmission media: Wired (copper, fiber) or wireless (radio waves)
Examples
- Devices: Hubs, repeaters, network interface cards (NICs)
- Media: Twisted pair cables, coaxial cables, fiber optics
- Standards: Ethernet (IEEE 802.3), USB, Bluetooth
Key Idea: The Physical layer is the foundation of networking, handling the "raw"
transmission of bits

Data Link Layer Functionalities


Handles error detection, frames, and MAC addresses.

Example: Switches use MAC addresses to send data to correct device.

Role
The Data Link layer ensures reliable data transfer between adjacent devices on the same
network It organizes bits into frames and handles error detection and correction
Functions
- Framing: Groups bits into frames for transmission
- Error Detection/Correction: Uses techniques like CRC (Cyclic Redundancy Check) to
detect errors
- Flow Control: Prevents overwhelming the receiver with too much data
- MAC Addressing: Uses Media Access Control (MAC) addresses to identify devices on
the same network
- Access Control: Manages which device can transmit data (eg, CSMA/CD in Ethernet)
Examples
- Protocols: Ethernet (IEEE 802.3), Wi-Fi (IEEE 802.11), PPP (Point-to-Point Protocol)
- Devices: Switches, bridges

- Trick:
- Physical Layer = Hardware-level bit transmission
- Data Link Layer = Error-free frame delivery to the next device

Multiple Access Techniques


Multiple access techniques allow multiple devices to share the same communication
medium without collisions.
Multiple access is the use of multiplexing techniques to provide communication service
to multiple users over a single channel. It allows for many users at one time by sharing
a finite amount of spectrum.
Multiple access is a techniques that permit many users to simultaneously access a given
frequency allocation

1 TDMA (Time Division Multiple Access):


- Divides time into slots, with each device assigned a specific time to transmit
- Example: Like traffic lights assigning turns to cars
- Use: Cellular networks (eg, GSM)

2 FDMA (Frequency Division Multiple Access):


- Divides the frequency spectrum into channels, with each device assigned a specific
frequency
- Example: Like radio stations broadcasting on different frequencies
- Use: Analog cellular networks, radio

3 CDMA (Code Division Multiple Access):


a technology that allows multiple users to transmit data over the same frequency
channel at a time by using unique, spreading sequence of codes for each user. These
codes ensure that the transmissions from different users can be distinguished
and separated at the receiver.

- Devices transmit at a time using unique codes to differentiate signals


- Example: Like people speaking different languages in the same room
- Use: 3G cellular networks
- Key Idea: These techniques prevent data collisions in shared media like wireless
networks

Circuit Switching vs Packet Switching


Circuit Switching
- Establishes a dedicated, fixed path between sender and receiver for the entire
communication session
It is a communication method in which a dedicated fixed communication path is
establishing between the two end point for the duration of the communication session.
e.g: A traditional telephone call, once the connection or call established a dedicated line
is reserved for that call.
- Characteristics:
- Fixed bandwidth, no sharing
- Ideal for continuous data transfer
- Wastes resources if no data is sent
- Use: Legacy phone networks
Advantages:
1. Consistent and reliable performance.
2. No delay during data transfer once the connection or circuit established.
Disadvantages:
1. Resource wastage (idle)
2. Startup time required before communication start.

Packet Switching
- Breaks data into small packets, each sent independently over the network, taking the
best available path.
Packet switching divides the data into small packets ,which are sent independently
across the network and reassemble at the destination.
e.g: send email email divided into packets each carrying a portion of message and
addressing information.
Advantages:
1. Efficient for data networks.
2. Not startup time
3. Better resource utilization.
Disadvantages:
1. variable delay
2. packets may be lost
3. more complex protocols need to resemble data and handle errors.
- Characteristics:
- Efficient use of bandwidth (shared)
- Packets may arrive out of order and are reassembled
- Robust; reroutes around failures
- Example: Internet, email, web browsing
- Use: Modern networks (TCP/IP-based)

- Exam Focus: Packet switching is dominant in modern networks due to its efficiency
and flexibility

LAN Technologies
Local Area Networks (LANs) connect devices within a small geographic area (eg, office,
home).
In LAN the computers and devices are connected in limited area such as a home, school
or office. It allows the user to share files, printers, and internet connections efficiently.

Common LAN Technologies


1 Ethernet: (Standard: IEEE 8023)
Ethernet uses the cables (like UTP) to connect the devices. Data is sent using MAC
addresses. It uses the CSMA/CD (collision detection) to handle the data collision.
Advantages:
UTP:
1. high speed and reliable Unshielded twisted pair
2. low cost and easy step a type of copper cable.

Disadvantages:
1. limited mobility
2. data collision
- Wired technology using twisted pair or fiber optic cables
- Speeds: 10 Mbps (Fast Ethernet), 1 Gbps (Gigabit Ethernet), and beyond
2 Wi-Fi: (Standards: IEEE 80211)
Uses the radio waves to connect devices wirelessly through a router or access
- Wireless point. using
technology
Advantages: radio waves

1. wireless (easy to install) - Standards: IEEE 80211 (eg,


80211ac, 80211ax)
- Speeds: Up to several Gbps
(Wi-Fi 6)
2. support the mobile PCs etc
Disadvantages:
1. can be slower and less secure
2. affected by interference
3 Token Ring:
A type of LAN that uses the “TOKEN” to control the data transmission. The token a
special bit pattern is passed around the ring of inter connected devices only the device
holding the token can send the data, ensure no collision and fair access to the network.
When a device want to send data it wait for the token, capture it and then attaches its
data to the token.
Diagram;

- Devices pass a token in


a ring topology to
transmit data
- Less common today,
replaced by Ethernet
- Use: Ethernet and Wi-Fi
dominate in homes,
offices, and schools

Wireless Networks
Wireless networks transmit data using radio waves, eliminating the need for physical
cables
Types
1 Wi-Fi:
- Used for LANs in homes, offices, and public spaces
- Example: Connecting your phone to a home router
2 Bluetooth:
- Short-range, low-power wireless for connecting devices like headphones or
keyboards
3 Cellular Networks:
- Wide-area networks (eg, 4G, 5G) for mobile communication
Advantages
- Mobility: Devices can move freely
- Easy setup: No cables required
- Scalability: Easy to add devices
Disadvantages
- Interference: Radio signals can be disrupted
- Security: Wireless signals are easier to intercept
- Speed: Generally slower than wired connections

MAC Addressing
What is a MAC Address?
A Media Access Control (MAC) address is a unique 48-bit identifier assigned to a
device’s network interface card (NIC) by the manufacturer.
MAC stand for “media assess control” it is also known as physical or hardware address
It is an unique and permanent address for all the electronic and networking devices.
- Format: 6 pairs of hexadecimal digits, separated by colons or dashes
(eg, 00:1A:2B:3C:4D:5E)
MM:MM:MM:SS:SS:SS
- Structure:
- First 3 bytes: Manufacturer ID (assigned by IEEE)
- Last 3 bytes: Device-specific ID(provided by manufacturer, to separate each divide
unique for each device)
- Purpose: Identifies devices at the Data Link layer for communication within the same
network
Uses:
4. device tracking
5. ??????
MAC vs IP Address
- MAC Address: Hardware address, fixed, used in the Data Link layer
- IP Address: Logical address, assignable, used in the Network layer
- Example: A laptop’s MAC address is permanent, but its IP address changes when it
connects to different networks
IP Address MAC Address
IP stand for internet protocol MAC stand for media access control
It is an logical address It is an physical address
The length of IP is 32 bit for IPv 4 and 128 The length of MAC address is 48 bit
bit for IPv 6
ISP (internet service provider) provided IP NIC provided MAC address
address
We an change the IP address of any MAC address cannot be change, only if
device At any time we change the LAN card of that device
An IP address identifies a connection to a MAC address identifies a device
device
e.g:[Link] e.g: 00:1A:2B:3C:4D:5E

Networking Devices
Networking devices connect, manage, and direct data traffic in a network

Hub

 A hub is a basic networking device that connects multiple computers or devices in


a LAN.
 HUB is a network device that is used to connect multiple computers in a network,
all the information send to the HUB is automatically send to each port to every
device. e.g in WhatsApp group a massage send and receive by many.
 A HUB is less expensive, less intelligence and less complicated.
 HUB generally used to connect computer in a LAN.
 Transmission mode of HUB is half duplex.

Working: It receives data from one device and sends (broadcasts) it to all other
connected devices, even if it's not meant for them.

 Limitation: It causes unnecessary traffic and is less secure.


 Example: If 4 computers are connected to a hub, and one sends data to another,
all 4 will receive it — but only the target will use it.

Advantages:

 HUB can broadcast the massage.


 It is less expensive that anyone can use it.
 Easy installation
 Robust(if one device fails then other will work)

Disadvantages:

 If the HUB is fail the entire network will be failed.


 We cannot send private/personal data through HUB
 HUB dose not provide any security
 HUB cannot support full duplex transmission

Switch

 A switch is a smarter device that connects devices like computers and printers in
a LAN.
 It is an network device that connect the multiple computers together in the
[Link] is mainly use to send the private massage as well as there is no
wasting of data.
 Switch can easily identify that which device is connected with which port by using
the MAC address that’s why it delivers massage on particular destination
machine.
 It is more intelligent than HUB.(it note the source and destination address)
 Working: It reads the MAC address of the incoming data and sends it only to the
intended device.
 Example: In an office, a switch connects 10 computers. If PC1 sends data to PC5,
only PC5 receives it, not all others.

Advantage:

 Reduces network traffic


 It is generally use the unicast the massage.
 It provide more security as compared to a hub.
 Switch support full duplex data transmission mode.(sending and receiving the
data at a time )
 It is used to send the data packets based on MAC address
 If a node fails there will be no effect in the entire network

Disadvantages:

 If the switch is failed then entire network will be failed


 It is difficult to setup
 It is more expensive

Router

 A router connects different networks together, like a home network to the


internet.
 Router is a network device which works as a traffic controller. A main work of
router Is to choose a congestion free path through which the data packets will
travel.
 Router receive data packets of the sender , analyze and forward those data
packets then giving the receiver.
 Working: It uses IP addresses to route data between networks and also acts as a
traffic director.
 Extra Features: Many home routers also include Wi-Fi capability.
 Example: Your Wi-Fi router at home sends your laptop's request to Google and
brings the webpage back to you.

Advantages:

 It provides connection b/w two dis similar types of network


 Transmission rate is very high.(because it choose the path which have less traffic
or traffic less)
 It internally uses some algorithm to find out congestion free path.
 It provides both wire or wireless facility.
Disadvantages:

 Router is more expensive compare to other network devices.


 Router are complex to maintain
 Security issues
 It only work with routable protocols.

Modem (Modulator-Demodulator)

 A modem converts digital signals from your computer to analog signals for
transmission over phone/cable lines and vice versa.
 It is placed b/w the computer system and telephone line.
 It has two parts modulator and demodulator. The modulator converts digital
signal to analog signals as demodulator converts the analog signals to digital
signal.
 It allows us to computer to connect internet
 Purpose: Required to connect to the internet over telephone or cable networks.
 Example: When you use a DSL connection, your modem converts digital signals
so your ISP can understand them and send data back.

Advantages:

 Fast when at small distance

Disadvantages:

 Slow when distance it too large

Example (All Together)

In a home network:

 The modem connects to the ISP.


 The router connects to the modem and distributes internet to all devices.
 A switch (if needed) connects multiple wired devices like PCs or printers.
 A hub is rarely used today but may be used in very simple setups.

Repeater:

 Repeater is a network device through which we can boost up the weak signals.
 When the signals travels in the network after traveling some distance the
intensity of the signals becomes low.
 In order to regenerate the weak signal we should use repeater device.

Diagram:

signals

signals intensity low repeater high intensity signals

note it is in wire & wireless.

Advantages:

 it is used to regenerate the weak signals.


 It is cheaper then other network device
 Repeater has the ability to increase or extend the length of signals.
 Increase /maintain the signal performance.

Disadvantages:

 It required number of repeater after some distances.


 Repeater also unable to connect dis-similar type of network.
 They cannot reduce network traffic. e.g (it is not able to tell that how much
devices need to connect for a good signal strength).

Bridge:

Bridge is a network device that is used to separate LAN into number of section.

Diagram:

HUB HUB

BRIDGE
LAN 1 LAN 2
It receive the data from receive and examine it , it make an table of MAC Address and the port no of the destination and save or note the
MAC address of each device connected to the HUB and the port no. where the device are connected or on which port the device is
connected. After the examination it will send or forward the data to the destination place according to the MAC address and in this way
data broadcast.

Note: it operates both physical as well as data link layer of OSI model.

Advantages:

 by using the bridge device we can extend network.


 It broadcast the data to each node like HUB or Repeater
 Collison can be reduced easily.
 It is more intelligence (store the MAC address and port no).

Disadvantages:

 It does not establish connection b/w two different network.


 Once the broadcast the massage then it is incapable to stop the massages.
 It is more expensive.
 The transmission rate of the data is slower then repeater.

Gateway:

 Gateway is a hardware device that is used to connect the dissimilar types of


network. It is also use to connect the similar type of network but mostly use for
different type network connection.
 it allows to send and receive data through the internet even it is LAN network.

Diagram:

Server

Switch
Here the switch is acting as an Gateway.

If we need a data the switch give it to us but if we need that data which we have not in our local network then the switch act as
an Gateway and get data from server and give it to that particular device.

The server is Gateway server and anyone can access it, it can be say as wide area network, and the local network is LAN.

It operates all 7 layer of OSI model

Advantages:

 it connects tow networks which has different protocol.


 Is operate all the 7 layer of OSI model.
 We can’t access the internet without a gateway.
 It provides same security.

Disadvantages:

 It is more expensive
 Data transmission rate is slower.
 Difficult to maintain as well as very complex
 It is less intelligent

NIC(network interface card):

NIC stand for “network interface card”, it us hardware device without which we can’t
connect computer to the network /internet.

Types:

1 Internal network card 2 External network card

The card may be internal or external but it has an 48 bit MAC Address. Through which
each NIC card have it unique identity, and connect to an network or internet.

Internal network card: In this cards the motherboard has a slot for the network card
where it can be inserted, it required a network cable (cable name Rj45) to provide
network access.

External network card: in desktop and laptop that do not have an internal NIC ,external
NICs are used.

It have two types:


1 wireless:(connect through a network by using Wi-Fi or Bluetooth)

2 USB cable:(connect one side of cable with the mobile or computer and other side with
the NIC)

Advantages:

 Allow us to connect with the computer with another device.


 Wire or wireless.
 it allow to connect with IP address or LAN.
 It have it own MAC address but prefer IP address or LAN to connect with the
other network.
 Disadvantages:
 Data is not secured
 particularly with wired NICs, and the possibility of increased power consumption
and heat generation.
 Compatibility issues with certain operating systems or hardware.

Network Layer Protocols


The Network layer handles logical addressing and routing of packets across networks.
The network layer is like the GPS of the internet. It’s the third layer in the OSI model (a
framework that explains how data moves through networks). Its main job is to figure
out how to get data packets from one device to another, even if they’re on different
networks. Think of it as the layer that decides the best route for your data to travel
across the internet or a network.

What are Network Layer Protocols?

Network layer protocols are rules and tools that help devices send and receive data
packets across networks. They handle addressing (like putting a correct address on a
letter) and routing (like choosing the best roads to deliver that letter).

Key Functions of the Network Layer

1. Addressing: Assigns unique addresses to devices (like an IP address) so data


knows where to go.
2. Routing: Finds the best path for data to travel from the sender to the receiver.
3. Packet Forwarding: Moves data packets from one network device to another.
4. Fragmentation: Breaks large data packets into smaller pieces if needed, so they
can travel through different networks.

Common Network Layer Protocols

1. IP (Internet Protocol)

 Definition: The Internet Protocol is the main protocol that gives every device a
unique address (called an IP address) and helps route data packets across
networks.
 Types:
o IPv4: Uses 32-bit addresses (e.g., [Link]). It’s older and still widely
used but has limited addresses.
o IPv6: Uses 128-bit addresses (e.g.,
2001:0db8:85a3:0000:0000:8a2e:0370:7334). It’s newer and supports
more devices.
 Example: When you visit a website, your computer uses IP to send a request to
the website’s server using its IP address.
 Explanation: Think of IP as the postal system. Your device (like your house) has
an IP address, and the data packet is like a letter. IP makes sure the letter gets to
the right house, even if it’s across the world.

2. Routing protocols:

Routing protocols are sets of rules and algorithms that enable routers (devices that
direct data traffic) to find the best path for data packets to travel from one device to
another, especially across different networks. They work at the network layer (Layer 3 of
the OSI model) alongside IP to ensure data gets to the right place.

Main Job: Share information about network paths and pick the fastest or easiest route
for data.

Analogy: Think of routers as delivery drivers and routing protocols as their GPS,
choosing the best roads to deliver a package.

Key Routing Protocols

Here are four common routing protocols,


[Link] (Routing Information Protocol)

 Definition: RIP is a protocol that helps routers decide the best path for data by
sharing information about routes.
 Example: In a small office network, RIP helps routers figure out the quickest way
to send data between computers.
 Explanation: Think of RIP as a map app for routers. It tells them, “Hey, this road is
faster!” by counting the number of “hops” (steps) to reach a destination. It’s
simple but not used in huge networks because it’s a bit slow.

Key Features:

 Updates routes every 30 seconds.


 Best for small setups like a school or small business.

[Link] (Open Shortest Path First)

 Definition: OSPF is a more advanced routing protocol that finds the fastest path
for data by calculating the shortest route based on multiple factors (not just
hops).
 Example: In a large company network, OSPF helps routers choose the best path
to send data, even if the network is complex.
 Explanation: OSPF is like a super-smart GPS that considers traffic, road
conditions, and distance to pick the best route, making it faster and more
efficient than RIP.

Key Features:

 Updates routes quickly when the network changes.


 Used in places like universities or large offices.

[Link] (Border Gateway Protocol)

 Definition: BGP is a path-vector protocol that routes data between different


networks (like ISPs or organizations) across the internet. It uses rules and policies,
not just speed.
 Example: When you stream a movie on Netflix, BGP helps route the video data
from Netflix’s network to your ISP’s network.
 Explanation: BGP is like an international shipping coordinator, deciding how
packages move between countries (networks). It’s critical for the internet but
complex to set up.
 Key Features:
o Handles global internet routing.
o Focuses on reliability and agreements between networks.

4. EIGRP (Enhanced Interior Gateway Routing Protocol)

 Definition: EIGRP is a hybrid protocol (mix of distance-vector and link-state)


that’s fast and efficient. It’s mostly used with Cisco routers in medium to large
networks.
 Example: In a hospital network, EIGRP ensures data from a doctor’s computer
reaches the patient records server quickly and reliably.
 Explanation: Think of EIGRP as a premium GPS app with extra features, like
balancing traffic across multiple routes. It’s smart but mainly works for Cisco
equipment.
 Key Features:
o Fast updates and load balancing.
o Used in businesses with Cisco gear.

Other Network Layer Protocols

1. ICMP (Internet Control Message Protocol)

 Definition: ICMP is used for error messages and diagnostics in networks. It helps
devices communicate issues, like when a server is unreachable.
 Example: When you use the ping command to check if a website is online, ICMP
sends a small packet to the server and waits for a reply.
 Explanation: ICMP is like a network doctor. If something goes wrong (e.g., a
server is down), ICMP sends a message back to say, “Hey, there’s a problem!” It’s
not used for sending actual data but for troubleshooting.

2. ARP (Address Resolution Protocol)

 Definition: ARP translates IP addresses into physical MAC addresses (unique


hardware addresses of devices) so data can be sent within a local network.
 Example: When your computer wants to send data to another device on the
same Wi-Fi network, ARP figures out the MAC address of that device using its IP
address.
 Explanation: Imagine you know someone’s house address (IP address) but need
their exact mailbox number (MAC address) to deliver a package. ARP is the tool
that matches the house address to the mailbox.
3. IGMP (Internet Group Management Protocol)

 Definition: IGMP manages how devices join or leave multicast groups, where
data is sent to multiple devices at once (like a group chat).
 Example: When you watch a live stream, IGMP helps your device join the group
receiving the video feed.
 Explanation: Imagine IGMP as the organizer of a group video call. It makes sure
only the right people (devices) get the video stream, saving bandwidth.

Working:

Imagine you’re sending an email:

1. IP assigns addresses to your device and the recipient’s server and routes the
email data.
2. ARP helps find the MAC address of the next device (like your router) in your local
network.
3. ICMP checks if the server is reachable; if not, it sends an error message.
4. RIP or OSPF helps routers along the way choose the best path for your email to
travel.
5. If the email is part of a group broadcast (like a newsletter), IGMP ensures it goes
to the right group.

Importance:

 They make the internet work by ensuring data gets to the right place.
 They handle complex tasks like routing and addressing so you don’t have to.
 They allow devices on different networks (like your phone and a server in another
country) to communicate.

Simple Analogy

Think of the network layer as a delivery service:

 IP is the address label on the package.


 ICMP is the delivery guy saying, “Sorry, no one’s home.”
 ARP is the local post office matching addresses to mailboxes.
 RIP/OSPF are the route planners picking the fastest delivery path.
 IGMP is the system for sending packages to multiple people at once, like party
invitations.
IPv4 vs IPv6
IP addressing:
An IP address is a unique number provided to each an every [Link] is
an in the form of integer number which is separated by dots.
e.g: [Link]
IP Address(tyes):
IPv4 (Internet Protocol Version 4)
- Address Size: length 32 bits (4 bytes) octet 4
- Format: Four decimal numbers separated by dots (eg, [Link])
- Address Space: ~43 billion unique addresses (2^32)
- Structure: Divided into 4 blocks (octets), each ranging from 0 to 255
- Features:
- Widely used but running out of addresses
- Uses NAT (Network Address Translation) to extend address availability
- Limitations: Limited address space, complex configuration (eg, manual or DHCP)

IPv6 (Internet Protocol Version 6)


- Address Size: 128 bits (16 bytes) octet 8
- Format: Eight groups of hexadecimal digits separated by colons (eg,
2001:0db8:85a3:0000:0000:8a2e:0370:7334)
- Address Space: ~340 trillion addresses (2^128), virtually unlimited
- Structure: Divided into 8 blocks, each 16 bits. ranging form 0 to FFFF(65535)
- Features:
- Larger address space to support IoT and future growth
- Simplified header for faster routing
- Auto-configuration (no need for DHCP in many cases)
- Built-in security (IPsec)
- Advantages:
- Eliminates NAT
- Better support for mobile devices and multicast

Key Differences
Feature IPv4 IPv6
Address 32 bits 128 bits
Length
Address Decimal (eg, Hexadecimal (eg,
Format 19216801) 2001:0db8::1)
Configuration Manual or DHCP Auto-configuration
Security Optional (IPsec) Mandatory (IPsec)

- Why IPv6?: The internet is running out of IPv4 addresses due to the growth of
connected devices (eg, smartphones, IoT) IPv6 ensures scalability and simplifies network
management
- Transition: IPv4 and IPv6 coexist using techniques like dual-stack (devices support
both) and tunneling (IPv6 packets encapsulated in IPv4)

Uses of IP Address:
 Private IP(use for personal use connect mobile phone with
computer to share data)
 Public IP (if we make a website like Olx Daraz etc. so we need an
public IP for the connection with world).
Classes of IP address:
Class Range IP Address Explanation
A 0 to 126 [Link] see the first octet if its range is in between 0 to 126 then
it is form Class A
B 128 to 191 [Link] see the first octet if its range is in between 128 to 191
then it is form Class B
C 192 to 223 [Link] see the first octet if its range is in between 192to 223
then it is form Class C
D 224 to 239 Use for the see the first octet if its range is in between 224 to 239
multicasting then it is form Class D
E 240 to 255 Use for see the first octet if its range is in between 240 to 225
research and then it is form Class E
development.

Note : 127 IP addess (127.0.01 is and private IP address and use for experiments in our
computer systems) local server(use the computer local server to create the websites or
tanning for the hacking etc).
The class A,B and C use for the local use but the D and E are the special purpose classes,
These are the IPv4 classes and worldwide these classes are using.
Difference between the IPv4 and IPv6
IPv4 IPv6
The length of IPv4 is 32 bit The length of IPv6 is 128 bit
In IPv4, around 4 billion unique ip In IPv6, around 340 trillion unique ip address
address are generated(2^32) are generated(2^128)
The range of IPv4 address is 0 to 255 The range of IPv6 address is 0 to FFFF
e.g [Link] e.g2001:0000:130F:0000:0000:09C0:876A:130B
It consists 4 octets each has 8 bit It consists of 8 octets each has 16 bits
IPv4 is a numeric address separated IPv4 is a numeric address separated by colon(:)
by .(dot)
IPv4 has total 5 classes It doesn’t have any class
NOTE: SUBNETTING ,CIDR ARE NOT INCLUDE IN IT

Routing protocols
Routing: Routing is finding the best path to send data from one place to another in a
network. Routers decide where to send data packets based on their destination
addresses, ensuring they reach the right device.

Routing Protocols: They are rules that help routers talk to each other, share maps of the
network, and pick the fastest or most reliable paths for data. They automatically adjust
if a path is blocked, making sure data gets to its destination quickly.

Main Types of Routing

Routing is divided into three types based on how paths are set: static, dynamic, and
default. Only dynamic routing uses routing protocols. Here’s a simple breakdown:

1. Static Routing
o Definition: Manually tell the router where to send data, like writing
directions on a map.
o Explanation: It’s like telling a delivery driver, “Always take this road to the
warehouse.” If the road is closed, the driver won’t know unless you give
new directions.
o Example: Setting a router to send all data for a server (e.g., [Link])
to a specific gateway (e.g., Router B at [Link]).
o Use Case: Small networks, like a home or small office, where paths don’t
change.

2. Dynamic Routing
o Definition: Routers use routing protocols to automatically find and update
paths when the network changes.
o Explanation: It’s like a GPS that checks for traffic or roadblocks and
suggests a new route. Routers share info to pick the best path.
o Example: In a company, routers use OSPF to find the quickest way to the
server, changing paths if one router fails.
o Use Case: Big or changing networks, like schools, companies, or the
internet.

3. Default Routing

Definition: A simple static route that sends all unknown traffic to one gateway, like a
fallback option. OR A simple static routing technique where a router sends all packets
with unknown destinations to a single default gateway. It’s like telling a courier, “If you
don’t know the address, drop the package at the main sorting office.”

o Explanation: It’s like saying, “If you don’t know the address, send the
package to the main post office.” The post office figures out the rest.
o Example: A home router sends all internet traffic to the ISP’s gateway
(e.g., [Link]/0 to [Link]).
o Use Case: Small networks or routers connecting to the internet.

Routing Protocols (Used Only in Dynamic Routing)

Since static and default routing are manual and don’t use protocols, routing protocols
are only for dynamic routing. They help routers share network info and choose paths.
Here are the main types, explained simply with examples:

1. IGPs (Interior Gateway Protocols)


o Definition: Protocols used inside one organization’s network to share
paths.
o Explanation: Like a local taxi service that knows every street in your city,
IGPs help routers in the same network (e.g., a company) find the best
routes.
o Examples:
 RIP (Routing Information Protocol): Counts how many routers
(hops) data must pass through, like picking the route with the
fewest stops. Limited to small networks (max 15 hops).
 Example: In a small office with 5 routers, RIP says, “To reach
the printer, go through 2 routers.”
 OSPF (Open Shortest Path First): Builds a map of the network and
picks the fastest path based on “cost” (like speed or traffic). Perfect
for big networks.
 Example: In a university, OSPF finds the quickest path to the
library server, avoiding slow connections.
 EIGRP (Enhanced Interior Gateway Routing Protocol): A fast Cisco
protocol, like a supercharged RIP, for medium or large networks.
 Example: In a factory, EIGRP quickly updates routes if a
router goes offline.
 IS-IS (Intermediate System to Intermediate System): Like OSPF,
used by big internet providers for large networks.
 Example: An ISP uses IS-IS to manage thousands of routers
efficiently.
o Use Case: Company or school networks where routers need to work
together.

2. EGPs(Exterior Gateway Protocols)


o Definition: Protocols used to share paths between different organizations,
like across the internet.
o Explanation: Like an international shipping company, EGPs connect
separate networks (e.g., your ISP to YouTube’s network).
o Example:
 BGP (Border Gateway Protocol): Picks paths based on rules or
agreements (not just speed), used to route data across the internet.
 Example: When you watch a YouTube video, BGP guides
data from Google’s servers through multiple ISPs to your
phone.
o Use Case: Internet routing between companies or ISPs.

3. Distance-Vector Protocols
o Definition: Distant vector protocol, also called as Bellman-Ford algorithm
or Ford Fulkerson algorithm used to calculate a path. A distance-
vector protocol calculates the distance and direction of the vector of the
next hop from the information obtained by the neighboring router. It
is necessary to keep track of the topology and inform neighboring devices
if any changes occur in topology. Routers share their full “address book”
(routing table) with neighbors, picking paths based on distance (e.g., hop
count).
o Explanation: Like asking a friend, “How far is the market?” and they share
their whole map. It’s simple but slow to update.
o Examples: RIP, EIGRP (partly).
o Example: RIP in a small shop network tells routers, “The server is 3 hops
away.”
o Use Case: Small, simple networks.

4. Link-State Protocols
o Definition: Link-State Routing protocols build a complete topology of the
entire network and then calculate the best path from the topology of all
interconnected networks. In link-state routing, the distance is calculated
based on multiple metrics from source to destination, one hop at a time.
Routers share details about network connections (links) to build a full
map, picking the best path based on cost.
o Explanation: Like everyone sharing a piece of a puzzle to create a
complete network picture. It’s fast and great for big networks.
o Examples: OSPF, IS-IS.
o Example: OSPF in a hospital network maps all routers and finds the fastest
path to the patient database.
o Use Case: Large, complex networks.

5. Path-Vector Protocols
o Definition: The path vector protocol is a routing protocol that keeps track
of path information that is updated dynamically. The path vector protocol
does not rely on the reachability to the destination, instead determines
whether the path is loop-free or not. The path vector does the analysis of
the path to determine whether the path is loop-free or not. Track the list
of networks (autonomous systems) data passes through to reach its
destination.
o Explanation: Like a travel plan listing every city a package visits to avoid
going in circles.
o Example: BGP.
o Example: BGP ensures data from a website in the US reaches you in
Pakistan without looping.
o Use Case: Internet routing across multiple organizations.

Key Features of Routing Protocols


 Adaptability: They find new paths if a connection breaks (e.g., OSPF or BGP
updates quickly).
 Metrics: They pick paths based on:
o Hops (RIP: fewer routers = better).
o Cost/speed (OSPF: fastest link = better).
o Policies (BGP: business rules = better).
 Loop Prevention: They avoid sending data in circles (e.g., RIP uses split horizon,
BGP tracks network paths).
 Scalability: RIP for small networks, OSPF/EIGRP for medium/large, BGP for the
internet.

Real-World Examples

 Static Routing: In a small shop, you set the router to send all data to the main
server at [Link] via Router B. No protocol is used.
 Default Routing: Your home Wi-Fi sends all internet traffic to the ISP’s gateway
(e.g., [Link]), set manually.
 Dynamic Routing (RIP): In a small school, RIP helps 5 routers find the server by
counting hops (e.g., “2 routers away”).
 Dynamic Routing (OSPF): In a big company, OSPF maps the network and picks
the fastest path to the email server, even if a router fails.
 Dynamic Routing (BGP): When you stream a movie, BGP routes data from
Netflix’s servers across ISPs to your laptop.

Clarification: Routing vs. Routing Protocols

 Static and Default Routing: These are manual, so no routing protocols are used.
You set the paths yourself.
 Dynamic Routing: Uses routing protocols (RIP, OSPF, BGP, EIGRP, IS-IS) to
automate everything. These are the only routing protocols in networking.

Transport layer protocol


Transport layer: The transport layer provides with end to end connection between the
source and the destination and reliable delivery of the services. Therefore transport
layer is known as the end-to-end layer. The transport layer takes the services from its
upward layer which is the application layer and provides it to the network layer.
OR
The transport layer is the fourth layer in the OSI model and manages end-to-end
connections between source and destination devices, ensuring reliable and accurate
data delivery with error and flow control mechanisms

Transport layer protocol: Transport layer protocols are rules that manage how data is
sent and received between devices over a network. They ensure data arrives correctly,
in order, or quickly, depending on what the application needs.

Explanation: Think of transport layer protocols as delivery services for data, like a
courier company. They decide how to package data, send it, and make sure it reaches
the right destination. Some protocols (like TCP) are like a careful courier who checks
that every package arrives safely and in the right order. Others (like UDP) are like a fast
delivery service that sends packages quickly but doesn’t worry if a few get lost. These
protocols work at Layer 4 of the OSI model, sitting between the network layer (which
handles routing) and the application layer (which handles apps like web browsers).

Types:

Four main transport layer protocols are TCP (Transmission Control Protocol), UDP
(User Datagram Protocol), SCTP (Stream Control Transmission Protocol), and RTP
(Real-time Transport Protocol).

1. Transmission Control Protocol (TCP)


TCP is a connection-oriented protocol that guarantees accurate, ordered delivery of
data to the receiver.
It provides error checking and correction, flow control, and congestion control to
maintain communication integrity between sender and receiver.
Common applications using TCP include web browsing (e.g., [Link]) and
email, where reliable delivery is crucial.
Example:

 Loading a webpage (e.g., [Link]): TCP ensures all images, text, and
scripts arrive without errors.
 Sending an email: TCP guarantees the email’s text and attachments reach the ser

Features:

 Reliable: Resends lost packets.


 Ordered: Ensures data arrives in the correct sequence.
 Flow Control: Uses a “window” to manage data speed.
 Congestion Control: Slows down if the network is busy.

2. User Datagram Protocol (UDP)


UDP is a connectionless, fast, but unreliable protocol with no guaranteed delivery or
order of packets.
It does not implement error control, flow control, or congestion control, and lacks
acknowledgment mechanisms, meaning responses may be sent multiple times without
certainty of reception.
UDP is suited for applications where speed is prioritized over reliability.
Features:

 Low overhead: Minimal processing for speed.


 Connectionless: No handshake, just sends data.
 Best-effort delivery: No guarantee all packets arrive.

Example:

 Streaming a YouTube video: UDP sends video data quickly; a lost packet might
cause a brief skip, but the video keeps playing.
 Online gaming: UDP sends your moves fast, so the game feels responsive, even if
a few updates are missed.

3. Stream Control Transmission Protocol (SCTP)


SCTP is a connection-oriented protocol combining features of TCP and UDP, supporting
multi-streaming and multi-homing
Multi-streaming allows simultaneous transmission of multiple data streams within a
single connection, useful in video conferencing for voice, video, and chat running
concurrently
Multi-homing enables automatic switching between network paths (e.g., Wi-Fi to
cellular) to maintain connection stability
SCTP also provides security by validating client identity, restricting access to
authorized users only, offering protection against attacks and viruses .
Features:

 Reliable: Ensures data delivery like TCP.


 Multi-streaming: Sends multiple data streams in one connection (e.g., voice and
video).
 Multi-homing: Uses multiple network paths for redundancy.
 Resistant to certain attacks (e.g., SYN flooding).

Example:

 A Zoom call: SCTP sends voice and video data reliably, even if one network path
fails.
 Telecom signaling: Used in phone networks to manage call setup and data
transfer.

4. Real-time Transport Protocol (RTP)


RTP is a connectionless protocol designed for real-time data transmission such as
audio and video streams.
It is commonly used in applications like Voice over IP (VoIP) and video conferencing
(e.g., Zoom) to deliver real-time communication with minimal delay.
RTP provides sequence numbering and timing information to maintain order and
synchronization but does not guarantee delivery.
Key Features:

 Timestamps: Marks when each packet was sent to keep audio and video in sync.
 Sequence Numbers: Tracks the order of packets to detect losses or reordering.
 Payload Type: Identifies the type of data (e.g., MP3 audio, H.264 video).
 Low Latency: Prioritizes speed over reliability, suitable for live streams.
 Multiplexing: Allows multiple media streams (e.g., audio and video) in one
session.

example :

 Watching a live sports game on YouTube or Twitch uses RTP to deliver video and
audio quickly. Minor packet loss might cause a brief blur, but the stream keeps
going.
 Example: Streaming a concert live on a platform like Vimeo.
Note: TCP ensures all information arrives accurately and in proper order,
essential for applications requiring guaranteed delivery, whereas UDP sacrifices
reliability for speed, suited for real-time or loss-tolerant applications. SCTP and
RTP provide specialized features for multi-streaming, network resilience, and
real-time data respectively.

Ports and sockets


Port:
A port is essentially a path or route through which communication happens between
systems in a network; it allows data sharing between devices with IP addresses.
Each port represents a unique communication channel; there are 65,535 ports
available, numbered from 1 to 65,535.
A port must be open and have a receiver listening to accept incoming data packets;
without an open receiver, packets cannot be received, and communication fails.
Only one user or software can use a port at a time; if a port is already in use, others
must wait or use a different port, ensuring no two applications use the same port
simultaneously.
Rules Governing Ports
Rule Description
Number
1 A port must be open with a receiver ready to accept packets sent
through it
2 A port can be used by only one person or software at a time; concurrent
use by multiple entities is not allowed

These rules ensure orderly communication and prevent conflicts over the same
communication path
Communication Example Using Ports
Consider two systems with IP addresses [Link] and 1.11.1 communicating over a
network using software like Zoom. the system have 65535 path to share the packets.
Zoom is configured to use port 8080 by default, so both sender and receiver know to
send and listen on port 8080 without needing to notify each other explicitly.
If two applications try to use the same port (e.g., both using port 8080), one must wait
or be stopped to avoid conflicts; port numbers must be unique per communication
session.
Types of Ports Based on Usage
Port Name Characteristics and Usage
Range
0 to 1023 Well-known Ports Most commonly used ports for standard services
(e.g., HTTP on port 80, HTTPS on port 443, FTP on
ports 20 & 21)
1024 to Registered Ports Ports that can be registered for user applications but
49151 are not fixed; used to avoid conflicts
49152 to Dynamic/Private Used temporarily by applications, often for testing;
65535 Ports less commonly preferred for permanent use

Well-known ports are widely recognized and used by common services, making them
important for compatibility but limiting for custom applications due to possible conflicts.
Registered ports are preferred for custom applications to avoid interference with well-
known services, but still require management to prevent overlap.
Dynamic ports are used mainly for temporary or testing purposes and are less preferred
for stable services.
Common Default Ports and Their Services
These default ports are standardized and widely used by their respective services,
forming the backbone of internet communications.
Port Number Service/Protocol Description
20 FTP Data File Transfer Protocol data transfer
21 FTP Control FTP command and control channel
22 SSH Secure Shell for secure login and command execution
25 SMTP Simple Mail Transfer Protocol for sending emails
80 HTTP Hyper Text Transfer Protocol for web traffic
110 POP3 Post Office Protocol version 3 for email retrieval
443 HTTPS Secure HTTP using SSL/TLS for encrypted web traffic
NOTE: Ports act as unique communication channels in a network, essential for directing
data to the correct application or service on a device. Correct port management avoids
data loss and conflicts during communication. A port must be open with a listening
receiver for data to be received; otherwise, the data sent will be lost or returned. Only
one user/software can occupy a port at a time to avoid communication conflicts.

Sockets:
A sockets is a communication end point between sender and receiver in an computer
network, it allows two computers to communicate with each other.
The sockets are identified by an IP address and port number, it act as bridge b/w
application layer and transport layer.
e.g:

web browsing(HTTP,80){ Browser connects to server on port 80 (HTTP) to request and


receive web pages}

Email(STMP,25){ Uses SMTP protocol on port 25 for sending and receiving emails }

Process Process
A B

IP=[Link] IP=[Link]
Port=3000 Port=4000

Socket Socket
on A on B

IP NETWROK
Types of sockets:
1. Stream Sockets(TCP)
2. Datagram Sockets (UDP)
[Link] sockets: It provides connection oriented ,full duplex communication channel
b/w two network devices. The data is read in a continuous stream, with error checking
and delivery guaranteed by TCP. It is suitable for transferring large amount of data
such as file transferring and video streaming.
e.g: Web browser ,email clients and online games.
[Link] sockets: these sockets provide a connectionless ,unreliable service(using
UDP). The data is sent as independent packets with no guarantee for the order or
delivery. It is used when speed is prioritized over reliability.
e.g: DNS queries, online gaming and live video streaming.
Socket Address:
Socket Address = Combination of IP address + Port number
IP address: Logical address identifying a host (machine) on the network
Port number: Identifies a specific process or application on that host
Purpose: Uniquely identifies a process on a host for communication
e.g:
 IP: [Link] (host)
 Port: 80 (web server process)
 Socket address: [Link]:80
Used for process-to-process communication over the network. It enables sending data
to the correct application on the correct machine

Socket Functions:
There is a socket programming, and the socket programing is very much popular in
computer networks and JAVA programing generally used to execute the socket
functions.
There are different socket functions are used for the performing the communication
b/w client and the server.
1. socket(): Creates a new socket for communications.
2. bind(): Attaches an IP address and port number on the host system.
3. listen():Ready to receive a connection.
4. connect(): Establishes a connection between two devices (client to server).
5. accept(): confirmation accepting to receive a call from a sender.
6. send(): Sends data over a connected socket.
7. receive(): Receives data over a connected socket.
8. close(): close the socket, terminating the connection, ending communications.

Connection Establishment
Connection establishment is the process by which two devices or systems (like
computers, phones, or servers) set up a communication link to exchange data. It’s like
making a phone call—before you talk, you need to dial, wait for the other person to pick
up, and confirm you’re both ready to chat. In networking, this process ensures both
sides are ready, agree on how to communicate, and establish a reliable channel.

When two devices want to communicate (e.g., your phone accessing a website), they
need to follow a set of rules to create a stable connection. This involves:

1. Initiating the connection: One device (the client) sends a request to start
communication.
2. Acknowledging the request: The other device (the server) responds, confirming
it’s ready.
3. Finalizing the setup: Both devices agree on parameters like data format, speed,
or error-checking methods.

This process ensures data is sent and received correctly without confusion. It’s common
in protocols like TCP (used for reliable internet communication) but varies depending on
the type of connection.

Example

Imagine you’re using WhatsApp to send a message:

 Step 1: Your phone (client) sends a request to WhatsApp’s server to start a


connection.
 Step 2: The server checks if it’s available and responds, “I’m here, let’s connect!”
 Step 3: Your phone and the server agree on how to send messages (e.g.,
encrypted format), and the connection is established. Now, you can send and
receive messages reliably.

Another real-life analogy: It’s like knocking on a friend’s door, waiting for them to open
it, and confirming you’re both ready to talk before starting a conversation.

Types of Connection Establishment

There are different ways devices establish connections, depending on the protocol or
network used. Here are the main types:

1. Connection-Oriented (e.g., TCP)


o What is it?: A reliable connection is set up before sending data, ensuring
all data arrives correctly and in order. It’s like sending a registered letter—
you confirm delivery.
o Process: Uses a three-step process called the TCP Three-Way Handshake:
1. SYN: The client sends a “Synchronize” message to start the
connection.
2. SYN-ACK: The server responds with a “Synchronize-Acknowledge”
message, agreeing to connect.
3. ACK: The client sends an “Acknowledge” message to finalize the
connection.
o Example: Loading a webpage (HTTP/HTTPS), sending emails, or video calls.
o Pros: Reliable, ensures no data is lost.
o Cons: Slower due to setup time.

Diagram:
2. Connectionless (e.g., UDP)
o What is it?: No connection is established before sending data. Devices just
send data packets without checking if the receiver is ready. It’s like
shouting across a room, hoping the other person hears.
o Process: Data is sent directly without handshakes or confirmations.
o Example: Online gaming, live streaming, or DNS queries (looking up
website addresses).
o Pros: Faster, less overhead.
o Cons: Unreliable, data might get lost or arrive out of order.
3.

1. Virtual Circuit (e.g., ATM or Frame Relay)


o What is it?: A temporary path is created between two devices for the
duration of communication, like a dedicated phone line for one call.
o Process: A logical path is set up, and all data follows that path.
o Example: Used in older telecom networks or some VPNs.
o Pros: Predictable data delivery.
o Cons: Complex to set up, less common today.
2. Datagram-Based (e.g., IP)
o What is it?: Similar to connectionless, where each data packet (datagram)
is sent independently and may take different routes to the destination. It’s
like sending multiple postcards to the same address—they might arrive in
any order.
o Process: No formal connection setup; packets are sent with destination
info.
o Example: Basic internet routing, IP-based communication.
o Pros: Flexible, efficient for large networks.
o Cons: No guarantee of delivery or order.

Detailed Example: TCP Three-Way Handshake

Let’s dive deeper into the most common connection establishment process, the TCP
Three-Way Handshake, to make it crystal clear:

 Scenario: You open a browser and visit “[Link].”


 Step 1 (SYN): Your computer sends a packet to Google’s server saying, “Hey, I
want to connect! Here’s my starting sequence number (e.g., 1000).”
 Step 2 (SYN-ACK): Google’s server replies, “Got it! I’m ready to connect. My
sequence number is 5000, and I acknowledge your number (1000+1 = 1001).”
 Step 3 (ACK): Your computer responds, “Awesome, I acknowledge your number
(5000+1 = 5001). Let’s start!”
 Result: The connection is established, and your browser loads the webpage.

This handshake ensures both sides are synced and ready, preventing issues like lost or
duplicate data.

Why Is Connection Establishment Important?

 Reliability: Ensures data isn’t sent until both devices are ready.
 Order: Guarantees data arrives in the correct sequence (especially in connection-
oriented types).
 Error Handling: Sets up mechanisms to detect and fix errors during
communication.
 Efficiency: Matches the communication method to the application’s needs (e.g.,
fast for gaming, reliable for emails).

Note: Connection establishment is like setting up a clear, agreed-upon channel for two
devices to talk. It can be connection-oriented (reliable, like TCP), connectionless (fast,
like UDP), or other types like virtual circuits or datagram-based. The TCP Three-Way
Handshake is a common example, used for things like browsing the web. By
understanding this process, you see how devices ensure smooth, error-free
communication in networks.

Flow Control and Congestion Control


Flow Control:
Flow control aims to balance the flow of frames between a sender and a receiver,
ensuring the receiver can receive and process frames at the same speed they are sent,
preventing frame loss. It manages and coordinates the flow of frames between the
sender and receiver, enabling both sides to transfer data smoothly. There are three
main flow control protocols, which will be explained in sequence.

Stop-and-Wait Protocol
In this protocol, the sender sends one frame and waits for a positive acknowledgment
(ACK) from the receiver, confirming whether the frame was received correctly, before
sending the next frame. If a frame (e.g., Frame 3) has an error, the receiver sends a
negative acknowledgment (NACK), and the sender resends that frame. The main
drawback is that this protocol is very slow because the sender must wait for an
acknowledgment after each frame, reducing transmission speed.
How it works:

 Sender sends Frame 1 and pauses.


 Receiver gets Frame 1 and sends an ACK.
 Sender gets the ACK and sends Frame 2.
 If a frame (like Frame 3) is lost or has an error, the receiver sends a NACK (or
nothing), and the sender resends that frame after a timeout.

Example: You send one photo to a friend and wait for them to say, “I got it!” before
sending the next photo.
Good: Super simple, no risk of overwhelming the receiver.

Bad: Really slow because the sender waits after every frame

Negative Acknowledgment (NAK)

 What is it?: This isn’t a standalone protocol but a feature used in some flow
control methods. If the receiver gets a frame with an error (or doesn’t get it at
all), it sends a negative acknowledgment (NAK) to tell the sender, “Something’s
wrong, resend that frame!”
 How it works:
o Sender sends a frame.
o If the receiver detects an error (e.g., the frame is corrupted), it sends a
NAK.
o The sender resends the frame after getting the NAK.
 Example: It’s like your friend texting, “Hey, the photo you sent is blurry, send it
again!” and you resend it.
 Good: Helps fix errors by asking for specific frames.
 Bad: Can slow things down, especially if errors happen often, since it still involves
waiting for feedback.

Go-Back-N Protocol
In this protocol, the sender, based on an agreement, can send a specific number of
frames (e.g., 6 frames) without waiting for an acknowledgment. If a frame (e.g., Frame
5) has an error, the receiver sends a negative acknowledgment, and the sender resends
that frame and all subsequent frames. The receiver sends a positive acknowledgment
when it receives correct frames, allowing the sender to start sending the next frames.
The issue with this protocol is that if a large number of frames (e.g., 500) are sent, an
error requires resending many frames, increasing delays

How it works:
 Sender sends Frames 1, 2, 3, 4, 5, 6.
 Receiver gets Frames 1–4 fine, but Frame 5 has an error.
 Receiver sends a NACK for Frame 5.
 Sender resends Frame 5 and Frame 6 (even if Frame 6 was okay).

Example: You send 6 photos to a friend. They get the first 4, but Photo 5 is blurry. They
ask you to resend Photo 5, but you also resend Photo 6, even if they already got it.
Good: Faster than Stop-and-Wait because it sends multiple frames at once.

Bad: Wastes time resending frames that might have been fine, especially if you’re
sending lots of frames (like 500).

Selective Repeat Protocol


This protocol is more effective because the receiver sends a negative acknowledgment
only for frames that are erroneous, and the sender resends only those specific frames,
not all subsequent ones. For example, if Frame 5 has an error, the receiver can accept
Frames 1 to 4 and 6, and may send a positive acknowledgment for Frame 7. This makes
data flow between the sender and receiver more efficient and faster, improving
network performance.

How it works:

 Sender sends Frames 1, 2, 3, 4, 5, 6.


 Receiver gets Frames 1, 2, 4, and 6, but Frame 3 is missing or bad, and Frame 5
hasn’t arrived yet.
 Receiver sends a NACK for Frame 3, stores Frames 4 and 6 in its buffer, and waits.
 Sender resends only Frame 3.
 Once Frame 3 (and Frame 5) arrive, the receiver puts everything in order and
sends ACKs.

Example: You send 6 photos. Your friend gets Photos 1, 2, 4, and 6 but says, “Photo 3 is
missing.” You resend only Photo 3, and they sort the photos (1, 2, 3, 4, 6) without
needing Photo 6 again.
Good: Saves time by resending only the bad frames, making it fast and efficient.
Bad: More complicated because the receiver has to store and reorder frames.
Congestion Control:
Congestion: in a network may occur if the load on
the network is greater then capacity of network. A E

When too many packets arrives a part of the


packet-switched network, the performance
degrades. This is congestion. Buffer

Explanation:
B
1. when many data packets send to the Buffer or
server and the buffer is doing delay to sending it to the
C
destination. Let ; A ,B and C are sending the data at the
destination E with help of the buffer and the data reaches
too late or slow at destination
2. sending data at the speed of 100 mbps and the data forwarding at destination at 10
mbps.
Congestion Control: it refers to the mechanism and technique to control the
congestion.
Congestion control is the process of managing data traffic in a network to prevent it
from getting overloaded, like avoiding a traffic jam on a busy road. It ensures that
devices don’t send too much data at once, which could slow down or crash the network,
keeping communication smooth and fair for everyone

Explanation

In a network, many devices (like phones, computers, or servers) send data packets
through shared paths (like routers or links). If too many packets are sent at once,
routers get overwhelmed, causing delays, packet loss, or even network failure.
Congestion control adjusts how fast devices send data to keep the network running
smoothly.
It monitors the network for signs of congestion (like packet loss or delays) and either
slows down the sender’s data rate or takes steps to prevent congestion before it
happens.
To avoid network slowdowns, ensure data gets through reliably, and make sure all
devices share the network fairly.

Types of Congestion Control

Congestion control is broadly divided into open-loop and closed-loop approaches, with
specific methods within them. Here’s a simple breakdown:

1. Open-Loop Congestion Control

Open-Loop: Prevents congestion with fixed rules (e.g., traffic shaping, admission
control), like setting speed limits.

What is it?: This tries to prevent congestion before it happens by setting rules or limits
on data sending, without checking the network’s current state. It’s like setting speed
limits on a road to avoid traffic jams in advance..


 How it works: Network designers or protocols set fixed policies, like limiting how
much data each device can send or prioritizing certain types of data.
 Examples:
o Traffic Shaping: Forces devices to send data at a steady rate (e.g., a server
limits video streaming to 1 MB/s to avoid bursts).
o Admission Control: Only allows new connections if the network has
enough capacity (e.g., a router rejects new video calls if it’s too busy).
 Good: Prevents congestion proactively, simple to implement.
 Bad: Doesn’t adapt to real-time network changes, so it might be too strict or not
strict enough.

3. Closed-Loop Congestion Control

Closed-Loop: Reacts to congestion with feedback

 What is it?: This deals with congestion after it’s detected by monitoring the
network and adjusting data rates based on real-time feedback. It’s like slowing
down your car when you see a traffic jam ahead.
 How it works: Devices or routers detect congestion (e.g., through packet loss or
delays) and take action, like telling senders to slow down.

Why Is Congestion Control Important?

 Prevents network “traffic jams” that cause delays or lost data.


 Ensures fair sharing of the network so everyone (e.g., streamers, gamers,
browsers) gets a good experience.
 Keeps apps like video calls, streaming, or gaming running smoothly, even when
the network is busy.

Application Layer protocols:


Application layer:

The Application Layer is the topmost layer in the Open System Interconnection (OSI)
model. This layer provides several ways for manipulating the data which enables any
type of user to access the network with ease. The Application Layer interface directly
interacts with the application and provides common web application services. The
application layer performs several kinds of functions that are required in any kind of
application or communication process.

Application layer protocols: they are rules and tools that allow software (like web
browsers, email clients, or file-sharing apps) to send and receive data in a standard way,
making sure communication is smooth and reliable.
Explanation: Think of them as translators that help apps like Chrome or WhatsApp
understand and share information across the internet, such as loading a webpage or
sending an email.

Main Types of Application Layer Protocols

HTTP  Hypertext Transfer Protocol (HTTP) is a standard that is used to transfer web
pages, formatted in HTML format. Web browsers such as Internet Explorer and Chrome
download and render HTML pages. HTTP data is passed in clear text: for this reason it’s
now replaced by HTTPS, its secure version. By default, HTTP uses the TCP protocol on
port 80.
HTTPS  Hypertext Transfer Protocol Secure (HTTPS) is the secure version of HTTP by
adding additional layers of security (SSL) to the transactions between a web browser
and a server. It is required to fill out forms, sign in, authenticate and encrypt HTTP
transactions or messages. By default, HTTPS uses the TCP protocol on port 443.

FTP: It is use to send the large files. It is a rule (protocol) used to send or receive files
between two computers over the Internet or a network.

e.g:You make a website on your computer. To make it available on the internet, you
upload your website files to a web server using FTP.

FTP helps two computers share files easily. One computer is the client (like your laptop),
and the other is the server (like a computer on the internet).
You can:

 Upload files (send files from your computer to the server)


 Download files (get files from the server to your computer)

You can use FTP software like FileZilla to move files easily between your computer and
a server.

SMTP  Simple Mail Transfer Protocol (SMTP) is still the current standard to send emails
over the Internet. This is used for mail delivery in either a spooled or queue fashion. A
destination server regularly checks for spooled or queued messages and when it detects
any, the messages get delivered to the destination (mailbox). SMTP is used for sending
emails whereas POP3 (see below) is used for receiving. By default, SMTP uses the TCP
protocol on port 25.
SSH  Secure Shell (SSH) is a telnet session setup over an SSL encrypted connection. This
is utilized to log into other remote systems and check logs, perform troubleshooting,
and more. By default, SSH uses the TCP protocol on port 22
DNS  Domain name Server (DNS) DNS is a protocol used to translate a Fully Qualified
Domain Name (FQDN) into an IP address. This service is used because while humans use
words to communicate, computers use IP addresses. When we type a URL in a web
browser, the operating system translates that into an IP address by performing a DNS
query to a server. DNS failures or misconfigurations will prevent a user from accessing
web pages. For this reason, a running joke in the networking world is that DNS is always
the root cause of any user issues.

Telnet: Telnet stands for the TELetype NETwork. Telnet is a program that allows a user
with remote login capabilities to use the computing resources and services available on
the host. Telnet can also be used to connect other ports serving user defined as well as
well-known services. The telnet program requires two arguments that is the name of a
computer on which the server runs and the protocol port number of the server.
SIP (VoIP)  Session Initiation protocol (SIP) is utilized to construct and deconstruct
multimedia communication sessions. These sessions include voice and video
conferencing, streaming, instant messaging, and online gaming. By default, SIP uses the
UDP protocol on port 5060.
RTP  Real-Time Transport Protocol (RTP) is a packet-formatting standard for video and
audio transmission over the Internet. It was designed as a multicast protocol but now
it’s also leveraged for unicast communication. You’ll see this for streaming, video
conferencing and push to talk applications. By default, RTP uses the UDP protocol on an
unprivileged port (1024 and above).
SNMP  Simple Network Management Protocol (SNMP) collects and manipulates
network information by pooling the data from devices on the network at fixed or
random intervals. This is useful for a very basic network monitoring system as it can
send an alert called a trap when aberrations occur. SNMP uses a mix of TCP and UDP
protocol and ports
NTP  Network Time Protocol (NTP) is the protocol used to synchronize the clock of a
host. NTP ensures that all devices on a given network are synchronized within a few
milliseconds, which is a requirement for some distributed services to function correctly.
By default, RTP uses the UDP protocol on port 123.
Latest trends in computer networks
Computer Networking Trends: These are the latest advancements and technologies
shaping how devices connect, communicate, and share data across networks. They
focus on improving speed, security, scalability, and automation to meet the demands of
modern applications like AI, IoT, and cloud computing.

Explanation: Think of networking trends as upgrades to the internet’s highways and


traffic systems, making them faster, safer, and smarter to handle more devices and
complex tasks, like streaming, remote work, or smart cities.

Main Trends in Computer Networking (2025)

Below are the top trends in computer networking for 2025, each with a definition,
explanation, example, and use case to ensure clarity. These trends are drawn from
recent developments and align with the evolving needs of businesses, users, and
emerging technologies.

1. 5G and Private 5G Networks

 Definition: The fifth generation of cellular technology (5G) provides ultra-fast


speeds (up to 10 Gbps), low latency (1-10 ms), and high capacity for connecting
many devices. Private 5G refers to dedicated 5G networks for specific
organizations or locations.
 Explanation: 5G is like a super-fast expressway for wireless data, reducing delays
and supporting more devices than 4G. Private 5G is like a private toll road for a
company, offering secure, high-speed connectivity tailored to its needs. It
supports applications requiring real-time data, like autonomous vehicles or IoT.
 Example: A hospital uses private 5G to connect medical IoT devices (e.g., heart
monitors) for real-time patient monitoring with minimal delay.
 Use Case: Smart cities, telemedicine, and industrial automation (e.g., factories
using 5G for robotic control).
 Pros: High speed, low latency, supports IoT and VR/AR.
 Cons: High deployment costs, limited coverage in some areas.
 Related Application Layer Protocols: SIP and RTP (for VoIP and video streaming
over 5G).

2. Wi-Fi 6, Wi-Fi 6E, and Wi-Fi 7

 Definition: Wi-Fi 6 (802.11ax) and 6E improve speed (up to 9.6 Gbps), capacity,
and efficiency in crowded networks. Wi-Fi 6E uses the 6 GHz band for less
interference. Wi-Fi 7 (802.11be) further boosts speed, reduces latency, and
enhances performance in high-density environments.
 Explanation: Wi-Fi 6/6E is like a wider highway with more lanes for devices like
phones and laptops, reducing congestion. Wi-Fi 7 is an even faster, smarter
highway for dense areas like stadiums. They support high-bandwidth apps like
AR/VR and IoT.
 Example: A smart office uses Wi-Fi 6E to connect hundreds of devices (laptops,
IoT sensors) without slowdowns. Wi-Fi 7 powers a stadium’s network for
seamless streaming.
 Use Case: Offices, schools, smart homes, and public venues.
 Pros: Faster speeds, better performance in crowded areas, energy-efficient.
 Cons: Requires new hardware; Wi-Fi 7 devices are still emerging.
 Related Application Layer Protocols: HTTP/HTTPS (for web browsing), DHCP (for
IP assignment).

3. Software-Defined Wide Area Networking (SD-WAN)

 Definition: A software-based approach to managing wide area networks (WANs),


using cloud services, LTE, or broadband to connect remote offices securely and
efficiently.
 Explanation: SD-WAN is like a smart traffic controller that optimizes data flow
across multiple connections (e.g., internet, MPLS). It’s ideal for remote work and
cloud apps, offering flexibility and cost savings over traditional WANs.
 Example: A global company uses SD-WAN to connect branch offices to cloud apps
like Microsoft 365, ensuring fast, secure access even during network congestion.
 Use Case: Enterprises with multiple locations, hybrid work environments.
 Pros: Cost-effective, scalable, improves cloud app performance.
 Cons: Complex setup, requires robust security integration.
 Related Application Layer Protocols: HTTP/HTTPS (for cloud apps), FTP/SFTP (for
file transfers).

4. Edge Computing and Edge Networking

 Definition: Processing data closer to its source (e.g., devices or sensors) rather
than in centralized data centers, reducing latency and bandwidth use. Edge
networking supports this by optimizing connectivity at the network’s edge.
 Explanation: Edge computing is like doing calculations at a local store instead of
sending data to a distant warehouse. Edge networking ensures fast, secure
connections for devices like IoT sensors or autonomous cars.
 Example: A smart city uses edge computing to process traffic camera data locally,
reducing delays in traffic light adjustments.
 Use Case: IoT, smart homes, autonomous vehicles, healthcare (e.g., patient
monitoring).
 Pros: Low latency, reduced bandwidth, supports real-time apps.
 Cons: Requires edge hardware, complex management.
 Related Application Layer Protocols: MQTT (for IoT messaging), HTTP (for local
web services).

5. AI and Machine Learning in Networking (AI-Driven Networking)

 Definition: Using artificial intelligence (AI) and machine learning (ML) to


automate network management, predict issues, optimize traffic, and enhance
security.
 Explanation: AI is like a super-smart network manager that predicts problems
(e.g., congestion) and fixes them automatically. It analyzes data to improve
performance and detect threats.
 Example: Cisco’s AI-driven network detects a potential outage in a data center
and reroutes traffic before users notice.
 Use Case: Data centers, enterprise networks, cybersecurity.
 Pros: Reduces downtime, automates tasks, improves security.
 Cons: Requires AI expertise, high initial costs.
 Related Application Layer Protocols: SNMP (for network monitoring), NTP (for
time synchronization in AI systems).

6. Zero Trust Network Access (ZTNA) and Secure Access Service Edge (SASE)

 Definition: ZTNA is a security model that verifies every user and device before
granting access, following “never trust, always verify.” SASE combines ZTNA with
SD-WAN and cloud security for secure, seamless connectivity.
 Explanation: ZTNA is like a strict bouncer checking IDs for every network access,
even from trusted users. SASE is a full security package, protecting remote
workers and cloud apps.
 Example: A company uses SASE to secure remote employees accessing
Salesforce, verifying identities and encrypting data.
 Use Case: Remote work, hybrid cloud environments, cybersecurity.
 Pros: Strong security, supports remote work, simplifies management.
 Cons: Complex to implement, may increase latency.
 Related Application Layer Protocols: HTTPS (for secure access), DNS (for secure
name resolution).
7. Internet Protocol Version 6 (IPv6) Adoption

 Definition: IPv6 is the latest internet protocol, offering a larger address space
(128-bit vs. IPv4’s 32-bit) to support more devices and improved security and
efficiency.
 Explanation: IPv6 is like a new phonebook with unlimited numbers, replacing the
limited IPv4. It supports the growing number of IoT devices and simplifies
network management.
 Example: An ISP deploys IPv6 to assign unique addresses to millions of smart
home devices without running out.
 Use Case: IoT, large-scale enterprise networks, internet infrastructure.
 Pros: Unlimited addresses, better security, efficient routing.
 Cons: Slow adoption, requires hardware/software upgrades.
 Related Application Layer Protocols: DNS (for resolving IPv6 addresses), DHCPv6
(for IP assignment).

8. Networking as a Service (NaaS)

 Definition: A cloud-based model where organizations subscribe to networking


services (e.g., bandwidth, security) instead of owning hardware, similar to renting
software.
 Explanation: NaaS is like renting a fully managed network instead of building
your own. It’s flexible, scalable, and reduces upfront costs for businesses.
 Example: A startup uses NaaS to get high-speed connectivity and security without
buying expensive routers.
 Use Case: Small/medium businesses, temporary projects, scalable networks.
 Pros: Cost-effective, scalable, easy to deploy.
 Cons: Dependency on providers, potential security risks.
 Related Application Layer Protocols: HTTP/HTTPS (for cloud services), SNMP (for
monitoring).

9. Multi-Cloud Networking (MCN)

 Definition: A networking approach that connects and manages applications


across multiple cloud platforms (e.g., AWS, Azure, Google Cloud) with consistent
policies and security.
 Explanation: MCN is like a bridge connecting different cloud “islands,” ensuring
seamless data flow and unified management for hybrid cloud setups.
 Example: A retailer uses MCN to run inventory apps on AWS and customer apps
on Azure, with unified security policies.
 Use Case: Enterprises using multiple cloud providers, hybrid cloud strategies.
 Pros: Simplifies multi-cloud management, enhances security.
 Cons: Complex setup, requires expertise.
 Related Application Layer Protocols: HTTP/HTTPS (for cloud apps), DNS (for
cloud service resolution).

10. Internet of Things (IoT) Networking

 Definition: Networking technologies and protocols designed to connect and


manage millions of IoT devices (e.g., sensors, smart appliances) for data
exchange.
 Explanation: IoT networking is like a massive web connecting everyday objects
(e.g., thermostats, cameras) to the internet, enabling smart homes or cities. It
relies on low-power, secure protocols.
 Example: A smart factory uses IoT networking to connect sensors on machines,
monitoring performance in real-time.
 Use Case: Smart homes, healthcare, industrial automation.
 Pros: Enables automation, supports massive device connectivity.
 Cons: Security risks, complex management.
 Related Application Layer Protocols: MQTT, CoAP (for lightweight IoT
messaging), HTTP.

Key Features of Networking Trends

 Speed and Capacity: 5G, Wi-Fi 6/7, and SD-WAN boost data rates and handle
more devices.
 Automation: AI, SDN, and NaaS automate network management, reducing
manual work.
 Security: ZTNA, SASE, and IPv6 enhance protection against cyber threats.
 Scalability: MCN, edge computing, and IoT networking support growing,
distributed networks.
 Low Latency: Edge computing and 5G enable real-time applications like VR or
autonomous driving.

Real-World Examples

 5G: A self-driving car uses 5G to communicate with traffic systems in real-time.


 Wi-Fi 6/7: A university uses Wi-Fi 6E to support thousands of student devices
without lag.
 SD-WAN: A retail chain connects stores to cloud-based inventory systems with
SD-WAN.
 Edge Computing: A smart thermostat processes temperature data locally,
reducing cloud dependency.
 AI-Driven Networking: A bank uses AI to detect and block suspicious network
activity instantly.
 ZTNA/SASE: A remote worker accesses company apps securely via SASE, with
ZTNA verifying their identity.
 IPv6: A smart city assigns IPv6 addresses to millions of IoT sensors for traffic and
lighting.
 NaaS: A startup rents network services to launch an app without buying
hardware.
 MCN: A global firm runs apps across AWS and Google Cloud with consistent
policies.
 IoT Networking: A hospital’s IoT devices monitor patients, sending data via MQTT
to doctors.

You might also like