Homework 4: IEEE 802.11 Greedy Sender 
Assigned: March 25, 2009
Due: April 1, 2009

1) Suppose your local ns directory is foobar. First, "rm -fr foobar/ns-2.29/mac" (foobar/ns-2.29/mac is a soft link), and similarly, "rm -fr foobar/ns-2.29/hw4" Then "cp -r /v/filer4b/v27q001/cs378-spring/ns-allinone-2.29/ns-2.29/mac foobar/ns-2.29/mac" and "cp -r  /v/filer4b/v27q001/cs378-spring/ns-allinone-2.29/ns-2.29/hw4 foobar/ns-2.29/hw4".

2) Use the sample tcl file in "hw4/gs-cbr.tcl".

3) You need to implement the following misbehaviors in mac/mac-802.11.h and mac/mac-802.11.cc (Your modifications are less than 10 lines of code). Recompile ns by running "make" under "ns-2.29" directory. Run ns simulation by "ns hw4/gs-cbr.tcl".

4)  Run ns simulation with the following greedy sender misbehaviors (Each misbehavior is used alone, e.g., when you modify RTSNAVFactor_, leave the other parameters the same as the normal sender):

5) Turn in the following files to TA before class on April 1 using "turnin" command: "turnin --submit hanmi2 CS378_HW4 file1 file2 file3", where "hanmi2" is the grader id, "CS378_HW4" is the homework id, and "file1 file2 file3" are the files to be submitted.

Hints: Example output using RTSNAVFactor_=6: Goodput 0: 0.00136192 Mbps, Goodput 1: 3.35390144 Mbps Example output using DataNAVFactor_=6: Goodput 0: 0.0015321600000000001 Mbps, Goodput 1: 3.3577407999999997 Mbps