public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] net: BOOTP retry timeout improvements
Date: Sat, 16 Aug 2014 00:09:27 +0200	[thread overview]
Message-ID: <20140815220925.GA21440@mithrandir> (raw)
In-Reply-To: <20140815213906.GA20860@mithrandir>

On Fri, Aug 15, 2014 at 11:39:08PM +0200, Thierry Reding wrote:
> On Fri, Aug 15, 2014 at 10:02:40AM -0600, Stephen Warren wrote:
[...]
> > (and as an aside, how on earth is your DHCP server taking >500ms to respond,
> > yet still actually responding?)
> 
> It's a black box mostly but it seems to be doing the same for any of the
> other devices (tcpdump on the machine that I'm typing this from gives me
> roughly 430 ms in one session and 580 ms in another between the DISCOVER
> message and the server's reply) on the network.
> 
> This seems absurdly long, but it's consumer network equipment (I'd even
> say high-end by the price-tag) and there's not a lot I can configure to
> make it faster. I also suspect that other people may have hardware with
> similar latency.

Oh, looking further at tcpdump output it seems like the DHCP server is
sending out an ARP request for the IP address that it's about to OFFER
to make sure nobody is using it yet. Waiting for an ARP reply probably
accounts for most of the delay.

Looking at various websites this seems to be a common practice in DHCP
servers.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140816/3ac4922b/attachment.pgp>

  reply	other threads:[~2014-08-15 22:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-25 23:30 [U-Boot] [PATCH] net: BOOTP retry timeout improvements Stephen Warren
2014-08-06 15:58 ` Stephen Warren
2014-08-06 18:10   ` Tom Rini
2014-08-06 20:03 ` Joe Hershberger
2014-08-10 22:22 ` [U-Boot] " Tom Rini
2014-08-15 12:39 ` [U-Boot] [PATCH] " Thierry Reding
2014-08-15 12:49   ` Thierry Reding
2014-08-15 16:02     ` Stephen Warren
2014-08-15 21:39       ` Thierry Reding
2014-08-15 22:09         ` Thierry Reding [this message]
2014-08-18 16:04         ` Stephen Warren
2014-08-18 16:15           ` Tom Rini

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=20140815220925.GA21440@mithrandir \
    --to=thierry.reding@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox