CSMA Simulation

by Choongmin Lee on

Compare the two common MAC protocols, CSMA/CD and DCF (CSMA/CA) using simulation.

Model

Parameters

MAC:
octets
bps
μs
μs
bits
μs
μs
μs
μs (= SIFS + 2 × SlotTime)

Simulation

Your browser doesn't support JavaScript or the canvas element.

Animation frame rate: FPS
Simulation speed:
/s

Tip: Click the nodes to generate packets independently of the random processes.

Results

Independent variable:
From to increasing by
Take a result at seconds
Number of nodes Packet arrival rate (pkts/s) Throughput (pkts/s) Mean packet delay (ms) Collision probability Packet drop rate 1 Packet drop rate 2
Contact: choongmin@me.com Twitter