Hi Florin, Thank you for replying. Sure, I will test with half-duplex mode.
Shiva On Wed, Nov 20, 2019 at 7:44 AM Florin Coras <[email protected]> wrote: > 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 fixed > here [1]. > > Apart from that, some other observations regarding the echo clients test > app: > - it expects data to be delivered reliably by the transport, so if you > ever try udpc in full-duplex mode (as you did lower with udp) and packets > are dropped, the test will fail. To use half-duplex testing, add “no-echo” > to the server cli and “no-return” to client cli. > - if you aim to measure throughput, be sure to configure fifo-size to a > larger value than the default of 64k. Note though that udp is currently not > paced, so it can easily overwhelm the tx nic, thereby leading to tx-errors. > > Florin > > [1] https://gerrit.fd.io/r/c/vpp/+/23551 > > On Nov 19, 2019, at 3:32 AM, Shiva Shankar <[email protected]> > wrote: > > Hi All, > I am validating builtin echo sever client node functionality with UDP > protocol by running 2 VPP instances on 2 different hosts. > > On VPP1, running echo server with the test command "*echo server uri udp: > //1.2.3.4 <http://1.2.3.4/> /9999 <http://1.2.3.4/9999>*" > On VPP2, running echo client with the test command "*test echo client > nclients 1 gbytes 10 test-timeout 10 uri udp://1.2.3.4/9999 > <http://1.2.3.4/9999>*" > > On the server-side, packets are received without any issue. However, while > echoing back from the server app RX callback, VPP is not sending packets > out. > Looks like we are running out of RX buffers because of TX events not > processed by session node. > > Error case logs: > 1: echo_server_rx_callback:287: short trout! written 0 read 82 > 1: echo_server_rx_callback:287: short trout! written 0 read 82 > 1: echo_server_rx_callback:287: short trout! written 0 read 82 > 1: echo_server_rx_callback:287: short trout! written 0 read 82 > 1: echo_server_rx_callback:287: short trout! written 0 read 82 > 1: echo_server_rx_callback:287: short trout! written 0 read 82 > > If I "*manually place*" session-queue node on the main thread (thread 0) > things are working normally. Also, This issue is not seen if the protocol > is TCP. > > Am I missing something obvious? > > -Shiva > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14635): https://lists.fd.io/g/vpp-dev/message/14635 Mute This Topic: https://lists.fd.io/mt/60553538/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
