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 Count Node 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 local0 0 down 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 60000 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 60000 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, 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 <transport>://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<tcp://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