0% found this document useful (0 votes)
28 views

EXP8

The document summarizes a simulation experiment comparing the performance of slotted ALOHA and pure ALOHA protocols. It describes setting up a network with varying numbers of nodes in NetSim and measuring throughput. Slotted ALOHA had higher throughput than pure ALOHA due to its use of time slots reducing collisions.

Uploaded by

Bruce Wayne
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

EXP8

The document summarizes a simulation experiment comparing the performance of slotted ALOHA and pure ALOHA protocols. It describes setting up a network with varying numbers of nodes in NetSim and measuring throughput. Slotted ALOHA had higher throughput than pure ALOHA due to its use of time slots reducing collisions.

Uploaded by

Bruce Wayne
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Experiment No: 8

Performance Analysis of SLOTTED ALOHA protocol using Netsim

NOTE: NetSim Academic supports a maximum of 100 nodes and hence this experiment
can only be limited to maximum of 100 nodes.

Name : Roshan R
Reg. No : 21BEC1011
Faculty Name : Dr.M.Saranya Nair

Aim:

(a) To simulate and analyze the performance of SLOTTED ALOHA in a


wireless network.

Tool Required:

Netsim

Simulation & Analysis:

ALOHA is a multiple access protocol (this protocol is for allocating a multiple access channel).
There are two main versions of ALOHA: pure and slotted. In slotted Aloha, time is divided up
into discrete intervals, each interval corresponding to one frame. In Slotted Aloha, a node is
required to wait for the beginning of the next slot in order to send the packet.

Network Set Up

In the Main menu select - New Simulation - Legacy Network - Slotted Aloha.

· Click on the Node icon in the tool bar and drop inside the grid.
· Similarly drop Adhoc link and connect Wireless Nodes to Adhoc links. (Note: A Node
cannot be placed on another Node. A Node cannot float outside of the grid).
· Slotted Aloha: Input for 10-Nodes sample
Step 1: Drop 10 nodes (i.e., 9 Nodes are generating traffic). Node 2, 3, 4, 5, 6, 7, 8, 9,
and 10 generates traffic. The properties of Nodes 2, 3, 4, 5, 6, 7, 8, 9, and 10 which transmits
data to Node 1 are given below.

· Wireless Node Properties:

Data Rate : 10 Mbps

MAC Buffer : False

Retry Limit : 0

Slot Length : 1200 microsec

·
Link Properties – Channel Characteristics – No Path Loss.

· Application Properties
· Simulation Time : 10 s

· Continue the experiment by increasing the number of nodes generating traffic as 19, 29,
39, 49, 59, 69, 79, 89, 99 nodes

10 NODES:

30 NODES:
Analysis:

9 TRAFFIC GENERATING NODES:


29 TRAFFIC GENERATING NODES:
Comparison Table:

Number of Total no.


Total no. of
Nodes of Successful S S
Packets G
Generating Packets Packets (Practical) (Theoretical)
Transmitted
Traffic Collided
9 493 45 448 0.05916 0.05376 0.05576

29 1476 252 1224 0.17712 0.14688 0.14836

For this application,


Frame size = 1460 bytes. = 1460*8 bits
Data rate = 10 Mbps
Frame transmission time = 10 s (Simulation time)

Time = (1460 * 8)/(10 * 10^6)


= 1.16 ms = 1.2 ms

Avg. no. of frames = (frames transmitted * 1.2ms) / 10s

Attempts per packet time (G) = (Total number of Packet Transmitted x 1.2ms) / 10
Throughput (S) = (Total number of Successful packet transmitted x 1.2ms) \ 10

Throughput Graph:
PURE ALOHA VS SLOTTED ALOHA
0.14 0.16
0.13
0.12 0.14

0.11
0.12
0.1
0.09 0.1
THROUGHPUT

0.08
0.07 0.08
0.06
0.05 0.06

0.04
0.04
0.03
0.02 0.02
0.01
0 0
9 19
Pure ALOHA 0.05208 0.12804
Slotted ALOHA 0.05376 0.14688
NO. OF NODES

Pure ALOHA Slotted ALOHA

RESULT & INFERENCES:

The throughput increases as the number of traffic generating nodes increase. This is due to
the higher number of packets transmitted. However, the frequency of collision also increases,
which leads to lower Packet Delivery Ratio (PDR). Slotted ALOHA provides higher
throughput compared to Pure ALOHA. This is because stations can only transmit data during
specific time slots in Slotted ALOHA whereas in Pure ALOHA, they can transmit at any time
they want, leading to more collision.

You might also like