Hi Marco, 

So echo test with 500MB does finish and reports throughput after 15s but with 
warnings of the type “clients stuck”?

Note that we also have tests that run iperf3 for about 5s and those exchange GB 
of data probably. 

Florin

> On Nov 8, 2018, at 12:55 PM, Marco Varlese <mvarl...@suse.de> wrote:
> 
> Well, folks there's something strange here...
> 
> I was trying to understand what's going on with SCTP and (because I couldn't 
> see the light) I decided to give TCP a try.
> 
> I hence modified test_tcp.py to have 500 mbytes to send and the test fails. 
> Similarly to what happens for SCTP. I did try to increase the test-timeout 
> but without much success...
> 
> Interestingly, for both TCP and SCTP, with a test-timeout of 30 seconds the 
> test completes (with errors) after round 12-15 secs...
> 
> On Thu, 2018-11-08 at 08:21 -0800, Florin Coras wrote:
>> Hi guys, 
>> 
>> I unfortunately missed this. Yes, the fifo size provided is the number of kB 
>> and yes you should be able to do 4MB (fifo-size 4096) or even higher. 
>> 
>> The “stuck clients” warning is just a notification, the test can still 
>> finish. To make sure you give the test enough time, add “test-timeout 
>> <timeout-in-seconds>” to the list of parameters. 
>> 
>> Florin
>> 
>>> On Nov 8, 2018, at 5:46 AM, Yao, Chengqiang <chengqiang....@intel.com 
>>> <mailto:chengqiang....@intel.com>> wrote:
>>> 
>>> Hi Macro,
>>>  
>>> Seems the max workable fifo-size in test_sctp.py is 16. With fifo-size in 
>>> test_sctp.py set to 16, the throughput is only 4Gbps (VPP is under release 
>>> mode), I think the real number should be more than this if we can increase 
>>> both fifo-size and mbytes in test_sctp.py.
>>>  
>>> <image002.png>
>>>  
>>>  
>>> If increase fifo-size to 20, or increase mbytes in test_sctp.py to more 
>>> than 2000, an issue will happen. Maybe “make test” is only for functional 
>>> test.
>>>  
>>> <image001.png>
>>>  
>>>   <>
>>>  
>>>  
>>> Best Regards,
>>> Chengqiang Yao
>>>  
>>>  
>>>  <>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 
>>> Marco Varlese
>>> Sent: Thursday, November 8, 2018 8:20 PM
>>> To: Yao, Chengqiang <chengqiang....@intel.com 
>>> <mailto:chengqiang....@intel.com>>
>>> Cc: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io>
>>> Subject: Re: [vpp-dev] #vpp sctp echo test crash
>>>  
>>> On Thu, 2018-11-08 at 11:59 +0000, Yao, Chengqiang wrote:
>>>> Hi Macro,
>>>>  
>>>> I’m running on master branch and latest version.
>>>>  
>>>> “make test TEST-test_sctp.py” also works for me. I want to benchmark the 
>>>> performance of sctp, but fifo-size is only 4 in test_sctp.py, so the 
>>>> throughput is only ~2Gbps. If I increase the fifo-size in test_sctp.py, 
>>>> then the test fails.
>>> Please see:
>>> src/vnet/session-apps/echo_client.c
>>> src/vnet/session-apps/echo_server.c
>>>  
>>> In there you would see that fifo-size is shifted left by 10 (that means 4 
>>> becomes 4096). Maybe you want to try with 8 or 16?
>>> Hopefully, Florin can shed some light about the usage of 4096 for the 
>>> fifo-size... which would eventually mean a fifo of 4M entries?
>>>  
>>>>  
>>>> That’s why I want to use CLI commands to test SCTP. I’m not intended to 
>>>> run multiple clients, the reason I set nclients=2 is because test_sctp.py 
>>>> does the same thing, I just want to keep the same.
>>> I am not sure why you see nclients=2 in test_sctp.py... there's no mention 
>>> of it on latest MASTER...
>>>  
>>>>  
>>>>  
>>>> You mean you use the same commands in my last mail, and there is no issue? 
>>>> If yes, then I need to check my setup.
>>>>  
>>>>  
>>>>  
>>>> Best Regards,
>>>> Chengqiang Yao
>>>>  
>>>>  
>>>>  
>>>> From: Marco Varlese [mailto:mvarl...@suse.de <mailto:mvarl...@suse.de>] 
>>>> Sent: Thursday, November 8, 2018 6:52 PM
>>>> To: Yao, Chengqiang <chengqiang....@intel.com 
>>>> <mailto:chengqiang....@intel.com>>
>>>> Cc: vpp-dev@lists.fd.io <mailto:vpp-dev@lists.fd.io>
>>>> Subject: Re: [vpp-dev] #vpp sctp echo test crash
>>>>  
>>>> Dear Yao,
>>>>  
>>>> First of all, are you on MASTER branch or some other release?
>>>>  
>>>> Second, can you run "make test TEST=test_sctp.py" and see if that works 
>>>> for you? It all looks good on my side and on Jenkins.
>>>>  
>>>> If you are interested in running multiple clients, you can do that by 
>>>> editing test_sctp.py and add "nclients X" (where X can be 2 or more).
>>>>  
>>>> Again, I have just tested it right now and I cannot see that issue.
>>>>  
>>>>  
>>>> Cheers,
>>>> Marco
>>>>  
>>>> On Thu, 2018-11-08 at 09:20 +0000, Yao, Chengqiang wrote:
>>>>> 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 
>>>>> <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 <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 <mailto:mvarl...@suse.de>] 
>>>>> Sent: Thursday, November 8, 2018 4:07 PM
>>>>> To: Yao, Chengqiang <chengqiang....@intel.com 
>>>>> <mailto:chengqiang....@intel.com>>
>>>>> Cc: vpp-dev@lists.fd.io <mailto: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 <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 
>>>>>> <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 <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 <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 <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
>>>>>>>>  <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
>>>>>>>>  <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
>>>>>>>>  <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
>>>>>>>>  <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>https://lists.fd.io/g/vpp-dev/message/11153
>>>>>  <https://lists.fd.io/g/vpp-dev/message/11153>
>>>>>  
>>>>>  
>>>>>  
>>>>> Mute This Topic: 
>>>>>  
>>>>> <https://lists.fd.io/mt/28023358/675056>https://lists.fd.io/mt/28023358/675056
>>>>>  <https://lists.fd.io/mt/28023358/675056>
>>>>>  
>>>>>  
>>>>>  
>>>>> Mute #vpp: 
>>>>>  
>>>>> <https://lists.fd.io/mk?hashtag=vpp&subid=1480704>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
>>>>>  <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 (#11157): 
>>>>  
>>>> <https://lists.fd.io/g/vpp-dev/message/11157>https://lists.fd.io/g/vpp-dev/message/11157
>>>>  <https://lists.fd.io/g/vpp-dev/message/11157>
>>>>  
>>>>  
>>>> Mute This Topic: 
>>>>  
>>>> <https://lists.fd.io/mt/28023358/675056>https://lists.fd.io/mt/28023358/675056
>>>>  <https://lists.fd.io/mt/28023358/675056>
>>>>  
>>>>  
>>>> Mute #vpp: 
>>>>  
>>>> <https://lists.fd.io/mk?hashtag=vpp&subid=1480704>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
>>>>  <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 (#11165): https://lists.fd.io/g/vpp-dev/message/11165 
>>> <https://lists.fd.io/g/vpp-dev/message/11165>
>>> Mute This Topic: https://lists.fd.io/mt/28023358/675152 
>>> <https://lists.fd.io/mt/28023358/675152>
>>> Mute #vpp: https://lists.fd.io/mk?hashtag=vpp&subid=1480544 
>>> <https://lists.fd.io/mk?hashtag=vpp&subid=1480544>
>>> Group Owner: 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>  [fcoras.li...@gmail.com 
>>> <mailto:fcoras.li...@gmail.com>]
>>> -=-=-=-=-=-=-=-=-=-=-=-
>> 

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

View/Reply Online (#11176): https://lists.fd.io/g/vpp-dev/message/11176
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]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to