Bug 2084 - WiMAX doesn't handle the burst end correctly
WiMAX doesn't handle the burst end correctly
Status: NEW
Product: ns-3
Classification: Unclassified
Component: wimax
ns-3-dev
All All
: P5 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-28 04:45 EDT by Tommaso Pecorella
Modified: 2015-03-28 04:45 EDT (History)
0 users

See Also:


Attachments
example program (7.24 KB, text/x-csrc)
2015-03-28 04:45 EDT, Tommaso Pecorella
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tommaso Pecorella 2015-03-28 04:45:48 EDT
Created attachment 2007 [details]
example program

It seems that there is a glitch in the WiMAX burst end check.

In SimpleOfdmWimaxPhy::EndSendFecBlock the block end condition is:
  if (m_nrFecBlocksSent * m_blockSize == m_currentBurstSize * 8 + m_paddingBits)
    {
      // this is the last FEC block of the burst
      NS_ASSERT_MSG (m_nrRemainingBlocksToSend == 0, "Error while sending a burst");
      NotifyTxEnd (m_currentBurst);
    }
  else
    {
      StartSendDummyFecBlock (false,modulationType,direction);
    }

The assert is hit for the test program (posted here by Red Zhaoyj):
https://groups.google.com/forum/#!topic/ns-3-users/FOimSsaojis

Removing the assert makes the program end, but I'm quite sure that it's not that simple.