Re: [vpp-dev] [dmm-dev] FD.io - Gerrit 2.16 Changes

2019-07-30 Thread Florin Coras
It seems that this [1] supports the new workflows. Just overwriting /usr/lib/python3/dist-packages/git_review/cmd.py seems to do the trick. I’m sure there must be a cleaner way … Florin > On Jul 30, 2019, at 1:20 PM, Vanessa Valderrama > wrote: > > Changes that will happen with Gerrit: >

Re: [vpp-dev] [dmm-dev] FD.io - Gerrit 2.16 Changes

2019-07-30 Thread Florin Coras
Pushed send too soon Florin [1] /usr/lib/python3/dist-packages/git_review/cmd.py > On Jul 30, 2019, at 1:49 PM, Florin Coras via Lists.Fd.Io > wrote: > > It seems that this [1] supports the new workflows. Just overwriting > /usr/lib/python3/dist-packages/git_review/cmd.py

Re: [vpp-dev] [dmm-dev] FD.io - Gerrit 2.16 Changes

2019-07-30 Thread Florin Coras
Apologies, seems today is not my day with links. Florin [1] https://github.com/openstack-infra/git-review/tree/master/git_review <https://github.com/openstack-infra/git-review/tree/master/git_review> > On Jul 30, 2019, at 1:51 PM, Florin Coras via Lists.Fd.Io > wrote: > &g

Re: [vpp-dev] Transport endpoint extraction while using vnet_connect_uri

2019-07-31 Thread Florin Coras
Hi Praveen, In 19.08 you can grab the local and remote endpoints with session_get_endpoint. We didn’t have these in 19.04. Florin > On Jul 31, 2019, at 7:18 PM, Praveen Kariyanahalli > wrote: > > I wrote an client app to connect to remote tls_server using vnet_connect_uri. > > Post connec

Re: [vpp-dev] Transport endpoint extraction while using vnet_connect_uri

2019-08-01 Thread Florin Coras
Hi Praveen, That’s just master branch :-) Florin > On Aug 1, 2019, at 2:03 PM, Praveen Kariyanahalli > wrote: > > I dont see that tag 1908. How do I get that code? > > Thanks in advance > Praveen > ᐧ > > On Wed, Jul 31, 2019 at 10:18 PM Florin Coras

Re: [vpp-dev] Envoy transport socket support for vpp.

2019-08-06 Thread Florin Coras
Hi Rupesh, CC’ing Stephen and Ping who are working on this. Florin > On Aug 5, 2019, at 4:36 AM, Rupesh Raghuvaran > wrote: > > Hi, > > I would like to know the current state of the support for envoy over vpp host > stack. Is there any open source transport socket support for vpp availabl

Re: [vpp-dev] vppcom_session_connect blocking or non blocking

2019-08-15 Thread Florin Coras
Hi Max, Not at this time. It should be possible with a few changes for nonblocking sessions. I’ll add it to my list, in case nobody else beats me to it. Florin > On Aug 15, 2019, at 2:47 AM, Max A. via Lists.Fd.Io > wrote: > > Hello, > > Can vppcom_session_connect() function run in non-blo

Re: [vpp-dev] ValueError: Fieldname 'async' is a python keyword and is not accessible via the python API

2019-08-21 Thread Florin Coras
Interesting. Want to push a patch to change async_enable or something like that here [1]? Or I can do that. Florin [1] https://git.fd.io/vpp/diff/src/plugins/tlsopenssl/tls_openssl.api?id=be4d1aa > On Aug 21, 2019

Re: [vpp-dev] ValueError: Fieldname 'async' is a python keyword and is not accessible via the python API

2019-08-21 Thread Florin Coras
> On Aug 21, 2019, at 8:32 AM, Damjan Marion wrote: > >> >> On 21 Aug 2019, at 17:15, Florin Coras > <mailto:fcoras.li...@gmail.com>> wrote: >> >> Interesting. Want to push a patch to change async_enable or something like >> that here

Re: [vpp-dev] VPP 19.08 release is available!

2019-08-22 Thread Florin Coras
Congrats to the entire community and thanks Andrew! Cheers, Florin > On Aug 21, 2019, at 1:57 PM, Andrew Yourtchenko wrote: > > Hi all, > > the VPP release 19.08 artifacts are available on packagecloud release > repositories. > > I have tested the installation on ubuntu and centos. > > Many

Re: [vpp-dev] vppcom_session_connect blocking or non blocking

2019-09-04 Thread Florin Coras
Hi Max, Here’s the patch that allows non-blocking connects [1]. Florin [1] https://gerrit.fd.io/r/c/vpp/+/21610 <https://gerrit.fd.io/r/c/vpp/+/21610> > On Aug 15, 2019, at 7:41 AM, Florin Coras via Lists.Fd.Io > wrote: > > Hi Max, > > Not at this time. It shoul

Re: [vpp-dev] VPP API client with no rx pthread

2019-09-11 Thread Florin Coras
Hi Satya, Probably you can just replicate what the api rx-thread is doing, i.e., rx_thread_fn. In particular, take a look at vl_msg_api_queue_handler. Florin > On Sep 11, 2019, at 3:26 AM, Satya Murthy wrote: > > Hi , > > We are trying to develop a VPP API client which needs synchronous re

Re: [vpp-dev] VLC: tls in open tcp session

2019-09-16 Thread Florin Coras
Hi Max, No, it’s not possible. Florin > On Sep 16, 2019, at 1:35 AM, Max A. via Lists.Fd.Io > wrote: > > Hello, > > Is it possible to switch to using TLS in an already open TCP session using > VCL? > > Thanks. -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group.

Re: [vpp-dev] UDP packet sending using sendto()

2019-09-25 Thread Florin Coras
Hi Nataraj, It’s not possible with VCL at this point but it’s possible with builtin applications. It’s just a matter of extending the connect api to support this. Florin > On Sep 25, 2019, at 6:16 PM, Nataraj Batchu wrote: > > Hi, > > Today with VPP we cannot give endpoint info in sendto()

Re: [vpp-dev] vlib_node_add_next usage #vpp

2019-10-03 Thread Florin Coras
Hi Ranadip, Yes, the session layer updates all vms when it adds a new arc from session_queue_node to whatever the transport wants to use for output. I don’t remember now why we did things that way, but it may be that it’s not needed anymore. Florin > On Oct 2, 2019, at 9:23 PM, Ranadip Das

Re: [vpp-dev] VPP Hoststack CPS

2019-10-09 Thread Florin Coras
Hi Nataraj, The test was done with the builtin echo applications over a 40Gbps link with no latency and it measured CPS as number of TCP handshakes per second. Also, note that’s a pretty old presentation. Florin > On Oct 9, 2019, at 10:30 AM, Nataraj Batchu wrote: > > Hi, > > In the slide

Re: [vpp-dev] VPP Hoststack CPS

2019-10-10 Thread Florin Coras
Ni Nataraj, I haven’t tested this recently but we’re planning on adding some tcp + vcl related performance testing to csit. Regards, Florin > On Oct 10, 2019, at 6:30 PM, Nataraj Batchu wrote: > > Hi Florin: > > Thanks for the quick reply. By any chance, do you have latest CPS numbers? Or

Re: [vpp-dev] tls close from cli lead to assert error

2019-10-11 Thread Florin Coras
Hi, First of all, that’s just a test tool that forces closing of sessions by “faking” a transport close request. It can potentially lead to other issues if afterwards the app calls the wrong apis into the transport. It shouldn’t be used on production traffic. Having said that, your problem i

Re: [vpp-dev] Is there any way to set local ip with vcl when connect remote socket server ?

2019-10-17 Thread Florin Coras
Hi, Currently we only support setting of local ips for builtin applications, like the one you’ve built lower. VCL and the message queue api currently do not support this. I guess we could add a VPPCOM_ATTR_SET_LCL_ADDR set attribute option and pass that over the api. But before that, could yo

Re: [vpp-dev] Basic l2 bridging does not work

2019-10-17 Thread Florin Coras
Hi Chuan, As Balaji said, probably it’s worth making sure the cable between the eth0 nics is fine and that eth0 on R230 works as expected. For instance, you could double check your setup by switching to linux drivers and trying a ping between the two boxes. Regarding “sh int”, it only shows

Re: [vpp-dev] Basic l2 bridging does not work

2019-10-17 Thread Florin Coras
This looks like a DPDK issue, but I’ll let Damjan be the judge of that. To see if this is a config issues, could you simplify your startup config by - removing “workers 0” from the two nics and adding “num-rx-queues 2” to the nics or to the default stanza, if you’re running with 2 workers - comm

Re: [vpp-dev] vppcom_session_connect blocking or non blocking

2019-10-18 Thread Florin Coras
Hi Florin, > > vppcom_session_connect in non-blocking mode works well only if the connection > can be successfully established. If the connection cannot be established, > then no event is raised about this. How can this be fixed? > > Thanks. > > > Четверг, 5 сентября 2019, 1:04

Re: [vpp-dev] VPP tls doesn't support adding a custom tls engine, and vcl not support choosing tls engine

2019-10-20 Thread Florin Coras
Hi, Here’s a draft patch that allows the addition of new application crypto engine types [1] and another draft patch that allows the configuration of custom tls engines for vcl apps [2]. The latter might change as we improve vcl integration with tls, but for now should do. I pushed the patch

Re: [vpp-dev] vppcom_session_connect blocking or non blocking

2019-10-21 Thread Florin Coras
ber? I see that > VPPCOM_ATTR_GET_ERROR is not working yet. > > Thank you. > > Пятница, 18 октября 2019, 18:04 +03:00 от Florin Coras > : > > Hi Max, > > I had this patch [1] that indirectly fixes the issue lying around. So, is an > EPOLLOUT | EPOLLHUP event

Re: [vpp-dev] GNU indent pain

2019-10-22 Thread Florin Coras
+1 I think we should do this independent of the “indent wars” Thanks, Florin > On Oct 22, 2019, at 10:09 AM, Damjan Marion via Lists.Fd.Io > wrote: > > > Folks, > > Now we have 2nd release of ubuntu out which comes with new GNU indent which > introduces lot of bug fixes. > Unfortunately o

Re: [vpp-dev] Can "use_mq_eventfd" solve epoll_wait high cpu usage problem?

2019-10-31 Thread Florin Coras
Hi, use_mq_eventfd will help with vcl but as you’ve noticed it won’t help for ldp because there we need to poll both vcl and linux fds. Because mutex-condvar notifications can’t be epolled we have to constantly switch between linux and vcl epolled fds. One option going forward would be to chan

Re: [vpp-dev] Can "use mq eventfd" solve epoll wait h igh cpu usage problem?

2019-10-31 Thread Florin Coras
5B%22wanghanlin%40corp.netease.com%22%5D&logoUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyeicon%2F209a2912f40f6683af56bb7caff1cb54.png> > 签名由 网易邮箱大师 <https://mail.163.com/dashi/dlpro.html?from=mail81> 定制 > On 10/31/2019 23:34,Florin Coras > <mailto:fcoras.li...@gmail.com> w

Re: [vpp-dev] Can "use mq eventfd" solve epoll wait h igh cpu usage problem?

2019-10-31 Thread Florin Coras
%2Fqiyelogo%2FdefaultAvatar.png&items=%5B%22wanghanlin%40corp.netease.com%22%5D&logoUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyeicon%2F209a2912f40f6683af56bb7caff1cb54.png> > 签名由 网易邮箱大师 <https://mail.163.com/dashi/dlpro.html?from=mail81> 定制 > On 11/1/2019 12:07,Florin Coras

Re: [vpp-dev] VPP crash in TCP FIFO allocation

2019-11-04 Thread Florin Coras
t; /dev/shm for memory allocation? > > Regards, > Akshaya N > > On Fri, Oct 25, 2019 at 2:03 AM Akshaya Nadahalli > mailto:akshaya.nadaha...@gmail.com>> wrote: > Sure, I will try to move to master and try it out. Will update once I am able > to test with master. > > R

Re: [vpp-dev] [VCL] hoststack app crash with invalid memfd segment address

2019-11-15 Thread Florin Coras
Hi Hanlin, Just to make sure, are you running master or some older VPP? Regarding the issue you could be hitting lower, here’s [1] a patch that I have not yet pushed for merging because it leads to api changes for applications that directly use the session layer application interface instead of

Re: [vpp-dev] UDP echo server-session-queue node TX event issue

2019-11-19 Thread Florin Coras
Hi Shiva, The echo client/server code was mainly built for tcp testing and was never made to properly work with udp (it does not support session worker migration). It did work with udpc (connected udp), but apparently that’s not currently selectable due to a transport protocol unformat bug fix

Re: [vpp-dev] Change to Gerrit

2019-11-20 Thread Florin Coras
+1 Florin > On Nov 20, 2019, at 10:32 AM, Paul Vinciguerra > wrote: > > How would the group feel about implementing something like [0], so that > changes to the commit message don't trigger rebuilds? > > To enforce the commit message structure, we could skip the jobs and set > verify label

Re: [vpp-dev] Requesting feedback on a change.

2019-11-20 Thread Florin Coras
Quick reply wrt to point 2. This is just the way I separate things, others may have different opinions: - I believe perror is called after some syscall fails. Alternatively, clib_unix_error/clib_unix_warning maybe used for the same purpose - If by local loggers you mean the vlib log infra, that

Re: [vpp-dev] [VCL] hoststack app crash with invalid memfd segment address

2019-11-21 Thread Florin Coras
tps://maas.mail.163.com/dashi-web-extend/html/proSignature.html?ftlId=1&name=wanghanlin&uid=wanghanlin%40corp.netease.com&iconUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyelogo%2FdefaultAvatar.png&items=%5B%22wanghanlin%40corp.netease.com%22%5D&logoUrl=https%3A%2F%2Fmail-on

Re: [vpp-dev] ldp write assert error

2019-11-21 Thread Florin Coras
Patch looks good! I’ll merge once the ci-infra issues are solved. Since you’re doing perf testing, I’ll note again, although I’m sure you already know it, that ldp performance is somewhat lower than that of vcl under certain types of load, because of vls locking. Thanks, Florin > On Nov 21, 2

Re: [vpp-dev] [VCL] hoststack app crash with invalid memfd segment address

2019-11-22 Thread Florin Coras
apply this patch and check it. Thanks a lot! >> >> Regards, >> Hanlin >> >> wanghanlin >> >> wanghan...@corp.netease.com >> >> <https://maas.mail.163.com/dashi-web-extend/html/proSignature.html?ftlId=1&name=wanghanlin&uid=wanghanlin%40corp.netease.com&i

Re: [vpp-dev] tcp_echo

2019-11-22 Thread Florin Coras
Hi Dom, You can’t run app debug binaries against vpp release binaries because dlmalloc will try to validate allocations between two processes. That’s the crash you got lower. Try to run vpp debug binaries with tcp_echo debug binaries. Most of our testing is based on vcl (say with iperf[1]). D

Re: [vpp-dev] ldp select/epoll with 0 timeout will make cpu 100% busy

2019-11-24 Thread Florin Coras
For optimal performance, we recommend that people integrate their applications with VCL. LDP functionally supports a number of applications, but for certain scenarios it is not optimal. In particular, it is not efficient when the application is heavily threaded because VLS (shim between VCL an

Re: [vpp-dev] Based on the VPP to Nginx testing #ngnix

2019-11-26 Thread Florin Coras
Hi, You’ll have to be a bit more specific with respect to the issues you’re hitting. Are you saying that nginx + wrk and vpp 19.08 result in really low throughput? Is this the first release of 19.08 or a later one like 19.08.3. Have you tried master? For throughput testing we typically use [1

Re: [vpp-dev] How to configure network between different namespaces using hoststack

2019-11-28 Thread Florin Coras
Hi Hanlin, Are your app namespaces mapped to the same vrf? If no, then your interfaces can have IPs out of the same subnet because they’re part of different vrf tables. To allow for connectivity between the vrfs you’ll need to do some “vrf leaking”. We do exactly that in our vcl make test (see

Re: [vpp-dev] How to configure network between different namespaces using hoststack

2019-11-29 Thread Florin Coras
Hi Hanlin, Inline. > On Nov 29, 2019, at 7:12 AM, wanghanlin wrote: > > Hi Florin, > Thanks for your reply. > I just consider a very simple use case. Some apps in different containers > communicate through VPP, just in a L2 bridge domain. > Without hoststack, we may add some host-interfac

Re: [vpp-dev] Based on the VPP to Nginx testing #ngnix #vpp

2019-12-01 Thread Florin Coras
Hi Yang.L, It looks as if nginx did not bind successfully or the connects are not routed to nginx (since your report is showing 0 requests in 30s). Check the routing between the two apps and vcl/ldp logs to see if there are any attach/bind errors. Regards, Florin > On Dec 1, 2019, at 6:31 P

Re: [vpp-dev] Using hoststack instead of tap

2019-12-02 Thread Florin Coras
Hi Paul, Are you thinking about using tcp to generate packets? If yes, probably you want to take a look at the iperf vcl tests (test/test_vcl.py). Regards, Florin > On Dec 2, 2019, at 9:57 AM, Paul Vinciguerra > wrote: > > There was a brief discussion on the community call about using hosts

Re: [vpp-dev] Based on the VPP to Nginx testing #ngnix #vpp

2019-12-02 Thread Florin Coras
Hi Yang.L, I just tried out nginx + debug vcl and ldp + debug vpp. Everything seems to be working fine. Once you start nginx, do you get any errors in /var/log/syslog. What does “show sessions verbose” return? There might be some issues with your config. Thanks, Florin > On Dec 2, 2019, at

Re: [vpp-dev] VPP / tcp_echo performance

2019-12-03 Thread Florin Coras
Hi Dom, I’ve never tried to run the stack in a VM, so not sure about the expected performance, but here are a couple of comments: - What fifo sizes are you using? Are they at least 4MB (see [1] for VCL configuration). - I don’t think you need to configure more than 16k buffers/numa. Addition

Re: [vpp-dev] VPP / tcp_echo performance

2019-12-04 Thread Florin Coras
Hi Dom, [traveling so a quick reply] For some reason, your rx/tx fifos (see nitems), and implicitly the snd and rcv wnd, are 64kB in your logs lower. Is this the tcp echo or iperf result? Regards, Florin > On Dec 4, 2019, at 7:29 AM, dch...@akouto.com wrote: > > Hi, > > Thank you Florin and

Re: [vpp-dev] VPP / tcp_echo performance

2019-12-04 Thread Florin Coras
Hi Dom, I suspect your client/server are really bursty in sending/receiving and your fifos are relatively small. So probably the delay in issuing the cli in the two vms is enough for the receiver to drain its rx fifo. Also, whenever the rx fifo on the receiver fills, the sender will most proba

Re: [vpp-dev] VPP / tcp_echo performance

2019-12-04 Thread Florin Coras
Hi Dom, I would actually recommend testing with iperf because it should not be slower than the builtin echo server/client apps. Remember to add fifo-size to your echo apps cli commands (something like fifo-size 4096 for 4MB) to increase the fifo sizes. Also note that you’re trying full-duplex

Re: [vpp-dev] How to configure network between different namespaces using hoststack

2019-12-05 Thread Florin Coras
912f40f6683af56bb7caff1cb54.png> > 签名由 网易邮箱大师 <https://mail.163.com/dashi/dlpro.html?from=mail81> 定制 > On 11/30/2019 02:47,Florin Coras > <mailto:fcoras.li...@gmail.com> wrote: > Hi Hanlin, > > Inline. > >> On Nov 29, 2019, at 7:12 AM, wanghanlin

Re: [vpp-dev] VPP / tcp_echo performance

2019-12-06 Thread Florin Coras
Hi Dom, Great to see progress! More inline. > On Dec 6, 2019, at 10:21 AM, dch...@akouto.com wrote: > > Hi Florin, > > Some progress, at least with the built-in echo app, thank you for all the > suggestions so far! By adjusting the fifo-size and testing in half-duplex I > was able to get cl

Re: [vpp-dev] How to configure network between different namespaces using hoststack

2019-12-06 Thread Florin Coras
mail-online.nosdn.127.net%2Fqiyeicon%2F209a2912f40f6683af56bb7caff1cb54.png> > 签名由 网易邮箱大师 <https://mail.163.com/dashi/dlpro.html?from=mail81> 定制 > On 12/6/2019 03:56,Florin Coras > <mailto:fcoras.li...@gmail.com> wrote: > Hi Hanlin, > > Inline. > >> On

Re: [vpp-dev] Based on the VPP to Nginx testing #ngnix #vpp

2019-12-06 Thread Florin Coras
Hi Lin, I don’t see anything obviously wrong. What is your vcl.conf? Also could you check the status of your nginx workers in vpp by doing: “show app” and then “show app ” where index is the index associated to your nginx app (if no other app is associated it should be 1). Here’s some examp

Re: [vpp-dev] How to configure network between different namespaces using hoststack

2019-12-09 Thread Florin Coras
ne.nosdn.127.net%2Fqiyelogo%2FdefaultAvatar.png&items=%5B%22wanghanlin%40corp.netease.com%22%5D&logoUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyeicon%2F209a2912f40f6683af56bb7caff1cb54.png> > 签名由 网易邮箱大师 <https://mail.163.com/dashi/dlpro.html?from=mail81> 定制 > On

Re: [vpp-dev] [VCL] hoststack app crash with invalid memfd segment address

2019-12-11 Thread Florin Coras
, Florin [1] https://gerrit.fd.io/r/c/vpp/+/23687 > On Nov 22, 2019, at 10:30 AM, Florin Coras wrote: > > Hi Hanlin, > > Okay, that’s a different issue. The expectation is that each vcl worker has a > different binary api transport into vpp. This assumption holds for &

Re: [vpp-dev] VPP / tcp_echo performance

2019-12-12 Thread Florin Coras
Hi Dom, > On Dec 12, 2019, at 12:29 PM, dch...@akouto.com wrote: > > Hi Florin, > > The saga continues, a little progress and more questions. In order to reduce > the variables, I am now only using VPP on one of the VMs: iperf3 server is > running on a VM with native Linux networking, and ip

Re: [vpp-dev] VPP / tcp_echo performance

2019-12-13 Thread Florin Coras
Hi Dom, From the logs it looks like TSO is not on. I wonder if the vhost nic actually honors the “tso on” flag. Have you also tried with native vhost driver, instead of the dpdk one? I’ve never tried with the tcp, so I don’t know if it properly advertises the fact that it supports TSO. Lower

Re: [vpp-dev] Based on the VPP to Nginx testing #ngnix #vpp

2019-12-26 Thread Florin Coras
Hi Yang.L, Could you try latest master? We’ve finally merged the patch that moves messages that request the mapping of new segments from binary api to app worker message queues. Regards, Florin > On Dec 26, 2019, at 12:10 AM, lin.yan...@zte.com.cn wrote: > > Hi Florin, > vcl.conf 's conten

Re: [vpp-dev] Based on the VPP to Nginx testing #ngnix #vpp

2019-12-26 Thread Florin Coras
Hi Yang.L, I suspect you may need to do a “git pull” and rebuild because the lines don’t match, i.e., vcl_session_accepted_handler:377 is now just an assignment. Let me know if that solves the issue. Regards, Florin > On Dec 26, 2019, at 10:11 PM, lin.yan...@zte.com.cn wrote: > > Hi Florin,

Re: [vpp-dev] Do we have any plan to introduce packetdrill to test VPP hoststack?

2019-12-30 Thread Florin Coras
Hi Hanlin, As far as I know, there are currently no plans for that, but that doesn’t mean we won’t accept contributions :-) Regarding what’s been done, over the past year, I’ve been using Defensics Codenomicon to validate TCP implementation before each release (more than 1M tests). FD.io

Re: [vpp-dev] Check in ip4_local_inline()

2020-01-03 Thread Florin Coras
Hi Nitin, I believe your observation is correct. Adding Neale in case we missed something. Regards, Florin > On Jan 3, 2020, at 10:32 AM, Nitin Saxena wrote: > > Hi Dave, > > Thanks. > > I agree with your point that there is less chance of consecutive packets > having same source IP. H

Re: [vpp-dev] Is VppCom suitable for this scenario

2020-01-06 Thread Florin Coras
Hi Satya, VCL is a library applications can link against to interact with vpp’s host stack in a way similar to but not quite POSIX compliant. That is, it can be used to open sessions with various transports (e.g., tcp, quic, tls) to send/receive data in a synchronous and asynchronous manner. T

Re: [vpp-dev] Is VppCom suitable for this scenario

2020-01-07 Thread Florin Coras
Hi Satya, Glad it helped! You may want to use svm queues or message queues similarly to how the session queue node does. For instance, see how messages are dequeued in session_queue_node_fn. Regards, Florin > On Jan 6, 2020, at 10:45 PM, Satya Murthy wrote: > > Hi Florin, > > Thank you ve

Re: [vpp-dev] vpp assert error whtn nginx start with ldp

2020-01-07 Thread Florin Coras
Hi, Not entirely sure what’s happening there. I just tried nginx with master latest and binding 4 workers seems to work. In your case it looks as if a listening session associated to an app listener was freed. Not sure how that could happen. Anything special about your nginx or vcl configura

[vpp-dev] Arm verify job broken

2020-01-14 Thread Florin Coras
Hi, Jobs have been failing since yesterday. Did anybody try to look into it? Regards, Florin -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15164): https://lists.fd.io/g/vpp-dev/message/15164 Mute This Topic: https://lists.fd.io/mt/69698855/21656

Re: [vpp-dev] #vpp-hoststack - Issue with UDP receiver application using VCL library

2020-01-14 Thread Florin Coras
Hi Raj, Session layer does support connection-less transports but udp does not raise accept notifications to vcl. UDPC might, but we haven’t tested udpc with vcl in a long time so it might not work properly. What was the problem you were hitting in the non-connected case? Regards, Florin > O

Re: [vpp-dev] Arm verify job broken

2020-01-14 Thread Florin Coras
ully > > thanks for the ping > > Ed > > > >> On Jan 14, 2020, at 11:40 AM, Florin Coras > <mailto:fcoras.li...@gmail.com>> wrote: >> >> Hi, >> >> Jobs have been failing since yesterday. Did anybody try to look into it? >>

Re: [vpp-dev] #vpp-hoststack - Issue with UDP receiver application using VCL library

2020-01-14 Thread Florin Coras
os 0x00, flow label 0x0, hop limit 64, payload length 1458 > UDP: 60593 -> 8092 > length 1458, checksum 0x0964 > 00:23:39:401361: ip6-local > UDP: fd0d:edc4::2001::201 -> fd0d:edc4::2001::203 > tos 0x00, flow label 0x0, hop limit 64, payload length 1458

Re: [vpp-dev] [VCL] hoststack app crash with invalid memfd segment address

2020-01-19 Thread Florin Coras
etease.com&iconUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyelogo%2FdefaultAvatar.png&items=%5B%22wanghanlin%40corp.netease.com%22%5D&logoUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyeicon%2F209a2912f40f6683af56bb7caff1cb54.png> > 签名由 网易邮箱大师 <https://mail.163.com/dashi/dl

Re: [vpp-dev] #vpp-hoststack - Issue with UDP receiver application using VCL library

2020-01-19 Thread Florin Coras
UDP: 56944 -> 8092 > length 1458, checksum 0xb22d > 00:09:53:445032: ip6-local > UDP: fd0d:edc4::2001::201 -> fd0d:edc4::2001::203 > tos 0x00, flow label 0x0, hop limit 64, payload length 1458 > UDP: 56944 -> 8092 > length 1458, checksum

Re: [vpp-dev] #vpp-hoststack - Issue with UDP receiver application using VCL library

2020-01-20 Thread Florin Coras
no sessions > Thread 6: no sessions > Thread 7: no sessions > vpp# sh app client > Connection App > [#1][U] fd0d:edc4::2001::203:58926->udp6_tx_8092[shm] > [#1][U] fd0d:edc4::2001::203:63413->udp6_tx_8093[shm] > vpp# > > > &g

Re: [vpp-dev] #vpp-hoststack - Issue with UDP receiver application using VCL library

2020-01-21 Thread Florin Coras
frag ipv6-tcp ipv6-udp ipv6-other >ipv6-ex ipv6 > tx burst function: (nil) > rx burst function: mlx5_rx_burst > > thanks, > -Raj > > On Mon, Jan 20, 2020 at 7:55 PM Florin Coras <mailto:fcoras.li...@gmail.com>> wrote: > H

[vpp-dev] Docs and test-docs jobs are unstable

2020-01-22 Thread Florin Coras
Hi, All verify jobs are now failing because of these. “lftools command not found” seems to be the issue but not the only error. Could somebody take a look at them? Regards, Florin-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15221): https://

Re: [vpp-dev] Docs and test-docs jobs are unstable

2020-01-22 Thread Florin Coras
so and have raised it with >> LF folks as well. >> >> More hopefully soon. >> >> Ed >> >> >> >> >> >>> On Jan 22, 2020, at 8:28 AM, Florin Coras wrote: >>> >>> Hi, >>> >>> All verify j

Re: [vpp-dev] Based on the VPP to Nginx testing #ngnix #vpp

2020-02-13 Thread Florin Coras
ion, can someone provide me > the steps for the same? > > Regards, > Amit > > On Fri, Dec 27, 2019 at 11:57 AM Florin Coras <mailto:fcoras.li...@gmail.com>> wrote: > Hi Yang.L, > > I suspect you may need to do a “git pull” and rebuild because the lines don’t

Re: [vpp-dev] 128k performance is not good as kTCP #vpp #mellanox

2020-02-15 Thread Florin Coras
Hi Sejun, I’ve never tried spdk, so I can’t know for sure where the issue lies but possible sources of problems could be: - mlx5 driver in combination with vpp. Have you tried vpp’s native rdma based driver [1]? - TSO is not enabled by default for tcp in vpp. To enable it, you’d need to change

Re: [vpp-dev] VCL client connect error

2020-02-17 Thread Florin Coras
Hi Satya, Why are you commenting out the group (gid) configuration? The complaint is that vcl cannot connect to vpp’s binary api, so that may be part of the problem, if the user running vcl cannot read the binary api shared memory segment. You could also try connecting using private connectio

Re: [vpp-dev] vpp_echo UDP performance

2020-02-19 Thread Florin Coras
Hi Dom, UDP is without any flow/congestion control. That is, there is nothing to push back on the sender when it over drives the receiver. Increasing the number of rx descriptors probably helps a bit but unless the rx nic is faster, I don’t know if there’s anything else that could avoid the dr

Re: [vpp-dev] vpp_echo UDP performance

2020-02-19 Thread Florin Coras
Hi Don, Inline. > On Feb 19, 2020, at 11:54 AM, dchons via Lists.Fd.Io > wrote: > > Hi Florin, > > Thanks for the response. I'm not so concerned about the packet drops (as you > point out it is to be expected), however increasing the number of rx > descriptors did help a lot, so thank you

Re: [vpp-dev] vpp_echo UDP performance

2020-02-19 Thread Florin Coras
Hi Dom, Now that you mention it, it’s the same for my nics. Nonetheless, the packets that reach ip4-local are marked as having a valid l4 checksum. Check in ip4_local_check_l4_csum_x2 and ip4_local_check_l4_csum if ip4_local_l4_csum_validate is called or not. If not, there’s no extra overhead

Re: [vpp-dev] vpp_echo UDP performance

2020-02-19 Thread Florin Coras
Hi Dom, Was about to suggest that you used this [1] but I see you already figured it up. Let me know what’s wrong with the echo app once you get a chance to debug it. Regards, Florin [1] https://gerrit.fd.io/r/c/vpp/+/25286 > On Feb 19, 2020, at 2:14 PM, dchons via Lists.Fd.Io > wrote: >

Re: [vpp-dev] vpp_echo UDP performance

2020-02-20 Thread Florin Coras
Hi Dom, That’s a really high vector rate. What cpu are you using? I’ve tried your config locally and I’m getting under 10Gbps with high rx drops. On the other hand, with vcl test client/server apps, after a bit of tweaking, I can saturate my 40Gbps nics with udpc (udp connection pinned to a t

Re: [vpp-dev] Regarding SCTP support in VPP host stack

2020-02-21 Thread Florin Coras
Hi Guruprasad, SCTP plugin has not been maintained in a long time and in vpp 20.05 we’ve actually removed the code. Regards, Florin > On Feb 16, 2020, at 10:25 PM, Guru Prasad wrote: > > Hi, > > Could anyone please help me on below queries: > > i)VPP_ECHO client and server application sup

Re: [vpp-dev] VCL library

2020-02-25 Thread Florin Coras
Hi Kusuma, No. For that you’ll have to use the builtin C apis. See the example echo client/server, http server or proxy apps here [1]. Regards, Florin [1] https://git.fd.io/vpp/tree/src/plugins/hs_apps > On Feb 25, 2020, at 2:55 AM, Kusuma DS wrote: > > Hi, > > I have one question relate

Re: [vpp-dev] TLS configuration & throughput

2020-02-25 Thread Florin Coras
Hi Dom, First of all, tls code is not optimized and there are some scheduling inefficiencies that we are aware of and which do affect overall performance. Having said that, you might be able to improve throughput by increasing rx and tx buffer sizes (any reason for keeping them that small?).

Re: [vpp-dev] TLS configuration & throughput

2020-02-26 Thread Florin Coras
Hi Dom, Out of curiosity, I tried out testing tls throughput with iperf. Note that this is a bit of a hack, i.e., ldp can transparently convert tcp connections into tls connections if the right environment variables are set (see more [1]). Sporadically, this does exhibit some setup instability

Re: [vpp-dev] TLS configuration & throughput

2020-02-26 Thread Florin Coras
Hi Dom, Is the iperf client returning an error or does it crash? Do you get any errors in /var/log/syslog? Also, do a “sh session verbose” on both nodes to see if there’s any data pending in the rx/tx fifos. Regards, Florin > On Feb 26, 2020, at 10:26 AM, dchons via Lists.Fd.Io > wrote:

Re: [vpp-dev] TLS configuration & throughput

2020-02-26 Thread Florin Coras
Hi Dom, It could be that you’re hitting more often the issues that I also encountered locally. And yes, I noticed that even the server side has sporadic issues. Given that iperf works fine with tcp, I assume tls re-segments data in a way that iperf does not like. Now, with respect to the thr

Re: [vpp-dev] Multiple UDP receiver applications on same port #vpp-hoststack

2020-02-26 Thread Florin Coras
Hi Raj, Now that’s interesting. VPP detects when an application dies (binary api mechanism) and forces through the session layer a de-attach which in turn leads to an unbind. In case of udp, not tcp, we have a shim layer that redirects udp packets to whomever registered for a certain port. I

Re: [vpp-dev] TLS configuration & throughput

2020-02-28 Thread Florin Coras
Hi Dom, I guess you’re not using vpp master. Loops/s should appear in the line you highlighted Regards, Florin > On Feb 28, 2020, at 8:54 AM, dchons via Lists.Fd.Io > wrote: > > Hi Florin, > > I got another test run and was able to do the clear run; show run as you > suggested about 10 s

Re: [vpp-dev] vpp project committers: formal vote to add Matt Smith as a vpp committer

2020-03-02 Thread Florin Coras
+1 Regards, Florin > On Mar 2, 2020, at 6:15 AM, d...@barachs.net wrote: > > VPP committers, please vote +1, 0, -1 on adding Matt Smith > (mgsm...@netgate.com ) as a vpp project > committer. > Matt has contributed O(100) merged patches, and he recently contributed

Re: [vpp-dev] Query about internal apps

2020-03-11 Thread Florin Coras
Hi Kusuma, Not sure I understand the question. You want to deliver data to internal applications (supposedly using the session layer) without going through nodes like ip-local? If not, what do you mean by “sending through host stack”? Regards, Florin > On Mar 11, 2020, at 11:16 AM, Kusuma D

Re: [vpp-dev] Query about internal apps

2020-03-11 Thread Florin Coras
ds, Florin > On Mar 11, 2020, at 12:03 PM, Kusuma DS wrote: > > Hi Florin, > > I wanted to avoid using session api. > I meant host stack is session apis. > > Is there any method to send the data to internal apps? > > Regards, > Kusuma >

Re: [vpp-dev] Query about internal apps

2020-03-12 Thread Florin Coras
Hi Ole, Vivek, If I understand this right, you’re looking to intercept l2 packets in vpp (supposedly only from certain hosts), process them and maybe generate some return traffic. What is the payload of those l2 packets? You could write a feature that inspects all traffic on a certain interfac

Re: [vpp-dev] A question about using packetdrill test vpp hoststack

2020-03-12 Thread Florin Coras
Hi Longfei, For protocol correctness, the only tool I’ve used is Defensics Codenomicon, which has about 1.2M tests and only needs an http terminator. Therefore, nginx + ldp is enough. Having said that, it would be great to also support packetdrill. As for your issue, I’m not entirely sure wh

Re: [vpp-dev] Is there any Linux FD to poll for VCL message

2020-03-12 Thread Florin Coras
Hi Murthy, Yes it does, although we’re guilty of not having it properly documented. The message queue used between vpp and a vcl worker can do both mutex/condvar and eventfd notifications. The former is the default but you can switch to eventfds by adding to vcl.conf "use-mq-eventfd”. You can

Re: [vpp-dev] Is there any Linux FD to poll for VCL message

2020-03-13 Thread Florin Coras
Hi Murthy, Inline. > On Mar 13, 2020, at 4:54 AM, Satya Murthy wrote: > > Hi Florin, > > Thank you very much for the inputs. > These are very difficult to understand unless we go through the code in > detail. > Today, Whole day, I was trying to follow your instructions and get this > worki

Re: [vpp-dev] Query about internal apps

2020-03-13 Thread Florin Coras
Hi Vivek, Inline. > On Mar 12, 2020, at 11:06 PM, Vivek Gupta wrote: > > Hi Florin, > > Please see inline. > > Regards, > Vivek > > -Original Message- > From: Florin Coras > Sent: Thursday, March 12, 2020 8:09 PM > To: Ole Troan >

Re: [vpp-dev] Is there any Linux FD to poll for VCL message

2020-03-13 Thread Florin Coras
Hi Murthy, Glad it helps! By construction, when vcl is initialized (vppcom_app_create()) only one worker is initialized. As long as you don’t register other workers (vppcom_worker_register), you don’t really have to worry about anything else and there are no performance penalties. It’s import

Re: [vpp-dev] Is there any Linux FD to poll for VCL message

2020-03-16 Thread Florin Coras
Hi Murthy, Inline. > On Mar 16, 2020, at 12:35 AM, Satya Murthy wrote: > > Hi Florin, > > Over the weekend, I went through the document that you mentioned and it gave > me a good overview. Thanks for pointing to that doc. > However, my task of integrating mqs->epfd into our main dispatch loop

Re: [vpp-dev] how to create a session from thin air?

2020-03-16 Thread Florin Coras
> > In our UPF plugin [1], I need to terminate a TCP connection with a non-local > destination IP *and* pass metadata from the plugin into the session. > > I have solve this for the moment with some very ugly hacks. Florin Coras has > rightly criticise those hacks in earlier

<    1   2   3   4   5   6   7   8   >