Please check error counters in VPP sh errors
Please trace the packet using tcpdump on the server side too, if packets are 
being dropped in Linux.

-br
Mohsin
From: <vpp-dev@lists.fd.io> on behalf of "long...@gmail.com" <long...@gmail.com>
Date: Thursday, April 7, 2022 at 3:08 PM
To: "vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] Fastest way to connect application in user space to VPP 
#vpp


[Edited Message Follows]
On Thu, Apr 7, 2022 at 06:44 PM, Mohsin Kazmi wrote:

Please use tcpdump to trace on Linux side to see what is happening. Please also 
check for error counters on Linux side.


Hi Mohsin,

After dump, I see that on tap interface, it can receive ping message from 
192.168.56.1 so the data way 192.168.56.1 -> NIC-> virtio-> tap is OK.
But server 192.168.56.1 can not receive any message from tap.
In tcpdump at tap interface, tap ask who is 192.168.56.1 and below is vpp show 
trace when I ping from tap to 192.168.56.1, I see that 0a:00:27:00:00:14 is mac 
address of 192.168.56.1 is in the trace but message can not go to 192.168.56.1
Packet 3

00:09:45:753528: virtio-input
  virtio: hw_if_index 2 next-index 4 vring 0 len 42
    hdr: flags 0x00 gso_type 0x00 hdr_len 0 gso_size 0 csum_start 0 csum_offset 
0 num_buffers 1
00:09:45:753533: ethernet-input
  ARP: 02:fe:87:f0:2a:4a -> 0a:00:27:00:00:14
00:09:45:753535: l2-input
  l2-input: sw_if_index 2 dst 0a:00:27:00:00:14 src 02:fe:87:f0:2a:4a 
[l2-output ]
00:09:45:753539: l2-output
  l2-output: sw_if_index 1 dst 0a:00:27:00:00:14 src 02:fe:87:f0:2a:4a data 08 
06 00 01 08 00 06 04 00 01 02 fe
00:09:45:753541: virtio-0/0/8/0-output
  virtio-0/0/8/0
  ARP: 02:fe:87:f0:2a:4a -> 0a:00:27:00:00:14
  request, type ethernet/IP4, address size 6/4
  02:fe:87:f0:2a:4a/192.168.56.101 -> 00:00:00:00:00:00/192.168.56.1
00:09:45:753543: virtio-0/0/8/0-tx
    buffer 0x94e56: current data 0, length 42, buffer-pool 0, ref-count 1, 
totlen-nifb 0, trace handle 0x2000002
                    l2-hdr-offset 0 l3-hdr-offset 14
  hdr-sz 0 l2-hdr-offset 0 l3-hdr-offset 14 l4-hdr-offset 0 l4-hdr-sz 0
  ARP: 02:fe:87:f0:2a:4a -> 0a:00:27:00:00:14
  request, type ethernet/IP4, address size 6/4
  02:fe:87:f0:2a:4a/192.168.56.101 -> 00:00:00:00:00:00/192.168.56.1

Packet 4

00:09:46:777288: virtio-input
  virtio: hw_if_index 2 next-index 4 vring 0 len 42
    hdr: flags 0x00 gso_type 0x00 hdr_len 0 gso_size 0 csum_start 0 csum_offset 
0 num_buffers 1
00:09:46:777293: ethernet-input
  ARP: 02:fe:87:f0:2a:4a -> 0a:00:27:00:00:14
00:09:46:777296: l2-input
  l2-input: sw_if_index 2 dst 0a:00:27:00:00:14 src 02:fe:87:f0:2a:4a 
[l2-output ]
00:09:46:777299: l2-output
  l2-output: sw_if_index 1 dst 0a:00:27:00:00:14 src 02:fe:87:f0:2a:4a data 08 
06 00 01 08 00 06 04 00 01 02 fe
00:09:46:777301: virtio-0/0/8/0-output
  virtio-0/0/8/0
  ARP: 02:fe:87:f0:2a:4a -> 0a:00:27:00:00:14
  request, type ethernet/IP4, address size 6/4
  02:fe:87:f0:2a:4a/192.168.56.101 -> 00:00:00:00:00:00/192.168.56.1
00:09:46:777303: virtio-0/0/8/0-tx
    buffer 0x94e7b: current data 0, length 42, buffer-pool 0, ref-count 1, 
totlen-nifb 0, trace handle 0x2000003
                    l2-hdr-offset 0 l3-hdr-offset 14
  hdr-sz 0 l2-hdr-offset 0 l3-hdr-offset 14 l4-hdr-offset 0 l4-hdr-sz 0
  ARP: 02:fe:87:f0:2a:4a -> 0a:00:27:00:00:14
  request, type ethernet/IP4, address size 6/4
  02:fe:87:f0:2a:4a/192.168.56.101 -> 00:00:00:00:00:00/192.168.56.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21226): https://lists.fd.io/g/vpp-dev/message/21226
Mute This Topic: https://lists.fd.io/mt/90135014/21656
Mute #vpp:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to