Hi Guys,

I am trying to use ovs-tcpdump in my project. Everything working great exception the --direction option.

Following are the two problem i noticed.

1. with --direction= out    - Both the direction packets are getting captured. Both echo request and echo reply.  I would expect only one direction.  Please see the tcpdump dump log below. I found a problem and solution for it. in this case both select_dst_port and select_src_port are being set. But i would expected only one to be set based on the direction.

==========================================

root@cep1:/usr/local/var/run/openvswitch# ovs-vsctl list mirror
_uuid               : ddceeaae-b886-43a8-a878-72e91cb85752
external_ids        : {}
name                : m_local-hw
output_port         : e8032c14-b628-4020-bfed-7f21ec635a3b
output_vlan         : []
select_all          : false
select_dst_port     : [8e3aa9ba-55e0-47ee-a043-32c83c0e70f1]
select_src_port     : [8e3aa9ba-55e0-47ee-a043-32c83c0e70f1]
select_vlan         : []
snaplen             : []
statistics          : {tx_bytes=12966, tx_packets=103}
root@cep1:/usr/local/var/run/openvswitch#

===============================

root@cep1:/usr/local/var/run/openvswitch# /usr/bin/python3 /usr/bin/ovs-tcpdump -i local-hw --direction=*out*
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on milocal-hw, link-type EN10MB (Ethernet), capture size 262144 bytes
04:40:36.268548 LLDP, length 103: openflow:25501357089722490
04:40:36.303271 IP6 :: > ff02::1:ffaf:dc5a: ICMP6, neighbor solicitation, who has fe80::d80b:78ff:feaf:dc5a, length 32 04:40:36.888246 IP ip-172-16-16-170.ec2.internal > ip-172-16-16-27.ec2.internal: ICMP echo request, id 1927, seq 460, length 64 04:40:36.889004 IP ip-172-16-16-27.ec2.internal > ip-172-16-16-170.ec2.internal: ICMP echo reply, id 1927, seq 460, length 64 04:40:37.311317 IP6 fe80::d80b:78ff:feaf:dc5a > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28 04:40:37.311330 IP6 fe80::d80b:78ff:feaf:dc5a > ip6-allrouters: ICMP6, router solicitation, length 16 04:40:37.855279 IP6 fe80::d80b:78ff:feaf:dc5a > ff02::16: HBH ICMP6, multicast listener report v2, 1 group record(s), length 28 04:40:37.889461 IP ip-172-16-16-170.ec2.internal > ip-172-16-16-27.ec2.internal: ICMP echo request, id 1927, seq 461, length 64 04:40:37.890400 IP ip-172-16-16-27.ec2.internal > ip-172-16-16-170.ec2.internal: ICMP echo reply, id 1927, seq 461, length 64
04:40:38.304665 LLDP, length 110: openflow:25501357089722490
04:40:38.304749 LLDP, length 103: openflow:25501357089722490
04:40:38.890917 IP ip-172-16-16-170.ec2.internal > ip-172-16-16-27.ec2.internal: ICMP echo request, id 1927, seq 462, length 64 04:40:38.891637 IP ip-172-16-16-27.ec2.internal > ip-172-16-16-170.ec2.internal: ICMP echo reply, id 1927, seq 462, length 64
13 packets captured
13 packets received by filter
0 packets dropped by kernel
root@cep1:/usr/local/var/run/openvswitch#
===============================

2. Second problem has more problem. I don't see any traffic being captured even though all configurations looks okay.  Please see the below logs. It says 0 captured and 75 packets received.

==================================================

root@cep1:/usr/local/var/run/openvswitch# ovs-vsctl list mirror
_uuid               : 43efcee8-f5ee-4acb-be30-521387fdbc32
external_ids        : {}
name                : m_local-hw
output_port         : ae824854-2262-4889-9fd2-d7e5657fd9b6
output_vlan         : []
select_all          : false
select_dst_port     : [8e3aa9ba-55e0-47ee-a043-32c83c0e70f1]
select_src_port     : [8e3aa9ba-55e0-47ee-a043-32c83c0e70f1]
select_vlan         : []
snaplen             : []
statistics          : {}
root@cep1:/usr/local/var/run/openvswitch#

==================================================

root@cep1:/usr/local/var/run/openvswitch# /usr/bin/python3 /usr/bin/ovs-tcpdump -i local-hw --direction=*in *
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on milocal-hw, link-type EN10MB (Ethernet), capture size 262144 bytes

*0 packets captured
75 packets received by filter*
0 packets dropped by kernel
root@cep1:/usr/local/var/run/openvswitch#
===================================================


Could you guys please take your time and help me fix the problem.  Thanks for your help.


Thanks,

Pushpadant



_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to