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
All All
: P5 normal
Assigned To: ns-bugs
Depends on:
  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:

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

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);
      StartSendDummyFecBlock (false,modulationType,direction);

The assert is hit for the test program (posted here by Red Zhaoyj):

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