Hi steven,

I realised that ARP request not being resolved hence
I was capturing packet in remote VM using tcpdump.
I didnt see any packet on tcpdump. I feel packets are not reaching remote VM. I 
am getting l2 forwarding errors and virtualinterface0/0/1-tx errors

Regards,
Nitin

On 28-Sep-2017, at 22:52, Steven Luong (sluong) 
<slu...@cisco.com<mailto:slu...@cisco.com>> wrote:

Nitin,

Ping fails because the remote VM did not respond the ARP requests. As far as I 
can tell, The ARP request packets were correctly sent from VirtualEthernet0/0/0 
(11.0.0.1) to VirtualEthernet0/0/1 (11.0.0.2). But we are not getting any reply 
back based on the output of show interface. Did you forget to configure the ip 
address on the other VM? Please try ping from the other direction 11.0.0.2 -> 
11.0.0.1 and capture the vhost-user trace again. I suggest you eliminate the 
IPv6 traffic on the interface (if possible) to get a clean capture and “set 
terminal pager off” to get a better show output on VPP.

Packet 17

00:05:25:459642: vhost-user-input
     VirtualEthernet0/0/0 queue 0
[1m-- more -- (494-522/550)[0m
[2K   virtio flags:
    SINGLE_DESC Single descriptor packet
   virtio_net_hdr first_desc_len 54
     flags 0x00 gso_type 0
     num_buff 0
00:05:25:459654: ethernet-input
  ARP: 00:00:00:00:00:01 -> ff:ff:ff:ff:ff:ff
00:05:25:459665: l2-input
  l2-input: sw_if_index 1 dst ff:ff:ff:ff:ff:ff src 00:00:00:00:00:01
00:05:25:459671: l2-learn
  l2-learn: sw_if_index 1 dst ff:ff:ff:ff:ff:ff src 00:00:00:00:00:01 bd_index 1
00:05:25:459678: l2-flood
  l2-flood: sw_if_index 1 dst ff:ff:ff:ff:ff:ff src 00:00:00:00:00:01 bd_index 1
00:05:25:459682: l2-output
  l2-output: sw_if_index 2 dst ff:ff:ff:ff:ff:ff src 00:00:00:00:00:01 data 08 
06 00 01 08 00 06 04 00 01 00 00
00:05:25:459687: VirtualEthernet0/0/1-output
  VirtualEthernet0/0/1
  ARP: 00:00:00:00:00:01 -> ff:ff:ff:ff:ff:ff
  request, type ethernet/IP4, address size 6/4
  00:00:00:00:00:01/11.0.0.1 -> 00:00:00:00:00:00/11.0.0.2
00:05:25:459694: VirtualEthernet0/0/1-tx
     VirtualEthernet0/0/1 queue 0
   virtio flags:
    SINGLE_DESC Single descriptor packet
   virtio_net_hdr first_desc_len 1536
     flags 0x00 gso_type 0
     num_buff 1

[1m-- more -- (522-550/550)[0m
[2KDBGvpp# sh err
   Count                    Node                  Reason
        17                l2-output               L2 output packets
        17                l2-learn                L2 learn packets
         3                l2-learn                L2 learn hit updates
        17                l2-input                L2 input packets
        17                l2-flood                L2 flood packets
DBGvpp# sh int
              Name               Idx       State          Counter          Count
VirtualEthernet0/0/0              1         up       rx packets                 
   23
                                                     rx bytes                   
 1370
                                                     tx packets                 
   11
                                                     tx bytes                   
  866
                                                     drops                      
    8
VirtualEthernet0/0/1              2         up       rx packets                 
   11
                                                     rx bytes                   
  866
                                                     tx packets                 
   23
                                                     tx bytes                   
 1370
local0                            0        down
DBGvpp#

From: "Saxena, Nitin" <nitin.sax...@cavium.com<mailto:nitin.sax...@cavium.com>>
Date: Thursday, September 28, 2017 at 9:26 AM
To: "Steven Luong (sluong)" <slu...@cisco.com<mailto:slu...@cisco.com>>
Cc: "Narayana, Prasad Athreya" 
<prasadathreya.naray...@cavium.com<mailto:prasadathreya.naray...@cavium.com>>, 
"vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>" 
<vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>>
Subject: Re: [vpp-dev] [vhost-user][armv8][v17.07.01] VM ping not working 
properly


Hi Steven,



Please find attached tarball having valid output for show vhost.

This time I did ping 11.0.0.2 -c 10 and captured 10 packets in trace.



Thanks,

Nitin

________________________________
From: vpp-dev-boun...@lists.fd.io<mailto:vpp-dev-boun...@lists.fd.io> 
<vpp-dev-boun...@lists.fd.io<mailto:vpp-dev-boun...@lists.fd.io>> on behalf of 
Saxena, Nitin <nitin.sax...@cavium.com<mailto:nitin.sax...@cavium.com>>
Sent: Thursday, September 28, 2017 9:32 PM
To: Steven Luong (sluong)
Cc: Narayana, Prasad Athreya; vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] [vhost-user][armv8][v17.07.01] VM ping not working 
properly

Hi steven,

I did IPv4 ping. Some ICMPv6 router solicit messages were captured but those 
were not part of IPv4 ping which I did.

I will send show vhost output soon.

Regards,
Nitin

On 28-Sep-2017, at 19:30, Steven Luong (sluong) 
<slu...@cisco.com<mailto:slu...@cisco.com>> wrote:
Sexena,

Before you ping, type “show vhost” to make sure the interfaces have memory 
region. You typed “show vhost” prior to the interface is ready. So, it does not 
have useful information. Would you collect “show vhost” when the interface is 
ready?

Also, you send ipv6 pings. Would you please also try ipv4 pings. I got it 
running and pings went through on ThunderX last week with ipv4. I’ll try ipv6 
later today to see if the problem is specific to ipv6.

Steven

From: "Saxena, Nitin" <nitin.sax...@cavium.com<mailto:nitin.sax...@cavium.com>>
Date: Thursday, September 28, 2017 at 1:23 AM
To: "vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>" 
<vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>>, "Steven Luong (sluong)" 
<slu...@cisco.com<mailto:slu...@cisco.com>>
Cc: "Narayana, Prasad Athreya" 
<prasadathreya.naray...@cavium.com<mailto:prasadathreya.naray...@cavium.com>>
Subject: Re: [vhost-user][armv8][v17.07.01] VM ping not working properly




Hi All,



I am running vhost-user on aarch64 SoC using vpp v17.07.01. I am running 4.12.9 
kernel (ubuntu-16.04) both on host and VM. I am able to launch VM's 
successfully but my ping between two VM's does not work. In show error output I 
can see L2 forwarding errors in VPP. Attached tarball containing logs with 
"debug vhost-user on" and "show trace"



I also tried adding following in my startup script.


vhost-user {
  coalesce-frames 0
}

Any pointer will be helpful.

Thanks,
Nitin
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to