From: Jeff Layton <jlayton@redhat.com>
To: Ceph Development <ceph-devel@vger.kernel.org>
Subject: determining client and server on a connection
Date: Mon, 20 Jun 2016 07:21:09 -0400 [thread overview]
Message-ID: <1466421669.4297.13.camel@redhat.com> (raw)
Hi! I'm just getting started working with ceph, and decided to tackle
fixing up the wireshark dissector which isn't working properly when you
use the kernel's fs client.
This page says that the server always sends its banner first:
http://docs.ceph.com/docs/master/dev/network-protocol/?highlight=protocol
...but that's not true with the Linux kernel client. The client and
server send their banners and addresses concurrently, and the client
often gets there first. The wireshark dissector relies on the server
sending its banner first however, so it quickly mixes the two up and
things go south from there.
Given the way the protocol works, the only way I can see to reliably
determine client and server is to read enough bytes to get to the
client's address when the server sends it, and see whether it matches
the receiver's address/port.
Is there a simpler way to do this that I'm missing?
Also, it looks like this shouldn't be a problem for the msgr2 protocol
since the initial exchange doesn't involve sending addresses. Is that
the case?
Thanks,
--
Jeff Layton <jlayton@redhat.com>
next reply other threads:[~2016-06-20 11:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-20 11:21 Jeff Layton [this message]
2016-06-20 12:21 ` determining client and server on a connection Sage Weil
2016-06-20 12:34 ` Jeff Layton
2016-06-20 12:38 ` Sage Weil
2016-06-20 12:46 ` Jeff Layton
2016-06-20 13:04 ` Sage Weil
[not found] ` <CACJqLyYbr1CvSe3svthj9YVSNh9NgNfV-+4rfdjbLjueLtw2Wg@mail.gmail.com>
2016-06-20 19:33 ` Jeff Layton
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=1466421669.4297.13.camel@redhat.com \
--to=jlayton@redhat.com \
--cc=ceph-devel@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.