From: James Carlson <carlsonj@workingcode.com>
To: linux-ppp@vger.kernel.org
Subject: Re: ifconfig ppp0 errors
Date: Wed, 12 Jan 2011 22:17:58 +0000 [thread overview]
Message-ID: <4D2E2896.8030709@workingcode.com> (raw)
In-Reply-To: <Pine.GSO.4.64.1101111527150.23601@sunfire13.eecs.tufts.edu>
On 01/12/11 16:51, James Cameron wrote:
> On Wed, Jan 12, 2011 at 04:23:29PM -0500, James Carlson wrote:
>> I think the most prosaic cause of this sort of problem -- given the
>> evidence so far, which (if I recall correctly) started with OK behavior
>> until large data transfers were attempted -- is simple overflow.
>
> Yes, that seems most likely. Overflow can be tested for as well though,
> by sending large amounts of data over the link, in the absence of PPP.
> Careful counting will show what is lost.
>
> Although, if the link itself has no flow control, then some loss will
> always be a possibility. 10% of packets affected by loss seems a bit
> high, but I've no idea what the original poster's design threshold is.
A possibly-helpful debug idea: while chasing a problem that ended up
being a bug inside a special optimization case in one vendor's TCP (!),
I wrote a little state machine in the kernel to detect the start of some
recognizable data (the standard "ABCD..." from chargen), and then
continue checking successive messages until a miscompare. I panicked
the system on miscompare, and was able to chase down the bug using a
post-mortem debugger.
Such debug tools are possibly less available in the original poster's
environment, but the technique (modify the driver to detect test data
and assert its goodness) might still be useful in catching the event.
Breakpointing when something doesn't happen (i.e., some bytes not
received) is sometimes hard. ;-}
--
James Carlson 42.703N 71.076W <carlsonj@workingcode.com>
next prev parent reply other threads:[~2011-01-12 22:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-11 20:30 ifconfig ppp0 errors Slawomir Skret
2011-01-11 21:04 ` James Carlson
2011-01-11 21:57 ` Slawomir Skret
2011-01-11 22:50 ` Slawomir Skret
2011-01-11 23:30 ` James Cameron
2011-01-12 2:29 ` Paul Mackerras
2011-01-12 13:21 ` James Carlson
2011-01-12 18:40 ` Slawomir Skret
2011-01-12 19:47 ` James Carlson
2011-01-12 21:05 ` James Cameron
2011-01-12 21:23 ` James Carlson
2011-01-12 21:51 ` James Cameron
2011-01-12 22:17 ` James Carlson [this message]
2011-01-14 16:58 ` Slawomir Skret
2011-01-14 17:28 ` James Carlson
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=4D2E2896.8030709@workingcode.com \
--to=carlsonj@workingcode.com \
--cc=linux-ppp@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.