All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eugen Dedu <Eugen.Dedu@pu-pm.univ-fcomte.fr>
To: dccp@vger.kernel.org
Subject: Re: DCCP_BUG called
Date: Fri, 27 Aug 2010 13:32:47 +0000	[thread overview]
Message-ID: <4C77BE7F.1020404@pu-pm.univ-fcomte.fr> (raw)
In-Reply-To: <4C6D3DD8.4080606@pu-pm.univ-fcomte.fr>

On 27/08/10 13:45, Gerrit Renker wrote:
>> This needs a clarification.  Suppose a DCCPsocket with a size of a few
>> packets.  The current situation is the following:
>>
>> App --------->  DCCPsocket -------->  qdisc --------->  network
>>        3Mb/s                 3Mb/s     |     2Mb/s
>>                                        v
>>                                      1Mb/s rejected locally
>>
>> We believe that DCCP acts wrongly when it sends at 3Mb/s (identical to
>> appli speed).  It should have been:
>>
>> App --------->  DCCPsocket -------->  qdisc --------->  network
>>        3Mb/s        |        2Mb/s           2Mb/s
>>                     v
>>                   1Mb/s rejected because buffer is full
>>
>> Now, we have seen that DCCP correctly computes the estimated transmit
>> rate to 2Mb/s.  We believe this should be considered as DCCP (buffer)
>> output, not as network output.
>>
> I am not sure the above diagrams are correct. If TFRC sets a target bitrate
> of 2Mbps, it will also send at that rate. I have just done some tests that
> showed that the control of the output rate matches the expected value:
> http://www.erg.abdn.ac.uk/users/gerrit/dccp/notes/ccid3/sender_notes/rate_mismatch_controller/
>
> Hence in the first diagram the input rate at the qdisc input would be 2Mpbs, not
> 3Mbps. But it is difficult to argue without testing, and as Ian pointed out, it
> is not such a good idea to run the traffic shaper on the same box as the sender.
>
> As per previous email, before drawing conclusions as above, I would really like to
> encourage you to use dccp_probe. You are testing only one paramter, the computed
> allowed sending rate X. This leaves out the current value of the loss rate p,
> the computed sending rate X_calc, and the sending rate estimated at the receiver,
> X_recv.
>
> Plus, using getsockopt is very unreliable for polling information, since it always
> involves at least the overhead of a system call.
>
> Before suggesting that there is a bug here, please consider your setup.

Ok, I think you are right.  Thank you for this discussion.

>> Thank you, we have finally used a middlebox, and shaping works (well,
>> there are from time to time intervals of 1 second where the receiver
>> receives twice more packets than middlebox's qdisc would allow, but we
>> need to investigate further this strange issue).
>>
> In theory the limit that TFRC can control is 12Mbps (MTU\x1500, HZ\x1000),
> at speeds higher than that it will send bursts where the momentaneous
> speed can be much higher.

Thank you for the information, I didn't know that.

Cheers,
-- 
Eugen

  parent reply	other threads:[~2010-08-27 13:32 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-19 14:21 DCCP_BUG called Eugen Dedu
2010-08-20  5:15 ` Gerrit Renker
2010-08-20  8:46 ` Eugen Dedu
2010-08-20 10:40 ` Gerrit Renker
2010-08-23  5:29 ` Gerrit Renker
2010-08-25 13:21 ` Eugen Dedu
2010-08-26 11:08 ` gerrit
2010-08-26 16:11 ` Eugen Dedu
2010-08-26 16:26 ` Ian McDonald
2010-08-26 20:12 ` Eugen Dedu
2010-08-27 11:45 ` Gerrit Renker
2010-08-27 13:32 ` Eugen Dedu [this message]
2010-08-30 17:33 ` Ian McDonald

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C77BE7F.1020404@pu-pm.univ-fcomte.fr \
    --to=eugen.dedu@pu-pm.univ-fcomte.fr \
    --cc=dccp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.