A simple tool to simulate a simple inter-process communication protocol.
To simulate a simple inter-process communication protocol using CSIM.
transmission time
is 0.1
.transmission delay
(e.g., local processing time) is 0.2
.loss probabilities of packet
are (0.1, 0.2, 0.3, 0.4, 0.5)
, due to the unreliable network quality.The timeout period
is 2 seconds
. If sending node does not receive the HELLO_ACK packet within timeout period, it retransmits a HELLO packet.
If sending node still does not receive the HELLO_ACK, then transmission is failed.
csim64.gcc project.c -o project
./project
Enter a loss probability value:
Statistics of loss probability: 0.300000
Average number of successful transmissions 0.59
Average number of failed transmissions 0.41
Average roundtrip time 0.50
Node 0 generates 108 packets
Node 1 generates 120 packets
Node 2 generates 90 packets
Node 3 generates 110 packets
Node 4 generates 116 packets
Jaturong Kongmanee - jaturongkongmanee.github.io/jk/
Assistant Professor Sunho Lim, Ph.D.