Hi Macro, I follow test_sctp.py to use following commands in server and client, but client can not connect server with an error printed “echo_client_node_fn:238: stuck clients” as you can see below. Do I miss any command ?
Server: vpp# set int ip address FortyGigabitEthernet18/0/1 192.168.60.73/24 vpp# set int state FortyGigabitEthernet18/0/1 up vpp# set ip arp FortyGigabitEthernet18/0/1 192.168.60.74 3c:fd:fe:c2:12:68 vpp# session enable vpp# app ns add id 0 secret 0 sw_if_index 2 vpp# test echo server appns 0 fifo-size 4 uri sctp://192.168.60.73/1234 Client: vpp# set int ip address FortyGigabitEthernet18/0/0 192.168.60.74/24 vpp# set int state FortyGigabitEthernet18/0/0 up vpp# set ip arp FortyGigabitEthernet18/0/0 192.168.60.73 3c:fd:fe:c2:17:09 vpp# session enable vpp# app ns add id 1 secret 0 sw_if_index 1 vpp# test echo client nclients 2 mbytes 10 appns 1 fifo-size 4 test-bytes syn-timeout 3 uri sctp://192.168.60.73/1234 2 three-way handshakes in 0.00 seconds 4648.53/s Test started at 37.835987 0: echo_client_node_fn:238: stuck clients Timeout with 2 sessions still active... test failed test echo clients: failed: timeout with 2 sessions Best Regards, Chengqiang Yao From: Marco Varlese [mailto:mvarl...@suse.de] Sent: Thursday, November 8, 2018 4:07 PM To: Yao, Chengqiang <chengqiang....@intel.com> Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] #vpp sctp echo test crash Hi Yao, As per test_sctp.py the command is: test echo server appns 0 fifo-size 4 [URI] Where URI is made up as: sctp://IP/PORT Please, take a look at "test/test_sctp.py" to see also the client side of it. HTH, Marco On Wed, 2018-11-07 at 15:01 +0000, Yao, Chengqiang wrote: Hi Macro, I use following CLI command to setup SCTP server, but VPP crashed. While this command works for TCP/UDP. Can you tell me the correct cli commands to run echo test for SCTP? vpp# set int ip address FortyGigabitEthernet18/0/1 192.168.60.73/24 vpp# set int state FortyGigabitEthernet18/0/1 up vpp# set ip arp FortyGigabitEthernet18/0/1 192.168.60.74 3c:fd:fe:c2:12:68 vpp# test echo server fifo-size 4096 uri sctp://192.168.60.73/1234 no-echo After debugging, I found it’s caused by invalid sw_if_index in sctp_connection_bind function of sctp.c. Best Regards, Chengqiang Yao From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> [mailto:vpp-dev@lists.fd.io] On Behalf Of Yao, Chengqiang Sent: Thursday, October 25, 2018 9:15 PM To: Marco Varlese <mvarl...@suse.de<mailto:mvarl...@suse.de>>; vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> Subject: Re: [vpp-dev] #vpp Hi Macro, Thanks for your information, I will have a try. Best Regards, Chengqiang Yao From: Marco Varlese [mailto:mvarl...@suse.de] Sent: Thursday, October 25, 2018 9:09 PM To: Yao, Chengqiang <chengqiang....@intel.com<mailto:chengqiang....@intel.com>>; vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> Subject: Re: [vpp-dev] #vpp Hi, On Thu, 2018-10-25 at 04:59 +0000, Yao, Chengqiang wrote: Hi Macro, Is there any sample code to show how to use SCTP (such as association, packet transmission/reception, etc.)? And is there any performance report for SCTP? You can have a look at the test for SCTP: 1) test/test_sctp.py 2) src/vnet/session-apps/echo_client.c & echo_server.c The echo_client and echo_server are used by TCP / UDP and SCTP to exercise the networking stack implemented. With regards to the state-machine (I assumed that's what you're asking by "association", "packet transmssion/reception", etc.), the whole of it is gone through when running the tests. If you are interested in seeing/learning how that's implemented I am afraid you need to look into the code tho. With regards to performance: no, there're no reports. However, something can be retrieved by running the test_sctp.py since at the end it prints out how much data has been transferred and how long that took. Best Regards, Chengqiang Yao Cheers, Marco From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> [mailto:vpp-dev@lists.fd.io] On Behalf Of Marco Varlese Sent: Wednesday, October 10, 2018 5:47 PM To: srivastava.rac...@gmail.com<mailto:srivastava.rac...@gmail.com>; vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> Subject: Re: [vpp-dev] #vpp Hi Srivastava, On Wed, 2018-10-10 at 01:23 -0700, srivastava.rac...@gmail.com<mailto:srivastava.rac...@gmail.com> wrote: Hi Does the VPP support SCTP. If yes what is the configuration for SCTP. Does it support the same features as the linux kernel SCTP ? VPP has an implementation for SCTP. You can look into /src/vnet/sctp folder to see what we currently support in terms of RFC. Any feedback (and contribution) is very much welcome! Thanks Rachit Srivastava Thanks, Marco -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10787): <https://lists.fd.io/g/vpp-dev/message/10787> https://lists.fd.io/g/vpp-dev/message/10787 Mute This Topic: <https://lists.fd.io/mt/27155313/675056> https://lists.fd.io/mt/27155313/675056 Mute #vpp: <https://lists.fd.io/mk?hashtag=vpp&subid=1480704> https://lists.fd.io/mk?hashtag=vpp&subid=1480704 Group Owner: <mailto:vpp-dev+ow...@lists.fd.io> vpp-dev+ow...@lists.fd.io<mailto:vpp-dev+ow...@lists.fd.io> Unsubscribe: <https://lists.fd.io/g/vpp-dev/unsub> https://lists.fd.io/g/vpp-dev/unsub [ <mailto:mvarl...@suse.de> mvarl...@suse.de<mailto:mvarl...@suse.de> ] -=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11153): https://lists.fd.io/g/vpp-dev/message/11153 Mute This Topic: https://lists.fd.io/mt/28023358/21656 Mute #vpp: https://lists.fd.io/mk?hashtag=vpp&subid=1480452 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-