Hi Macro, OK, I will try it when I have time.
I'm reading the sctp source code and found some issues. The most critical one is the checksum. The sctp checksum should not include the ip header, just only sctp data, and also it should use crc32c, not the current code shown. Another important issue is the max cookie length is 20 from the macro definition. Actually it should not be a fixed value (usually more than 200). Best regards 刘道林 (Daolin Liu) T&W大连市共进科技有限公司 DALIAN GONGJIN TECHNOLOGY CO.,LTD 中国大连市高新园区软件园路1A-4-24层 Floor 24th, 1A-4 Software Park Road, Hi-tech Zone, Dalian, Liaoning, China 直线(TEL):(86-411)39996705 分机(EXT):76824 手机(Mobile):(86)13704090959 发件人: Marco Varlese [mailto:mvarl...@suse.de] 发送时间: 2018年11月22日 20:52 收件人: Liu Daolin (刘道林); vpp-dev@lists.fd.io 主题: Re: 答复: [vpp-dev] about sctp Dear Liu, The reason why I asked you to take a look at the "test_sctp.py" is to see how things are setup and execute the exact steps in the CLI. You'll see things work. You cannot remove the MTU code because that's used to initialize the PMTU and calculate initially the MSS to be sent to the other peer. Cheers, Marco On Wed, 2018-11-21 at 01:50 +0000, Liu Daolin (刘道林) wrote: Hi Marco, Thanks for your reply. Actually I'm trying to read the sctp code recently to want to know how it works. My requirement is very simply. I need to run sctp server based on vpp on one VM, and run sctp client without vpp (I have this now) on the other VM. As my below email, there will be aborted (core dumped), and I found the place yesterday, but I don’t know the root reason. You can see below picture: [cid:image001.jpg@01D4830A.123FCDF0] The sw_if_index is -1, so crashed when get mtu. Maybe I miss something? When I run actually is CLI command from echo_server.c. As you mentioned, if I run test_sctp.py, it will work fine? My requirement is only C language as it will merged some other code, so I don’t like to run it with python. Yesterday, I also try to remove this mtu code, and the crash was disappeared although the sw_if_index is still -1, and then I start sctp client on the other VM to send INIT, but the server with vpp seemed be dead (no crash but cannot enter any command, seemed dead loop). Anyway, I think it's better to try CLI "test echo server" in your side and find and fix all issues visually. Best regards 刘道林 (Daolin Liu) T&W大连市共进科技有限公司 DALIAN GONGJIN TECHNOLOGY CO.,LTD 中国大连市高新园区软件园路1A-4-24层 Floor 24th, 1A-4 Software Park Road, Hi-tech Zone, Dalian, Liaoning, China 直线(TEL):(86-411)39996705 分机(EXT):76824 手机(Mobile):(86)13704090959 -----邮件原件----- 发件人: Marco Varlese [mailto:mvarl...@suse.de] 发送时间: 2018年11月21日 1:06 收件人: Liu Daolin (刘道林); vpp-dev@lists.fd.io 主题: Re: [vpp-dev] about sctp Hi, On Tue, 2018-11-20 at 02:50 +0000, Liu Daolin (刘道林) wrote: > Hi, > > I encountered below Aborted (core dumped) issue: > > > > When I run "test echo server uri", it's ok for tcp, but crashed immediately > for sctp. > > Please try this in your side and give me advice. I use 18.10. Thanks! Can you please try to run "make test TEST=test_sctp"? > > > Best regards > 刘道林 (Daolin Liu) > T&W大连市共进科技有限公司 > DALIAN GONGJIN TECHNOLOGY CO.,LTD > 中国大连市高新园区软件园路1A-4-24层 > Floor 24th, 1A-4 Software Park Road, Hi-tech Zone, Dalian, Liaoning, China > 直线(TEL):(86-411)39996705 分机(EXT):76824 > 手机(Mobile):(86)13704090959 > > 发件人: Liu Daolin (刘道林) > 发送时间: 2018年11月19日 19:23 > 收件人: 'vpp-dev@lists.fd.io' > 主题: about sctp > > Hi, > > I'd like to know some information about sctp. > > Is this fully functional? Or just partly? There are missing pieces to the SCTP implementations. > Actually, I want to try simply with CLI to verify sctp basic functions now. > But it seems that there is no CLI, and the binary APIs are also imperfect. What do you actually mean by imperfect? Any input (e.g. patch submission) would be greatly appreciated! > > Do you have any plan in the next release? Including the sample test. I am planning to create some JIRA ticket(s) so that people can see what's missing and contribute if they like. Would you be interested? > > Best regards > 刘道林 (Daolin Liu) > T&W大连市共进科技有限公司 > DALIAN GONGJIN TECHNOLOGY CO.,LTD > 中国大连市高新园区软件园路1A-4-24层 > Floor 24th, 1A-4 Software Park Road, Hi-tech Zone, Dalian, Liaoning, China > 直线(TEL):(86-411)39996705 分机(EXT):76824 > 手机(Mobile):(86)13704090959 > > 本电子邮件(包括任何的附件)为本公司保密文件。本文件仅仅可为以上指定的收件人或公司使用,如果阁下非电子邮件所指定之收件人,那么阁下对该邮件部分或全部的泄漏、 > 阅览、复印、变更、散布或对邮件内容的使用都是被严格禁止的。如果阁下接收了该错误传送的电子邮件,敬请阁下通过回复该邮件的方式立即通知寄件人,同时删除你所接收到 > 的文本。 This e-mail may contain confidential and/or privileged information. If > you are not the intended recipient (or have received this e-mail in error) > please notify the sender immediately and destroy this e-mail. Any unauthorized > copying, disclosure or distribution of the material in this e-mail is strictly > forbidden. > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > > View/Reply Online (#11334): https://lists.fd.io/g/vpp-dev/message/11334 > Mute This Topic: https://lists.fd.io/mt/28240674/675056 > Group Owner: vpp-dev+ow...@lists.fd.io > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [mvarl...@suse.de] > -=-=-=-=-=-=-=-=-=-=-=- 本电子邮件(包括任何的附件)为本公司保密文件。本文件仅仅可为以上指定的收件人或公司使用,如果阁下非电子邮件所指定之收件人,那么阁下对该邮件部分或全部的泄漏、阅览、复印、变更、散布或对邮件内容的使用都是被严格禁止的。如果阁下接收了该错误传送的电子邮件,敬请阁下通过回复该邮件的方式立即通知寄件人,同时删除你所接收到的文本。 This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11357): <https://lists.fd.io/g/vpp-dev/message/11357> https://lists.fd.io/g/vpp-dev/message/11357 Mute This Topic: <https://lists.fd.io/mt/28280869/675056> https://lists.fd.io/mt/28280869/675056 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> ] -=-=-=-=-=-=-=-=-=-=-=- 本电子邮件(包括任何的附件)为本公司保密文件。本文件仅仅可为以上指定的收件人或公司使用,如果阁下非电子邮件所指定之收件人,那么阁下对该邮件部分或全部的泄漏、阅览、复印、变更、散布或对邮件内容的使用都是被严格禁止的。如果阁下接收了该错误传送的电子邮件,敬请阁下通过回复该邮件的方式立即通知寄件人,同时删除你所接收到的文本。 This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11382): https://lists.fd.io/g/vpp-dev/message/11382 Mute This Topic: https://lists.fd.io/mt/28292343/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-