Samarpit Jain CN
Samarpit Jain CN
Acropolis Institute of
Technology and
Research, Indore
Department of CSE
Submitted To: Asst. Prof. Jaya Dubey
(Artificial Intelligence & Machine
Learning)
The Objective of this laboratory work is to enlighten the student with knowledge base in Computer Networks
and its applications. Also demonstrate a working understanding of various networking protocols, network
configurations, and troubleshooting techniques using simulation tools like Cisco Packet Tracer.
1
ACROPOLIS INSTITUTE OF TECHNOLOGY & RESEARCH,
INDORE
CERTIFICATE
This is to certify that the experimental work entered in this journal as per the B.
TECH. III-year syllabus prescribed by the RGPV was done by Mr, Samarpit Jain
2
ABOUT THE LABORATORY
In this lab, students will be able to learn and practice Computer Network concepts. Students
can expand their skill set by getting hands-on experience with various networking tools and
techniques. In this lab, simulation tools like Cisco Packet Tracer are used to provide
exposure to real-world network design, configuration, and troubleshooting. The concepts and
practical sessions in this lab focus on network models, protocols, IP addressing, routing,
switching, and basic network security.
The outcome of this lab is to make students understand the foundational and advanced
aspects of networking by giving them practical knowledge of how networks operate and how
to manage and secure them efficiently
3
GENERAL INSTRUCTIONS FOR LABORATORY CLASSES
DO’S
While entering into the LAB students should wear their ID cards.
Students should sign in the LOGIN REGISTER before entering into the
laboratory.
Students should come with observation and record note book to the laboratory.
After completing the laboratory exercise, make sure to shut down the
system properly.
DONT’S
4
SYLLABUS
Course: AL602 Computer Networks
Branch/Year/Sem: Artificial Intelligence & Machine Learning / III / VI
Module 2: Data Link Layer: Need, Services Provided, Framing, Flow Control, Error control. Data
Link Layer Protocol: Elementary & Sliding Window protocol: 1-bit, Go-Back-N, Selective Repeat,
Hybrid ARQ. Protocol verification: Finite State Machine Models & Petri net models.
ARP/RARP/GARP
Module 3: MAC Sub layer: MAC Addressing, Binary Exponential Back-off (BEB) Algorithm,
Distributed Random Access Schemes/Contention Schemes: for Data Services (ALOHA and Slotted
ALOHA), for Local-Area Networks (CSMA, CSMA/CD, CSMA/CA), Collision Free Protocols:
Basic Bit Map, BRAP, Binary Count Down, MLMA Limited Contention Protocols: Adaptive Tree
Walk, Performance Measuring Metrics. IEEE Standards 802 series & their variant.
Module 4: Network Layer: Need, Services Provided , Design issues, Routing algorithms: Least Cost
Routing algorithm, Dijkstra's algorithm, Bellman-ford algorithm, Hierarchical Routing, Broadcast
Routing, Multicast Routing. IP Addresses, Header format, Packet forwarding, Fragmentation and
reassembly, ICMP, Comparative study of IPv4 & IPv6
Module 5: Transport Layer: Design Issues, UDP: Header Format, Per-Segment Checksum, Carrying
Unicast/Multicast Real-Time Traffic, TCP: Connection Management, Reliability of Data Transfers,
TCP Flow Control, TCP Congestion Control, TCP Header Format, TCP Timer Management.
Application Layer: WWW and HTTP, FTP, SSH, Email (SMTP, MIME, IMAP), DNS, Network
Management (SNMP).
5
RATIONALE:
The aim of this subject is to explore the core concepts, structure, and communication rules of
computer networks, and to understand how these networks facilitate data exchange between
devices while connecting with various areas of computer science and engineering.
Course Objectives
Course Outcomes
1. Describe the essential principles of Network Layers. Characterize and appreciate
computer networks from the viewpoint of components and from the viewpoint of
services (Knowledge & design of networks)
2. Display good understanding of the flow of a protocol in general and a network
protocol in particular (Knowledge of protocols)
3. Model a problem or situation in terms of layering concept and map it to the TCI/IP
stack. (Modeling & Real-world mapping)
4. Select the most suitable Application Layer protocol (such as HTTP, FTP, SMTP, DNS,
Bit torrent) as per the requirements of the network application and work with
available tools to demonstrate the working of these protocols (Problem analysis &
implementation)
5. Design a Reliable Data Transfer Protocol and incrementally develop solutions for
the requirements of Transport Layer. Use IP addressing to create subnets for any
specific requirements (Problem identification & Implementation
6
Index
Grade &
Date of Page Date of
S No Name of the Experiment Sign of the
Exp. No. Submission Faculty
1 Study of Different Type of LAN& Network Equipment.
7
Program Outcome (PO)
8
Acropolis Institute of Technology and Research, Indore
Department of CSE (Artificial Intelligence & Machine
Learning)
Lab: AL602 (Computer Group / Title: Write a program to move any data from Accumulator t
Nertworks) general purpose register.
EVALUATION RECORD Type/ Lab Session:
Name SAMARPIT JAIN Enrollment No. 0827AL221118
Performing on First submission Second submission
Extra Regular
Additional remarks
Objective:
To understand the different types of Local Area Networks (LAN) and to study the functionality and purpose
of various networking equipment used in LAN setups.
Theory:
A Local Area Network (LAN) is a group of computers and network devices connected together, usually
within the same building. It enables sharing of resources such as files, printers, and internet access.
Types of LAN:
1. Wired LAN: Uses physical cables (Ethernet) to connect devices.
2. Wireless LAN (WLAN): Uses wireless signals (Wi-Fi) to connect devices.
3. Peer-to-Peer LAN: All computers have equal status and share resources without a dedicated server.
4. Client-Server LAN: A centralized server provides resources and services to client machines.
Procedure:
1. Identify and label the networking equipment physically or via simulation.
2. Note the ports and indicator lights on each device.
3. Observe the connections:
o Router to Modem
o Switch to multiple PCs
o Access Point for wireless connections
4. Study the use of UTP cables and RJ-45 connectors.
5. Understand how data is transferred between devices.
6. If using simulation software, create a basic LAN setup.
Additional remarks
2.Title: Study and Verification of Standard Network Topologies (Star, Bus, Ring, etc.)
Objective:
To study and verify the working of various standard network topologies such as Star, Bus, Ring, Mesh, and
Hybrid using physical components or simulation tools.
Theory:
A network topology refers to the layout or arrangement of various elements (links, nodes, etc.) of a
computer network. It defines how devices are interconnected and how data flows within the network.
Types of Network Topologies:
1. Star Topology:
o All devices are connected to a central hub or switch.
o If the central hub fails, the entire network fails.
o Easy to install and manage.
2. Bus Topology:
o All devices are connected to a single central cable (the bus).
o Terminators are used at both ends.
o Inexpensive but less efficient with high traffic.
3. Ring Topology:
o Devices are connected in a circular fashion.
o Each device has exactly two neighbors.
o Data travels in one direction (or two in dual ring).
4. Mesh Topology:
o Every device is connected to every other device.
o Provides high redundancy and reliability.
o Complex and expensive.
5. Hybrid Topology:
o Combination of two or more topologies (e.g., Star-Bus).
o Flexible and scalable.
Procedure:
1. Star Topology:
o Connect all computers to a central switch using UTP cables.
o Verify communication between devices using ping command or file sharing.
2. Bus Topology:
o Connect all devices to a single backbone cable.
o Attach terminators at both ends of the cable.
o Check connectivity using ping or data sharing.
3. Ring Topology:
o Connect devices in a closed loop (via simulation).
o Send data to verify it travels in a circular path.
4. Mesh Topology:
o (Preferably via simulation) connect every device to every other.
o Verify multiple paths of communication.
5. Hybrid Topology:
o Design a combination network (e.g., two star topologies connected by a bus).
o Observe communication behavior and analyze reliability.
Observations:
Setup Connectivity
Topology Equipment Used Remarks
Time Successful (Yes/No)
Easy to set up, centralized
Star 1 Switch, 4 PCs, UTP cables 10 mins Yes
communication
1 Backbone cable (represented), Simulated using linear
Bus 12 mins Yes
6 PCs, terminators connections in Packet Tracer
Used manual configuration to
Ring 4 PCs connected in a closed loop 15 mins Yes
simulate circular data flow
4 PCs, each connected to all More complex, high
Mesh 20 mins Yes
others redundancy observed
Combination of Star and Bus
Demonstrated flexibility and
Hybrid topologies (2 stars connected via 18 mins Yes
scalability
bus)
Acropolis Institute of Technology and Research, Indore
Department of CSE (Artificial Intelligence & Machine
Learning)
Lab: AL602 (Computer Group / Title: LAN Installations and Configurations
Nertworks)
EVALUATION RECORD Type/ Lab Session:
Name SAMARPIT JAIN Enrollment No. 0827AL221118
Performing on First submission Second submission
Extra Regular
Additional remarks
Objective:
To learn and perform the installation and configuration of a Local Area Network (LAN) using appropriate
hardware and software components.
Theory:
A Local Area Network (LAN) is a network that connects computers and devices within a limited
geographical area such as a home, school, or office building. It allows users to share files, resources, and
internet connections.
LAN Installation involves setting up the hardware infrastructure and cabling to enable communication
between devices.
LAN Configuration includes assigning IP addresses, setting up file/printer sharing, and ensuring devices
can communicate over the network.
Additional remarks
Objective:
To understand the usability and practical application of various networking commands in the Windows
command prompt environment and interpret their output.
Theory:
Networking commands allow users and administrators to troubleshoot, configure, and monitor network
settings and connections. These are essential in understanding the status of a network and diagnosing issues.
Sample Output:
Sample Output:
Sample Output:
Additional remarks
5.Title: Describe IPv4 Address Structure and Class A,B,C and D address.
Theory:IPv4 addresses are 32-bit numerical addresses represented in dotted decimal notation. Each address
consists of four octets (8 bits each) separated by dots. Example: 192.168.1.1.
IPv4 addresses have two main components:
1. Network Portion - Identifies the network.
2. Host Portion - Identifies the specific device within the network.
IPv4 Address Classes
IPv4 addresses are categorized into five classes: A, B, C, D, and E.
1. Class A:
o Range: 1.0.0.0 to 126.255.255.255
o Default Subnet Mask: 255.0.0.0
o Supports large networks with many hosts.
o First bit is always 0.
o Example: 10.0.0.1
2. Class B:
o Range: 128.0.0.0 to 191.255.255.255
o Default Subnet Mask: 255.255.0.0
o Suitable for medium-sized networks.
o First two bits are 10.
o Example: 172.16.0.1
3. Class C:
o Range: 192.0.0.0 to 223.255.255.255
o Default Subnet Mask: 255.255.255.0
o Used for small networks.
o First three bits are 110.
o Example: 192.168.1.1
4. Class D (Multicast Addresses):
o Range: 224.0.0.0 to 239.255.255.255
o Used for multicasting (sending data to multiple destinations).
o First four bits are 1110.
o Example: 224.0.0.1
5. Class E (Reserved for Experimental Use):
o Range: 240.0.0.0 to 255.255.255.255
o Reserved for research and future use.
o First four bits are 1111.
o Example: 250.1.1.1
Acropolis Institute of Technology and Research, Indore
Department of CSE (Artificial Intelligence & Machine
Learning)
Group / Title: Study and installation of Cisco Packet Tracer
Lab: AL602 (Computer and establish a basic network connection between a PC and a
Nertworks) Switch.
Additional remarks
6.Title: Study and installation of Cisco Packet Tracer and establish a basic network connection
between a PC and a Switch.
Software Required:
Cisco Packet Tracer (latest version)
Operating System: Windows/Linux
Hardware Required:
Computer with internet access
Part A: Study and Installation of Cisco Packet Tracer
Step 1: Downloading Cisco Packet Tracer
1. Visit the official Cisco Networking Academy website: https://www.netacad.com/
2. Register for a free account if not already registered.
3. Navigate to the ‘Resources’ section and download the latest version of Cisco Packet Tracer for your
operating system.
Step 2: Installing Cisco Packet Tracer
1. Open the downloaded installer file.
2. Follow the installation wizard by clicking 'Next'.
3. Accept the license agreement and proceed with the default installation settings.
4. Click ‘Install’ and wait for the process to complete.
5. Once installed, launch Cisco Packet Tracer and log in using the NetAcad credentials.
6. Verify the successful installation by opening a new workspace.
Part B: Establishing Connection from PC to Switch
Step 1: Setting up Devices in Cisco Packet Tracer
1. Open Cisco Packet Tracer.
2. From the device toolbar, drag and drop the following devices onto the workspace:
o 1 PC (from ‘End Devices’ category)
o 1 Switch (from ‘Switches’ category)
Step 2: Connecting the Devices
1. Click on the ‘Connections’ icon (lightning bolt symbol) from the toolbar.
2. Select Copper Straight-Through Cable.
3. Click on the PC, then select the FastEthernet0 port.
4. Click on the Switch, then select any FastEthernet port (e.g., FastEthernet0/1).
5. A solid green connection should appear, indicating a successful physical connection.
Step 3: Verifying the Connection
1. Click on the PC, then go to the Desktop tab.
2. Open Command Prompt.
3. Type the command: ipconfig and press Enter.
4. Assign an IP address manually by navigating to IP Configuration and entering:
o IP Address: 192.168.1.10
o Subnet Mask: 255.255.255.0
5. Ping the Switch by opening the PC's Command Prompt and typing:
ping 192.168.1.1
(Assuming the switch has a default IP address assigned or is managed.)
6. If replies are received, the connection is successfully established.
Output-
Acropolis Institute of Technology and Research, Indore
Department of CSE (Artificial Intelligence & Machine
Learning)
Group / Title: To study and compare the working of a Hub
Lab: AL602 (Computer
and a Switch in a LAN setup in Cisco Packet Tracer.
Nertworks)
EVALUATION RECORD Type/ Lab Session:
Name SAMARPIT JAIN Enrollment No. 0827AL221118
Performing on First submission Second submission
Extra Regular
7.Title: To study and compare the working of a Hub and a Switch in a LAN setup in Cisco Packet
Tracer.
Theory:
A Hub is a basic networking device that transmits data to all ports.
A Switch is an intelligent device that transmits data only to the intended port, using MAC
addresses.
Procedure:
Part A: Connecting 6 PCs with a Hub
1. Open Cisco Packet Tracer.
2. Drag the following devices into the workspace:
o 6 PCs (from End Devices)
o 1 Hub (from Hubs)
3. Connect the PCs to the Hub using Copper Straight-Through cables.
o PC0 to Hub Port 1
o PC1 to Hub Port 2
o PC2 to Hub Port 3
o PC3 to Hub Port 4
o PC4 to Hub Port 5
o PC5 to Hub Port 6
4. Assign IP addresses to each PC:
o PC0: 192.168.1.1
o PC1: 192.168.1.2
o PC2: 192.168.1.3
o PC3: 192.168.1.4
o PC4: 192.168.1.5
o PC5: 192.168.1.6
o Subnet Mask: 255.255.255.0 (for all)
5. Go to Desktop > Command Prompt on PC0.
6. Use ping to test connectivity with other PCs.
o ping 192.168.1.2
o ping 192.168.1.3, etc.
7. Go to Simulation Mode and observe:
o Hub broadcasts packets to all connected devices.
Output:
Observation Table:
PC0 Ping PC0 Ping PC0 Ping PC0 Ping PC0 Ping Transmission
Device
PC1 PC2 PC3 PC4 PC5 Behavior
Hub Success Success Success Success Success Broadcast to all
Switch Success Success Success Success Success Unicast to destination
Acropolis Institute of Technology and Research, Indore
Department of CSE (Artificial Intelligence & Machine
Learning)
Lab: AL602 (Computer Group / Title: Establishment of LAN by bus and star topology in Cisco Pa
Nertworks) Tracer.
EVALUATION RECORD Type/ Lab Session:
Name SAMARPIT JAIN Enrollment No. 0827AL221118
Performing on First submission Second submission
Extra Regular
Additional remarks
8.Title: Establishment of LAN by bus and star topology in Cisco Packet Tracer.
Output-
Acropolis Institute of Technology and Research, Indore
Department of CSE (Artificial Intelligence & Machine
Learning)
Group / Title: Connecting Two Different Networks Using a
Lab: AL602 (Computer
Router in Cisco Packet Tracer
Nertworks)
EVALUATION RECORD Type/ Lab Session:
Name SAMARPIT JAIN Enrollment No. 0827AL221118
Performing on First submission Second submission
Extra Regular
Additional remarks
9.Title: Connecting Two Different Networks Using a Router in Cisco Packet Tracer
Objective:
To understand and implement the process of connecting two separate networks using a router in Cisco
Packet Tracer, enabling communication between devices in different subnets.
Theory:
In networking, routers are used to connect multiple networks and direct data packets between them. Each
network has its own IP addressing scheme (subnet), and routers facilitate communication between these
distinct networks by routing packets based on their destination IP addresses.
Equipment Required:
Cisco Packet Tracer software
1 Router (e.g., 1841)
2 Switches (e.g., 2960)
4 PCs (2 for each network)
Copper Straight-Through Cables
Procedure:
Step 1: Setting Up Devices
1. Open Cisco Packet Tracer.
2. Drag and drop the following devices onto the workspace:
o 1 Router
o 2 Switches
o 4 PCs
Step 2: Connecting the Devices
1. Use Copper Straight-Through Cables to connect:
o PC0 and PC1 to Switch0
o PC2 and PC3 to Switch1
o Switch0 to Router's FastEthernet0/0
o Switch1 to Router's FastEthernet0/1
Step 3: Assigning IP Addresses
Network 1 (Connected to FastEthernet0/0):
o PC0: IP Address: 192.168.1.2, Subnet Mask: 255.255.255.0, Default Gateway: 192.168.1.1
o PC1: IP Address: 192.168.1.3, Subnet Mask: 255.255.255.0, Default Gateway: 192.168.1.1
Network 2 (Connected to FastEthernet0/1):
o PC2: IP Address: 192.168.2.2, Subnet Mask: 255.255.255.0, Default Gateway: 192.168.2.1
o PC3: IP Address: 192.168.2.3, Subnet Mask: 255.255.255.0, Default Gateway: 192.168.2.1
Step 4: Configuring the Router
1. Click on the Router and go to the CLI tab.
2. Enter the following commands:
Additional remarks
10.Title: Study & Simulation of Application Layer Protocols – DNS, HTTP, FTP and DHCP
Theory:
Application layer protocols are the topmost protocols in the OSI and TCP/IP models. They enable
user-level services such as browsing, file transfers, domain resolution, and remote terminal access.
Protocol Descriptions:
1. DNS (Domain Name System)
o Purpose: Converts human-readable domain names (like www.google.com) into IP addresses.
o Functionality: When a user enters a domain name in a browser, DNS resolves it to the
corresponding IP address, allowing communication between client and server.
o Example: www.google.com → 142.250.77.100
2. HTTP (HyperText Transfer Protocol)
o Purpose: Used for transferring web pages and web content.
o Functionality: HTTP is a request-response protocol where the client (browser) sends
requests to a server, and the server sends back web content.
o Port Used: 80 (default)
o Limitation: Data is transferred in plain text (not secure).
3. HTTPS (HTTP Secure)
o Purpose: Secure version of HTTP with encryption.
o Functionality: Uses SSL/TLS to encrypt the data between client and server, ensuring
confidentiality and data integrity.
o Port Used: 443
o Use Case: Banking websites, login forms, payment gateways.
4. FTP (File Transfer Protocol)
o Purpose: Used to upload or download files between client and server.
o Functionality: Allows authenticated access to files and supports commands like get, put, and
list.
o Port Used: 21
o Modes: Active and Passive
o Use Case: Website file uploads, data backup.
5. DHCP (Dynamic Host Configuration Protocol)
Purpose: Automatically assigns IP addresses and other network configuration parameters to devices
on a network.
Functionality: Enables devices to obtain IP addresses, subnet masks, default gateways, and DNS
server information dynamically without manual configuration.
Port Used: 67 (server), 68 (client)
Limitation: Not secure by default; susceptible to spoofing and unauthorized DHCP servers.
Note: Essential for dynamic IP allocation in most modern networks.
Summary Table:
Domain
Resolves domain names to
DNS Name 53 No
IPs
System
HyperText
HTTP Transfer 80 Web content transfer No
Protocol
HTTP
HTTPS 443 Secure web content transfer Yes
Secure
Protocol Full Form Port No. Main Function Secure
Dynamic
Host
Automatically assign IP
DHCP Configu 67 No
address
ration
Protocol
Additional remarks
11.Title: To simulate and understand the working of TCP and UDP protocols by configuring DNS,
FTP, Web, and Email servers in Cisco Packet Tracer.
Theory:
TCP (Transmission Control Protocol): A connection-oriented protocol ensuring reliable data
transmission between devices.
UDP (User Datagram Protocol): A connectionless protocol that allows faster data transmission
without guaranteeing delivery.
DNS (Domain Name System): Translates domain names into IP addresses.
FTP (File Transfer Protocol): Facilitates the transfer of files between client and server.
Web Server (HTTP/HTTPS): Hosts websites and serves web pages to clients.
Email Server (SMTP/POP3): Manages the sending and receiving of emails.
By configuring these servers, students can observe the behavior of TCP and UDP protocols in a networked
environment.
Equipment Required:
Cisco Packet Tracer software
1 DNS Server
1 FTP Server
1 Web Server
1 Email Server
2 Client PCs
1 Switch
Copper Straight-Through Cables
Procedure:
Step 1: Setting Up Devices
1. Launch Cisco Packet Tracer.
2. Add Devices:
o Drag and drop the following devices onto the workspace:
1 Server (to be configured as DNS, FTP, Web, and Email Server)
2 PCs (Clients)
1 Switch
3. Connect Devices:
o Use Copper Straight-Through Cables to connect:
Server to Switch
PC0 to Switch
PC1 to Switch
Step 2: Configuring the Server
1. Assign IP Address:
o Click on the Server → Go to the Desktop tab → Open IP Configuration.
o Set the following:
IP Address: 192.168.1.1
Subnet Mask: 255.255.255.0
2. Enable Services:
o Go to the Services tab on the Server.
o DNS Configuration:
Navigate to DNS.
Turn On the service.
Add a new record:
Name: www.example.com
Address: 192.168.1.1
o FTP Configuration:
Navigate to FTP.
Turn On the service.
Add user credentials:
Username: user1
Password: password
o HTTP Configuration:
Navigate to HTTP.
Ensure the service is On.
You can customize the web page content if desired.
o Email Configuration:
Navigate to EMAIL.
Turn On both SMTP and POP3 services.
Add user accounts:
Username: user1
Password: password
Step 3: Configuring Client PCs
1. Assign IP Addresses:
o For PC0:
IP Address: 192.168.1.2
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
o For PC1:
IP Address: 192.168.1.3
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
2. Configure DNS Settings:
o On both PCs, set the DNS Server to 192.168.1.1.
Step 4: Testing Connectivity
1. Ping Test:
o From PC0, open the Command Prompt.
o Execute: ping 192.168.1.1
o A successful reply indicates proper connectivity.
2. DNS Resolution Test:
o From PC0, in the Command Prompt, type: ping www.example.com
o If the DNS is configured correctly, it should resolve to 192.168.1.1.
3. FTP Access Test:
o From PC0, open the Command Prompt.
o Type: ftp 192.168.1.1
o Enter the credentials (user1 / password) to access the FTP server.
4. Web Access Test:
o From PC0, open the Web Browser.
o Navigate to http://www.example.com.
o The default web page from the server should display.
5. Email Test:
o From PC0, open the Email Client.
o Configure the account with:
Incoming Mail Server (POP3): 192.168.1.1
Outgoing Mail Server (SMTP): 192.168.1.1
Username: user1
Password: password
o Send a test email to [email protected] and check for reception.
Observation Table:
Test Source Device Destination Expected Result
Ping to Server PC0 192.168.1.1 Successful ping replies
DNS Resolution PC0 www.example.com Resolves to 192.168.1.1
FTP Access PC0 192.168.1.1 Successful login with provided credentials
Web Access PC0 http://www.example.com Default web page displays
Email Send/Receive PC0 [email protected] Email sent and received successfully
Output-
Acropolis Institute of Technology and Research, Indore
Department of CSE (Artificial Intelligence & Machine
Learning)
Lab: AL602 (Computer Study & Simulation of MAC Protocols – ALOHA, CSM
Group / Title:
Nertworks) CSMA/CD, CSMA/CA
EVALUATION RECORD Type/ Lab Session:
Name SAMARPIT JAIN Enrollment No. 0827AL221118
Performing on First submission Second submission
Extra Regular
Additional remarks
12.Title: Study & Simulation of MAC Protocols – ALOHA, CSMA, CSMA/CD, CSMA/CA
Objective:
To study and understand the working principles of multiple MAC layer protocols:
Pure ALOHA
CSMA (Carrier Sense Multiple Access)
CSMA/CD (Collision Detection)
CSMA/CA (Collision Avoidance)
and simulate scenarios in Cisco Packet Tracer demonstrating collision management and medium
access.
Theory Overview:
Protocol Principle Collision Handling Medium Sensing
ALOHA Transmit immediately Wait and retry after collision No
Avoids if busy, retries if
CSMA Sense before transmit Yes
collision
Sense + Detect +
CSMA/CD Detects and backs off Yes
Retry
Protocol Principle Collision Handling Medium Sensing
Avoids by waiting random Yes (with
CSMA/CA Sense + Avoid
time backoff)
Tools/Equipment:
Cisco Packet Tracer
1 or more Hubs
1 or more Switches
Multiple PCs
Routers (if required for extended simulation)
Copper Straight-Through and Cross-over Cables
Procedure:
Cisco Packet Tracer does not explicitly simulate CSMA/CD logic, but using hubs helps us infer collision
scenarios.
Observation Table:
Topology Medium Collision Collision
Protocol
Used Type Observed Handling
Wired
ALOHA Hub Yes None
(Shared)
CSMA Switch Wired Rare Wait and Retry
Wired
CSMA/CD Hub Yes Detect + Retry
(Shared)
CSMA/CA Wireless Wireless Avoided Wait Before Send