[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] mac-802_11.cc ACKTimeout looks incorrect & sifs/difs used incorectly?
- To: "Ns-Users (E-mail)" <[email protected]>
- Subject: [ns] mac-802_11.cc ACKTimeout looks incorrect & sifs/difs used incorectly?
- From: "Susan Tsao" <[email protected]>
- Date: Fri, 5 Oct 2001 17:05:08 -0700
- Sender: [email protected]
- Thread-Index: AcFN+o96BIx07y9FSZmsZd/ygcybfg==
- Thread-Topic: mac-802_11.cc ACKTimeout looks incorrect & sifs/difs used incorectly?
Hello,
I have 2 quesiton relating to NS implementation of the Mac 802.11
protocol.
1) In mac-802_11.h, it defines ACKTimeout to be:
#define ACKTimeout(len) (DATA_Time(len) + ACK_Time + sifs_ +
difs_)
But according to standard, it should be:
#define ACKTimeout(len) (DATA_Time(len) + ACK_Time + sifs_ +
sifs_)
2) In mac-802_11.cc:
void Mac802_11::tx_resume()
{
.........
else if(pktTx_) {
if(mhBackoff_.busy() == 0)
mhDefer_.start(difs_);
.........
}
According to standards: Upon receiving a CTS frame, station will wait
for SIFS period before sending DATA
However, according to the above code, station waits for DIFS period
before sending DATA.
Can someone please explain to me whether this is a bug in the code or
did I misinterpret the standard.
Thank you.
Susan