All of lore.kernel.org
 help / color / mirror / Atom feed
From: bert hubert <ahu@ds9a.nl>
To: lartc@vger.kernel.org
Subject: [LARTC] formula for minimum latency of connections on a loaded link
Date: Sat, 16 Feb 2002 16:15:53 +0000	[thread overview]
Message-ID: <marc-lartc-101387618326315@msgid-missing> (raw)

I saw some discussions regarding QoS settings not influencing latency on a
loaded link, or not influencing it enough.

The following formula may help clarify things:

                     avgpacketbytes*5000
msavglatencyadded=   ------------------- 
                           bpsoflink


So for a 56k6 modem, this boils down to 132ms on average *added* to the
existing latency. Why is this so? There is a baseline latency, which is a
given. Then there is a queue of packets that are destined to go out before
yours.

In the absence of QoS control, that queue may be huge. Perfect QoS would
lead to a zero sized queue ahead of your packet. However, as packets can't
be subdivided or interrupted (generally), your modem will already be busy
sending one packet when yours gets queued for transmission.

On average, this packet will be halfway when your packet arrives. So, the
additional latency in msec is the amount of time it takes your link to
transmit half a typical packet.

The peak additional latency is twice that calculated above, so you could
also see 264ms additional delay.

This is an artifact of having packets which take a long time to transmit.
You can ameliorate the problem by setting a lower MTU to make sure your
packets go out quickly.

Regards.

bert

-- 
http://www.PowerDNS.com          Versatile DNS Software & Services
http://www.tk                              the dot in .tk
Netherlabs BV / Rent-a-Nerd.nl           - Nerd Available -
Linux Advanced Routing & Traffic Control: http://ds9a.nl/lartc
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/

             reply	other threads:[~2002-02-16 16:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-16 16:15 bert hubert [this message]
2002-02-16 19:33 ` [LARTC] formula for minimum latency of connections on a loaded Martin Devera
2002-02-16 19:45 ` [LARTC] formula for minimum latency of connections on a loaded link bert hubert

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=marc-lartc-101387618326315@msgid-missing \
    --to=ahu@ds9a.nl \
    --cc=lartc@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.