代写 CS3363 Program Project

CS3363 Program Project
Write a program to simulate the CSMA/CA flow-diagram of figure 12.15 in Chapter 12. Reference section 12.7 Programming Assignments prg12-2 on page 360 of the text. Also on the reverse of this document.
Your simulation should demonstrate and log the different pathways through the flow-diagram. It will be necessary to use a random number generator to complete this assignment: The ACK and CTS control frames have a probability of not returning; and, the contention window computes the number of wait periods based on a random number.
 You may use any programming language.
 You will demonstrate your program simulation during the last day we meet for lecture.
 Also provide an electronic copy of your program to the course instructor.
 You will have eight minutes (8 min) to demonstrate your simulation.
Example Output:
Index Re-Trys RTS|CTS ACK|Data Max
Failures Failures Slots
12112 23306 31100 40000 52112 62112 71010 8 7 5 2 65 93213
10 0 0 0 0
11 4 3 1 3
12 4 2 2 7
13 4 3 1 9
14 1 0 1 0
15 0 0 0 0
16 11 4 7 779
17 0 0 0 0
18 5 2 3 27
19 0 0 0 0
20 1 0 1 0
21 1 0 1 0
22 0 0 0 0
23 3 1 2 5
24 5 3 2 18
25 1 1 0 0

CSMA/CA Flowchart Diagram