From: ebiederm@xmission.com (Eric W. Biederman)
To: David Lang <david.lang@digitalinsight.com>
Cc: Brad Hards <bhards@bigpond.net.au>,
ebiederm@xmission.com,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: lan based kgdb
Date: 17 Nov 2002 16:48:09 -0700 [thread overview]
Message-ID: <m1of8n3ghy.fsf@frodo.biederman.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0211171359050.10200-100000@dlang.diginsite.com>
David Lang <david.lang@digitalinsight.com> writes:
> On Mon, 18 Nov 2002, Brad Hards wrote:
>
> > On Mon, 18 Nov 2002 08:32, David Lang wrote:
> > > a couple quick questions from an end-user
> > >
> > > 1. will an interface be dedicated to this use, or will it share an
> > > interface with other traffic.
> > I imagined that it would have to be shared. The world is not a PC, and you
> > can't trivially add extra connectivtity to that embedded ARM board...
>
> I can see that, it will add more complexity thought
There are only three cases I can see supporting.
- Transmit a kernel message
- Process a MAGIC-SYSRQ packet
- Remote GDB.
For transmitting a kernel message, sharing the nic is really not more
complicated. It simply preempts the normal driver transmits it's
packet and then goes away.
For processing a MAGIC-SYSRQ that is almost certainly going to be
interrupt driven just a special debug path that can safely execute
inside of the interrupt handler. For conditions that make the box
unpingable this likely will not help, but very will at that point.
For a remote GDB transmitting a packet is the same as for kernel
messages. If a packet is expected it just waits on the nic throwing
out the rest of the packets until the one it is expecting comes in.
And if it isn't particularly expecting a packet it can work just like
the MAGIC-SYSRQ case.
So while there is some small additional complexity to sharing the link
I do not think it is significant. But just because you can share the
link does not mean you have to.
> > <snip>
> > > as someone managing 60 or so remote boxes, this sounds really nice, if it
> > > can be made to work securely.
> > OK, I'm confused again. Do you want remote, or to you want link-local?
>
> I want link-local. as has been discused once you have two boxes in one
> location link-local is good enough and I always deploy boxes in HA
> pairs
I am still trying to hammer down the protocol enough to suit me.
IPv4 Link local IP addresses are not generally appropriate, because
claim-and-defend is potentially a pain. IPv6 link-local addresses
look better as everything can be configured statically. Ideally
everything can be kept simple enough that retransmissions do not need
to at all. Nor extraneous traffic processing like arp.
Configuration needed:
Interface: (This should default to none)
Local-ip address: (For ipv6 we can default to the link-local address
derived from the MAC address)
Remote-ip address: (By default this should probably be a multi-cast IP
address, derived from the local-ip address)
The important things:
- The ability to have everything hard coded, so you can find the
network console/network gdb session.
- A trivial implementation that can fire and forget packets. No
retransmit should be needed on the machine being debugged. This is
over a mostly reliable interface so that should not be a problem.
- A setup that does not loose a connection when you reboot a machine.
This rules out TCP.
- The ability to have good defaults so you can setup a cluster without
manual configuration.
The way I envision it, on the debugged machine:
- Transmit:
TTL=1 to some address (ideally this would be a multicast ip)
- Receive:
verify TTL=255 ip on the same subnet. Packet is not fragmented.
Dest IP is my local ip (Ipv6 link-local ip?)
It will be a little bit before I scratch this itch but I have a good
feeling about how to do it now.
Eric
next prev parent reply other threads:[~2002-11-17 23:41 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-15 20:29 lan based kgdb Kallol Biswas
2002-11-15 20:38 ` William Lee Irwin III
2002-11-15 22:06 ` Martin J. Bligh
2002-11-15 21:26 ` Linus Torvalds
2002-11-15 21:46 ` Andrew Morton
2002-11-15 22:05 ` Kallol Biswas
2002-11-15 22:24 ` Stelian Pop
2002-11-15 22:47 ` Dmitri
2002-11-15 22:53 ` Stelian Pop
2002-11-17 5:45 ` M. R. Brown
2002-11-15 22:51 ` Andrew Morton
2002-11-15 22:59 ` Stelian Pop
2002-11-16 16:23 ` yodaiken
2002-11-16 17:21 ` Stelian Pop
2002-11-16 21:32 ` Nicholas Miell
2002-11-16 2:35 ` Alan Cox
2002-11-16 18:18 ` Oliver Xymoron
2002-11-16 4:19 ` Linus Torvalds
2002-11-16 7:24 ` David Mosberger-Tang
2002-11-16 17:58 ` Daniel Jacobowitz
2002-11-16 23:56 ` Alan Cox
2002-11-16 18:24 ` Oliver Xymoron
2002-11-16 18:33 ` Linus Torvalds
2002-11-16 19:04 ` Oliver Xymoron
2002-11-17 9:56 ` Jan-Benedict Glaw
2002-11-17 14:50 ` Alan Cox
2002-11-18 7:27 ` Jan-Benedict Glaw
2002-11-19 8:49 ` Amit S. Kale
2002-11-16 20:42 ` Werner Almesberger
2002-11-16 23:54 ` Alan Cox
2002-11-17 3:19 ` Linus Torvalds
2002-11-17 3:30 ` Larry McVoy
2002-11-17 19:42 ` Eric W. Biederman
2002-11-17 20:10 ` Jamie Lokier
2002-11-17 20:31 ` Eric W. Biederman
2002-11-17 20:25 ` Brad Hards
2002-11-17 21:30 ` Eric W. Biederman
2002-11-17 21:32 ` David Lang
2002-11-17 21:48 ` Brad Hards
2002-11-17 22:00 ` David Lang
2002-11-17 23:48 ` Eric W. Biederman [this message]
2002-11-17 21:42 ` Brad Hards
2002-11-18 1:10 ` Werner Almesberger
2002-11-18 7:20 ` Miles Bader
-- strict thread matches above, loose matches on Subject: below --
2002-11-15 21:44 Edwin Bland
[not found] <1037490849.24843.11.camel@irongate.swansea.linux.org.uk.suse.lists.linux.kernel>
[not found] ` <20021116193008.C25741@work.bitmover.com.suse.lists.linux.kernel>
[not found] ` <m11y5k3ruw.fsf@frodo.biederman.org.suse.lists.linux.kernel>
[not found] ` <200211180725.27450.bhards@bigpond.net.au.suse.lists.linux.kernel>
[not found] ` <m1smxz3mw7.fsf@frodo.biederman.org.suse.lists.linux.kernel>
2002-11-17 23:52 ` Andi Kleen
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=m1of8n3ghy.fsf@frodo.biederman.org \
--to=ebiederm@xmission.com \
--cc=bhards@bigpond.net.au \
--cc=david.lang@digitalinsight.com \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox