Re: [vpp-dev] question about load balance

2018-01-09 Thread 薛欣颖

Hi Neale,

I know what you mean. 
What should I do to match exactly I configured?  And ignore constraints 'a 
load-balance is always a power of 2'.

Thanks,
Xyxue


 
From: Neale Ranns (nranns)
Date: 2018-01-09 20:58
To: 薛欣颖; vpp-dev
Subject: Re: [vpp-dev] question about load balance
Hi Xyxue,
 
It does match your configuration. You requested a 2:1 ratio un-equal cost load 
balancing, you got a 5:3, which VPP considers to be close enough. It’s not 
exact because the number of buckets in a load-balance is always a power of 2.
 
/neale
 
From:  on behalf of 薛欣颖 
Date: Tuesday, 9 January 2018 at 12:26
To: vpp-dev 
Subject: [vpp-dev] question about load balance
 
 
Hi guys,

I'm testing routing load balance. There is a question : When I configured 1:2 , 
the actual effect 3:5. My configuration and more info is shown below:

configuration:
  ip route add 4.1.1.1/24 via ip4-address 1.1.1.2 interface host-eth0 weight 1
  ip route add 4.1.1.1/24 via ip4-address 2.1.1.2 interface host-eth4 weight 2

The actual effect:
4.1.1.0/24
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:22 buckets:8 uRPF:29 to:[0:0]]
[0] [@5]: ipv4 via 2.1.1.2 host-eth4: 000c296db08c2c534a0393540800
[1] [@5]: ipv4 via 2.1.1.2 host-eth4: 000c296db08c2c534a0393540800
[2] [@5]: ipv4 via 2.1.1.2 host-eth4: 000c296db08c2c534a0393540800
[3] [@5]: ipv4 via 2.1.1.2 host-eth4: 000c296db08c2c534a0393540800  
 
[4] [@5]: ipv4 via 2.1.1.2 host-eth4: 000c296db08c2c534a0393540800
[5] [@5]: ipv4 via 1.1.1.2 host-eth0: 000c296db078fc4dd4dad8af0800
[6] [@5]: ipv4 via 1.1.1.2 host-eth0: 000c296db078fc4dd4dad8af0800
[7] [@5]: ipv4 via 1.1.1.2 host-eth0: 000c296db078fc4dd4dad8af0800

How can I make  the actual effect the  same as my configuration?

Thanks,
Xyxue


___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] [nsh_sfc-dev] Stepping down as NSH_SFC PTL

2018-01-09 Thread Ni, Hongjun
Thank you all for voting. Really appreciated!

From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of Keith Burns
Sent: Wednesday, January 10, 2018 8:27 AM
To: Zhou, Danny 
Cc: t...@lists.fd.io; nsh_sfc-...@lists.fd.io; a...@yunify.org; 
vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] [nsh_sfc-dev] Stepping down as NSH_SFC PTL

+1 Hongjun!

On Jan 4, 2018 7:15 PM, "Zhou, Danny" 
> wrote:
+1 for Hongjun

From: a...@yunify.org 
[mailto:a...@yunify.org]
Sent: Friday, January 5, 2018 9:06 AM
To: Zhou, Danny >; 
t...@lists.fd.io; 
nsh_sfc-...@lists.fd.io
Cc: vpp-dev@lists.fd.io
Subject: Re: [nsh_sfc-dev] Stepping down as NSH_SFC PTL

+1

Thanks for all your hard work!

Ash

Ash Young
M: 408-628-7223

On Wed, Jan 3, 2018 at 8:32 PM -0600, "Zhou, Danny" 
> wrote:
Hi TSC,
I've been taking the NSH_SFC PTL role 1 year ago. It has been a pleasure, but 
also a burden as there are some personal reasons make me cannot focus on 
NSH_SFC anymore, so I am stepping down as NSH_SFC PTL with immediate effect. 
Additionally, I would like to nominate Hongjun Ni, who is the most active 
NSH_SFC maintainer in 2017, as new NSH_SFC PTL for his excellent contribution 
as below:

•  Upstreamed 42 patches totally cover Ingress Classifier, SFF, Egress 
Classifier, NSH-Proxy, NSH-aware NAT, MD-Type2, NSH over Ethernet and NSH TTL.

•  Published four NSH_SFC Releases: 17.01, 17.04, 17.07 and 17.10.

NSH_SFC maintainers,

Pls vote for Hongjun Ni by directly replying this email.

-Danny

___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] [nsh_sfc-dev] Stepping down as NSH_SFC PTL

2018-01-09 Thread Keith Burns
+1 Hongjun!

On Jan 4, 2018 7:15 PM, "Zhou, Danny"  wrote:

> +1 for Hongjun
>
>
>
> *From:* a...@yunify.org [mailto:a...@yunify.org]
> *Sent:* Friday, January 5, 2018 9:06 AM
> *To:* Zhou, Danny ; t...@lists.fd.io;
> nsh_sfc-...@lists.fd.io
> *Cc:* vpp-dev@lists.fd.io
> *Subject:* Re: [nsh_sfc-dev] Stepping down as NSH_SFC PTL
>
>
>
> +1
>
>
>
> Thanks for all your hard work!
>
>
>
> Ash
>
>
>
> Ash Young
>
> M: 408-628-7223 <(408)%20628-7223>
>
>
>
> On Wed, Jan 3, 2018 at 8:32 PM -0600, "Zhou, Danny" 
> wrote:
>
> Hi TSC,
>
> I've been taking the NSH_SFC PTL role 1 year ago. It has been a pleasure,
> but also a burden as there are some personal reasons make me cannot focus
> on NSH_SFC anymore, so I am stepping down as NSH_SFC PTL with immediate
> effect. Additionally, I would like to nominate Hongjun Ni, who is the
> most active NSH_SFC maintainer in 2017, as new NSH_SFC PTL for his
> excellent contribution as below:
>
> l  Upstreamed 42 patches totally cover Ingress Classifier, SFF, Egress
> Classifier, NSH-Proxy, NSH-aware NAT, MD-Type2, NSH over Ethernet and NSH
> TTL.
>
> l  Published four NSH_SFC Releases: 17.01, 17.04, 17.07 and 17.10.
>
>
>
> NSH_SFC maintainers,
>
>
>
> Pls vote for Hongjun Ni by directly replying this email.
>
>
>
> -Danny
>
>
> ___
> vpp-dev mailing list
> vpp-dev@lists.fd.io
> https://lists.fd.io/mailman/listinfo/vpp-dev
>
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] tapv2.api vs tap.api

2018-01-09 Thread Marek Gradzki -X (mgradzki - PANTHEON TECHNOLOGIES at Cisco)
Damjan,

do you know if there are plans to deprecate tap v1?

Regards,
Marek

From: Marek Gradzki -X (mgradzki - PANTHEON TECHNOLOGIES at Cisco)
Sent: 3 stycznia 2018 12:15
To: vpp-dev@lists.fd.io
Subject: tapv2.api vs tap.api

Hi,

I noticed vpp 18.01 introduces new tap implementation based on vhost-net.
Was it meant as tap v1 replacement?
If so, when do you plan to deprecate the old version?

Regards,
Marek
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] packet capture

2018-01-09 Thread Ed Warnicke
This may help:

https://docs.fd.io/vpp/17.10/clicmd_src_plugins_dpdk_device.html#clicmd_pcap_tx_trace

Ed

On Tue, Jan 9, 2018 at 9:49 AM Mohsin Kazmi (sykazmi) 
wrote:

> Please find the response inline:
>
>
> --
> *From:* Holoo Gulakh 
> *Sent:* Tuesday, January 9, 2018 12:22 PM
> *To:* Mohsin Kazmi (sykazmi); vpp-dev@lists.fd.io
> *Subject:* Re: [vpp-dev] packet capture
>
> there are labels like dpdk-input, ip4-input-no-checksum,
> ip4-icmp-echo-request and so on.
> As you know wireshark shows a single entry containing all information
> about a packet OR in other words wireshark captures packet at the physical
> layer.
>
>
> =
> Q1: Which of these labels in VPP act like wireshark??
> [mohsin] dpdk-input, af-packet-input etc. Input graph nodes which receive
> frames, act like wireshark.
>
> Q2: How to filter packets base on that label?? I want just one entry per
> packet containing all packet's info
> [mohsin] you can just add single label which you know interested packet
> should come from.
>
> i.e. trace add af-packet-input 10
>
> It will start tracing from af-packet-input and will report all the
> subsequent graph nodes which will process that received frame.
>
> =
>
> On Tue, Jan 9, 2018 at 2:41 PM, Mohsin Kazmi (sykazmi) 
> wrote:
>
>> Hello Holoo,
>>
>>
>> You can find examples of traces in VPP Uses Cases.
>>
>>
>> Specific to VPP packet tracing, please check the following link:
>>
>>
>>
>> https://wiki.fd.io/view/VPP/Command-line_Interface_(CLI)_Guide#packet_tracer
>>
>>
>> Apart from that, debug CLI list down the commands:
>>
>>
>> vpp# trace ?
>>   trace addTrace given number of packets
>>   trace filter filter trace output - include
>> NODE COUNT | exclude NODE COUNT | none
>>   trace frame-queuetrace frame-queue (on|off)
>> vpp#
>>
>> I hope that it will help.
>>
>> -br
>> Mohsin
>>
>>
>> --
>> *From:* vpp-dev-boun...@lists.fd.io  on
>> behalf of Holoo Gulakh 
>> *Sent:* Tuesday, January 9, 2018 11:58 AM
>> *To:* vpp-dev@lists.fd.io
>> *Subject:* [vpp-dev] packet capture
>>
>> Hi,
>> In a typical scenario, we usually use wireshark or tcpdump to capture
>> input/output packets from interfaces and we can use filters to filter them
>> base on different criteria such as protocol.
>> My question is that : when VPP handles one interface, then this interface
>> is out of kernel's control so we can't capture those packets using
>> wireshark or tcpdump.
>>
>> ===
>> What is an alternative in VPP for wireshark or tcpdump??
>> ===
>>
>> I read somewhere that there is a command named "trace" in VPP.
>> Is it correct?? if so, how to use it?? how to filter packets?? what is
>> the representation format of packets?? how to filter them base on network
>> stack layers??
>> I want to use this tool for debugging my scenarios which uses VPP as
>> dataplane.
>>
>
> ___
> vpp-dev mailing list
> vpp-dev@lists.fd.io
> https://lists.fd.io/mailman/listinfo/vpp-dev
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] packet capture

2018-01-09 Thread Mohsin Kazmi (sykazmi)
Please find the response inline:



From: Holoo Gulakh 
Sent: Tuesday, January 9, 2018 12:22 PM
To: Mohsin Kazmi (sykazmi); vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] packet capture

there are labels like dpdk-input, ip4-input-no-checksum, ip4-icmp-echo-request 
and so on.
As you know wireshark shows a single entry containing all information about a 
packet OR in other words wireshark captures packet at the physical layer.

=
Q1: Which of these labels in VPP act like wireshark??
[mohsin] dpdk-input, af-packet-input etc. Input graph nodes which receive 
frames, act like wireshark.

Q2: How to filter packets base on that label?? I want just one entry per packet 
containing all packet's info
[mohsin] you can just add single label which you know interested packet should 
come from.

i.e. trace add af-packet-input 10

It will start tracing from af-packet-input and will report all the subsequent 
graph nodes which will process that received frame.
=

On Tue, Jan 9, 2018 at 2:41 PM, Mohsin Kazmi (sykazmi) 
> wrote:

Hello Holoo,


You can find examples of traces in VPP Uses Cases.


Specific to VPP packet tracing, please check the following link:


https://wiki.fd.io/view/VPP/Command-line_Interface_(CLI)_Guide#packet_tracer


Apart from that, debug CLI list down the commands:


vpp# trace ?
  trace addTrace given number of packets
  trace filter filter trace output - include NODE 
COUNT | exclude NODE COUNT | none
  trace frame-queuetrace frame-queue (on|off)
vpp#

I hope that it will help.

-br
Mohsin




From: vpp-dev-boun...@lists.fd.io 
> on behalf of 
Holoo Gulakh >
Sent: Tuesday, January 9, 2018 11:58 AM
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] packet capture

Hi,
In a typical scenario, we usually use wireshark or tcpdump to capture 
input/output packets from interfaces and we can use filters to filter them base 
on different criteria such as protocol.
My question is that : when VPP handles one interface, then this interface is 
out of kernel's control so we can't capture those packets using wireshark or 
tcpdump.

===
What is an alternative in VPP for wireshark or tcpdump??
===

I read somewhere that there is a command named "trace" in VPP.
Is it correct?? if so, how to use it?? how to filter packets?? what is the 
representation format of packets?? how to filter them base on network stack 
layers??
I want to use this tool for debugging my scenarios which uses VPP as dataplane.

___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] VPP packet trace

2018-01-09 Thread Fan Zhongyi
Hi Deepak,

I am now trying exactly the same as you did before. But I can only use iperf 
between namespaces without VPP.

When I connect two namespaces with VPP, somehow with iperf on the client, it 
only shows connection timed out. 

ip netns exec vpp1 iperf3 -s
server listening on port 5201

Ip netns exec vpp2 iperf3 -c 172.16.1.2
connection timed out

I followed this wiki 
https://wiki.fd.io/view/VPP/Configure_VPP_As_A_Router_Between_Namespaces 
. I 
think I miss something or make some mistakes. Could you please tell me how can 
you set up TCP connection between namespaces with VPP?

Thank you in advance!

Best,
Fan Zhongyi___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

[vpp-dev] using iperf to see vpp performance between namespaces

2018-01-09 Thread Fan Zhongyi
Hi Team,

I have followed this wiki 
https://wiki.fd.io/view/VPP/Configure_VPP_As_A_Router_Between_Namespaces 
 that 
I can ping between two namespaces.

I can also use iperf between two namespaces without VPP.

But when I use iperf to see the VPP traffic performance between two namespaces, 
I can not get anything but connection timed out on the client.

ip netns exec vpp1 iperf3 -s
server listening on port 5201

Ip netns exec vpp2 iperf3 -c 172.16.1.2
connection timed out

Is that correct that I use iperf to see the traffic performance between 
namespaces? Or is there a better way to judge the performance of VPP you would 
recommend?

Thank you in advance!
Fan Zhongyi___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

[vpp-dev] CSIT - IPsecHW test failures

2018-01-09 Thread Peter Mikus -X (pmikus - PANTHEON TECHNOLOGIES at Cisco)
Hello,


During our regular daily trending we have identified 2 issues running IPSec 
test in HW (QAT) on physical testbeds (bare metal). Issue present in VPP master 
and stable/1801 branches. Great if IPsec vpp-dev folks could evaluate and 
provide fix.





ISSUE 1)



JIRA: VPP-1121



IPSec scale test case with 1000 tunnels (interfaces) are failing with 2t2c 
configuration of VPP. VPP on DUT1 is constantly crashing. VPP does crash during 
configuration. VAT console is return always:



vat# { "retval": 0, "reply": "" }



Repeatability 100% of test executions.

Issue is not affecting 1t1c VPP configuration of same test.



Affected Test Cases.

40Ge2P1Xl710-Ethip4Ipsecscale1000Tnl-Ip4Base-Int-Aes-Gcm-Ndrpdrdisc

   tc08-64B-2t2c-ethip4ipsecscale1000tnl-ip4base-int-aes-gcm-pdrdisc

40Ge2P1Xl710-Ethip4Ipsecscale1000Tnl-Ip4Base-Int-Cbc-Sha1-Ndrpdrdisc

   
tc08-64B-2t2c-ethip4ipsecscale1000tnl-ip4base-int-cbc-sha1-pdrdisc

40Ge2P1Xl710-Ethip4Ipsecscale1000Tnl-Ip4Base-Tnl-Aes-Gcm-Ndrpdrdisc

   tc08-64B-2t2c-ethip4ipsecscale1000tnl-ip4base-tnl-aes-gcm-pdrdisc

40Ge2P1Xl710-Ethip4Ipsecscale1000Tnl-Ip4Base-Tnl-Cbc-Sha1-Ndrpdrdisc

   
tc08-64B-2t2c-ethip4ipsecscale1000tnl-ip4base-tnl-cbc-sha1-pdrdisc



Please find full VAT history with VPP startup.conf in JIRA.





ISSUE2)



JIRA: VPP-1122



All IPSec test cases with LISP are failing 100% time with error: ip4 lenght > 
l2 length on ip4-input



40Ge2P1Xl710-Ethip4Ipsectptlispgpe-Ip4Base-Cbc-Sha1-Ndrpdrdisc



Please find full VAT history with VPP startup.conf in JIRA.



Could you please take a look?



Thank you.



Peter Mikus

Engineer – Software

Cisco Systems Limited


___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] question about load balance

2018-01-09 Thread Neale Ranns (nranns)
Hi Xyxue,

It does match your configuration. You requested a 2:1 ratio un-equal cost load 
balancing, you got a 5:3, which VPP considers to be close enough. It’s not 
exact because the number of buckets in a load-balance is always a power of 2.

/neale

From:  on behalf of 薛欣颖 
Date: Tuesday, 9 January 2018 at 12:26
To: vpp-dev 
Subject: [vpp-dev] question about load balance


Hi guys,

I'm testing routing load balance. There is a question : When I configured 1:2 , 
the actual effect 3:5. My configuration and more info is shown below:

configuration:
  ip route add 4.1.1.1/24 via ip4-address 1.1.1.2 interface host-eth0 weight 1
  ip route add 4.1.1.1/24 via ip4-address 2.1.1.2 interface host-eth4 weight 2

The actual effect:
4.1.1.0/24
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:22 buckets:8 uRPF:29 to:[0:0]]
[0] [@5]: ipv4 via 2.1.1.2 host-eth4: 000c296db08c2c534a0393540800
[1] [@5]: ipv4 via 2.1.1.2 host-eth4: 000c296db08c2c534a0393540800
[2] [@5]: ipv4 via 2.1.1.2 host-eth4: 000c296db08c2c534a0393540800
[3] [@5]: ipv4 via 2.1.1.2 host-eth4: 000c296db08c2c534a0393540800
[4] [@5]: ipv4 via 2.1.1.2 host-eth4: 000c296db08c2c534a0393540800
[5] [@5]: ipv4 via 1.1.1.2 host-eth0: 000c296db078fc4dd4dad8af0800
[6] [@5]: ipv4 via 1.1.1.2 host-eth0: 000c296db078fc4dd4dad8af0800
[7] [@5]: ipv4 via 1.1.1.2 host-eth0: 000c296db078fc4dd4dad8af0800

How can I make  the actual effect the  same as my configuration?

Thanks,
Xyxue

___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

[vpp-dev] question about load balance

2018-01-09 Thread 薛欣颖

Hi guys,

I'm testing routing load balance. There is a question : When I configured 1:2 , 
the actual effect 3:5. My configuration and more info is shown below:

configuration:
  ip route add 4.1.1.1/24 via ip4-address 1.1.1.2 interface host-eth0 weight 1
  ip route add 4.1.1.1/24 via ip4-address 2.1.1.2 interface host-eth4 weight 2

The actual effect:
4.1.1.0/24
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:22 buckets:8 uRPF:29 to:[0:0]]
[0] [@5]: ipv4 via 2.1.1.2 host-eth4: 000c296db08c2c534a0393540800
[1] [@5]: ipv4 via 2.1.1.2 host-eth4: 000c296db08c2c534a0393540800
[2] [@5]: ipv4 via 2.1.1.2 host-eth4: 000c296db08c2c534a0393540800
[3] [@5]: ipv4 via 2.1.1.2 host-eth4: 000c296db08c2c534a0393540800  
 
[4] [@5]: ipv4 via 2.1.1.2 host-eth4: 000c296db08c2c534a0393540800
[5] [@5]: ipv4 via 1.1.1.2 host-eth0: 000c296db078fc4dd4dad8af0800
[6] [@5]: ipv4 via 1.1.1.2 host-eth0: 000c296db078fc4dd4dad8af0800
[7] [@5]: ipv4 via 1.1.1.2 host-eth0: 000c296db078fc4dd4dad8af0800

How can I make  the actual effect the  same as my configuration?

Thanks,
Xyxue


___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] packet capture

2018-01-09 Thread Holoo Gulakh
there are labels like dpdk-input, ip4-input-no-checksum,
ip4-icmp-echo-request and so on.
As you know wireshark shows a single entry containing all information about
a packet OR in other words wireshark captures packet at the physical layer.

=
Q1: Which of these labels in VPP act like wireshark??
Q2: How to filter packets base on that label?? I want just one entry per
packet containing all packet's info
=

On Tue, Jan 9, 2018 at 2:41 PM, Mohsin Kazmi (sykazmi) 
wrote:

> Hello Holoo,
>
>
> You can find examples of traces in VPP Uses Cases.
>
>
> Specific to VPP packet tracing, please check the following link:
>
>
> https://wiki.fd.io/view/VPP/Command-line_Interface_(CLI)_
> Guide#packet_tracer
>
>
> Apart from that, debug CLI list down the commands:
>
>
> vpp# trace ?
>   trace addTrace given number of packets
>   trace filter filter trace output - include
> NODE COUNT | exclude NODE COUNT | none
>   trace frame-queuetrace frame-queue (on|off)
> vpp#
>
> I hope that it will help.
>
> -br
> Mohsin
>
>
> --
> *From:* vpp-dev-boun...@lists.fd.io  on
> behalf of Holoo Gulakh 
> *Sent:* Tuesday, January 9, 2018 11:58 AM
> *To:* vpp-dev@lists.fd.io
> *Subject:* [vpp-dev] packet capture
>
> Hi,
> In a typical scenario, we usually use wireshark or tcpdump to capture
> input/output packets from interfaces and we can use filters to filter them
> base on different criteria such as protocol.
> My question is that : when VPP handles one interface, then this interface
> is out of kernel's control so we can't capture those packets using
> wireshark or tcpdump.
>
> ===
> What is an alternative in VPP for wireshark or tcpdump??
> ===
>
> I read somewhere that there is a command named "trace" in VPP.
> Is it correct?? if so, how to use it?? how to filter packets?? what is the
> representation format of packets?? how to filter them base on network stack
> layers??
> I want to use this tool for debugging my scenarios which uses VPP as
> dataplane.
>
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] packet capture

2018-01-09 Thread Mohsin Kazmi (sykazmi)
Hello Holoo,


You can find examples of traces in VPP Uses Cases.


Specific to VPP packet tracing, please check the following link:


https://wiki.fd.io/view/VPP/Command-line_Interface_(CLI)_Guide#packet_tracer


Apart from that, debug CLI list down the commands:


vpp# trace ?
  trace addTrace given number of packets
  trace filter filter trace output - include NODE 
COUNT | exclude NODE COUNT | none
  trace frame-queuetrace frame-queue (on|off)
vpp#

I hope that it will help.

-br
Mohsin




From: vpp-dev-boun...@lists.fd.io  on behalf of 
Holoo Gulakh 
Sent: Tuesday, January 9, 2018 11:58 AM
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] packet capture

Hi,
In a typical scenario, we usually use wireshark or tcpdump to capture 
input/output packets from interfaces and we can use filters to filter them base 
on different criteria such as protocol.
My question is that : when VPP handles one interface, then this interface is 
out of kernel's control so we can't capture those packets using wireshark or 
tcpdump.

===
What is an alternative in VPP for wireshark or tcpdump??
===

I read somewhere that there is a command named "trace" in VPP.
Is it correct?? if so, how to use it?? how to filter packets?? what is the 
representation format of packets?? how to filter them base on network stack 
layers??
I want to use this tool for debugging my scenarios which uses VPP as dataplane.
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

[vpp-dev] packet capture

2018-01-09 Thread Holoo Gulakh
Hi,
In a typical scenario, we usually use wireshark or tcpdump to capture
input/output packets from interfaces and we can use filters to filter them
base on different criteria such as protocol.
My question is that : when VPP handles one interface, then this interface
is out of kernel's control so we can't capture those packets using
wireshark or tcpdump.

===
What is an alternative in VPP for wireshark or tcpdump??
===

I read somewhere that there is a command named "trace" in VPP.
Is it correct?? if so, how to use it?? how to filter packets?? what is the
representation format of packets?? how to filter them base on network stack
layers??
I want to use this tool for debugging my scenarios which uses VPP as
dataplane.
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] problem in enabling nat44 and nat64 simultaneously

2018-01-09 Thread Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES at Cisco)
Hi,

NAT plugin currently doesn’t support same output interface for NAT44 and NAT64.

Matus


From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of Juan Salmon
Sent: Tuesday, January 9, 2018 9:07 AM
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] problem in enabling nat44 and nat64 simultaneously

Hi,
For testing nat64 and nat44 with following configuration, I have problem in 
output traffic of nat44. The output traffic goes to nat64-out2in node.
I checked the graph path, how can fix this problem? Anyway is it common to have 
nat44 and nat64 in one interface at the same time?



set interface ip address GigabitEthernet0/4/0 
11.11.11.100/24
set int nat44 in GigabitEthernet0/4/0
set int nat44 out GigabitEthernet0/5/0
nat44 add address 192.168.40.20 - 192.168.40.30
set int state GigabitEthernet0/4/0 up
set int state GigabitEthernet0/5/0 up

set int ip address GigabitEthernet0/4/0 2002::2/64
set int ip address GigabitEthernet0/5/0 192.168.5.2/24
ip route add ::/0 via 2002::1
set int nat64 in GigabitEthernet0/4/0
set int nat64 out GigabitEthernet0/5/0
nat64 add prefix 1:2:3::/96
nat64 add pool address 192.168.50.1 - 192.168.50.19


Best Regards,
Juan Salmon.
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

[vpp-dev] problem in enabling nat44 and nat64 simultaneously

2018-01-09 Thread Juan Salmon
Hi,

For testing nat64 and nat44 with following configuration, I have problem in
output traffic of nat44. The output traffic goes to nat64-out2in node.
I checked the graph path, how can fix this problem? Anyway is it common to
have nat44 and nat64 in one interface at the same time?



set interface ip address GigabitEthernet0/4/0 11.11.11.100/24
set int nat44 in GigabitEthernet0/4/0
set int nat44 out GigabitEthernet0/5/0
nat44 add address 192.168.40.20 - 192.168.40.30
set int state GigabitEthernet0/4/0 up
set int state GigabitEthernet0/5/0 up

set int ip address GigabitEthernet0/4/0 2002::2/64
set int ip address GigabitEthernet0/5/0 192.168.5.2/24
ip route add ::/0 via 2002::1
set int nat64 in GigabitEthernet0/4/0
set int nat64 out GigabitEthernet0/5/0
nat64 add prefix 1:2:3::/96
nat64 add pool address 192.168.50.1 - 192.168.50.19



Best Regards,
Juan Salmon.
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev