Bug 2084

Summary: WiMAX doesn't handle the burst end correctly
Product: ns-3 Reporter: Tommaso Pecorella <tommaso.pecorella>
Component: wimaxAssignee: ns-bugs <ns-bugs>
Status: NEW ---    
Severity: normal    
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: example program

Description Tommaso Pecorella 2015-03-28 04:45:48 UTC
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.