[Ns-developers] New BulkSend application

Josh Pelkey jpelkey at gatech.edu
Mon Sep 13 13:47:32 PDT 2010


Gustavo,

Sorry for the delayed response.

> Cool, but my question is, do we really need the BulkSend application, or
just better documentation for OnOffApplication to explain to do bulk send
with it?

In order to create a "BulkSend" type application with OnOff, you must set
the OnTime to 1 (easy), but you must also set the DataRate appropriately so
that the buffer remains full.  You can see several examples where something
like this is used in the examples folder (search for WriteUntilBufferFull).
 So while it is possible to create BulkSend with OnOff, I think ns-3 could
benifit from a simpler-to-use BulkSendApplication.

--
Josh

On Fri, Sep 3, 2010 at 12:30 PM, Gustavo Carneiro <gjcarneiro at gmail.com>wrote:

>
>
> On Fri, Sep 3, 2010 at 17:00, Josh Pelkey <jpelkey at gatech.edu> wrote:
>
>> Hi all,
>>
>> We have created a simple new "BulkSend" application [1].
>> BulkSendApplication sends data as fast as possible up to MaxBytes or
>> unlimited if MaxBytes is zero. Think OnOff, but without the "off" and
>> without the variable data rate.
>>
>> This application could be used, for example, in
>> examples/tcp/tcp-large-transfer, in place of all the code which
>> manually sets up a socket and writes until the buffer is full, etc.
>> It was initially created to help beginner ns-3 users for a class
>> project.  OnOffApplication didn't feel right to use, and setting up a
>> socket and writing to the buffer was too difficult.
>>
>> I thought I'd put this up for review before we merged it.  It is
>> pretty simple though -- almost a cut and paste of OnOff with minimal
>> changes.
>>
>
> Cool, but my question is, do we really need the BulkSend application, or
> just better documentation for OnOffApplication to explain to do bulk send
> with it?
>
>
>>
>> [1] http://codereview.appspot.com/2110042/
>>
>> --
>> Josh
>>
>
>
>
> --
> Gustavo J. A. M. Carneiro
> INESC Porto, UTM, WiN, http://win.inescporto.pt/gjc
> "The universe is always one step beyond logic." -- Frank Herbert
>


More information about the Ns-developers mailing list