Introduction to NET
Introduction to NET
1
Salma M. Shaikh
UNIT-I
Computer networking is like having a group of friends who all have phones and can
call or text each other. In computer networking, instead of phones, we have computers
and instead of phone lines, we use cables, Wi-Fi, or other methods to connect them.
When computers are connected to a network, they can share information and resources,
like files, printers, and internet connections. This allows them to communicate with
each other quickly and easily, just like friends talking on their phones.
2
Salma M. Shaikh
What is a Computer Network?
A computer network is a system that connects many independent computers to share
information (data) and resources. The integration of computers and other different
devices allows users to communicate more easily. A computer network is a collection
of two or more computer systems that are linked together. A network connection can
be established using either cable or wireless media. Hardware and software are used to
connect computers and tools in any network.
Computer Networks help in providing better connectivity that helps nowadays. Modern
computer networks have the following functionality:
✓ Computer Networks help in operating virtually
✓ Computer Networks integrate on a large scale
✓ Computer Networks respond very quickly in case of conditions change
✓ Computer Networks help in providing data security
IMPORTANCE
Computer networking plays a crucial role in both personal and professional life. It
connects multiple devices and systems, enabling seamless communication, resource
sharing, and efficient data handling. Below are its key importance points:
2. Resource Sharing
✓ Printers, files, internet connections, and even software applications can be shared
across the network.
✓ Saves cost by reducing the need for individual resources per user.
3
Salma M. Shaikh
4. Data Security and Access Control
✓ Facilitates authorization and authentication mechanisms.
✓ Centralized security policies, firewalls, and intrusion detection systems can be
implemented.
5. Scalability
✓ Networks are designed to easily add or remove devices without major changes.
✓ Supports growing needs of organizations and businesses.
BENEFITS
Benefit Explanation
Increased Efficiency Speeds up communication and data sharing, reducing
delays.
Data Backup & Regular backups and failover systems minimize data loss
Recovery during failures.
Better Collaboration Teams can work together on shared platforms, boosting
teamwork.
Flexibility Laptops, mobile devices, IoT devices can easily connect to
networks.
Security Monitoring Admins can monitor and control network activity, detect
threats early.
Cost Savings Shared infrastructure and remote access reduce expenses.
Real-Time Access Users can access updated information instantly across the
network.
Supports Modern Facilitates the use of AI, IoT, cloud computing, and remote
Tech services.
In simple terms, a computer network is made up of two main parts: devices (called
nodes) and connections (called links). The links connect the devices to each other. The
rules for how these connections send information are called communication protocols.
The starting and ending points of these communications are often called ports.
4
Salma M. Shaikh
1. Network Devices
Basic hardware interconnecting network nodes, such as Network Interface Cards
(NICs), Bridges, Hubs, Switches, and Routers, are used in all networks. In addition, a
mechanism for connecting these building parts is necessary, which is usually galvanic
cable and optical cable are less popular ("optical fiber”) The following are the network
devices:
✓ Hub: A hub is a device that joins together many twisted pairs or fiber optic
Ethernet devices to give the illusion of a formation of a single network segment.
The device can be visualized as a multiport repeater.
✓ Bridges: Bridges broadcast data to all the ports but not to the one that received
the transmission. Bridges, on the other hand, learn which MAC addresses are
5
Salma M. Shaikh
reachable through specific ports rather than copying messages to all ports as
hubs do
✓ Switches: A switch differs from a hub in that it only forwards frames to the ports
that are participating in the communication, rather than all of the ports that are
connected.
✓ Routers: Routers are networking devices that use headers and forwarding tables
to find the optimal way to forward data packets between networks. A router is a
computer networking device that links two or more computer networks and
selectively exchanges data packets between them.
2. Links
Links are the ways information travels between devices, and they can be of two types:
3. Communication Protocols
A communication protocol is a set of rules that all devices follow when they share
information. Some common protocols are TCP/IP, IEEE 802, Ethernet, wireless LAN,
and cellular standards. TCP/IP is a model that organizes how communication works in
modern networks. It has four functional layers for these communication links:
✓ Network Access Layer: This layer controls how data is physically transferred,
including how hardware sends data through wires or fibers.
✓ Internet Layer: This layer packages data into understandable packets and
ensures it can be sent and received.
6
Salma M. Shaikh
✓ Transport Layer: This layer keeps the communication between devices steady
and reliable.
Most of the modern internet structure is based on the TCP/IP model, although the
similar seven-layer OSI model still has a strong influence.
IEEE 802 is a group of standards for local area networks (LAN) and metropolitan area
networks (MAN). The most well-known member of the IEEE 802 family is wireless
LAN, commonly known as WLAN or Wi-Fi.
4. Network Défense
While nodes, links, and protocols are the building blocks of a network, a modern
network also needs strong defences. Security is crucial because huge amounts of data
are constantly being created, moved, and processed. Some examples of network
defence tools are firewalls, intrusion detection systems (IDS), intrusion prevention
systems (IPS), network access control (NAC), content filters, proxy servers, anti-DDoS
devices, and load balancers.
7
Salma M. Shaikh
1.2 NETWORK TYPES AND TOPOLOGIES
Features:
✓ Private Ownership: LANs are often owned, controlled, and maintained by a
single person or organization.
✓ High Data Transfer Rates: Typically, 100 Mbps to 10 Gbps, depending on
hardware (Ethernet cables, switches).
✓ Low Latency: Data travels quickly due to short physical distances.
✓ Supports File Sharing and Resource Sharing: Printers, scanners, applications,
and storage devices can be used by multiple users on the network.
✓ Wi-Fi Access: A Wireless LAN (WLAN) uses wireless access points and allows
devices like laptops, smartphones, and tablets to connect without cables.
Components
✓ Computers, printers, switches, routers, Ethernet cables
✓ Wireless LANs use Wi-Fi (Access Points)
8
Salma M. Shaikh
Advantages
✓ High data transfer speed
✓ Easy to set up and expand
✓ Secure since it's privately managed
Real-World Applications:
✓ Offices: Sharing files, using shared printers, accessing internal software.
✓ Homes: Connecting laptops, TVs, gaming consoles, smartphones, and IoT
devices via Wi-Fi.
✓ Educational Institutions: For internal communication and access to learning
resources.
Protocols Used:
✓ Ethernet (IEEE 802.3)
✓ Wi-Fi (IEEE 802.11)
9
Salma M. Shaikh
Features:
✓ Bridges the Gap Between LAN and WAN: Offers higher reach than LAN, but
isn’t as widespread as WAN.
✓ Commonly Managed by ISPs or Local Authorities: Can also be maintained
by large organizations that operate in multiple buildings across a city.
✓ Backbone Network: Often serves as a high-speed backbone to which smaller
LANs connect.
✓ Higher Bandwidth than WAN: Offers faster data transfer compared to WAN
due to shorter [Link] Fiber Optic or Coaxial Cables for faster
transmission over longer distances.
Advantages
✓ Connects multiple LANs across a city
✓ Ideal for organizations with branches in a city
✓ Provides high-speed backbone for large urban networks
Real-World Applications:
✓ Universities with multiple campuses across a city
✓ Cable TV networks
✓ City-wide surveillance systems
✓ Metro Wi-Fi networks for public internet access
✓ Banks that want to link their branches in the same city
Technologies Used:
✓ Metro Ethernet
✓ SONET (Synchronous Optical Network)
✓ ATM (Asynchronous Transfer Mode)
✓ Wireless (WiMAX) for wireless city-wide networks
10
Salma M. Shaikh
Features:
✓ Not Confined to One Location: Connects users across cities, countries, and
continents.
✓ Typically Uses Public Networks (Internet): Though private leased lines or
VPNs are used for secure connections.
✓ Lower Data Speeds Compared to LANs: Due to longer distances and more
devices/hops involved.
✓ Can Be Prone to Latency and Packet Loss: Especially if poor routing or
satellite links are used.
✓ Expensive Infrastructure: Due to the high cost of leased lines, international
connectivity, and routing.
Advantages
✓ Enables global communication
✓ Connects distant offices, data centers, and users
✓ Centralized data and services can be accessed remotely
Real-World Applications:
✓ Multinational companies connecting offices worldwide
✓ Banking networks for ATMs and inter-branch operations
✓ E-commerce platforms and cloud-based services
✓ Global communication services like Skype, WhatsApp, Zoom
✓ The Internet itself is the largest WAN
Technologies Used:
✓ Leased Lines
✓ Frame Relay, MPLS
✓ ATM
✓ Public Internet with VPN encryption
✓ Satellite Communication
11
Salma M. Shaikh
NETWORK TOPOLOGIES: BUS, STAR, RING, MESH
The structure of the network and how each component is connected to the others are
defined by the network topology. Different types of network topology are mentioned
below:
✓ Bus Topology
✓ Ring Topology
✓ Star Topology
✓ Mesh Topology
[Link] Topology
Every computer and network device are connected to a single cable in a bus topology
network. Linear Bus topology is defined as having exactly two terminals.
Advantages:
✓ Installation is simple
✓ Compared to mesh, star, and tree topologies, the bus utilizes less cabling
Disadvantages
✓ Difficulty in reconfiguring and isolating faults
✓ A bus cable malfunction or break interrupts all communication
12
Salma M. Shaikh
[Link] Topology
The topology is named ring topology because one computer is connected to another,
with the final one being connected to the first. Exactly two neighbors for each device.
A signal is passed along the ring in one direction. Each ring incorporates a repeater.
Advantages
✓ Data transmission is relatively straightforward because packets only move in one
direction
✓ There is no requirement for a central controller to manage communication
between nodes
✓ Easy installation & Reconfiguration
✓ Simplified Faulty connections
Disadvantages
✓ In a Unidirectional Ring, a data packet must traverse through all nodes
✓ All computers must be turned on in order for them to connect with one another
[Link] Topology
Each device in a star topology has a dedicated point-to-point link to a central controller,
which is commonly referred to as the HUB. There is no direct connection between the
devices. Traffic between the devices is not allowed in this topology. As an exchange,
the controller is used.
13
Salma M. Shaikh
Advantages
✓ When attaching or disconnecting devices, there are no network interruptions
✓ It's simple to set up and configure
✓ Identifying and isolating faults is simple
✓ Less Expensive than mesh
✓ Easy to install & configure
Disadvantages
✓ Nodes attached to the hub, switch, or concentrator is failed if they fail
✓ Because of the expense of the hubs, it is more expensive than linear bus
topologies
✓ More cable is required compared to a bus or ring
✓ Too much dependency on Hub
[Link] Topology
Every device in a mesh topology has dedicated point-to-point connectivity to every
other device. The term "dedicated" refers to the fact that the link exclusively transports
data between the two devices it links. To connect n devices, a fully connected mesh
network contains n *(n-1)/2 physical channels.
14
Salma M. Shaikh
Advantages
✓ Data can be sent from multiple devices at the same time. This topology can
handle a lot of traffic.
✓ Even if one of the connections fails, a backup is always available. As a result,
data transit is unaffected.
✓ Physical boundaries prevent other users from gaining access to messages.
✓ Point to Point links make fault transmission & fault isolation easy.
Disadvantages
✓ The amount of cabling and the number of I/O ports that are necessary.
✓ The sheer bulk of wiring can be greater than the available space can
accommodate.
✓ It is difficult to install and reconfigure.
Example: Connection of telephone regional office in which each regional office needs
to be connected to every other regional office.
15
Salma M. Shaikh
1.3 NETWORKING HARDWARE DEVICES
🖧 NIC
Definition:
A Network Interface Card (NIC) is a hardware component that allows a computer or
device to connect to a network. It serves as the interface between the computer and the
network transmission medium (like Ethernet cables or Wi-Fi signals).
Functions of NIC
Function Description
Physical Connection Connects the computer to a network via cable (Ethernet) or
wirelessly (Wi-Fi).
Data Transmission Converts digital data from the computer into signals for the
network and vice versa.
MAC Address Each NIC has a unique MAC (Media Access Control)
Assignment address that identifies the device on a network.
Error Detection Checks for errors in data transmission using CRC or other
mechanisms.
Framing NIC breaks data into frames for transmission and
reassembles them on reception.
Speed Regulation Supports data speeds like 10 Mbps, 100 Mbps, 1 Gbps, and
beyond.
Types of NICs
Type Description
Wired NIC Connects via Ethernet cables (RJ-45 connectors). Used in
desktops, servers, etc.
Wireless NIC (Wi- Connects to networks wirelessly using radio waves. Common
Fi card) in laptops, smartphones, tablets.
USB NIC External plug-and-play network adapter that connects via
USB port.
16
Salma M. Shaikh
Fiber NIC Used in high-speed fiber-optic networks. Common in data
centers.
Advantages of NIC
✓ Enables internet/network access
✓ Supports high-speed communication
✓ Essential for file sharing, printing, video conferencing
✓ Reliable and secure transmission (especially in wired NICs)
Summary
✓ The NIC is a vital component that connects a computer to a LAN, MAN, or
WAN.
✓ It can be wired or wireless, and is responsible for data transmission, addressing,
and error control.
✓ Every NIC has a MAC address that is unique and used for identifying devices in
the network.
1. HUB
Definition:
A hub is a basic networking device that connects multiple computers or devices in a
Local Area Network (LAN). It works at the Physical Layer (Layer 1) of the OSI model.
It simply receives data from one device and broadcasts it to all other connected devices,
regardless of the destination.
Characteristics:
Feature Description
Data Sends data to all ports, even if it's meant for one device
Transmission (broadcasts data).
Speed 10 Mbps or 100 Mbps (older tech)
Ports Usually 4, 8, or 16
Type of Device Passive or Active (Active hubs amplify signal)
Cost Cheaper than switches
Intelligence No intelligence – no filtering or learning of MAC addresses
Disadvantages:
✓ Causes network congestion due to broadcasting
✓ Slower performance
✓ Not secure – data is visible to all devices
✓ No collision management (can lead to data loss in busy networks)
18
Salma M. Shaikh
Use Cases:
✓ Rarely used today
✓ Small home networks (legacy setups)
✓ For temporary, quick setups without complex needs
🖧 2. SWITCH
Definition:
A switch is a smarter networking device used in LANs. It operates at the Data Link
Layer (Layer 2) and sometimes at the Network Layer (Layer 3) (known as Layer 3
switches). It learns MAC addresses and forwards data only to the intended device.
Characteristics:
Feature Description
Data Sends data only to the intended port/device (unicast)
Transmission
Speed 100 Mbps, 1 Gbps, 10 Gbps
MAC Address Maintains a table of MAC addresses to decide where to send
Table data
Collision Domain Each port has its own collision domain (improves efficiency)
Full-Duplex Mode Supports simultaneous send and receive operations
Security More secure, as data isn't broadcasted unnecessarily
Advanced VLANs, port security, Quality of Service (QoS), spanning tree
Features protocol (STP)
Advantages of Switch:
✓ Efficient and faster than hubs
✓ Reduces unnecessary data traffic
✓ Reduces network collisions
✓ Suitable for modern LANs and business networks
Use Cases:
✓ Offices and enterprise networks
✓ Computer labs
✓ Data centers
✓ Connecting servers and routers
19
Salma M. Shaikh
HUB vs SWITCH: Key Differences
Feature HUB SWITCH
OSI Layer Layer 1 (Physical) Layer 2 (Data Link) or Layer 3
Data Direction Broadcasts to all devices Sends only to the correct device
Speed Slower (10/100 Mbps) Faster (up to 10 Gbps)
Collision Domain One shared domain One per port
MAC Address Table No Yes
Security Less secure More secure
Efficiency Low High
Price Cheaper Slightly more expensive
Summary
Device Intelligent? Broadcasts Data? Used Today?
Hub No Yes Rarely
Switch Yes No (except unknown MACs) Widely used
Real-World Analogy
Hub: Like shouting in a room—everyone hears even if the message is for one person.
Switch: Like sending a private letter to the correct person—only they receive it.
1. ROUTER
Definition:
A Router is a networking device that connects multiple networks together and forwards
data packets between them based on IP addresses. It operates mainly at the Network
Layer (Layer 3) of the OSI model.
Most home internet connections use routers to connect local devices (LAN) to the
internet (WAN).
Key Functions:
Function Description
Routing Chooses the best path for data to reach its destination
using routing algorithms (like RIP, OSPF).
IP Address Assignment Provides IP addresses to devices via DHCP (Dynamic
Host Configuration Protocol).
NAT (Network Address Converts private IP addresses to public IPs to access the
Translation) internet securely.
20
Salma M. Shaikh
Traffic Management Directs incoming and outgoing traffic efficiently.
Firewall Functions Offers basic security by filtering traffic.
Types of Routers:
✓ Wired Routers (connected via Ethernet)
✓ Wireless Routers (Wi-Fi Routers) – common in homes/offices
✓ Core Routers – used in large enterprise networks or ISPs
✓ Edge Routers – connect internal networks to external ones
Real-World Example:
When you use your smartphone or laptop to connect to Wi-Fi at home, your device is
connecting to a router which then sends the request to your ISP and receives data from
the internet.
2. GATEWAY
Definition:
A Gateway is a device that acts as a translator between two different network
architectures, protocols, or environments. It can operate at any layer of the OSI model,
depending on what is being converted or translated.
All gateways are routers, but not all routers are gateways.
Key Functions:
Function Description
Routing Chooses the best path for data to reach its destination
using routing algorithms (like RIP, OSPF).
IP Address Assignment Provides IP addresses to devices via DHCP (Dynamic
Host Configuration Protocol).
NAT (Network Address Converts private IP addresses to public IPs to access the
Translation) internet securely.
Traffic Management Directs incoming and outgoing traffic efficiently.
Firewall Functions Offers basic security by filtering traffic.
Types of Gateways:
✓ Network Gateway – Connects LAN to WAN or Internet.
✓ Cloud Gateway – Links enterprise network to cloud services.
✓ VoIP Gateway – Converts voice signals into data packets.
✓ Payment Gateway – Used in e-commerce for secure transaction processing.
21
Salma M. Shaikh
Real-World Example:
A payment gateway processes your credit card details online by connecting your bank’s
network to the seller’s platform and validating the transaction using secure protocols.
Summary
Device Key Role Used For
Router Directs data between Internet access, LAN to WAN, home and
networks office use
Gateway Translates protocols & Interfacing different systems, cloud, VoIP,
data IoT
Real-World Analogy
✓ Router: Like a traffic cop that directs cars (data) to the right roads (network
paths).
✓ Gateway: Like a translator who helps two people speaking different languages
communicate.
1. MODEM (Modulator–Demodulator)
Definition:
A Modem is a hardware device that converts digital signals from a computer into
analog signals that can be sent over telephone lines (modulation) and converts
incoming analog signals into digital form (demodulation). It operates primarily at the
Physical Layer (Layer 1) of the OSI model.
The name "Modem" is short for Modulator + Demodulator.
Key Functions:
Function Description
Modulation Converts digital data into analog signals for transmission over
telephone or DSL lines.
Demodulation Converts incoming analog signals into digital format for
computers to process.
Internet Access Enables internet connectivity, especially for DSL, cable, or
fiber services.
Signal Some modems amplify signals to maintain quality over long
Amplification distances.
22
Salma M. Shaikh
Types of Modems:
Type Description
Dial-up Modem Uses telephone lines (slow: up to 56 Kbps)
DSL Modem High-speed modem over telephone lines
Cable Modem Uses cable TV infrastructure for internet
Fiber Modem Used in fiber-optic broadband connections
(ONT)
External vs. External (separate device), Internal (installed in the
Internal computer)
Key Features:
✓ Provides WAN access
✓ Needs ISP authentication
✓ Can work with or without a router
2. BRIDGE
Definition:
A Bridge is a network device that connects two or more network segments and filters
traffic between them based on MAC addresses. It operates at the Data Link Layer
(Layer 2) of the OSI model.
A bridge "bridges" two similar networks (like LAN segments), allowing them to
function as one logical network.
Key Functions:
Function Description
Segment Connection Connects two LANs to reduce traffic and expand the
network.
MAC Address Learns MAC addresses and forwards data only to the correct
Filtering segment.
Collision Reduction Limits data collisions by dividing traffic.
Network Isolation Keeps traffic separate unless necessary (helps security and
efficiency).
23
Salma M. Shaikh
Types of Bridges:
Type Description
Transparent Learns MAC addresses and forwards frames accordingly
Bridge (common in Ethernet LANs).
Translational Connects different types of networks (e.g., Ethernet to Wi-Fi).
Bridge
Remote Bridge Connects distant LANs using a WAN (e.g., internet).
Real-World Analogy
✓ Modem: Like a translator who converts one language (digital) into another
(analog) so people (networks) can communicate over long distances.
✓ Bridge: Like a toll bridge that connects two cities but only lets relevant vehicles
(data packets) cross, reducing unnecessary traffic.
Summary
Device Purpose Works With OSI Layer
Modem Connects devices to the internet ISP, router Layer 1
Bridge Connects LAN segments LAN-only devices Layer 2
24
Salma M. Shaikh
UNIT-II
Role of TCP/IP
One of its main goals is to make sure that the data sent by the sender arrives safely and
correctly at the receiver’s end. To do this, the data is broken down into smaller parts
called packets before being sent. These packets travel separately and are reassembled
in the correct order when they reach the destination. This helps prevent errors and
makes sure the message is complete and accurate.
25
Salma M. Shaikh
Layers of TCP/IP Model
The TCP/IP model has 4 layers, which map closely to the 7-layer OSI model:
TCP/IP Layer Corresponding OSI Function
Layer(s)
1. Application Layer OSI Layers 5, 6, 7 User interface and network
services
2. Transport Layer OSI Layer 4 End-to-end communication and
reliability
3. Internet Layer OSI Layer 3 Logical addressing and routing
4. Network Access OSI Layers 1 and 2 Physical transmission of data
Layer
1. Application Layer
Role:
✓ Provides network services directly to applications like browsers, email clients,
FTP software, etc.
✓ Handles high-level protocols, data formatting, encryption, and session control.
Common Protocols:
Protocol Function
HTTP/HTTPS Web browsing and secure communication
FTP/SFTP File transfer
SMTP Sending emails
POP3/IMAP Receiving emails
DNS Resolving domain names to IP addresses
Telnet / SSH Remote login (SSH is secure)
SNMP Network monitoring and management
2. Transport Layer
Role:
✓ Provides end-to-end communication between devices.
✓ Responsible for data segmentation, error checking, and flow control.
Key Protocols:
Protocol Description
TCP (Transmission Control Connection-oriented, reliable, guarantees
Protocol) delivery
UDP (User Datagram Protocol) Connectionless, fast but less reliable (no
acknowledgment)
26
Salma M. Shaikh
3. Internet Layer
Role:
✓ Handles logical addressing and routing of data packets across multiple networks.
Key Protocols:
Protocol Function
IP (Internet Protocol) Provides IP addressing and routing
ICMP (Internet Control Message Error reporting and diagnostics (e.g., ping)
Protocol)
ARP (Address Resolution Protocol) Maps IP address to MAC address
IGMP (Internet Group Management Supports multicasting (one-to-many
Protocol) communication)
Key Technologies:
✓ Ethernet
✓ Wi-Fi (IEEE 802.11)
✓ PPP (Point-to-Point Protocol)
✓ Frame Relay
✓ Token Ring
27
Salma M. Shaikh
Sender Side:
✓ Application Layer: Prepares user data using protocols like HTTP, FTP, or
SMTP.
✓ Transport Layer (TCP/UDP): Breaks data into segments and ensures reliable
(TCP) or fast (UDP) delivery.
✓ Internet Layer (IP): Adds IP addresses and decides the best route for each
packet.
✓ Link Layer (Network Access Layer): Converts packets into frames and sends
them over the physical network.
Receiver Side:
✓ Link Layer: Receives bits from the network and rebuilds frames to pass to the
next layer.
✓ Internet Layer: Checks the IP address, removes the IP header, and forwards
data to the Transport Layer.
✓ Transport Layer: Reassembles segments, checks for errors, and ensures data is
complete.
✓ Application Layer: Delivers the final data to the correct application (e.g.,
displays a web page in the browser).
28
Salma M. Shaikh
Advantages of TCP/IP
✓ Standardized: Universally adopted for internet and intranet communication
✓ Scalable: Supports large networks
✓ Interoperable: Works across all hardware and software platforms
✓ Robust: Provides error handling, congestion control, and reliability (TCP)
Limitations
✓ Less flexible compared to newer models
✓ Poor distinction between layers compared to OSI
✓ Not ideal for non-IP-based networks
29
Salma M. Shaikh
OSI MODEL
30
Salma M. Shaikh
Devices
Cables (Ethernet, fiber), Hubs, Repeaters, Modems
Sub-Layers
LLC (Logical Link Control) – Controls error checking and flow
MAC (Media Access Control) – Controls how devices access the medium
Devices
Switches, Bridges, NICs
31
Salma M. Shaikh
3. Network Layer (Routing Layer)
✓ Handles logical addressing (IP addresses) and routing
✓ Determines the best path for data to travel
Devices
Routers, Layer 3 Switches
Other Features
Segmentation and reassembly
Port addressing (e.g., port 80 for HTTP)
32
Salma M. Shaikh
5. Session Layer (Dialog Control Layer)
✓ Manages sessions (connections) between applications
✓ Establishes, maintains, and ends communication sessions
Key Functions
Session establishment and termination
Synchronization and checkpoints
Dialog control (half/full duplex)
Key Functions
Data translation (EBCDIC ↔ ASCII)
Data compression (e.g., ZIP)
Data encryption/decryption (SSL/TLS)
33
Salma M. Shaikh
7. Application Layer (User Interface Layer)
✓ Closest to the user
✓ Provides network services directly to user applications
✓ Manages application protocols like HTTP, FTP, SMTP
Key Functions
Web browsing (HTTP/HTTPS)
File transfers (FTP)
Email (SMTP, IMAP, POP3)
Remote access (Telnet, SSH)
Name resolution (DNS)
Real-Life Analogy
Imagine sending a letter through a postal system:
Limitations
✓ The OSI Model has seven layers, which can be complicated and hard to
understand for beginners.
✓ In real-life networking, most systems use a simpler model called the Internet
protocol suite (TCP/IP), so the OSI Model is not always directly applicable.
✓ Each layer in the OSI Model adds its own set of rules and operations, which can
make the process more time-consuming and less efficient.
✓ The OSI Model is more of a theoretical framework, meaning it's great for
understanding concepts but not always practical for implementation.
IP ADDRESSING
Imagine every device on the internet as a house. For you to send a letter to a friend
living in one of these houses, you need their home address. In the digital world, this
home address is what we call an IP (Internet Protocol) Address. It's a unique string of
numbers separated by periods (IPv4) or colons (IPv6) that identifies each device
connected to the internet or a local network.
Think of it like a home address for your device in the digital world.
What is an IP Address?
An IP address (Internet Protocol Address) is a unique numerical identifier assigned to
each device connected to a network that uses the Internet Protocol. It enables devices
to locate and communicate with each other.
TYPES OF IP ADDRESSES
1. IPv4 (Internet Protocol Version 4)
✓ Most widely used version
✓ 32-bit address represented in dotted decimal format
✓ Format: [Link]
✓ Structure:
Consists of 4 octets (bytes) separated by dots
Each octet = 8 bits = number from 0 to 255
Example: 11000000.10101000.00000001.00000001 = [Link]
✓ Total addresses: ~4.3 billion (2³²)
35
Salma M. Shaikh
2. IPv6 (Internet Protocol Version 6)
✓ Developed due to IPv4 exhaustion
✓ 128-bit address represented in hexadecimal
✓ Format: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
✓ Features:
Provides 340 undecillion addresses (2¹²⁸)
Eliminates the need for NAT
Better security and efficiency
Auto-configuration support
Example: In a typical home network, the router assigns private IP addresses to each
device (like smartphones, laptops, smart TVs) from the reserved ranges. These devices
use their private IPs to communicate with each other and with the router. The router
uses NAT to allow these devices to access the internet using its public IP address.
36
Salma M. Shaikh
PRIVATE IP ADDRESS RANGES (IPv4)
Class Address Range
A [Link] – [Link]
B [Link] – [Link]
C [Link] – [Link]
These are non-routable on the internet and require NAT (Network Address
Translation) to communicate with public networks.
37
Salma M. Shaikh
How Do IP Addresses Work?
1. Unique Identification
✓ Every device connected to a network, such as computers, smartphones, and
servers, is assigned an IP address.
✓ This address is used to identify the device on the network.
2. Communication Protocol
✓ The Internet Protocol (IP), part of the broader suite of internet protocols, uses
these addresses to facilitate the routing of data packets between devices.
3. Data Routing
When a device sends information to another device over the internet:
✓ The data is divided into packets.
✓ Each packet contains the IP address of the device it is destined for.
✓ Routers within the network read the destination IP address on each packet and
determine the best path for the packet to travel.
✓ Routers communicate with each other to update and maintain records of the
fastest, most efficient routes for data.
38
Salma M. Shaikh
Step 1: Assigning IP Addresses
✓ Alice in New York wants to send an email to Bob in Tokyo.
✓ Alice’s laptop has a private IP address (e.g., [Link]) assigned by her router
at home.
✓ Bob's computer in Tokyo has a private IP address (e.g., [Link]) assigned by
his router at his office.
39
Salma M. Shaikh
Additional Details
NAT (Network Address Translation): Both Alice and Bob's routers perform NAT,
translating the private IP addresses to and from the public IP addresses when interfacing
with the internet. This process is crucial for keeping the number of public IPs needed
lower and adds a layer of security by masking internal network structures.
Subnet Mask:
Defines the network and host portions of an IP address.
Example IP Subnet Mask Network Part Host Part
[Link] [Link] 192.168.1 .10
Key Takeaways
✓ IP addressing uniquely identifies devices in a network.
✓ IPv4 uses 32-bit; IPv6 uses 128-bit addresses.
✓ Addresses can be public or private, static or dynamic.
✓ Subnetting helps organize networks better.
✓ IPv6 solves limitations of IPv4 like address exhaustion.
40
Salma M. Shaikh
2.2 NETWORK TROUBLESHOOTING
In any network, whether it's a home Wi-Fi setup, a college lab, or a corporate data
center, network issues are common. These issues can slow down communication, cause
connection failures, or disrupt the entire network.
Below are the most frequent networking problems along with what typically causes
them.
2. No Internet Connection
The computer or device is connected to the network but has no access to the internet.
Causes:
✓ Faulty modem or router
✓ ISP issues or service outages
✓ Incorrect network settings (like DNS or IP address)
✓ Loose or damaged cables
✓ Wireless interference or being out of Wi-Fi range
🖧 3. IP Address Conflicts
Occurs when two or more devices on the same network are assigned the same IP
address.
Causes:
✓ Static IP address manually assigned to multiple devices
✓ DHCP server misconfiguration
✓ Improper network setup
Result: Devices cannot communicate properly on the network.
41
Salma M. Shaikh
4. Weak Wi-Fi Signal
The wireless signal is poor, resulting in dropped connections or low speeds.
Causes:
✓ Distance from the router
✓ Physical barriers (walls, furniture)
✓ Electronic interference from microwaves, cordless phones, etc.
✓ Overlapping Wi-Fi channels in nearby networks
5. Authentication Errors
You’re unable to connect to Wi-Fi due to a “wrong password” or "authentication failed"
message.
Causes:
✓ Incorrect Wi-Fi password
✓ Router settings updated but devices using old credentials
✓ MAC address filtering enabled on the router
42
Salma M. Shaikh
9. Broken Cables or Ports
Physical connection issues between devices.
Causes:
✓ Damaged Ethernet cables
✓ Loose connectors or ports
✓ Faulty NIC (Network Interface Card)
A. TROUBLESHOOTING METHODOLOGIES
1. Identify the Problem
Start by gathering information about the issue:
✓ What is not working? (e.g., no internet, slow speed)
✓ When did it start?
✓ Is it affecting one device or many?
✓ Check cables, LEDs, and device status indicators.
2. Tracert / Traceroute
✓ Shows the path taken by packets to reach a destination
✓ Identifies where the connection is slowing or failing
44
Salma M. Shaikh
3. Ipconfig (Windows) / ifconfig or ip (Linux)
✓ Displays the device's IP address, gateway, subnet mask, etc.
✓ Useful for checking connectivity issues
4. nslookup / Dig
✓ Resolves domain names to IP addresses
✓ Checks if DNS is working correctly
5. Netstat
✓ Displays current network connections and listening ports
✓ Helps detect malware or unauthorized connections
6. Wireshark
✓ A packet analyzer that captures and examines network traffic in detail
✓ Used to diagnose complex network issues like packet loss, delays, etc.
8. Loopback Adapter
✓ A virtual device used to test local TCP/IP settings
9. Pathping
✓ Combines ping and tracert; gives more detailed hop-by-hop statistics
Summary:
✓ Use a structured approach: identify → test → solve → document.
✓ Tools like ping, tracert, ipconfig, and Wireshark help in diagnosing issues.
✓ Troubleshooting saves time and avoids replacing good hardware unnecessarily.
45
Salma M. Shaikh
HANDS-ON TROUBLESHOOTING EXERCISES
These exercises include real-world scenarios, steps to follow, and expected outcomes,
great for classroom labs or self-practice.
Exercise 1: No Internet Connection
✓ Scenario:
You are connected to Wi-Fi but cannot access any websites.
✓ Tasks:
Check if other websites load.
Ping your router’s IP address (usually [Link] or [Link]).
Open Command Prompt and type:
ping [Link]
ping [Link]
✓ Type ipconfig and check:
IP address assigned?
Default gateway present?
✓ Expected Outcome:
If ping to IP works but not domain, it’s a DNS issue.
If no IP address is assigned, DHCP issue or router problem.
48
Salma M. Shaikh