All of lore.kernel.org
 help / color / mirror / Atom feed
* determining client and server on a connection
@ 2016-06-20 11:21 Jeff Layton
  2016-06-20 12:21 ` Sage Weil
       [not found] ` <CACJqLyYbr1CvSe3svthj9YVSNh9NgNfV-+4rfdjbLjueLtw2Wg@mail.gmail.com>
  0 siblings, 2 replies; 7+ messages in thread
From: Jeff Layton @ 2016-06-20 11:21 UTC (permalink / raw)
  To: Ceph Development

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>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-06-20 19:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.