Closed MengleiZhang closed 6 years ago
Hi Menglei,
Thanks for pointing this.
For 1, Though it is not a bug, I will initialize all other variables in RateSample
too.
For 2, I'll incorporate suggested changes and see if there are many more like this.
I look forward for more suggestions.
Hi Vivek,
I was using this BBR implementation, and spot 2 bugs. Can you check it.
In the TcpTxBuffer class, the m_priorDelivered parameter of struct RateSample should be initialized to 0. The original line 44 uint32_t m_priorDelivered; //!< The delivered count of the most recent packet delivered should be changed to uint32_t m_priorDelivered = 0; //!< The delivered count of the most recent packet delivered
In the TcpBbr::ModulateCwndForRecovery() function line 429 tcb->m_cWnd = std::max (tcb->m_cWnd.Get () - rs->m_packetLoss, tcb->m_segmentSize); should change be to tcb->m_cWnd = std::max ((int)tcb->m_cWnd.Get () - (int)rs->m_packetLoss, (int)tcb->m_segmentSize);