[rds-devel] Can't capture RDS packets

Andy Grover andy.grover at oracle.com
Mon Dec 6 17:32:39 PST 2010


On 12/02/2010 08:11 AM, Peter Lam wrote:
> I try to use Wireshark to capture the packets using rds-example but
> it can't capture any packets. Is it because Wireshark does not
> support RDS?
>
> $ ./rds-sample -s 127.0.0.1 -c 127.0.0.1 -v --rdma-read Client
> Sending RDMA message 0 from 127.0.0.1 to 127.0.0.1
>
> $ ./rds-sample -s 127.0.0.1 --rdma-write -v server listening on
> 127.0.0.1 Received RDS packet 0 of len 104, cmsg len 0, on port
> 20942 payload contains: -1
> J!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}

Hi Peter,

(Sorry for the delay, was out last week.)
(CCing linux-rdma in case anyone there has advice.)

Wireshark doesn't know about RDS wire protocol yet, that's true.

A larger issue is that the kernel's packet-capturing hooks are only for
netdevs. RDS over Infiniband (and RDS loopback) do not use netdevs
internally. RDS/TCP goes over a netdev so those will show up,
encapsulated inside eth/IP/TCP headers.

I understand Mellanox has a program called ibdump that outputs raw IB
packets in pcap-compatible format for their cards. Google ibdump. If 
that works, then you should be able to load it in Wireshark, and the 
last remaining obstacle would be the RDS protocol dissector module.

Regards -- Andy



More information about the rds-devel mailing list