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
> local0                            0        down     
> vpp#  test tcp clients uri tcp://192.168.170.30/1234 
> <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 
> <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 <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 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-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 
> <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 <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 <tcp://192.168.180.31/5678>
>
> But I could not find the udp server being shown under “cli test”
>
> Regards
> Shashi
>
>
>
>
>
>
> 

Reply via email to