All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Layton <jlayton@redhat.com>
To: Haomai Wang <haomai@xsky.com>
Cc: Ceph Development <ceph-devel@vger.kernel.org>
Subject: Re: determining client and server on a connection
Date: Mon, 20 Jun 2016 15:33:24 -0400	[thread overview]
Message-ID: <1466451204.21451.4.camel@redhat.com> (raw)
In-Reply-To: <CACJqLyYbr1CvSe3svthj9YVSNh9NgNfV-+4rfdjbLjueLtw2Wg@mail.gmail.com>

On Tue, 2016-06-21 at 00:26 +0800, Haomai Wang wrote:
> 
> 
> On Mon, Jun 20, 2016 at 7:21 PM, Jeff Layton <jlayton@redhat.com> wrote:
> > 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.
> Hmm, actually I also modify this behavior in async msgr(https://github.com/ceph/ceph/pull/9802 last commit).
> Because I found there is no real logic difference in ordering. 
>  


Yeah, sending them concurrently does seem like the right thing to do.
There's no reason to serialize them at all, AFAICT. The first draft of
the patch is here:

    https://code.wireshark.org/review/#/c/16043/1

It seems to work for me when sniffing both the kernel and FUSE mounts
now.

The patch is not terribly pretty, but I think we'll have more work to
do in the dissector once msgr2 starts getting closer to being
finalized.

-- 
Jeff Layton <jlayton@redhat.com>

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2016-06-20 19:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-20 11:21 determining client and server on a connection Jeff Layton
2016-06-20 12:21 ` 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 [this message]

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=1466451204.21451.4.camel@redhat.com \
    --to=jlayton@redhat.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=haomai@xsky.com \
    /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.