The goal of this exercise is to understand the concept of starvation and unfairness in IEEE 802.11 standard.
We consider the following topology: There are 2 CBR flows: f1 (N0->N1) and f2 (N2->N3) that start at the same time.
ns fairsim.tcl -dist {x}
grep "AGT" fairsim.tr | grep "^r" | grep "Ni {num}" | wc -lTo understand more about the trace file and what it contains, refer to sections 16.1.6 and 16.1.7 of the ns2 manual.
This assignment lets you understand how unfairness can play its role in 802.11. Looking at the results, you will realize that there is lot happening behind this simple looking topology. First try to recall the following about 802.11 and ns2 , then try to answer latter questions with respect to the graph obtained above-
1. If a node correctly decoded the last packet detected, it must sense the
channel to be idle for DIFS prior to resuming backoff. If it detected a
packet but couldn't correctly decode it, it must backoff for EIFS. EIFS >
DIFS.
2. If a node sends an RTS and does not receive a CTS, it doubles its contention window and then retries.
3. As per default ns2 settings, TX Range is approx. 250m and CS Range approx. 550m. This simply means that nodes within TX Range can detect as well as decode the packet correctly but nodes outside TX Range but within CS Range are only able to detect the packet. This further implies that such nodes(outside TX Range) would back off for EIFS and not DIFS.
Keep these in mind and answer the following:
Question-
1.What do you observe from the graph obtained? Can you explain the observations on the basis of the 802.11 contention resolution/backoff mechanism?