[Mini-NDN] [EXT] Timeouts in MiniNDN

Junxiao Shi shijunxiao at email.arizona.edu
Mon Apr 26 19:32:11 PDT 2021


Hi Andre

I don't see congestion control in this snippet.
Applications are required to implement congestion control in order to
operate smoothly in an NDN network.

Yours, Junxiao

On Mon, Apr 26, 2021 at 8:45 PM Andre <adcarneiro at inf.ufrgs.br> wrote:

> Inside delayedInterest, the variable nPackets is determined according to
> the 8000 byte payload limit.
> // Express interest for all packets
> for (i = 0; i < nPackets; i++){
> if ((bHasLeftover) && (i+1 == nPackets)){
> // Last packet
> nPacketPayload = dataBuff.nPayload % N_MAX_PACKET_BYTES;
> }
> else{
> // Any other packet
> nPacketPayload = N_MAX_PACKET_BYTES;
> }
> snprintf(strBuf, sizeof(strBuf), "%s-%db-%dof%d", strPrefix,
> nPacketPayload, i+1, nPackets);
> fprintf(stdout, "[Consumer::delayedInterest] Expressing interest=%s (%d/%d
> )\n", strBuf, i+1, nPackets);
> dtBegin = std::chrono::steady_clock::now();
> interestName = Name(strBuf);
> interest = Interest(interestName);
> interest.setCanBePrefix(false);
> interest.setMustBeFresh(true);
> interest.setInterestLifetime(6_s);
> m_face.expressInterest(interest,
> bind(&Consumer::onData, this, _1, _2, dtBegin),
> bind(&Consumer::onNack, this, _1, _2, dtBegin),
> bind(&Consumer::onTimeout, this, _1, dtBegin));
> }
>
>
> This runs fine for small requests, but when more interests are expressed
> in a row, making requests of about 60 to 100 8KB packages, the producers
> work for a while but then start becoming unresponsive. Once I get a timeout
> from a specific producer, it does not answer to any more requests, even if
> I kill the producer/consumer process and start them back up.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20210426/6feba67b/attachment.html>


More information about the Mini-NDN mailing list