Bug 1966 - BulkSendApplication not compatible with NSC
BulkSendApplication not compatible with NSC
Status: NEW
Product: ns-3
Classification: Unclassified
Component: nsc-tcp
pre-release
PC Linux
: P5 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-26 14:25 EDT by Tom Henderson
Modified: 2016-03-31 14:53 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Henderson 2014-08-26 14:25:21 EDT
I tried to use BulkSendApplication with NSC and found that it stalled as soon as the send buffer initially filled up.

BulkSendApplication::DataSend() is not being called by the NSC implementation.  I do not yet know whether an easy fix is to tie this to hook the callback to NotifyDataSent (which is called when the NSC glue code performs a write on the underlying NSC socket):

      Simulator::ScheduleNow (&NscTcpSocketImpl::NotifyDataSent, this, ret);

or whether the fix requires more work (e.g. checking return value of 
ret = m_nscTcpSocket->send_data ((const char *)buf, size);
and acting accordingly).