[vpp-dev] Build failure on 18.04

2018-04-08 Thread Shashi Kant Singh
Hi All

I did a fresh checkout and tried to do make build of release 18.04, but get 
following errors:

Regards
Shashi


[root@vbbubng6-shashi-8 vpp]# git branch -a
* (detached from origin/stable/1804)
  master
  remotes/origin/HEAD -> origin/master
  remotes/origin/master
  remotes/origin/stable/1606
  remotes/origin/stable/1609
  remotes/origin/stable/1701
  remotes/origin/stable/1704
  remotes/origin/stable/1707
  remotes/origin/stable/1710
  remotes/origin/stable/1801
  remotes/origin/stable/1804
  remotes/origin/stable/test

[root@vbbubng6-shashi-8 vpp]# make build
make[1]: Entering directory `/bng5/shashi-8/vpp5/vpp/build-root'
 Arch for platform 'vpp' is native 
 Finding source for dpdk 
..

make[2]: Entering directory `/bng5/shashi-8/vpp5/vpp/dpdk'
==
Building DPDK from source. Consider installing development
package by invoking 'make dpdk-install-dev' from the
top level directory
==
make config
Building IPSec-MB 0.48 library
make[3]: Entering directory `/bng5/shashi-8/vpp5/vpp/dpdk'
make[3]: warning: jobserver unavailable: using -j1.  Add `+' to parent make 
rule.
  % Total% Received % Xferd  Average Speed   TimeTime Time  Current
 Dload  Upload   Total   SpentLeft  Speed
100  9.9M  100  9.9M0 0  1130k  0  0:00:09  0:00:09 --:--:-- 2260k
  % Total% Received % Xferd  Average Speed   TimeTime Time  Current
 Dload  Upload   Total   SpentLeft  Speed
  0   3510 00 0  0  0 --:--:--  0:00:02 --:--:-- 0
100  781k  100  781k0 0   165k  0  0:00:04  0:00:04 --:--:--  376k
  % Total% Received % Xferd  Average Speed   TimeTime Time  Current
 Dload  Upload   Total   SpentLeft  Speed
  0 00 00 0  0  0 --:--:--  0:00:01 --:--:-- 0
curl: (52) Empty reply from server
make[3]: *** [/bng5/shashi-8/vpp5/vpp/dpdk/v0.48.tar.gz] Error 52
make[3]: Leaving directory `/bng5/shashi-8/vpp5/vpp/dpdk'
make[2]: *** [ebuild-build] Error 2
make[2]: Leaving directory `/bng5/shashi-8/vpp5/vpp/dpdk'




Re: [vpp-dev] VAT ACL for 18.04

2018-04-03 Thread Shashi Kant Singh
Thanks Prashant

This worked

Regards
Shashi


From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Prashant G
Sent: 04 April 2018 07:50
To: vpp-dev@lists.fd.io
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] VAT ACL for 18.04


Hi Shashi,



Can you check if you really want to load the same plugins in VPP process 
(plugin_path ./build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/) and 
VAT (plugin_path 
./build-root/install-vpp_debug-native/vpp/lib64/vpp_api_test_plugins/)?

Would not expect it to work that way.

-Prashant



-Original Message-
From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
<vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>> On Behalf Of Shashi Kant Singh
Sent: Tuesday, April 03, 2018 3:04 AM
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: [**EXTERNAL**] Re: [vpp-dev] VAT ACL for 18.04



Hi Andrew,



I was trying that in the meantime. This is what I have got:



git clone https://gerrit.fd.io/r/vpp vpp5 git checkout remotes/origin/master cd 
build-root/ make distclean cd ..

make build



[root@vbbubng6-shashi-7 vpp5]#  make  run STARTUP_CONF=../startup.conf

vlib_plugin_early_init:359: plugin path 
/bng5/shashi-7/vpp5/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins

load_one_plugin:187: Loaded plugin: acl_plugin.so (Access Control Lists)

load_one_plugin:187: Loaded plugin: avf_plugin.so (Intel Adaptive Virtual 
Function (AVF) Device Plugin)

load_one_plugin:189: Loaded plugin: cdp_plugin.so

load_one_plugin:187: Loaded plugin: dpdk_plugin.so (Data Plane Development Kit 
(DPDK))

load_one_plugin:187: Loaded plugin: flowprobe_plugin.so (Flow per Packet)

load_one_plugin:187: Loaded plugin: gbp_plugin.so (Group Based Policy)

load_one_plugin:187: Loaded plugin: gtpu_plugin.so (GTPv1-U)

load_one_plugin:187: Loaded plugin: igmp_plugin.so (IGMP messaging)

load_one_plugin:187: Loaded plugin: ila_plugin.so (Identifier-locator 
addressing for IPv6)

load_one_plugin:187: Loaded plugin: ioam_plugin.so (Inbound OAM)

load_one_plugin:117: Plugin disabled (default): ixge_plugin.so

load_one_plugin:187: Loaded plugin: kubeproxy_plugin.so (kube-proxy data plane)

load_one_plugin:187: Loaded plugin: l2e_plugin.so (L2 Emulation)

load_one_plugin:187: Loaded plugin: lacp_plugin.so (Link Aggregation Control 
Protocol)

load_one_plugin:187: Loaded plugin: lb_plugin.so (Load Balancer)

load_one_plugin:187: Loaded plugin: memif_plugin.so (Packet Memory Interface 
(experimetal))

load_one_plugin:187: Loaded plugin: nat_plugin.so (Network Address Translation)

load_one_plugin:187: Loaded plugin: pppoe_plugin.so (PPPoE)

load_one_plugin:187: Loaded plugin: srv6ad_plugin.so (Dynamic SRv6 proxy)

load_one_plugin:187: Loaded plugin: srv6am_plugin.so (Masquerading SRv6 proxy)

load_one_plugin:187: Loaded plugin: srv6as_plugin.so (Static SRv6 proxy)

load_one_plugin:187: Loaded plugin: stn_plugin.so (VPP Steals the NIC for 
Container integration)

load_one_plugin:187: Loaded plugin: tlsmbedtls_plugin.so (mbedtls based TLS 
Engine)

load_one_plugin:187: Loaded plugin: tlsopenssl_plugin.so (openssl based TLS 
Engine)

tls_init_ca_chain:600: Could not initialize TLS CA certificates

tls_openssl_init:650: failed to initialize TLS CA chain

tls_init_ca_chain:567: Could not initialize TLS CA certificates

tls_mbedtls_init:606: failed to initialize TLS CA chain

dpdk_config:1271: EAL init args: -c e -n 4 --huge-dir /run/vpp/hugepages 
--file-prefix vpp -w :00:07.0 -w :00:08.0 --master-lcore 1 --socket-mem 
1024





root@vbbubng6-shashi-7 vpp5]# 
./build-root/install-vpp_debug-native/vpp/bin/vpp_api_test  plugin_path 
./build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins

load_one_plugin:42: 
./build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/lacp_plugin.so: 
undefined symbol: bond_main

load_one_plugin:42: 
./build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/kubeproxy_plugin.so:
 undefined symbol: socket_main

load_one_plugin:42: 
./build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/gbp_plugin.so: 
undefined symbol: socket_main

load_one_plugin:42: 
./build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/acl_plugin.so: 
undefined symbol: socket_main

load_one_plugin:42: 
./build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/lb_plugin.so: 
undefined symbol: socket_main

load_one_plugin:42: 
./build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/igmp_plugin.so: 
undefined symbol: socket_main

load_one_plugin:42: 
./build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/srv6as_plugin.so: 
undefined symbol: sr_main

load_one_plugin:42: 
./build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/ixge_plugin.so: 
undefined symbol: format_vnet_buffer

load_one_plugin:42: 
./build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/gtpu_plugin.so: 
undefined symbol: l2input_main

load_one_plugin:42: 
./build-root/install-vpp_debu

Re: [vpp-dev] VAT ACL for 18.04

2018-04-03 Thread Shashi Kant Singh
: ip4_lookup_node
load_one_plugin:42: 
./build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/cdp_plugin.so: 
undefined symbol: vnet_main
load_one_plugin:42: 
./build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/dpdk_plugin.so: 
undefined symbol: socket_main
load_one_plugin:42: 
./build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/ioam_plugin.so: 
undefined symbol: _vlib_init_function_flow_report_init
load_one_plugin:42: 
./build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/srv6ad_plugin.so: 
undefined symbol: sr_main
load_one_plugin:42: 
./build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/stn_plugin.so: 
undefined symbol: socket_main
load_one_plugin:42: 
./build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/ila_plugin.so: 
undefined symbol: unformat_vnet_sw_interface
load_one_plugin:42: 
./build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/flowprobe_plugin.so:
 undefined symbol: ip4_lookup_node
vat#



-Original Message-
From: Andrew  Yourtchenko [mailto:ayour...@gmail.com] 
Sent: 03 April 2018 15:30
To: Shashi Kant Singh
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] VAT ACL for 18.04

Shashi,

yeah, this looks like some localized issue with the build.

You might issue "git clean -fdx" to get rid of extraneous stuff and then redo 
"make build", or just check out a clean repo into a new directory.

I have just checked out the fresh master on ubuntu 16.04.4 box, built it, and 
was able to run vat with all the plugins, using this command:

sudo ./build-root/install-vpp_debug-native/vpp/bin/vpp_api_test
plugin_path 
./build-root/install-vpp_debug-native/vpp/lib64/vpp_api_test_plugins/

This is from the topmost VPP repo directory of course.

If you then can reproduce the failure again, the detailed steps might be 
helpful to try to devise a way to fix it...

--a

On 4/3/18, Shashi Kant Singh <sksi...@altiostar.com> wrote:
> Hi Andrew
>
> I saw this link, similar to my problem:
>
> https://www.mail-archive.com/vpp-dev@lists.fd.io/msg02547.html
>
>
> When I try to give plugin_path, I get this error (even with a fresh 
> build)
>
> root@vbbubng6-shashi-7 vpp]#
> ./build-root/install-vpp_debug-native/vpp/bin/vpp_api_test  
> plugin_path 
> /bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/
> lib64/vpp_plugins
> load_one_plugin:42:
> /bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/kubeproxy_plugin.so:
> undefined symbol: unformat_ip46_address
> load_one_plugin:42:
> /bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/acl_plugin.so:
> undefined symbol: format_bihash_48_8
> load_one_plugin:42:
> /bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/libsixrd_plugin.so:
> undefined symbol: format_dpo_proto
> load_one_plugin:42:
> /bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/lb_plugin.so:
> undefined symbol: unformat_ip46_address
> load_one_plugin:42:
> /bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/ixge_plugin.so:
> undefined symbol: format_vnet_buffer
> load_one_plugin:42:
> /bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/gtpu_plugin.so:
> undefined symbol: l2input_main
> load_one_plugin:42:
> /bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/memif_plugin.so:
> undefined symbol: unix_main
> load_one_plugin:42:
> /bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/pppoe_plugin.so:
> undefined symbol: ip6_input_node
> load_one_plugin:42:
> /bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/l2e_plugin.so:
> undefined symbol: format_vnet_sw_if_index_name
> load_one_plugin:42:
> /bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/nat_plugin.so:
> undefined symbol: ip4_lookup_node
> load_one_plugin:42:
> /bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/dpdk_plugin.so:
> undefined symbol: unformat_vnet_hw_interface
> load_one_plugin:42:
> /bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/ioam_plugin.so:
> undefined symbol: _vlib_init_function_flow_report_init
> load_one_plugin:42:
> /bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/stn_plugin.so:
> undefined symbol: unformat_ip46_address
> load_one_plugin:42:
> /bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/ila_plugin.so:
> undefined symbol: unformat_vnet_sw_interface
> load_one_plugin:42:
> /bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/fl

Re: [vpp-dev] VAT ACL for 18.04

2018-04-03 Thread Shashi Kant Singh
Hi Andrew

I saw this link, similar to my problem:

https://www.mail-archive.com/vpp-dev@lists.fd.io/msg02547.html


When I try to give plugin_path, I get this error (even with a fresh build)

root@vbbubng6-shashi-7 vpp]# 
./build-root/install-vpp_debug-native/vpp/bin/vpp_api_test  plugin_path 
/bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins
load_one_plugin:42: 
/bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/kubeproxy_plugin.so:
 undefined symbol: unformat_ip46_address
load_one_plugin:42: 
/bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/acl_plugin.so:
 undefined symbol: format_bihash_48_8
load_one_plugin:42: 
/bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/libsixrd_plugin.so:
 undefined symbol: format_dpo_proto
load_one_plugin:42: 
/bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/lb_plugin.so:
 undefined symbol: unformat_ip46_address
load_one_plugin:42: 
/bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/ixge_plugin.so:
 undefined symbol: format_vnet_buffer
load_one_plugin:42: 
/bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/gtpu_plugin.so:
 undefined symbol: l2input_main
load_one_plugin:42: 
/bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/memif_plugin.so:
 undefined symbol: unix_main
load_one_plugin:42: 
/bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/pppoe_plugin.so:
 undefined symbol: ip6_input_node
load_one_plugin:42: 
/bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/l2e_plugin.so:
 undefined symbol: format_vnet_sw_if_index_name
load_one_plugin:42: 
/bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/nat_plugin.so:
 undefined symbol: ip4_lookup_node
load_one_plugin:42: 
/bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/dpdk_plugin.so:
 undefined symbol: unformat_vnet_hw_interface
load_one_plugin:42: 
/bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/ioam_plugin.so:
 undefined symbol: _vlib_init_function_flow_report_init
load_one_plugin:42: 
/bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/stn_plugin.so:
 undefined symbol: unformat_ip46_address
load_one_plugin:42: 
/bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/ila_plugin.so:
 undefined symbol: unformat_vnet_sw_interface
load_one_plugin:42: 
/bng5/shashi-7/vpp4_debug/vpp/build-root/install-vpp_debug-native/vpp/lib64/vpp_plugins/flowprobe_plugin.so:
 undefined symbol: ip4_lookup_node
vat#




From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Andrew 
Yourtchenko
Sent: 03 April 2018 01:16
To: vpp-dev@lists.fd.io
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] VAT ACL for 18.04

Shashi,

Probably your 1804 environment is not happy.

The commands are still there, but if you don’t see it in vat it means it can’t 
load acl plugin, so you will need to doublecheck why.

--a

On 2 Apr 2018, at 12:06, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:
Hi

I was trying to follow

https://wiki.fd.io/view/VPP/SecurityGroups#acl_interface_set_acl_list_:_set_the_list_of_inbound.2Boutbound_ACLs_for_a_given_interface

for VAT ACL commands on 18.04 but cannot these command valid anymore.

Pls help with ACL commands on 18.04

Regards
Shashi




[vpp-dev] VAT ACL for 18.04

2018-04-02 Thread Shashi Kant Singh
Hi

I was trying to follow

https://wiki.fd.io/view/VPP/SecurityGroups#acl_interface_set_acl_list_:_set_the_list_of_inbound.2Boutbound_ACLs_for_a_given_interface

for VAT ACL commands on 18.04 but cannot these command valid anymore.

Pls help with ACL commands on 18.04

Regards
Shashi



Re: [vpp-dev] UDP ECHO Server

2018-03-27 Thread Shashi Kant Singh
Hi Dave

[root@vbbubng6-shashi-8 vpp]#  
./build-root/build-vpp-native/vpp/vcl_test_server -D 5678

[root@vbbubng6-shashi-7 vpp]# ./build-root/build-vpp-native/vpp/vcl_test_client 
-D -V   192.168.180.30  5678


It does connect, but hangs on running Uni / Bi directional transfer

Also I see

vpp# show errors
   CountNode  Reason
 2  session-queue Packets transmitted
 2   udp4-input   UDP connected session
vpp#

Packet 1

00:00:15:768075: dpdk-input
  UnknownEthernet0/7/0 rx queue 0
  buffer 0x4e03: current data 14, length 88, free-list 0, clone-count 0, 
totlen-nifb 0, trace 0x0
 ext-hdr-valid
 l4-cksum-computed l4-cksum-correct l2-hdr-offset 0 
l3-hdr-offset 14
  PKT MBUF: port 0, nb_segs 1, pkt_len 102
buf_len 2176, data_len 102, ol_flags 0x0, data_off 128, phys_addr 0x22f38140
packet_type 0x0 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0
  IP4: fa:16:3e:92:72:bd -> fa:16:3e:f5:6a:3d
  UDP: 192.168.170.30 -> 192.168.180.30
tos 0x00, ttl 255, length 88, checksum 0x9c06
fragment id 0x, flags DONT_FRAGMENT
  UDP: 26071 -> 5678
length 68, checksum 0x428e
00:00:15:768109: ip4-input
  UDP: 192.168.170.30 -> 192.168.180.30
tos 0x00, ttl 255, length 88, checksum 0x9c06
fragment id 0x, flags DONT_FRAGMENT
  UDP: 26071 -> 5678
length 68, checksum 0x428e
00:00:15:768118: ip4-lookup
  fib 0 dpo-idx 7 flow hash: 0x
  UDP: 192.168.170.30 -> 192.168.180.30
tos 0x00, ttl 255, length 88, checksum 0x9c06
fragment id 0x, flags DONT_FRAGMENT
  UDP: 26071 -> 5678
length 68, checksum 0x428e
00:00:15:768126: ip4-local
UDP: 192.168.170.30 -> 192.168.180.30
  tos 0x00, ttl 255, length 88, checksum 0x9c06
  fragment id 0x, flags DONT_FRAGMENT
UDP: 26071 -> 5678
  length 68, checksum 0x428e
00:00:15:768131: ip4-udp-lookup
  UDP: src-port 26071 dst-port 5678
00:00:15:768136: udp4-input
  UDP_INPUT: connection 0, disposition 7, thread 2
00:00:15:768198: error-drop
  udp4-input: UDP connected session





From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Dave Wallace
Sent: 27 March 2018 01:23
To: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] UDP ECHO Server

Shashi,

https://gerrit.fd.io/r/#/c/11239

I haven't fully tested the UDP support yet although it seems to work.  I'm now 
adding VCL UDP tests to make test which I will publish in a day or so.

Thanks,
-daw-

On 03/26/2018 06:05 AM, Shashi Kant Singh wrote:
Thanks Dave

Anytime expected date?

Regards
Shashi


From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Dave Wallace
Sent: 23 March 2018 18:32
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

I'm in the process of adding both IPv6 and UDP support to 
socket_test.sh/sock_test_server/sock_test_client and will publish the patch 
soon.

Thanks,
-daw-
On 03/23/2018 03:18 AM, Florin Coras wrote:
Not as far as I know. As for your solution, yes, it should work.

Florin



On Mar 23, 2018, at 8:56 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

Thanks.

Another question. I see the sock_test_server.c and sock_test_client.c for TCP 
alone. Is there any app for UDP on similar lines (using vpp session apis)?
If not, then I can change socket to UDP and rest would work?

Regards
Shashi

From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Florin Coras
Sent: 23 March 2018 11:55
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

Try master.

Florin




On Mar 23, 2018, at 8:23 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

What would be the branch I can try this?

Regards
Shashi


From: Florin Coras [mailto:fcoras.li...@gmail.com]
Sent: 23 March 2018 11:52
To: Shashi Kant Singh
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

Ow, I didn’t notice you were looking for it in 18.01. We didn’t have a builtin 
udp echo app then, that’s why the tcp one has been refactored and renamed to 
“test echo server/client”.

Florin





On Mar 23, 2018, at 8:04 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

vpp# show version
vpp v18.01.1-14~g308ed5c-dirty built by root on vbbubng6-shashi-8.rma.lan at 
Tue Mar 20 11:08:34 UTC 2018
vpp# test
bier  classify  counters  dpdk  fib 
  fib-walk-process  frame-queue
heap-validate http  ip6   kube-proxyl2fib   
  l2patch   lb
lookupmfib  one   policer   proxy   

Re: [vpp-dev] #VPPForTelecomm #vppFor5G#NextGenVPP

2018-03-26 Thread Shashi Kant Singh
Hi Balaji

I would be interested to discuss about item b and d below. I may not have 
project going on but definitely would want to touch base on possible work

Regards
Shashi


From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Andreas 
Schultz
Sent: 26 March 2018 20:13
To: vpp-dev@lists.fd.io
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] #VPPForTelecomm #vppFor5G#NextGenVPP

Hi Balaji,

I'm currently working on UPF implementation [1] based on VPP that can be used 
for 5G and 4G PGW/SGW deployments. The corresponding project that implements 
the CP part of a SGW and PGW for that can be found at [2].

The UPF part so far has basic support for the Sx{a,b,c} reference points. N3 is 
mostly identical to that, so 5G should almost work.
PDRs, FARs and simple URRs are supported.

The PDR support is somewhat hackish as the required ACL support needs DPDK 
ACLs. It would great to have an ACL API within VPP that offers similar 
functionality as the DPDK API. Unfortunaltly, the VPP ACL plugins are not 
exposing enough functionality to be usable for PDRs.

Regards
Andreas

[1]: https://github.com/RoadRunnr/vpp/tree/feature/gtp-dp
[2]: https://github.com/travelping/ergw

> schrieb am Mo., 26. März 
2018 um 09:39 Uhr:

This post is in context of VPP usage and its value in the advancement of 
Telecom world which I have put below, Appreciate your feedback.





It is well known fact that the next big thing in telecommunication world is 5G, 
which is aiming to provide 10Gbps data rate along with support for

Massive IoT devices and various Mobile Broadband services. Having said that the 
Radio Technology and Front haul of 5G is in evolution that is driven by 3GPP 
forum.

On the topics of Back-haul bandwidth/data switching and routing, 3GPP is silent 
and  left it open for innovation thoughts.



In this context, based on the experience that I have gained by working on 
Telecommunication products as well as in VPP, I believe that VPP can play a 
greater role in Telecom back-haul data routing and forwarding.



For example following nodes, user plane data handling can be made available 
using VPP



a.   5GC UPF (5G Core Network  - User Plane Function)

b.   5G gNB – Split – CU-U( Control Unit – User Plane)

c.   4G LTE SGW and PGW nodes.

d.   eNbGW (eNodeB gateway)



In this front, I want to understand about any work being carried in these areas 
already in VPP.

If the forum is further interested I shall be happy to discuss further more 
details at technical front,  based on that we can discuss further plans on 
design, coding, deployment milestones of the same.
--
--
Dipl.-Inform. Andreas Schultz

--- enabling your networks --
Travelping GmbH Phone:  +49-391-81 90 99 0
Roentgenstr. 13 Fax:+49-391-81 90 99 299
39108 Magdeburg Email:  
i...@travelping.com
GERMANY Web:http://www.travelping.com
Company Registration: Amtsgericht StendalReg No.:   HRB 10578
Geschaeftsfuehrer: Holger Winkelmann  VAT ID No.: DE236673780
-



Re: [vpp-dev] UDP ECHO Server

2018-03-26 Thread Shashi Kant Singh
Thanks Dave

Anytime expected date?

Regards
Shashi


From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Dave Wallace
Sent: 23 March 2018 18:32
To: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] UDP ECHO Server

I'm in the process of adding both IPv6 and UDP support to 
socket_test.sh/sock_test_server/sock_test_client and will publish the patch 
soon.

Thanks,
-daw-
On 03/23/2018 03:18 AM, Florin Coras wrote:
Not as far as I know. As for your solution, yes, it should work.

Florin


On Mar 23, 2018, at 8:56 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

Thanks.

Another question. I see the sock_test_server.c and sock_test_client.c for TCP 
alone. Is there any app for UDP on similar lines (using vpp session apis)?
If not, then I can change socket to UDP and rest would work?

Regards
Shashi

From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Florin Coras
Sent: 23 March 2018 11:55
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

Try master.

Florin



On Mar 23, 2018, at 8:23 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

What would be the branch I can try this?

Regards
Shashi


From: Florin Coras [mailto:fcoras.li...@gmail.com]
Sent: 23 March 2018 11:52
To: Shashi Kant Singh
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

Ow, I didn’t notice you were looking for it in 18.01. We didn’t have a builtin 
udp echo app then, that’s why the tcp one has been refactored and renamed to 
“test echo server/client”.

Florin




On Mar 23, 2018, at 8:04 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

vpp# show version
vpp v18.01.1-14~g308ed5c-dirty built by root on vbbubng6-shashi-8.rma.lan at 
Tue Mar 20 11:08:34 UTC 2018
vpp# test
bier  classify  counters  dpdk  fib 
  fib-walk-process  frame-queue
heap-validate http  ip6   kube-proxyl2fib   
  l2patch   lb
lookupmfib  one   policer   proxy   
  session   tcp
vpp# test



I cannot find option to run “echo” under test

Regards
Shashi


From: Florin Coras [mailto:fcoras.li...@gmail.com]
Sent: 23 March 2018 11:33
To: Shashi Kant Singh
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

The API was changed some months ago to: “test echo server uri 
://ip/port

Let me know if it works.

Thanks,
Florin





On Mar 23, 2018, at 7:59 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

Hi Florin

I want to run UDP Server. So I need to the following as I understand:

vpp# test udp server uri udp://192.168.180.31/5678


Is this correct?

If so, then, it does not give “udp” when I search under test cli


Regards
Shashi

From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Florin Coras
Sent: 23 March 2018 11:27
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

Your uri asks for tcp not udp transport service.

Florin






On Mar 22, 2018, at 8:25 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

Hi

In the VPP Rel 18:01, I could run the TCP ECHO server as
vpp# test tcp server uri tcp://192.168.180.31/5678

But I could not find the udp server being shown under “cli test”

Regards
Shashi










Re: [vpp-dev] UDP ECHO Server

2018-03-26 Thread Shashi Kant Singh
Hi Florin

I did a clean build and now tcp is fine:

vpp# test echo server uri tcp://192.168.180.30/5678
vpp#

vpp# test echo clients uri tcp://192.168.180.30/5678
1 three-way handshakes in 0.00 seconds 1986.75/s
Test started at 16.002011
Test finished at 16.002225
8192 bytes (0 mbytes, 0 gbytes) in 0.00 seconds
38374862.62 bytes/second full-duplex
.3069 gbit/second full-duplex

[root@vbbubng6-shashi-7 vpp]# ./build-root/build-vpp-native/vpp/tcp_echo slave 
uri tcp://192.168.180.30/5678 use-svm-api
vl_api_connect_session_reply_t_handler:717: connected with local ip 
192.168.170.30 port 1188
client_disconnect:890: Sent disconnect
application_detach:312: Sent detach
Finished in .000832
.6299 Gbit/second
vl_client_disconnect:313: queue drain: 567


But when I run the UDP on setup I get this:

vpp# test echo server uri udp://192.168.180.30/5678

vpp# test echo clients uri udp://192.168.180.30/5678
1 three-way handshakes in 0.00 seconds 2428.46/s
Test started at 180.366836
0: echo_client_node_fn:261: session AWOL?
unexpected event(2): 0
test failed
test echo clients: failed: unexpected event(2): 0

[root@vbbubng6-shashi-7 vpp]# ./build-root/build-vpp-native/vpp/udp_echo slave 
uri udp://192.168.180.30/5678 use-svm-api
(nil): usage [master|slave]
[root@vbbubng6-shashi-7 vpp]#


What could be the issue with UDP?

Regards
Shashi



From: Florin Coras [mailto:fcoras.li...@gmail.com]
Sent: 26 March 2018 14:03
To: Shashi Kant Singh
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] UDP ECHO Server

Hi Shashi,

Please make sure you’ve rebuilt and reinstalled the debs off of master on the 
two machines where you’re running the tcp echo client/server apps. I just tried 
the two locally and they worked.

As for the udp echo app, it’s unaware of memfd segments so it does not need 
"use-svm-api".

Florin


On Mar 23, 2018, at 5:12 PM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

Also, UDP server seems to have issue:

[root@vbbubng6-shashi-2 vpp]# ./build-root/build-vpp-native/vpp/udp_echo  uri 
udp://192.168.120.30/5678 use-svm-api
(nil): usage [master|slave]
[root@vbbubng6-shashi-2 vpp]# ./build-root/build-vpp-native/vpp/udp_echo  
master uri udp://192.168.120.30/5678 use-svm-api
(nil): usage [master|slave]
[root@vbbubng6-shashi-2 vpp]#



From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Shashi Kant Singh
Sent: 23 March 2018 20:29
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

Master does come up with this, but when I run slave, then I get the following:

[root@vbbubng6-shashi-8 vpp]# ./build-root/build-vpp-native/vpp/tcp_echo slave 
uri tcp://192.168.120.30/5678 use-svm-api
msg_handler_internal:432: no handler for msg id 21
msg_handler_internal:432: no handler for msg id 21


regards
Shashi


From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Florin Coras
Sent: 23 March 2018 17:49
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

Try: ./build-root/build-vpp-native/vpp/tcp_echo uri tcp://192.168.120.30/5678 
use-svm-api

Otherwise the app defaults to using the socket api which requires that vpp be 
started with an api socket.

Florin

On Mar 23, 2018, at 1:45 PM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

Yes. This worked from cli. Thanks

If I try to run as linux standalone app then I get this error:

[root@vbbubng6-shashi-2 vpp]# ./build-root/build-vpp-native/vpp/tcp_echo  uri 
tcp://192.168.120.30/5678
clib_socket_init: connect (fd 3, '/run/vpp-api.sock'): No such file or directory
connect_to_vpp:463: socket connect failed
Couldn't connect to vpe, exiting...
[root@vbbubng6-shashi-2 vpp]# pwd

vpp# show errors
   CountNode  Reason
vpp#


Is this supported?

regards
Shashi


From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Florin Coras
Sent: 23 March 2018 14:42
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

I’ve never tested tcp with ipsec. Although I’d expect it to work, I don’t know 
for sure. What does “sh error” report? From the error you’ve encountered it 
would seem that either the syns or syn-acks are dropped. Does ping between your 
vpp instance and the server work?

Florin



On Mar 23, 2018, at 10:42 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

For the TCP sock_test_server, when I use over IPSEC then TCP-SYNC is failing. 
Are there any TCP related changes required for the same?


UnknownEthernet0/8/0  2 up
lo

Re: [vpp-dev] UDP ECHO Server

2018-03-23 Thread Shashi Kant Singh
Also, UDP server seems to have issue:

[root@vbbubng6-shashi-2 vpp]# ./build-root/build-vpp-native/vpp/udp_echo  uri 
udp://192.168.120.30/5678 use-svm-api
(nil): usage [master|slave]
[root@vbbubng6-shashi-2 vpp]# ./build-root/build-vpp-native/vpp/udp_echo  
master uri udp://192.168.120.30/5678 use-svm-api
(nil): usage [master|slave]
[root@vbbubng6-shashi-2 vpp]#



From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Shashi Kant 
Singh
Sent: 23 March 2018 20:29
To: vpp-dev@lists.fd.io
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] UDP ECHO Server

Master does come up with this, but when I run slave, then I get the following:

[root@vbbubng6-shashi-8 vpp]# ./build-root/build-vpp-native/vpp/tcp_echo slave 
uri tcp://192.168.120.30/5678 use-svm-api
msg_handler_internal:432: no handler for msg id 21
msg_handler_internal:432: no handler for msg id 21


regards
Shashi


From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Florin Coras
Sent: 23 March 2018 17:49
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

Try: ./build-root/build-vpp-native/vpp/tcp_echo uri tcp://192.168.120.30/5678 
use-svm-api

Otherwise the app defaults to using the socket api which requires that vpp be 
started with an api socket.

Florin

On Mar 23, 2018, at 1:45 PM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

Yes. This worked from cli. Thanks

If I try to run as linux standalone app then I get this error:

[root@vbbubng6-shashi-2 vpp]# ./build-root/build-vpp-native/vpp/tcp_echo  uri 
tcp://192.168.120.30/5678
clib_socket_init: connect (fd 3, '/run/vpp-api.sock'): No such file or directory
connect_to_vpp:463: socket connect failed
Couldn't connect to vpe, exiting...
[root@vbbubng6-shashi-2 vpp]# pwd

vpp# show errors
   CountNode  Reason
vpp#


Is this supported?

regards
Shashi


From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Florin Coras
Sent: 23 March 2018 14:42
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

I’ve never tested tcp with ipsec. Although I’d expect it to work, I don’t know 
for sure. What does “sh error” report? From the error you’ve encountered it 
would seem that either the syns or syn-acks are dropped. Does ping between your 
vpp instance and the server work?

Florin


On Mar 23, 2018, at 10:42 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

For the TCP sock_test_server, when I use over IPSEC then TCP-SYNC is failing. 
Are there any TCP related changes required for the same?


UnknownEthernet0/8/0  2 up
local00down
vpp#  test tcp clients uri tcp://192.168.170.30/1234
2: builtin_session_connected_callback:346: connection 0 failed!
2: tcp_timer_establish_handler:1065: establish pop: [#0][T] 
192.168.170.30:32845->192.168.170.30:1234 SYN_SENT
 flags:  timers: [RETRANSMIT SYN,ESTABLISH]
snd_una 0 snd_nxt 1 snd_una_max 1 rcv_nxt 0 rcv_las 0
snd_wnd 0 rcv_wnd 4096 snd_wl1 0 snd_wl2 3968425554
flight size 1 send space 0 rcv_wnd_av 4096
cong none cwnd 0 ssthresh 0 rtx_bytes 0 bytes_acked 0
prev_ssthresh 0 snd_congestion 3968425554 dupack 0 limited_transmit 3968425554
tsecr 0 tsecr_last_ack 0
rto 1000 rto_boff 2 srtt 0 rttvar 0 rtt_ts 0 rtt_seq 326541743
tsval_recent 0 tsval_recent_age 66344429
Timeout with only 0 sessions active...
test failed
vpp# 2: tcp_timer_establish_handler:1073: establish pop: [#2][T] 
192.168.170.30:1234->192.168.180.30:18247 SYN_RCVD
 flags:  timers: [RETRANSMIT,ESTABLISH]
snd_una 0 snd_nxt 1 snd_una_max 1 rcv_nxt 1 rcv_las 1
snd_wnd 524288 rcv_wnd 4096 snd_wl1 0 snd_wl2 3223462902
flight size 1 send space 4289 rcv_wnd_av 4096
cong none cwnd 4290 ssthresh 524288 rtx_bytes 0 bytes_acked 0
prev_ssthresh 0 snd_congestion 3223462902 dupack 0 limited_transmit 3223462902
tsecr 0 tsecr_last_ack 0
rto 32000 rto_boff 8 srtt 0 rttvar 0 rtt_ts 0 rtt_seq 0
tsval_recent 87843927 tsval_recent_age 60066



vpp#  test tcp clients uri tcp://192.168.170.30/1234
Timeout with only 0 sessions active...
test failed
vpp# 0: tcp_timer_establish_handler:1065: establish pop: [#0][T] 
192.168.180.30:20872->192.168.170.30:1234 SYN_SENT
 flags:  timers: [RETRANSMIT SYN,ESTABLISH]
snd_una 0 snd_nxt 1 snd_una_max 1 rcv_nxt 0 rcv_las 0
snd_wnd 0 rcv_wnd 4096 snd_wl1 0 snd_wl2 4169984587
flight size 1 send space 0 rcv_wnd_av 4096
cong none cwnd 0 ssthresh 0 rtx_bytes 0 bytes_acked 0
prev_ssthresh 0 snd_congestion 4169984587 dupack 0 limited_transmit 4169984587
tsecr 0 tsecr_last_ack 0
rto 6 rto_boff 9 srtt 0 rttvar 0 rtt_ts 0 rtt_seq 124982710
tsval_recent 0 tsval_recent_age 87892362
0: tcp_timer

Re: [vpp-dev] UDP ECHO Server

2018-03-23 Thread Shashi Kant Singh
Master does come up with this, but when I run slave, then I get the following:

[root@vbbubng6-shashi-8 vpp]# ./build-root/build-vpp-native/vpp/tcp_echo slave 
uri tcp://192.168.120.30/5678 use-svm-api
msg_handler_internal:432: no handler for msg id 21
msg_handler_internal:432: no handler for msg id 21


regards
Shashi


From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Florin Coras
Sent: 23 March 2018 17:49
To: vpp-dev@lists.fd.io
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] UDP ECHO Server

Try: ./build-root/build-vpp-native/vpp/tcp_echo uri tcp://192.168.120.30/5678 
use-svm-api

Otherwise the app defaults to using the socket api which requires that vpp be 
started with an api socket.

Florin


On Mar 23, 2018, at 1:45 PM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

Yes. This worked from cli. Thanks

If I try to run as linux standalone app then I get this error:

[root@vbbubng6-shashi-2 vpp]# ./build-root/build-vpp-native/vpp/tcp_echo  uri 
tcp://192.168.120.30/5678
clib_socket_init: connect (fd 3, '/run/vpp-api.sock'): No such file or directory
connect_to_vpp:463: socket connect failed
Couldn't connect to vpe, exiting...
[root@vbbubng6-shashi-2 vpp]# pwd

vpp# show errors
   CountNode  Reason
vpp#


Is this supported?

regards
Shashi


From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Florin Coras
Sent: 23 March 2018 14:42
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

I’ve never tested tcp with ipsec. Although I’d expect it to work, I don’t know 
for sure. What does “sh error” report? From the error you’ve encountered it 
would seem that either the syns or syn-acks are dropped. Does ping between your 
vpp instance and the server work?

Florin



On Mar 23, 2018, at 10:42 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

For the TCP sock_test_server, when I use over IPSEC then TCP-SYNC is failing. 
Are there any TCP related changes required for the same?


UnknownEthernet0/8/0  2 up
local00down
vpp#  test tcp clients uri tcp://192.168.170.30/1234
2: builtin_session_connected_callback:346: connection 0 failed!
2: tcp_timer_establish_handler:1065: establish pop: [#0][T] 
192.168.170.30:32845->192.168.170.30:1234 SYN_SENT
 flags:  timers: [RETRANSMIT SYN,ESTABLISH]
snd_una 0 snd_nxt 1 snd_una_max 1 rcv_nxt 0 rcv_las 0
snd_wnd 0 rcv_wnd 4096 snd_wl1 0 snd_wl2 3968425554
flight size 1 send space 0 rcv_wnd_av 4096
cong none cwnd 0 ssthresh 0 rtx_bytes 0 bytes_acked 0
prev_ssthresh 0 snd_congestion 3968425554 dupack 0 limited_transmit 3968425554
tsecr 0 tsecr_last_ack 0
rto 1000 rto_boff 2 srtt 0 rttvar 0 rtt_ts 0 rtt_seq 326541743
tsval_recent 0 tsval_recent_age 66344429
Timeout with only 0 sessions active...
test failed
vpp# 2: tcp_timer_establish_handler:1073: establish pop: [#2][T] 
192.168.170.30:1234->192.168.180.30:18247 SYN_RCVD
 flags:  timers: [RETRANSMIT,ESTABLISH]
snd_una 0 snd_nxt 1 snd_una_max 1 rcv_nxt 1 rcv_las 1
snd_wnd 524288 rcv_wnd 4096 snd_wl1 0 snd_wl2 3223462902
flight size 1 send space 4289 rcv_wnd_av 4096
cong none cwnd 4290 ssthresh 524288 rtx_bytes 0 bytes_acked 0
prev_ssthresh 0 snd_congestion 3223462902 dupack 0 limited_transmit 3223462902
tsecr 0 tsecr_last_ack 0
rto 32000 rto_boff 8 srtt 0 rttvar 0 rtt_ts 0 rtt_seq 0
tsval_recent 87843927 tsval_recent_age 60066



vpp#  test tcp clients uri tcp://192.168.170.30/1234
Timeout with only 0 sessions active...
test failed
vpp# 0: tcp_timer_establish_handler:1065: establish pop: [#0][T] 
192.168.180.30:20872->192.168.170.30:1234 SYN_SENT
 flags:  timers: [RETRANSMIT SYN,ESTABLISH]
snd_una 0 snd_nxt 1 snd_una_max 1 rcv_nxt 0 rcv_las 0
snd_wnd 0 rcv_wnd 4096 snd_wl1 0 snd_wl2 4169984587
flight size 1 send space 0 rcv_wnd_av 4096
cong none cwnd 0 ssthresh 0 rtx_bytes 0 bytes_acked 0
prev_ssthresh 0 snd_congestion 4169984587 dupack 0 limited_transmit 4169984587
tsecr 0 tsecr_last_ack 0
rto 6 rto_boff 9 srtt 0 rttvar 0 rtt_ts 0 rtt_seq 124982710
tsval_recent 0 tsval_recent_age 87892362
0: tcp_timer_establish_handler:1065: establish pop: [#0][T] 
192.168.180.30:18247->192.168.170.30:1234 SYN_SENT
 flags:  timers: [RETRANSMIT SYN,ESTABLISH]
snd_una 0 snd_nxt 1 snd_una_max 1 rcv_nxt 0 rcv_las 0
snd_wnd 0 rcv_wnd 4096 snd_wl1 0 snd_wl2 2735098422
flight size 1 send space 0 rcv_wnd_av 4096
cong none cwnd 0 ssthresh 0 rtx_bytes 0 bytes_acked 0
prev_ssthresh 0 snd_congestion 2735098422 dupack 0 limited_transmit 2735098422
tsecr 0 tsecr_last_ack 0
rto 6 rto_boff 9 srtt 0 rttvar 0 rtt_ts 0 rtt_seq 1559868875
tsval_recent 0 tsval_recent_age 87918962


regards
Shashi



From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On 

Re: [vpp-dev] UDP ECHO Server

2018-03-23 Thread Shashi Kant Singh
Yes. This worked from cli. Thanks

If I try to run as linux standalone app then I get this error:

[root@vbbubng6-shashi-2 vpp]# ./build-root/build-vpp-native/vpp/tcp_echo  uri 
tcp://192.168.120.30/5678
clib_socket_init: connect (fd 3, '/run/vpp-api.sock'): No such file or directory
connect_to_vpp:463: socket connect failed
Couldn't connect to vpe, exiting...
[root@vbbubng6-shashi-2 vpp]# pwd

vpp# show errors
   CountNode  Reason
vpp#


Is this supported?

regards
Shashi


From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Florin Coras
Sent: 23 March 2018 14:42
To: vpp-dev@lists.fd.io
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] UDP ECHO Server

I’ve never tested tcp with ipsec. Although I’d expect it to work, I don’t know 
for sure. What does “sh error” report? From the error you’ve encountered it 
would seem that either the syns or syn-acks are dropped. Does ping between your 
vpp instance and the server work?

Florin


On Mar 23, 2018, at 10:42 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

For the TCP sock_test_server, when I use over IPSEC then TCP-SYNC is failing. 
Are there any TCP related changes required for the same?


UnknownEthernet0/8/0  2 up
local00down
vpp#  test tcp clients uri tcp://192.168.170.30/1234
2: builtin_session_connected_callback:346: connection 0 failed!
2: tcp_timer_establish_handler:1065: establish pop: [#0][T] 
192.168.170.30:32845->192.168.170.30:1234 SYN_SENT
 flags:  timers: [RETRANSMIT SYN,ESTABLISH]
snd_una 0 snd_nxt 1 snd_una_max 1 rcv_nxt 0 rcv_las 0
snd_wnd 0 rcv_wnd 4096 snd_wl1 0 snd_wl2 3968425554
flight size 1 send space 0 rcv_wnd_av 4096
cong none cwnd 0 ssthresh 0 rtx_bytes 0 bytes_acked 0
prev_ssthresh 0 snd_congestion 3968425554 dupack 0 limited_transmit 3968425554
tsecr 0 tsecr_last_ack 0
rto 1000 rto_boff 2 srtt 0 rttvar 0 rtt_ts 0 rtt_seq 326541743
tsval_recent 0 tsval_recent_age 66344429
Timeout with only 0 sessions active...
test failed
vpp# 2: tcp_timer_establish_handler:1073: establish pop: [#2][T] 
192.168.170.30:1234->192.168.180.30:18247 SYN_RCVD
 flags:  timers: [RETRANSMIT,ESTABLISH]
snd_una 0 snd_nxt 1 snd_una_max 1 rcv_nxt 1 rcv_las 1
snd_wnd 524288 rcv_wnd 4096 snd_wl1 0 snd_wl2 3223462902
flight size 1 send space 4289 rcv_wnd_av 4096
cong none cwnd 4290 ssthresh 524288 rtx_bytes 0 bytes_acked 0
prev_ssthresh 0 snd_congestion 3223462902 dupack 0 limited_transmit 3223462902
tsecr 0 tsecr_last_ack 0
rto 32000 rto_boff 8 srtt 0 rttvar 0 rtt_ts 0 rtt_seq 0
tsval_recent 87843927 tsval_recent_age 60066



vpp#  test tcp clients uri tcp://192.168.170.30/1234
Timeout with only 0 sessions active...
test failed
vpp# 0: tcp_timer_establish_handler:1065: establish pop: [#0][T] 
192.168.180.30:20872->192.168.170.30:1234 SYN_SENT
 flags:  timers: [RETRANSMIT SYN,ESTABLISH]
snd_una 0 snd_nxt 1 snd_una_max 1 rcv_nxt 0 rcv_las 0
snd_wnd 0 rcv_wnd 4096 snd_wl1 0 snd_wl2 4169984587
flight size 1 send space 0 rcv_wnd_av 4096
cong none cwnd 0 ssthresh 0 rtx_bytes 0 bytes_acked 0
prev_ssthresh 0 snd_congestion 4169984587 dupack 0 limited_transmit 4169984587
tsecr 0 tsecr_last_ack 0
rto 6 rto_boff 9 srtt 0 rttvar 0 rtt_ts 0 rtt_seq 124982710
tsval_recent 0 tsval_recent_age 87892362
0: tcp_timer_establish_handler:1065: establish pop: [#0][T] 
192.168.180.30:18247->192.168.170.30:1234 SYN_SENT
 flags:  timers: [RETRANSMIT SYN,ESTABLISH]
snd_una 0 snd_nxt 1 snd_una_max 1 rcv_nxt 0 rcv_las 0
snd_wnd 0 rcv_wnd 4096 snd_wl1 0 snd_wl2 2735098422
flight size 1 send space 0 rcv_wnd_av 4096
cong none cwnd 0 ssthresh 0 rtx_bytes 0 bytes_acked 0
prev_ssthresh 0 snd_congestion 2735098422 dupack 0 limited_transmit 2735098422
tsecr 0 tsecr_last_ack 0
rto 6 rto_boff 9 srtt 0 rttvar 0 rtt_ts 0 rtt_seq 1559868875
tsval_recent 0 tsval_recent_age 87918962


regards
Shashi



From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Florin Coras
Sent: 23 March 2018 12:49
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Cc: vpp-dev
Subject: Re: [vpp-dev] UDP ECHO Server

Not as far as I know. As for your solution, yes, it should work.

Florin



On Mar 23, 2018, at 8:56 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

Thanks.

Another question. I see the sock_test_server.c and sock_test_client.c for TCP 
alone. Is there any app for UDP on similar lines (using vpp session apis)?
If not, then I can change socket to UDP and rest would work?

Regards
Shashi

From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Florin Coras
Sent: 23 March 2018 11:55
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

Try master.

Florin




On Mar 23, 2018, at 8:23 AM, Shas

Re: [vpp-dev] UDP ECHO Server

2018-03-23 Thread Shashi Kant Singh
For the TCP sock_test_server, when I use over IPSEC then TCP-SYNC is failing. 
Are there any TCP related changes required for the same?


UnknownEthernet0/8/0  2 up
local00down
vpp#  test tcp clients uri tcp://192.168.170.30/1234
2: builtin_session_connected_callback:346: connection 0 failed!
2: tcp_timer_establish_handler:1065: establish pop: [#0][T] 
192.168.170.30:32845->192.168.170.30:1234 SYN_SENT
 flags:  timers: [RETRANSMIT SYN,ESTABLISH]
snd_una 0 snd_nxt 1 snd_una_max 1 rcv_nxt 0 rcv_las 0
snd_wnd 0 rcv_wnd 4096 snd_wl1 0 snd_wl2 3968425554
flight size 1 send space 0 rcv_wnd_av 4096
cong none cwnd 0 ssthresh 0 rtx_bytes 0 bytes_acked 0
prev_ssthresh 0 snd_congestion 3968425554 dupack 0 limited_transmit 3968425554
tsecr 0 tsecr_last_ack 0
rto 1000 rto_boff 2 srtt 0 rttvar 0 rtt_ts 0 rtt_seq 326541743
tsval_recent 0 tsval_recent_age 66344429
Timeout with only 0 sessions active...
test failed
vpp# 2: tcp_timer_establish_handler:1073: establish pop: [#2][T] 
192.168.170.30:1234->192.168.180.30:18247 SYN_RCVD
 flags:  timers: [RETRANSMIT,ESTABLISH]
snd_una 0 snd_nxt 1 snd_una_max 1 rcv_nxt 1 rcv_las 1
snd_wnd 524288 rcv_wnd 4096 snd_wl1 0 snd_wl2 3223462902
flight size 1 send space 4289 rcv_wnd_av 4096
cong none cwnd 4290 ssthresh 524288 rtx_bytes 0 bytes_acked 0
prev_ssthresh 0 snd_congestion 3223462902 dupack 0 limited_transmit 3223462902
tsecr 0 tsecr_last_ack 0
rto 32000 rto_boff 8 srtt 0 rttvar 0 rtt_ts 0 rtt_seq 0
tsval_recent 87843927 tsval_recent_age 60066



vpp#  test tcp clients uri tcp://192.168.170.30/1234
Timeout with only 0 sessions active...
test failed
vpp# 0: tcp_timer_establish_handler:1065: establish pop: [#0][T] 
192.168.180.30:20872->192.168.170.30:1234 SYN_SENT
 flags:  timers: [RETRANSMIT SYN,ESTABLISH]
snd_una 0 snd_nxt 1 snd_una_max 1 rcv_nxt 0 rcv_las 0
snd_wnd 0 rcv_wnd 4096 snd_wl1 0 snd_wl2 4169984587
flight size 1 send space 0 rcv_wnd_av 4096
cong none cwnd 0 ssthresh 0 rtx_bytes 0 bytes_acked 0
prev_ssthresh 0 snd_congestion 4169984587 dupack 0 limited_transmit 4169984587
tsecr 0 tsecr_last_ack 0
rto 6 rto_boff 9 srtt 0 rttvar 0 rtt_ts 0 rtt_seq 124982710
tsval_recent 0 tsval_recent_age 87892362
0: tcp_timer_establish_handler:1065: establish pop: [#0][T] 
192.168.180.30:18247->192.168.170.30:1234 SYN_SENT
 flags:  timers: [RETRANSMIT SYN,ESTABLISH]
snd_una 0 snd_nxt 1 snd_una_max 1 rcv_nxt 0 rcv_las 0
snd_wnd 0 rcv_wnd 4096 snd_wl1 0 snd_wl2 2735098422
flight size 1 send space 0 rcv_wnd_av 4096
cong none cwnd 0 ssthresh 0 rtx_bytes 0 bytes_acked 0
prev_ssthresh 0 snd_congestion 2735098422 dupack 0 limited_transmit 2735098422
tsecr 0 tsecr_last_ack 0
rto 6 rto_boff 9 srtt 0 rttvar 0 rtt_ts 0 rtt_seq 1559868875
tsval_recent 0 tsval_recent_age 87918962


regards
Shashi



From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Florin Coras
Sent: 23 March 2018 12:49
To: vpp-dev@lists.fd.io
Cc: vpp-dev
Subject: Re: [vpp-dev] UDP ECHO Server

Not as far as I know. As for your solution, yes, it should work.

Florin


On Mar 23, 2018, at 8:56 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

Thanks.

Another question. I see the sock_test_server.c and sock_test_client.c for TCP 
alone. Is there any app for UDP on similar lines (using vpp session apis)?
If not, then I can change socket to UDP and rest would work?

Regards
Shashi

From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Florin Coras
Sent: 23 March 2018 11:55
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

Try master.

Florin



On Mar 23, 2018, at 8:23 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

What would be the branch I can try this?

Regards
Shashi


From: Florin Coras [mailto:fcoras.li...@gmail.com]
Sent: 23 March 2018 11:52
To: Shashi Kant Singh
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

Ow, I didn’t notice you were looking for it in 18.01. We didn’t have a builtin 
udp echo app then, that’s why the tcp one has been refactored and renamed to 
“test echo server/client”.

Florin




On Mar 23, 2018, at 8:04 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

vpp# show version
vpp v18.01.1-14~g308ed5c-dirty built by root on vbbubng6-shashi-8.rma.lan at 
Tue Mar 20 11:08:34 UTC 2018
vpp# test
bier  classify  counters  dpdk  fib 
  fib-walk-process  frame-queue
heap-validate http  ip6   kube-proxyl2fib   
  l2patch   lb
lookupmfib  one   policer   proxy   
  session   tcp
vpp# test



I cannot find option to run 

Re: [vpp-dev] UDP ECHO Server

2018-03-23 Thread Shashi Kant Singh
Thanks.

Another question. I see the sock_test_server.c and sock_test_client.c for TCP 
alone. Is there any app for UDP on similar lines (using vpp session apis)?
If not, then I can change socket to UDP and rest would work?

Regards
Shashi

From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Florin Coras
Sent: 23 March 2018 11:55
To: vpp-dev@lists.fd.io
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] UDP ECHO Server

Try master.

Florin


On Mar 23, 2018, at 8:23 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

What would be the branch I can try this?

Regards
Shashi


From: Florin Coras [mailto:fcoras.li...@gmail.com]
Sent: 23 March 2018 11:52
To: Shashi Kant Singh
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

Ow, I didn’t notice you were looking for it in 18.01. We didn’t have a builtin 
udp echo app then, that’s why the tcp one has been refactored and renamed to 
“test echo server/client”.

Florin



On Mar 23, 2018, at 8:04 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

vpp# show version
vpp v18.01.1-14~g308ed5c-dirty built by root on vbbubng6-shashi-8.rma.lan at 
Tue Mar 20 11:08:34 UTC 2018
vpp# test
bier  classify  counters  dpdk  fib 
  fib-walk-process  frame-queue
heap-validate http  ip6   kube-proxyl2fib   
  l2patch   lb
lookupmfib  one   policer   proxy   
  session   tcp
vpp# test



I cannot find option to run “echo” under test

Regards
Shashi


From: Florin Coras [mailto:fcoras.li...@gmail.com]
Sent: 23 March 2018 11:33
To: Shashi Kant Singh
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

The API was changed some months ago to: “test echo server uri 
://ip/port

Let me know if it works.

Thanks,
Florin




On Mar 23, 2018, at 7:59 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

Hi Florin

I want to run UDP Server. So I need to the following as I understand:

vpp# test udp server uri udp://192.168.180.31/5678


Is this correct?

If so, then, it does not give “udp” when I search under test cli


Regards
Shashi

From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Florin Coras
Sent: 23 March 2018 11:27
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

Your uri asks for tcp not udp transport service.

Florin





On Mar 22, 2018, at 8:25 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

Hi

In the VPP Rel 18:01, I could run the TCP ECHO server as
vpp# test tcp server uri tcp://192.168.180.31/5678

But I could not find the udp server being shown under “cli test”

Regards
Shashi








Re: [vpp-dev] UDP ECHO Server

2018-03-23 Thread Shashi Kant Singh
What would be the branch I can try this?

Regards
Shashi


From: Florin Coras [mailto:fcoras.li...@gmail.com]
Sent: 23 March 2018 11:52
To: Shashi Kant Singh
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] UDP ECHO Server

Ow, I didn’t notice you were looking for it in 18.01. We didn’t have a builtin 
udp echo app then, that’s why the tcp one has been refactored and renamed to 
“test echo server/client”.

Florin


On Mar 23, 2018, at 8:04 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

vpp# show version
vpp v18.01.1-14~g308ed5c-dirty built by root on vbbubng6-shashi-8.rma.lan at 
Tue Mar 20 11:08:34 UTC 2018
vpp# test
bier  classify  counters  dpdk  fib 
  fib-walk-process  frame-queue
heap-validate http  ip6   kube-proxyl2fib   
  l2patch   lb
lookupmfib  one   policer   proxy   
  session   tcp
vpp# test



I cannot find option to run “echo” under test

Regards
Shashi


From: Florin Coras [mailto:fcoras.li...@gmail.com]
Sent: 23 March 2018 11:33
To: Shashi Kant Singh
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

The API was changed some months ago to: “test echo server uri 
://ip/port

Let me know if it works.

Thanks,
Florin



On Mar 23, 2018, at 7:59 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

Hi Florin

I want to run UDP Server. So I need to the following as I understand:

vpp# test udp server uri udp://192.168.180.31/5678


Is this correct?

If so, then, it does not give “udp” when I search under test cli


Regards
Shashi

From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Florin Coras
Sent: 23 March 2018 11:27
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

Your uri asks for tcp not udp transport service.

Florin




On Mar 22, 2018, at 8:25 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

Hi

In the VPP Rel 18:01, I could run the TCP ECHO server as
vpp# test tcp server uri tcp://192.168.180.31/5678

But I could not find the udp server being shown under “cli test”

Regards
Shashi







Re: [vpp-dev] UDP ECHO Server

2018-03-23 Thread Shashi Kant Singh
vpp# show version
vpp v18.01.1-14~g308ed5c-dirty built by root on vbbubng6-shashi-8.rma.lan at 
Tue Mar 20 11:08:34 UTC 2018
vpp# test
bier  classify  counters  dpdk  fib 
  fib-walk-process  frame-queue
heap-validate http  ip6   kube-proxyl2fib   
  l2patch   lb
lookupmfib  one   policer   proxy   
  session   tcp
vpp# test



I cannot find option to run “echo” under test

Regards
Shashi


From: Florin Coras [mailto:fcoras.li...@gmail.com]
Sent: 23 March 2018 11:33
To: Shashi Kant Singh
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] UDP ECHO Server

The API was changed some months ago to: “test echo server uri 
://ip/port

Let me know if it works.

Thanks,
Florin


On Mar 23, 2018, at 7:59 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

Hi Florin

I want to run UDP Server. So I need to the following as I understand:

vpp# test udp server uri udp://192.168.180.31/5678


Is this correct?

If so, then, it does not give “udp” when I search under test cli


Regards
Shashi

From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Florin Coras
Sent: 23 March 2018 11:27
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] UDP ECHO Server

Your uri asks for tcp not udp transport service.

Florin



On Mar 22, 2018, at 8:25 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

Hi

In the VPP Rel 18:01, I could run the TCP ECHO server as
vpp# test tcp server uri tcp://192.168.180.31/5678

But I could not find the udp server being shown under “cli test”

Regards
Shashi






Re: [vpp-dev] UDP ECHO Server

2018-03-23 Thread Shashi Kant Singh
Hi Florin

I want to run UDP Server. So I need to the following as I understand:

vpp# test udp server uri udp://192.168.180.31/5678


Is this correct?

If so, then, it does not give “udp” when I search under test cli


Regards
Shashi

From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Florin Coras
Sent: 23 March 2018 11:27
To: vpp-dev@lists.fd.io
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] UDP ECHO Server

Your uri asks for tcp not udp transport service.

Florin


On Mar 22, 2018, at 8:25 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

Hi

In the VPP Rel 18:01, I could run the TCP ECHO server as
vpp# test tcp server uri tcp://192.168.180.31/5678

But I could not find the udp server being shown under “cli test”

Regards
Shashi





[vpp-dev] Error while running TCP_ECHO in standalone mode

2018-03-22 Thread Shashi Kant Singh
Hi

I could verify TCP_ECHO as the VPP CLI app but when I run as standalone linux 
app then I get this error:


[root@vbbubng6-shashi-8 vpp]# ./build-root/install-vpp-native/vpp/bin/tcp_echo 
uri tcp://192.168.180.31/5678
vl_api_application_attach_reply_t_handler:238: attach failed: Feature disabled 
by configuration
application_attach:208: timeout waiting for STATE_ATTACHED
[root@vbbubng6-shashi-8 vpp]#

I changes src/vnet.am


# Test apps


bin_PROGRAMS += tcp_echo
bin_PROGRAMS += udp_echo

regards
Shashi



[vpp-dev] UDP ECHO Server

2018-03-22 Thread Shashi Kant Singh
Hi

In the VPP Rel 18:01, I could run the TCP ECHO server as
vpp# test tcp server uri tcp://192.168.180.31/5678

But I could not find the udp server being shown under "cli test"

Regards
Shashi



[vpp-dev] Enable Debug logs

2018-03-21 Thread Shashi Kant Singh
Hi

How do I get the debug logs in the “make build”. Sometime I see this coming up 
on the CLI esp with failures

I want to see all the debug logs

Regards
Shashi



[vpp-dev] vcl_test_server/client for UDP

2018-03-17 Thread Shashi Kant Singh
Hi

I changed the vcl_test_server / client from TCP to UDP.

Question: Why does the UDP enqueued marked as error_drop?



I get the following in my setup:


how interface
  Name   Idx   State  Counter  Count
GigabitEthernet0/7/0  1 up   rx packets 
6
 rx bytes   
  488
 tx packets 
6
 tx bytes   
  472
 drops  
6
 ip4
6
GigabitEthernet0/8/0  2 up
local00down
vpp# vpp# show interface

SERVER:
[root@vbbubng6-shashi-2 vpp]# ./build-root/build-vpp-native/vpp/vcl_test_server 
5682

SERVER: Waiting for a client to connect on port 5682...
SERVER: Got a connection -- fd = 2 (0x0002)!
SERVER: Got a connection -- fd = 3 (0x0003)!
SERVER (fd 3): RX (14 bytes) - '12345'
SERVER (fd 3): TX (6 bytes) - '12345'
SERVER (fd 3): RX (14 bytes) - '12345'
SERVER (fd 3): TX (6 bytes) - '12345'

epoll_wait() timeout!


CLIENT:

Type some characters and hit 
('#H' for help): 12345

CLIENT: Received  52 ffce, fffa , ffed , fffe 1 0, 0 , 0 , 
  ,  ,
CLIENT (fd 4): TX (6 bytes) - '12345'
CLIENT (fd 4): RX (6 bytes) - '12345'

Type some characters and hit 
('#H' for help):


Packet 3

16:04:08:600447: dpdk-input
  GigabitEthernet0/7/0 rx queue 0
  buffer 0x2eef: current data 14, length 80, free-list 0, clone-count 0, 
totlen-nifb 0, trace 0x2
 l4-cksum-computed l4-cksum-correct l2-hdr-offset 0 
l3-hdr-offset 14
  PKT MBUF: port 0, nb_segs 1, pkt_len 94
buf_len 2176, data_len 94, ol_flags 0x0, data_off 128, phys_addr 0x266bbc40
packet_type 0x0 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0
  IP4: fa:16:3e:59:76:83 -> fa:16:3e:1c:60:fe
  UDP: 192.168.210.30 -> 192.168.220.30
tos 0x00, ttl 64, length 80, checksum 0xc703
fragment id 0x440b, flags DONT_FRAGMENT
  UDP: 50016 -> 5682
length 60, checksum 0xd9f8
16:04:08:600460: ip4-input
  UDP: 192.168.210.30 -> 192.168.220.30
tos 0x00, ttl 64, length 80, checksum 0xc703
fragment id 0x440b, flags DONT_FRAGMENT
  UDP: 50016 -> 5682
length 60, checksum 0xd9f8
16:04:08:600469: ip4-lookup
  fib 0 dpo-idx 6 flow hash: 0x
  UDP: 192.168.210.30 -> 192.168.220.30
tos 0x00, ttl 64, length 80, checksum 0xc703
fragment id 0x440b, flags DONT_FRAGMENT
  UDP: 50016 -> 5682
length 60, checksum 0xd9f8
16:04:08:600472: ip4-local
UDP: 192.168.210.30 -> 192.168.220.30
  tos 0x00, ttl 64, length 80, checksum 0xc703
  fragment id 0x440b, flags DONT_FRAGMENT
UDP: 50016 -> 5682
  length 60, checksum 0xd9f8
16:04:08:600475: ip4-udp-lookup
  UDP: src-port 50016 dst-port 5682
16:04:08:600477: udp4-input
  UDP_INPUT: connection 3, disposition 4, thread 2
16:04:08:600484: error-drop
  udp4-input: UDP packets enqueued





Re: [vpp-dev] Error during startup

2018-03-11 Thread Shashi Kant Singh
I did a clean, switched to branch 18:01, and ran build command. It did move 
ahead but does not work on running.

When I run the following. I get:

ON THE VPP SERVER:
-
DBGvpp# 0: application_verify_cfg:245: memfd seg: vpp's event qs IN binary api 
svm region
0: vnet_application_attach: app init: -108

DBGvpp# show interface


ON RUNNING THE TEST SERVER
---
build-tool-native/  build-vpp_debug-native/
[root@vbbubng6-shashi-2 vpp]# 
./build-root/build-vpp_debug-native/vpp/vcl_test_server 5678
vppcom_cfg_heapsize:1624: VCL<12013>: using default heapsize 268435456 
(0x1000)
vppcom_cfg_heapsize:1770: VCL<12013>: allocated VCL heap = 0x7f33a8115000, size 
268435456 (0x1000)
vppcom_cfg_read:1790: VCL<12013>: using default configuration.
vppcom_connect_to_vpp:512: VCL<12013>: app (vcl_test_server) connecting to VPP 
api (/vpe-api)...
vppcom_connect_to_vpp:528: VCL<12013>: app (vcl_test_server) is connected to 
VPP!
vppcom_app_create:2284: VCL<12013>: sending session enable
vppcom_app_create:2295: VCL<12013>: sending app attach
vl_api_application_attach_reply_t_handler:817: VCL<12013>: attach failed: 
Unsupported application config (-108)
^C
[root@vbbubng6-shashi-2 vpp]#


This works fine for my old release but gives above error for 18:01
When I try to ping, the TEST CLIENT machine from VPP SERVER and vice versa. 
This also does not work now

Regards
Shashi


From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Dave Barach
Sent: 08 March 2018 18:21
To: vpp-dev@lists.fd.io
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] Error during startup

+1. Please be careful. This is a cockpit error.

From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
<vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>> On Behalf Of Florin Coras
Sent: Thursday, March 8, 2018 1:09 AM
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Cc: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] Error during startup

Hi Shashi,

This can’t possibly be part of 17.10 and 18.01 since it was only merged this 
week on master. Probably you need to clean your repo, rebuild and reinstall 
debs.

Florin

On Mar 7, 2018, at 7:44 PM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

Hi

When I try to start vpp with release 17:10 and 18:01,. I am getting following 
TLS error

What could be the issue?

Regards
Shashi
PS: This worked fine for previous releases.

#  make run-release STARTUP_CONF=../startup.conf
vlib_plugin_early_init:356: plugin path 
/bng5/shashi-2/vpp2/vpp/build-root/install-vpp-native/sample-plugin/lib64/vpp_plugins:/bng5/shashi-2/vpp2/vpp/build-root/install-vpp-native/vpp/lib64/vpp_plugins
load_one_plugin:184: Loaded plugin: acl_plugin.so (Access Control Lists)
load_one_plugin:184: Loaded plugin: dpdk_plugin.so (Data Plane Development Kit 
(DPDK))
load_one_plugin:184: Loaded plugin: flowprobe_plugin.so (Flow per Packet)
load_one_plugin:184: Loaded plugin: gbp_plugin.so (Group Based Policy)
load_one_plugin:184: Loaded plugin: gtpu_plugin.so (GTPv1-U)
load_one_plugin:184: Loaded plugin: ila_plugin.so (Identifier-locator 
addressing for IPv6)
load_one_plugin:184: Loaded plugin: ioam_plugin.so (Inbound OAM)
load_one_plugin:114: Plugin disabled (default): ixge_plugin.so
load_one_plugin:184: Loaded plugin: kubeproxy_plugin.so (kube-proxy data plane)
load_one_plugin:184: Loaded plugin: l2e_plugin.so (L2 Emulation)
load_one_plugin:184: Loaded plugin: lb_plugin.so (Load Balancer)
load_one_plugin:184: Loaded plugin: libsixrd_plugin.so (IPv6 Rapid Deployment 
on IPv4 Infrastructure (RFC5969))
load_one_plugin:184: Loaded plugin: memif_plugin.so (Packet Memory Interface 
(experimetal))
load_one_plugin:184: Loaded plugin: nat_plugin.so (Network Address Translation)
load_one_plugin:184: Loaded plugin: pppoe_plugin.so (PPPoE)
load_one_plugin:184: Loaded plugin: sample_plugin.so (Sample of VPP Plugin)
load_one_plugin:184: Loaded plugin: srv6ad_plugin.so (Dynamic SRv6 proxy)
load_one_plugin:184: Loaded plugin: srv6am_plugin.so (Masquerading SRv6 proxy)
load_one_plugin:184: Loaded plugin: srv6as_plugin.so (Static SRv6 proxy)
load_one_plugin:184: Loaded plugin: stn_plugin.so (VPP Steals the NIC for 
Container integration)
tls_init_ca_chain:1125: Could not initialize TLS CA certificates
tls_init:1168: failed to initialize TLS CA chain
tls_init: failed to initalize TLS CA chain





Re: [vpp-dev] Error in loading sample_plugin.so

2018-03-11 Thread Shashi Kant Singh
Hi Dave

I wanted to know how to push a patch.

I am not a reviewer or committer. Still can I do?

How can I become a reviewer / committer ?

Regards
Shashi


From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Dave Barach
Sent: 13 February 2018 18:34
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] Error in loading sample_plugin.so

Dear Shashi,

Defining sample_main fixes the problem. If you feel like it, push a patch 
please.

It seems quite likely that your rebuilt plugin .so didn't end up the plugin 
directory.

Thanks... Dave




[vpp-dev] Error during startup

2018-03-07 Thread Shashi Kant Singh
Hi

When I try to start vpp with release 17:10 and 18:01,. I am getting following 
TLS error

What could be the issue?

Regards
Shashi
PS: This worked fine for previous releases.

#  make run-release STARTUP_CONF=../startup.conf
vlib_plugin_early_init:356: plugin path 
/bng5/shashi-2/vpp2/vpp/build-root/install-vpp-native/sample-plugin/lib64/vpp_plugins:/bng5/shashi-2/vpp2/vpp/build-root/install-vpp-native/vpp/lib64/vpp_plugins
load_one_plugin:184: Loaded plugin: acl_plugin.so (Access Control Lists)
load_one_plugin:184: Loaded plugin: dpdk_plugin.so (Data Plane Development Kit 
(DPDK))
load_one_plugin:184: Loaded plugin: flowprobe_plugin.so (Flow per Packet)
load_one_plugin:184: Loaded plugin: gbp_plugin.so (Group Based Policy)
load_one_plugin:184: Loaded plugin: gtpu_plugin.so (GTPv1-U)
load_one_plugin:184: Loaded plugin: ila_plugin.so (Identifier-locator 
addressing for IPv6)
load_one_plugin:184: Loaded plugin: ioam_plugin.so (Inbound OAM)
load_one_plugin:114: Plugin disabled (default): ixge_plugin.so
load_one_plugin:184: Loaded plugin: kubeproxy_plugin.so (kube-proxy data plane)
load_one_plugin:184: Loaded plugin: l2e_plugin.so (L2 Emulation)
load_one_plugin:184: Loaded plugin: lb_plugin.so (Load Balancer)
load_one_plugin:184: Loaded plugin: libsixrd_plugin.so (IPv6 Rapid Deployment 
on IPv4 Infrastructure (RFC5969))
load_one_plugin:184: Loaded plugin: memif_plugin.so (Packet Memory Interface 
(experimetal))
load_one_plugin:184: Loaded plugin: nat_plugin.so (Network Address Translation)
load_one_plugin:184: Loaded plugin: pppoe_plugin.so (PPPoE)
load_one_plugin:184: Loaded plugin: sample_plugin.so (Sample of VPP Plugin)
load_one_plugin:184: Loaded plugin: srv6ad_plugin.so (Dynamic SRv6 proxy)
load_one_plugin:184: Loaded plugin: srv6am_plugin.so (Masquerading SRv6 proxy)
load_one_plugin:184: Loaded plugin: srv6as_plugin.so (Static SRv6 proxy)
load_one_plugin:184: Loaded plugin: stn_plugin.so (VPP Steals the NIC for 
Container integration)
tls_init_ca_chain:1125: Could not initialize TLS CA certificates
tls_init:1168: failed to initialize TLS CA chain
tls_init: failed to initalize TLS CA chain



[vpp-dev] Building gtpu plugin alone

2018-02-27 Thread Shashi Kant Singh
Hi

I usually use make build / build-release to build the VPP. I just need to 
modify gtpu plugin directory. How do I build that alone?

Regards
Shashi



-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8366): https://lists.fd.io/g/vpp-dev/message/8366
View All Messages In Topic (1): https://lists.fd.io/g/vpp-dev/topic/13267067
Mute This Topic: https://lists.fd.io/mt/13267067/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] Developing application on top of VPP

2018-02-27 Thread Shashi Kant Singh
Thanks Ray

I could see that at VPP, I could receive at line rate of 10G, process and send 
out the traffic (macswap)

When I tried to use the test_server / test_client (vcl_test_client), I could 
not go beyond 3.5G rate in stream test mode. It is probably because of VCL 
sockets being used to send and receive SINGLE packets at the vcl_test_client . 
It does not do multiple packet processing like VPP does.

How would  I get near line of packet send /receive using VCL in my application ?
I see recvmmsg kind of function in VCL but it is still not implemented using 
vpp library.

Regards
Shashi



-Original Message-
From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Ray Kinsella
Sent: 27 February 2018 21:56
To: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] Developing application on top of VPP

Really it depends on the kind of application you want to develop?

If your intention is to do something monolithic like a tightly integrated VNF 
application. A VNF with L2, L3, L4 and app as an integrated appliance. Then the 
plugin _might_ make the sense for you, however I suspect that VCL library might 
still be easier to maintain and integrate with in this instance

However if you intend to use a vSwitch on the system or you anticipate that a 
vSwitch will be used in the system. You can integrate the L2, L3 and L4 with 
the (VPP) vSwitch and have your App sit on VCL. This ends up being simplier and 
more lightweight, but you need to know that VPP can be your vSwitch.

Thanks,


Ray K

On 27/02/2018 11:53, Shashi Kant Singh wrote:
> Inline...
> 
> 
> -Original Message-
> From: Ray Kinsella [mailto:m...@ashroe.eu]
> Sent: 27 February 2018 17:20
> To: Shashi Kant Singh; vpp-dev@lists.fd.io
> Subject: Re: [vpp-dev] Developing application on top of VPP
> 
> 
> Would be good if you could provide some additional information.
> 
> What kind of application is it - UDP/TCP/RAW socket based?
> SKS: Would be a mix of UDP/GTP and TCP/SCTP. UDP/GTP over IPSEC.
> 
> How is it typically deployed - Cloud Based, Virtualized Appliance or Discrete 
> Appliance?
> SKS: Cloud Based in a VM.
> 
> 
> Ray K
> 
> On 27/02/2018 08:21, Shashi Kant Singh wrote:
>> Hi
>>
>> There is a need to port AI kind of application on top of VPP. This 
>> could  > 20k lines of code with fair complexity.
>>
>> Would it make sense to put this as plugin in VPP or have an 
>> independent application and connect to VPP using VCL?
>>
>> Does it mean that AI app need to be broken down in 10 of nodes if 
>> plugin is the option?
>>
>> Performance required from AI app is like that of a typical data path.
>>
>> Regards
>>
>> Shashi
>>
>>
> 
> 
> 
> 




-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8365): https://lists.fd.io/g/vpp-dev/message/8365
View All Messages In Topic (5): https://lists.fd.io/g/vpp-dev/topic/13095162
Mute This Topic: https://lists.fd.io/mt/13095162/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] Developing application on top of VPP

2018-02-27 Thread Shashi Kant Singh
Inline...


-Original Message-
From: Ray Kinsella [mailto:m...@ashroe.eu] 
Sent: 27 February 2018 17:20
To: Shashi Kant Singh; vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] Developing application on top of VPP


Would be good if you could provide some additional information.

What kind of application is it - UDP/TCP/RAW socket based?
SKS: Would be a mix of UDP/GTP and TCP/SCTP. UDP/GTP over IPSEC.

How is it typically deployed - Cloud Based, Virtualized Appliance or Discrete 
Appliance?
SKS: Cloud Based in a VM.


Ray K

On 27/02/2018 08:21, Shashi Kant Singh wrote:
> Hi
> 
> There is a need to port AI kind of application on top of VPP. This 
> could  > 20k lines of code with fair complexity.
> 
> Would it make sense to put this as plugin in VPP or have an 
> independent application and connect to VPP using VCL?
> 
> Does it mean that AI app need to be broken down in 10 of nodes if 
> plugin is the option?
> 
> Performance required from AI app is like that of a typical data path.
> 
> Regards
> 
> Shashi
> 
> 

-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8342): https://lists.fd.io/g/vpp-dev/message/8342
View All Messages In Topic (3): https://lists.fd.io/g/vpp-dev/topic/13095162
Mute This Topic: https://lists.fd.io/mt/13095162/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] Developing application on top of VPP

2018-02-27 Thread Shashi Kant Singh
Hi

There is a need to port AI kind of application on top of VPP. This could > 20k 
lines of code with fair complexity.
Would it make sense to put this as plugin in VPP or have an independent 
application and connect to VPP using VCL?
Does it mean that AI app need to be broken down in 10 of nodes if plugin is the 
option?

Performance required from AI app is like that of a typical data path.

Regards
Shashi




Re: [vpp-dev] epoll conflict

2018-02-12 Thread Shashi Kant Singh
Any clue on this?

From: Shashi Kant Singh
Sent: 06 February 2018 20:00
To: 'Dave Wallace'; vpp-dev@lists.fd.io
Subject: RE: [vpp-dev] epoll conflict

Hi Dave

I am using VPP release 1802. To simplify the question, I ran the standard 
vcl_test_server example and I see that the CPU utilization of that core where 
it is running is always 100%. If I attach gdb I see this


Loaded symbols for /lib64/ld-linux-x86-64.so.2
0x7f4abca3f16a in vppcom_epoll_wait (vep_idx=, 
events=events@entry=0x604174 <sock_server_main+20>, 
maxevents=maxevents@entry=10,
wait_for_time=wait_for_time@entry=60) at 
/bng5/vbbu10/vpp2/vpp/build-data/../src/vcl/vppcom.c:4005
4005keep_trying = (clib_time_now (>clib_time) <= 
timeout) ? 1 : 0;
Missing separate debuginfos, use: debuginfo-install 
glibc-2.17-196.el7_4.2.x86_64
(gdb) bt
#0  0x7f4abca3f16a in vppcom_epoll_wait (vep_idx=, 
events=events@entry=0x604174 <sock_server_main+20>,
maxevents=maxevents@entry=10, wait_for_time=wait_for_time@entry=60) at 
/bng5/vbbu10/vpp2/vpp/build-data/../src/vcl/vppcom.c:4005
#1  0x004012a8 in main (argc=, argv=) at 
/bng5/vbbu10/vpp2/vpp/build-data/../src/vcl/sock_test_server.c:567
(gdb)


In the source I see this as
ifdef VCL_TEST
  num_ev = vppcom_epoll_wait (ssm->epfd, ssm->wait_events,
  SOCK_SERVER_MAX_EPOLL_EVENTS, 60.0);
  if (num_ev < 0)
errno = -num_ev;
#else


My question would be, if this is a epoll_wait call, why would I see CPU 
utilization of 100%. Even if I make it a blocking call by setting timeout to 
-1, I still see it to be 100%. Please help me understand this

Regards
Shashi





From: vpp-dev-boun...@lists.fd.io<mailto:vpp-dev-boun...@lists.fd.io> 
[mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of Dave Wallace
Sent: 06 February 2018 19:23
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] epoll conflict

Shashi,

Can you elaborate on your use case?  There's really not enough information to 
understand what you're trying to accomplish to know how to help.

Assuming that you are using LD_PRELOAD to "link the vcom library to the 
application", the vcom api layer redirects calls based on the fd to either 
vppcom or libc.

Also what version of the code are you running?

You should be aware that VCL/LD_PRELOAD is still largely experimental and under 
development.  There are many features of the posix socket interface which are 
missing or have stub implementations.  Development of VCL to date has been 
entirely use-case driven.

Thanks,
-daw-
On 02/06/2018 04:39 AM, Shashi Kant Singh wrote:
Hi

I have a linux application which uses native kernel epoll_wait calls. I needed 
to add a new thread in that application which is a VPP based thread i.e. it 
uses DPDK to send and receive on additional igb_uio ports. For this I had to 
link the vcom library to the application and now I see that epoll used by all 
linux application is from vcom. How do I separate out linux thread from VPP 
thread to use corresponding epoll libraries

Regards
Shashi

#0  0x7f2c2c592482 in clib_spinlock_lock (p=0x7f2c1a82c030) at 
/bng5/vbbu10/vpp2/vpp/build-data/../src/vppinfra/lock.h:52
#1  vppcom_epoll_wait (vep_idx=vep_idx@entry=3, 
events=events@entry=0x7f2bd40013c0, maxevents=maxevents@entry=10,
wait_for_time=wait_for_time@entry=0) at 
/bng5/vbbu10/vpp2/vpp/build-data/../src/vcl/vppcom.c:3848
#2  0x7f2c2c580dec in vcom_socket_epoll_pwait (__epfd=22, 
__events=0x7f2bd40013c0, __maxevents=10, __timeout=-1, __ss=0x0)
at /bng5/vbbu10/vpp2/vpp/build-data/../src/vcl/vcom_socket.c:3045
#3  0x7f2c2c57c298 in epoll_wait (__epfd=22, __events=0x7f2bd40013c0, 
__maxevents=10, __timeout=-1)
at /bng5/vbbu10/vpp2/vpp/build-data/../src/vcl/vcom.c:2869
#4  0x7f2c2f628aa0 in RMAMessageThreadPosix::receive_message_impl 
(arg=0x1cf0a10) at src/rma_message_thread_posix.cpp:789
#5  0x7f2c2dacbe25 in start_thread () from /lib64/libpthread.so.0
#6  0x7f2c2b3c434d in clone () from /lib64/libc.so.6



___

vpp-dev mailing list

vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>

https://lists.fd.io/mailman/listinfo/vpp-dev



Re: [vpp-dev] epoll conflict

2018-02-06 Thread Shashi Kant Singh
Hi Dave

I am using VPP release 1802. To simplify the question, I ran the standard 
vcl_test_server example and I see that the CPU utilization of that core where 
it is running is always 100%. If I attach gdb I see this


Loaded symbols for /lib64/ld-linux-x86-64.so.2
0x7f4abca3f16a in vppcom_epoll_wait (vep_idx=, 
events=events@entry=0x604174 <sock_server_main+20>, 
maxevents=maxevents@entry=10,
wait_for_time=wait_for_time@entry=60) at 
/bng5/vbbu10/vpp2/vpp/build-data/../src/vcl/vppcom.c:4005
4005keep_trying = (clib_time_now (>clib_time) <= 
timeout) ? 1 : 0;
Missing separate debuginfos, use: debuginfo-install 
glibc-2.17-196.el7_4.2.x86_64
(gdb) bt
#0  0x7f4abca3f16a in vppcom_epoll_wait (vep_idx=, 
events=events@entry=0x604174 <sock_server_main+20>,
maxevents=maxevents@entry=10, wait_for_time=wait_for_time@entry=60) at 
/bng5/vbbu10/vpp2/vpp/build-data/../src/vcl/vppcom.c:4005
#1  0x004012a8 in main (argc=, argv=) at 
/bng5/vbbu10/vpp2/vpp/build-data/../src/vcl/sock_test_server.c:567
(gdb)


In the source I see this as
ifdef VCL_TEST
  num_ev = vppcom_epoll_wait (ssm->epfd, ssm->wait_events,
  SOCK_SERVER_MAX_EPOLL_EVENTS, 60.0);
  if (num_ev < 0)
errno = -num_ev;
#else


My question would be, if this is a epoll_wait call, why would I see CPU 
utilization of 100%. Even if I make it a blocking call by setting timeout to 
-1, I still see it to be 100%. Please help me understand this

Regards
Shashi





From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of Dave Wallace
Sent: 06 February 2018 19:23
To: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] epoll conflict

Shashi,

Can you elaborate on your use case?  There's really not enough information to 
understand what you're trying to accomplish to know how to help.

Assuming that you are using LD_PRELOAD to "link the vcom library to the 
application", the vcom api layer redirects calls based on the fd to either 
vppcom or libc.

Also what version of the code are you running?

You should be aware that VCL/LD_PRELOAD is still largely experimental and under 
development.  There are many features of the posix socket interface which are 
missing or have stub implementations.  Development of VCL to date has been 
entirely use-case driven.

Thanks,
-daw-
On 02/06/2018 04:39 AM, Shashi Kant Singh wrote:
Hi

I have a linux application which uses native kernel epoll_wait calls. I needed 
to add a new thread in that application which is a VPP based thread i.e. it 
uses DPDK to send and receive on additional igb_uio ports. For this I had to 
link the vcom library to the application and now I see that epoll used by all 
linux application is from vcom. How do I separate out linux thread from VPP 
thread to use corresponding epoll libraries

Regards
Shashi

#0  0x7f2c2c592482 in clib_spinlock_lock (p=0x7f2c1a82c030) at 
/bng5/vbbu10/vpp2/vpp/build-data/../src/vppinfra/lock.h:52
#1  vppcom_epoll_wait (vep_idx=vep_idx@entry=3, 
events=events@entry=0x7f2bd40013c0, maxevents=maxevents@entry=10,
wait_for_time=wait_for_time@entry=0) at 
/bng5/vbbu10/vpp2/vpp/build-data/../src/vcl/vppcom.c:3848
#2  0x7f2c2c580dec in vcom_socket_epoll_pwait (__epfd=22, 
__events=0x7f2bd40013c0, __maxevents=10, __timeout=-1, __ss=0x0)
at /bng5/vbbu10/vpp2/vpp/build-data/../src/vcl/vcom_socket.c:3045
#3  0x7f2c2c57c298 in epoll_wait (__epfd=22, __events=0x7f2bd40013c0, 
__maxevents=10, __timeout=-1)
at /bng5/vbbu10/vpp2/vpp/build-data/../src/vcl/vcom.c:2869
#4  0x7f2c2f628aa0 in RMAMessageThreadPosix::receive_message_impl 
(arg=0x1cf0a10) at src/rma_message_thread_posix.cpp:789
#5  0x7f2c2dacbe25 in start_thread () from /lib64/libpthread.so.0
#6  0x7f2c2b3c434d in clone () from /lib64/libc.so.6




___

vpp-dev mailing list

vpp-dev@lists.fd.io<mailto: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

[vpp-dev] epoll conflict

2018-02-06 Thread Shashi Kant Singh
Hi

I have a linux application which uses native kernel epoll_wait calls. I needed 
to add a new thread in that application which is a VPP based thread i.e. it 
uses DPDK to send and receive on additional igb_uio ports. For this I had to 
link the vcom library to the application and now I see that epoll used by all 
linux application is from vcom. How do I separate out linux thread from VPP 
thread to use corresponding epoll libraries

Regards
Shashi

#0  0x7f2c2c592482 in clib_spinlock_lock (p=0x7f2c1a82c030) at 
/bng5/vbbu10/vpp2/vpp/build-data/../src/vppinfra/lock.h:52
#1  vppcom_epoll_wait (vep_idx=vep_idx@entry=3, 
events=events@entry=0x7f2bd40013c0, maxevents=maxevents@entry=10,
wait_for_time=wait_for_time@entry=0) at 
/bng5/vbbu10/vpp2/vpp/build-data/../src/vcl/vppcom.c:3848
#2  0x7f2c2c580dec in vcom_socket_epoll_pwait (__epfd=22, 
__events=0x7f2bd40013c0, __maxevents=10, __timeout=-1, __ss=0x0)
at /bng5/vbbu10/vpp2/vpp/build-data/../src/vcl/vcom_socket.c:3045
#3  0x7f2c2c57c298 in epoll_wait (__epfd=22, __events=0x7f2bd40013c0, 
__maxevents=10, __timeout=-1)
at /bng5/vbbu10/vpp2/vpp/build-data/../src/vcl/vcom.c:2869
#4  0x7f2c2f628aa0 in RMAMessageThreadPosix::receive_message_impl 
(arg=0x1cf0a10) at src/rma_message_thread_posix.cpp:789
#5  0x7f2c2dacbe25 in start_thread () from /lib64/libpthread.so.0
#6  0x7f2c2b3c434d in clone () from /lib64/libc.so.6
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

[vpp-dev] Support for recvmmsg

2018-02-01 Thread Shashi Kant Singh
Hello
I have a requirement in my application to read multiple packets in single call 
like recvmmsg supported by native linux stack.
In VPP, I see the following. Let me know what is the plan on supporting 
vcom_socket_recvmmsg.

Regards
Shashi

/*
* Receive up to VLEN messages as described by VMESSAGES from socket FD.
* Returns the number of messages received or -1 for errors.
* This function is a cancellation point and therefore not marked
* with __THROW.
* */
int
vcom_recvmmsg (int __fd, struct mmsghdr *__vmessages,
   unsigned int __vlen, int __flags, struct timespec *__tmo)
{
  if (vcom_init () != 0)
{
  return -1;
}

  return vcom_socket_recvmmsg (__fd, __message, __vlen, __flags, __tmo);
}

int
recvmmsg (int __fd, struct mmsghdr *__vmessages,
  unsigned int __vlen, int __flags, struct timespec *__tmo)
{
  ssize_t size;
  pid_t pid = getpid ();

  if (is_vcom_socket_fd (__fd))
{
  size = vcom_recvmmsg (__fd, __message, __vlen, __flags, __tmo);
  if (VCOM_DEBUG > 0)
fprintf (stderr,
 "[%d] recvmmsg: "
 "'%04d'='%04d', '%p', "
 "'%04d', '%04x', '%p'\n",
 pid, (int) size, __fd, __vmessages, __vlen, __flags, __tmo);
  if (size < 0)
{
  errno = -size;
  return -1;
}
  return size;
}
  return libc_recvmmsg (__fd, __message, __vlen, __flags, __tmo);
}

nt
vcom_socket_recvmmsg (int __fd, struct mmsghdr *__vmessages,
  unsigned int __vlen, int __flags,
  struct timespec *__tmo)
{
  /* TBD: define a new vppcom api */
  return 0;
}
#endif



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

Re: [vpp-dev] VPP FD in a linux epoll

2018-01-31 Thread Shashi Kant Singh
Thanks for the clarification !!

From: Florin Coras [mailto:fcoras.li...@gmail.com]
Sent: 31 January 2018 21:51
To: Shashi Kant Singh
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] VPP FD in a linux epoll

Shashi,

No. VCL session ids are not valid Linux fds.

Florin



On Jan 31, 2018, at 3:21 AM, Shashi Kant Singh 
<sksi...@altiostar.com<mailto:sksi...@altiostar.com>> wrote:

Hi

I have created VPP session and the UDP FD for the same in my client program.

Would it ok to add this FD in a unix epoll (instead of vppcom_epoll_wait) 
already running a thread?

Regards
Shashi

___
vpp-dev mailing list
vpp-dev@lists.fd.io<mailto: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

[vpp-dev] VPP FD in a linux epoll

2018-01-31 Thread Shashi Kant Singh
Hi

I have created VPP session and the UDP FD for the same in my client program.

Would it ok to add this FD in a unix epoll (instead of vppcom_epoll_wait) 
already running a thread?

Regards
Shashi

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

Re: [vpp-dev] Issue with Bidirectional IPSEC

2017-12-15 Thread Shashi Kant Singh
Hi

This is running on intel broadwell processor
Vpp is from master

Regards
Shashi





On Fri, Dec 15, 2017 at 5:57 PM +0530, "Gonzalez Monroy, Sergio" 
<sergio.gonzalez.mon...@intel.com<mailto:sergio.gonzalez.mon...@intel.com>> 
wrote:

Hi,

What platform is VPP running on?
Are you using latest VPP master?

Thanks,
Sergio

On 15/12/2017 11:06, Shashi Kant Singh wrote:
Hi

I have facing issue with packet being dropped at the IPSEC decoder.

I have setup with traffic pumped from pktgen on both ports and they arrive at a 
set of VPP-IPSEC gateways (GWs). In FWD path first GW received from P0 of 
pktgen, does the encoding and sends it to second GW which does the decoding and 
then sends it towards P1 of the pktgen. Reverse happens in the REV path.

In both the direction when I send data at 1Gbps, pkt size 1024, I see packet 
drop happening during decoding. I see the following from the traces:

Packet 6

00:01:57:914904: dpdk-input
  TenGigabitEtherneta/0/0 rx queue 0
  buffer 0x153a6: current data 14, length 1064, free-list 0, clone-count 0, 
totlen-nifb 0, trace 0x5
  l4-cksum-computed l4-cksum-correct l2-hdr-offset 0 
l3-hdr-offset 14
  PKT MBUF: port 0, nb_segs 1, pkt_len 1078
buf_len 2176, data_len 1078, ol_flags 0x180, data_off 128, phys_addr 
0x3674ea00
packet_type 0x11 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0
Packet Offload Flags
  PKT_RX_IP_CKSUM_GOOD (0x0080) IP cksum of RX pkt. is valid
  PKT_RX_L4_CKSUM_GOOD (0x0100) L4 cksum of RX pkt. is valid
Packet Types
  RTE_PTYPE_L2_ETHER (0x0001) Ethernet packet
  RTE_PTYPE_L3_IPV4 (0x0010) IPv4 packet without extension headers
  IP4: 14:02:ec:70:ae:55 -> 14:02:ec:72:ee:dc
  IPSEC_ESP: 192.168.1.2 -> 192.168.1.1
tos 0x00, ttl 253, length 1064, checksum 0x3650
fragment id 0x
00:01:57:914915: ip4-input-no-checksum
  IPSEC_ESP: 192.168.1.2 -> 192.168.1.1
tos 0x00, ttl 253, length 1064, checksum 0x3650
fragment id 0x
00:01:57:914924: ipsec-input-ip4
  esp: sa_id 20 spi 1000 seq 13544422
00:01:57:914925: dpdk-esp-decrypt
  cipher aes-cbc-128 auth sha1-96
  ESP: spi 1000, seq 13544422
00:01:57:914928: dpdk-crypto-input
  status: auth failed
00:01:57:914944: error-drop
  ip4-input: valid ip4 packets



In the same trace successful case is as below:

acket 7

00:01:57:914904: dpdk-input
  TenGigabitEtherneta/0/0 rx queue 0
  buffer 0x1b8af: current data 14, length 1064, free-list 0, clone-count 0, 
totlen-nifb 0, trace 0x6
  l4-cksum-computed l4-cksum-correct l2-hdr-offset 0 
l3-hdr-offset 14
  PKT MBUF: port 0, nb_segs 1, pkt_len 1078
buf_len 2176, data_len 1078, ol_flags 0x180, data_off 128, phys_addr 
0x364e2c40
packet_type 0x11 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0
Packet Offload Flags
  PKT_RX_IP_CKSUM_GOOD (0x0080) IP cksum of RX pkt. is valid
  PKT_RX_L4_CKSUM_GOOD (0x0100) L4 cksum of RX pkt. is valid
Packet Types
  RTE_PTYPE_L2_ETHER (0x0001) Ethernet packet
  RTE_PTYPE_L3_IPV4 (0x0010) IPv4 packet without extension headers
  IP4: 14:02:ec:70:ae:55 -> 14:02:ec:72:ee:dc
  IPSEC_ESP: 192.168.1.2 -> 192.168.1.1
tos 0x00, ttl 253, length 1064, checksum 0x3650
fragment id 0x
00:01:57:914915: ip4-input-no-checksum
  IPSEC_ESP: 192.168.1.2 -> 192.168.1.1
tos 0x00, ttl 253, length 1064, checksum 0x3650
fragment id 0x
00:01:57:914924: ipsec-input-ip4
  esp: sa_id 20 spi 1000 seq 13544423
00:01:57:914925: dpdk-esp-decrypt
  cipher aes-cbc-128 auth sha1-96
  ESP: spi 1000, seq 13544423
00:01:57:914928: dpdk-crypto-input
  status: success
00:01:57:914945: dpdk-esp-decrypt-post
  cipher aes-cbc-128 auth sha1-96
  TCP: 192.168.100.3 -> 192.168.100.2
tos 0x00, ttl 3, length 1006, checksum 0x04a7
fragment id 0x660d
  TCP: 1234 -> 5678
seq. 0x12345678 ack 0x12345690
flags 0x10 ACK, tcp header: 20 bytes
window 8192, checksum 0xd8e8
00:01:57:914945: ip4-input-no-checksum
  TCP: 192.168.100.3 -> 192.168.100.2
tos 0x00, ttl 3, length 1006, checksum 0x04a7
fragment id 0x660d
  TCP: 1234 -> 5678
seq. 0x12345678 ack 0x12345690
flags 0x10 ACK, tcp header: 20 bytes
window 8192, checksum 0xd8e8
00:01:57:914953: ip4-lookup
  fib 0 dpo-idx 1 flow hash: 0x
  TCP: 192.168.100.3 -> 192.168.100.2
tos 0x00, ttl 3, length 1006, checksum 0x04a7
fragment id 0x660d
  TCP: 1234 -> 5678
seq. 0x12345678 ack 0x12345690
flags 0x10 ACK, tcp header: 20 bytes
window 8192, checksum 0xd8e8
00:01:57:914953: ip4-rewrite
  tx_sw_if_index 2 dpo-idx 1 : ipv4 via 192.168.100.2 TenGigabitEthernetc/0/0: 
1402ec70ae6c1402ec70ae540800 flow hash: 0x
  : 1402ec70ae6c1402ec70ae540800450003ee660d020605a7c0a86403c0a8
  0020: 640204d2162e123456781234569050102000d8e87778797a3031
00:01:57:914953: TenGigabitEthernetc/0/0-output
  TenGigabitEthernetc/0/0
  IP4: 14:02:ec:70:ae:54 -> 14:02:ec:70:ae:6c
  TC

[vpp-dev] Issue with Bidirectional IPSEC

2017-12-15 Thread Shashi Kant Singh
Hi

I have facing issue with packet being dropped at the IPSEC decoder.

I have setup with traffic pumped from pktgen on both ports and they arrive at a 
set of VPP-IPSEC gateways (GWs). In FWD path first GW received from P0 of 
pktgen, does the encoding and sends it to second GW which does the decoding and 
then sends it towards P1 of the pktgen. Reverse happens in the REV path.

In both the direction when I send data at 1Gbps, pkt size 1024, I see packet 
drop happening during decoding. I see the following from the traces:

Packet 6

00:01:57:914904: dpdk-input
  TenGigabitEtherneta/0/0 rx queue 0
  buffer 0x153a6: current data 14, length 1064, free-list 0, clone-count 0, 
totlen-nifb 0, trace 0x5
  l4-cksum-computed l4-cksum-correct l2-hdr-offset 0 
l3-hdr-offset 14
  PKT MBUF: port 0, nb_segs 1, pkt_len 1078
buf_len 2176, data_len 1078, ol_flags 0x180, data_off 128, phys_addr 
0x3674ea00
packet_type 0x11 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0
Packet Offload Flags
  PKT_RX_IP_CKSUM_GOOD (0x0080) IP cksum of RX pkt. is valid
  PKT_RX_L4_CKSUM_GOOD (0x0100) L4 cksum of RX pkt. is valid
Packet Types
  RTE_PTYPE_L2_ETHER (0x0001) Ethernet packet
  RTE_PTYPE_L3_IPV4 (0x0010) IPv4 packet without extension headers
  IP4: 14:02:ec:70:ae:55 -> 14:02:ec:72:ee:dc
  IPSEC_ESP: 192.168.1.2 -> 192.168.1.1
tos 0x00, ttl 253, length 1064, checksum 0x3650
fragment id 0x
00:01:57:914915: ip4-input-no-checksum
  IPSEC_ESP: 192.168.1.2 -> 192.168.1.1
tos 0x00, ttl 253, length 1064, checksum 0x3650
fragment id 0x
00:01:57:914924: ipsec-input-ip4
  esp: sa_id 20 spi 1000 seq 13544422
00:01:57:914925: dpdk-esp-decrypt
  cipher aes-cbc-128 auth sha1-96
  ESP: spi 1000, seq 13544422
00:01:57:914928: dpdk-crypto-input
  status: auth failed
00:01:57:914944: error-drop
  ip4-input: valid ip4 packets



In the same trace successful case is as below:

acket 7

00:01:57:914904: dpdk-input
  TenGigabitEtherneta/0/0 rx queue 0
  buffer 0x1b8af: current data 14, length 1064, free-list 0, clone-count 0, 
totlen-nifb 0, trace 0x6
  l4-cksum-computed l4-cksum-correct l2-hdr-offset 0 
l3-hdr-offset 14
  PKT MBUF: port 0, nb_segs 1, pkt_len 1078
buf_len 2176, data_len 1078, ol_flags 0x180, data_off 128, phys_addr 
0x364e2c40
packet_type 0x11 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0
Packet Offload Flags
  PKT_RX_IP_CKSUM_GOOD (0x0080) IP cksum of RX pkt. is valid
  PKT_RX_L4_CKSUM_GOOD (0x0100) L4 cksum of RX pkt. is valid
Packet Types
  RTE_PTYPE_L2_ETHER (0x0001) Ethernet packet
  RTE_PTYPE_L3_IPV4 (0x0010) IPv4 packet without extension headers
  IP4: 14:02:ec:70:ae:55 -> 14:02:ec:72:ee:dc
  IPSEC_ESP: 192.168.1.2 -> 192.168.1.1
tos 0x00, ttl 253, length 1064, checksum 0x3650
fragment id 0x
00:01:57:914915: ip4-input-no-checksum
  IPSEC_ESP: 192.168.1.2 -> 192.168.1.1
tos 0x00, ttl 253, length 1064, checksum 0x3650
fragment id 0x
00:01:57:914924: ipsec-input-ip4
  esp: sa_id 20 spi 1000 seq 13544423
00:01:57:914925: dpdk-esp-decrypt
  cipher aes-cbc-128 auth sha1-96
  ESP: spi 1000, seq 13544423
00:01:57:914928: dpdk-crypto-input
  status: success
00:01:57:914945: dpdk-esp-decrypt-post
  cipher aes-cbc-128 auth sha1-96
  TCP: 192.168.100.3 -> 192.168.100.2
tos 0x00, ttl 3, length 1006, checksum 0x04a7
fragment id 0x660d
  TCP: 1234 -> 5678
seq. 0x12345678 ack 0x12345690
flags 0x10 ACK, tcp header: 20 bytes
window 8192, checksum 0xd8e8
00:01:57:914945: ip4-input-no-checksum
  TCP: 192.168.100.3 -> 192.168.100.2
tos 0x00, ttl 3, length 1006, checksum 0x04a7
fragment id 0x660d
  TCP: 1234 -> 5678
seq. 0x12345678 ack 0x12345690
flags 0x10 ACK, tcp header: 20 bytes
window 8192, checksum 0xd8e8
00:01:57:914953: ip4-lookup
  fib 0 dpo-idx 1 flow hash: 0x
  TCP: 192.168.100.3 -> 192.168.100.2
tos 0x00, ttl 3, length 1006, checksum 0x04a7
fragment id 0x660d
  TCP: 1234 -> 5678
seq. 0x12345678 ack 0x12345690
flags 0x10 ACK, tcp header: 20 bytes
window 8192, checksum 0xd8e8
00:01:57:914953: ip4-rewrite
  tx_sw_if_index 2 dpo-idx 1 : ipv4 via 192.168.100.2 TenGigabitEthernetc/0/0: 
1402ec70ae6c1402ec70ae540800 flow hash: 0x
  : 1402ec70ae6c1402ec70ae540800450003ee660d020605a7c0a86403c0a8
  0020: 640204d2162e123456781234569050102000d8e87778797a3031
00:01:57:914953: TenGigabitEthernetc/0/0-output
  TenGigabitEthernetc/0/0
  IP4: 14:02:ec:70:ae:54 -> 14:02:ec:70:ae:6c
  TCP: 192.168.100.3 -> 192.168.100.2
tos 0x00, ttl 2, length 1006, checksum 0x05a7
fragment id 0x660d
  TCP: 1234 -> 5678
seq. 0x12345678 ack 0x12345690
flags 0x10 ACK, tcp header: 20 bytes
window 8192, checksum 0xd8e8
00:01:57:914953: TenGigabitEthernetc/0/0-tx
  TenGigabitEthernetc/0/0 tx queue 2
  buffer 0x1b8af: current data 44, length 1020, free-list 0, clone-count 0, 
totlen-nifb 0, trace 0x6