[ndnSIM] Using the ComsumerWindow Application

Md Ashiqur Rahman marahman at email.arizona.edu
Wed Mar 21 11:23:50 PDT 2018


Hello Spyros,

Thanks. This fixed the issue.

Regards-
Ashiq

On Tue, Mar 20, 2018 at 3:12 PM, Spyridon (Spyros) Mastorakis <
mastorakis at cs.ucla.edu> wrote:

> Hi Ashiq,
>
> this behavior has to do with the fact that the window application is based
> on a maximum sequence number for the data to be fetched.
>
> When you do not specifically set the max sequence number or the size of
> the data to be fetched (this is implicitly converted to a max seq number),
> then the application assumes max seq num = 0, tries to send out a single
> Interest (which does not eventually send since the current seq num is equal
> to the max one) and then stops.
>
> To change this behavior and make the app send data until the end of the
> simulation, change line 131 of the ndn-consumer-window.cpp to:
>
> m_seqMax = std::numeric_limits<uint32_t>::max();
>
> Hope that this helps,
>
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/
> Internet Research Laboratory
> Computer Science Department
> UCLA
>
> On Mar 19, 2018, at 9:18 PM, Md Ashiqur Rahman <marahman at email.arizona.edu>
> wrote:
>
> Hello Spyros,
>
> Here's the git: https://github.com/ashiqopu/ndn-ap-grid/blob/
> master/scratch/ndn-ap-grid.cc
>
> You need to look at *line 603~608* for the different consumer
> applications and it's parameters.
>
> Apologies for the bad code!
>
> Regards-
> Ashiq
>
> On Mon, Mar 19, 2018 at 3:06 PM, Spyridon (Spyros) Mastorakis <
> mastorakis at cs.ucla.edu> wrote:
>
>> Hi Ashiq,
>>
>> could you please paste on gist your simulation scenario too, so that I
>> can try to run it?
>>
>> Thanks,
>>
>> Spyridon (Spyros) Mastorakis
>> Personal Website: http://cs.ucla.edu/~mastorakis/
>> Internet Research Laboratory
>> Computer Science Department
>> UCLA
>>
>> On Mar 19, 2018, at 11:45 AM, Md Ashiqur Rahman <
>> marahman at email.arizona.edu> wrote:
>>
>> Hello Spyros,
>>
>> Yes. I have. Here's the logging for consumer and producer in a simulation
>> with 1 STATION node and 3 seconds of simulation with no data size limit as
>> described earlier:
>>
>> +0.000000000s -1 ndn.Consumer:Consumer()
>> +0.000000000s -1 ndn.Consumer:Consumer()
>> +0.000000000s -1 ndn.Producer:Producer()
>> +0.000000000s 53 ndn.Producer:StartApplication()
>> +0.000000000s 54 ndn.Consumer:StartApplication()
>> +0.000000000s 54 ndn.Consumer:StartApplication()
>> +0.000000000s 54 ndn.Consumer:SendPacket()
>> +0.000000000s 54 ndn.Consumer:SendPacket()
>>
>> However, when I do set a data size limit (e.g. 2MB), then it's working
>> without any issue. Here's the log for this: https://gist.github.com/
>> ashiqopu/53328e29f0f8aa74749ca79880f61724
>>
>> Regards-
>> Ashiq
>>
>> On Mon, Mar 19, 2018 at 8:46 AM, Spyridon (Spyros) Mastorakis <
>> mastorakis at cs.ucla.edu> wrote:
>>
>>> Hi,
>>>
>>> have you enabled the application logging component to see what’s going
>>> on?
>>>
>>> Thanks,
>>>
>>> Spyridon (Spyros) Mastorakis
>>> Personal Website: http://cs.ucla.edu/~mastorakis/
>>> Internet Research Laboratory
>>> Computer Science Department
>>> UCLA
>>>
>>> On Mar 16, 2018, at 12:15 PM, Md Ashiqur Rahman <
>>> marahman at email.arizona.edu> wrote:
>>>
>>> Hello all,
>>>
>>> I am trying to utilize the ConsumerWindow application where my Payload
>>> size is to be 512 bytes and send interests until simulation ends. However,
>>> I do not see any Interest being sent out. I did other experiments with the
>>> ConsumerCbr application in same scenario setup and that worked fine. What
>>> could I possibly be doing wrong?
>>>
>>> Regards-
>>> Ashiq
>>>
>>>
>>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180321/60ecc9c9/attachment.html>


More information about the ndnSIM mailing list