EXP8
EXP8
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:
Tool Required:
Netsim
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.
Retry Limit : 0
·
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:
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
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.