Re: [vpp-dev] UDP echo server-session-queue node TX event issue

2019-11-20 Thread Shiva Shankar
Hi Florin,
Thank you for replying.

Sure, I will test with half-duplex mode.

Shiva


On Wed, Nov 20, 2019 at 7:44 AM Florin Coras  wrote:

> Hi Shiva,
>
> The echo client/server code was mainly built for tcp testing and was never
> made to properly work with udp (it does not support session worker
> migration). It did work with udpc (connected udp), but apparently that’s
> not currently selectable due to a transport protocol unformat bug fixed
> here [1].
>
> Apart from that, some other observations regarding the echo clients test
> app:
> - it expects data to be delivered reliably by the transport, so if you
> ever try udpc in full-duplex mode (as you did lower with udp) and packets
> are dropped, the test will fail. To use half-duplex testing, add “no-echo”
> to the server cli and “no-return” to client cli.
> - if you aim to measure throughput, be sure to configure fifo-size to a
> larger value than the default of 64k. Note though that udp is currently not
> paced, so it can easily overwhelm the tx nic, thereby leading to tx-errors.
>
> Florin
>
> [1] https://gerrit.fd.io/r/c/vpp/+/23551
>
> On Nov 19, 2019, at 3:32 AM, Shiva Shankar 
> wrote:
>
> Hi All,
> I am validating builtin echo sever client node functionality with UDP
> protocol by running 2 VPP instances on 2 different  hosts.
>
> On VPP1, running echo server with the test command "*echo server uri udp:
> //1.2.3.4  / *"
> On VPP2, running echo client with the test command "*test echo client
> nclients 1 gbytes 10 test-timeout 10 uri udp://1.2.3.4/
> *"
>
> On the server-side, packets are received without any issue. However, while
> echoing back from the server app RX callback, VPP is not sending packets
> out.
> Looks like we are running out of RX buffers because of TX events not
> processed by session node.
>
> Error case logs:
> 1: echo_server_rx_callback:287: short trout! written 0 read 82
> 1: echo_server_rx_callback:287: short trout! written 0 read 82
> 1: echo_server_rx_callback:287: short trout! written 0 read 82
> 1: echo_server_rx_callback:287: short trout! written 0 read 82
> 1: echo_server_rx_callback:287: short trout! written 0 read 82
> 1: echo_server_rx_callback:287: short trout! written 0 read 82
>
> If I "*manually place*" session-queue node on the main thread (thread 0)
> things are working normally. Also, This issue is not seen if the protocol
> is TCP.
>
> Am I missing something obvious?
>
> -Shiva
>
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#14635): https://lists.fd.io/g/vpp-dev/message/14635
Mute This Topic: https://lists.fd.io/mt/60553538/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] UDP echo server-session-queue node TX event issue

2019-11-19 Thread Florin Coras
Hi Shiva, 

The echo client/server code was mainly built for tcp testing and was never made 
to properly work with udp (it does not support session worker migration). It 
did work with udpc (connected udp), but apparently that’s not currently 
selectable due to a transport protocol unformat bug fixed here [1]. 

Apart from that, some other observations regarding the echo clients test app:
- it expects data to be delivered reliably by the transport, so if you ever try 
udpc in full-duplex mode (as you did lower with udp) and packets are dropped, 
the test will fail. To use half-duplex testing, add “no-echo” to the server cli 
and “no-return” to client cli. 
- if you aim to measure throughput, be sure to configure fifo-size to a larger 
value than the default of 64k. Note though that udp is currently not paced, so 
it can easily overwhelm the tx nic, thereby leading to tx-errors. 

Florin

[1] https://gerrit.fd.io/r/c/vpp/+/23551

> On Nov 19, 2019, at 3:32 AM, Shiva Shankar  
> wrote:
> 
> Hi All,
> I am validating builtin echo sever client node functionality with UDP 
> protocol by running 2 VPP instances on 2 different  hosts. 
> 
> On VPP1, running echo server with the test command "echo server uri udp: 
> //1.2.3.4  / "
> On VPP2, running echo client with the test command "test echo client nclients 
> 1 gbytes 10 test-timeout 10 uri udp://1.2.3.4/ "
> 
> On the server-side, packets are received without any issue. However, while 
> echoing back from the server app RX callback, VPP is not sending packets out.
> Looks like we are running out of RX buffers because of TX events not 
> processed by session node. 
> 
> Error case logs:
> 1: echo_server_rx_callback:287: short trout! written 0 read 82
> 1: echo_server_rx_callback:287: short trout! written 0 read 82
> 1: echo_server_rx_callback:287: short trout! written 0 read 82
> 1: echo_server_rx_callback:287: short trout! written 0 read 82
> 1: echo_server_rx_callback:287: short trout! written 0 read 82
> 1: echo_server_rx_callback:287: short trout! written 0 read 82
> 
> If I "manually place" session-queue node on the main thread (thread 0) things 
> are working normally. Also, This issue is not seen if the protocol is TCP.
> 
> Am I missing something obvious?
> 
> -Shiva

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#14629): https://lists.fd.io/g/vpp-dev/message/14629
Mute This Topic: https://lists.fd.io/mt/60553538/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] UDP echo server does not work properly with IPsec enabled

2018-07-13 Thread Florin Coras
Hi Berenger, 

Thanks for the report!

There are two issues here. First of all, echo_server/client apps are testing 
apps that can misbehave is not properly configured. I just tried master with 4 
workers for both and with the following configuration: 

server: test echo server fifo-size 4096 uri udp://6.0.1.1/1234 no-echo
client: test echo client fifo-size 4096 test-timeout 100 no-return mbytes 1 
uri udp://6.0.1.1/1234 

DBGvpp# test echo client fifo-size 4096 test-timeout 100 no-return mbytes 1 
uri udp://6.0.1.1/1234
1 three-way handshakes in 0.00 seconds 1398.78/s
Test started at 4.588836
Test finished at 12.819988
1048576 bytes (1 mbytes, 9 gbytes) in 8.23 seconds
1273911466.12 bytes/second half-duplex
10.1913 gbit/second half-duplex

Note that this is with a debug image, release images should be able to do 
40Gbps or more but with tx drops. I suspect you've used the server/client 
commands without no-echo/no-return options and you’ve hit an assert in the 
echo-server put in place for tcp. TCP pins connections to a worker, udp does 
not anymore. The reason why I only run with no-echo/no-return is because udp is 
not reliable and the echo apps, as programmed now, fail on any packet drop. The 
echo apps could be improved to avoid this kind of surprises but at this time 
this is not very high on my list. Still, in light of your report, I’ve updated 
the wiki page here [1] so hopefully this can be avoided in the future. 

The other issue is IPSec + udp. Unfortunately, I’ve never run this combination. 
However, from your report, it would seem that packets do hit ipX-local, in 
which case a checksum error should be properly reported, as opposed to “unknown 
ip protocol”. Could it be that your udp server is not turned on? For more 
clues, I would run vpp from gdb and take a closer look at what happens in 
ipX_local_inline.

To check if your udp server is running: sh app server

Regards, 
Florin

[1] https://wiki.fd.io/view/VPP/HostStack/EchoClientServer 


> On Jul 13, 2018, at 1:04 AM, Foucher Berenger 
>  wrote:
> 
> Hi, 
> 
> I recently tried to use the UDP echo server that is included in VPP. It seems 
> to work fine when used by itself, but when I tried to use it on an IPsec 
> interface (and my configuration looks good because ICMP is working with 
> IPSec), an “unknown ip protocol” error occurs when the packet is decapsulated 
> (I can see it with show errors). Packet is dropped by the receiver. In my 
> opinion a checksum error could occur after decapsulating the packet.
> 
> Plus I get the following error when I try to use it WITHOUT IPsec on multiple 
> cores.
> 
> 1: 
> /home/bfoucher/vpp_up_to_date/vpp/build-data/../src/vnet/session-apps/echo_server.c:153
>  (echo_server_rx_callback) assertion `s→thread_index == thread_index' fails
> 
> These issues are quite annoying when it comes to benchmarking VPP. Do you 
> have any suggestion in order to make these features work together?
> 
> Thanks, 
> 
> Berenger 
> 
>  
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#9832): https://lists.fd.io/g/vpp-dev/message/9832 
> 
> Mute This Topic: https://lists.fd.io/mt/23376157/675152 
> 
> Group Owner: vpp-dev+ow...@lists.fd.io 
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub 
>   [fcoras.li...@gmail.com 
> ]
> -=-=-=-=-=-=-=-=-=-=-=-

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#9843): https://lists.fd.io/g/vpp-dev/message/9843
Mute This Topic: https://lists.fd.io/mt/23376157/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


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] UDP ECHO Server

2018-03-26 Thread Dave Wallace

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] *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-proxy l2fib l2patch   lb

lookup mfib 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 uriudp://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 uritcp://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
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 Florin Coras
It’s udp, meaning packets can be lost, and the test echo apps are not written 
to accept packet loss. If you want to just see packets flow, use the echo 
client/server in half-duplex mode. That is, start the server with no-echo and 
the client no-return options. 

The udp_echo app has not been properly maintained and parts of it are hard 
wired. I don’t recommend using it. 

Florin

> On Mar 26, 2018, at 11:37 AM, Shashi Kant Singh <sksi...@altiostar.com> wrote:
> 
> 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 
> <mailto:fcoras.li...@gmail.com>] 
> Sent: 26 March 2018 14:03
> To: Shashi Kant Singh
> Cc: vpp-dev@lists.fd.io <mailto: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 <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 <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]

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-26 Thread Florin Coras
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> 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 <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 <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 <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] 
&g

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 Dave Wallace
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-proxy l2fib l2patch   lb
lookup mfib 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 uriudp://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 uritcp://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 Florin Coras
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> 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 <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@lis

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 Florin Coras
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> 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 <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 <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

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 Florin Coras
Try master.

Florin

> On Mar 23, 2018, at 8:23 AM, Shashi Kant Singh <sksi...@altiostar.com> wrote:
> 
> What would be the branch I can try this?
>
> Regards
> Shashi
>
>
> From: Florin Coras [mailto:fcoras.li...@gmail.com 
> <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 
> <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 <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 Florin Coras
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> 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 
> <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 <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 Florin Coras
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> 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] 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
>
>
> 



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





Re: [vpp-dev] UDP ECHO Server

2018-03-22 Thread Florin Coras
Your uri asks for tcp not udp transport service. 

Florin

> On Mar 22, 2018, at 8:25 AM, Shashi Kant Singh  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
>
>