Hi Shankar, 

What vpp version is this? For optimizations, could you take a look at a recent 
version of [1]?

Having said that, let’s try debugging this in small steps. First, I’d recommend 
not exporting LD_PRELOAD instead doing something like:

sudo sh -c “LD_PRELOAD=<path> VCL_CONFIG=<path> iperf3 -4 -s”
sudo sh -c “LD_PRELOAD=<path> VCL_CONFIG=<path> iperf3 -c 10.21.120.181”

I’m assuming here that you’re running 2 vpps on two different hosts. Also, no 
need for -b on client side, tcp tests scale up by default. 

With respect to your startup.conf, no need to configure default buffer size, 
buffers can be kept at 16384. With recent vpp versions  evt_qs_memfd_seg is no 
longer needed under session stanza. 

If results don’t change. “show session verbose 2” on both client and server 
side vpp. 

Regards,
Florin

[1] https://wiki.fd.io/view/VPP/HostStack/LDP/iperf

> On Mar 22, 2022, at 1:39 PM, Shankar Raju <shankar.r...@nasdaq.com> wrote:
> 
> Hi Guys,
>  
> I’m trying to test VPP configuration with iperf3 and I running into the 
> following issue. 
> ·         Iperf3 client is able to make a connection with the server, but the 
> client receives data for the first 0-1 second and then it does not receive 
> any traffic from the server. The bitrate is zero after that.
>  
> Here’s my startup.conf and vcl.conf
>  
> STARTUP.CONF
>  
> unix {
>   nodaemon
>   log /var/log/vpp/vpp.log
>   full-coredump
>   cli-listen /run/vpp/cli.sock
>   gid vpp
>  
>   ## run vpp in the interactive mode
>   # interactive
>  
>   ## do not use colors in terminal output
>   # nocolor
>  
>   ## do not display banner
>   # nobanner
> }
>  
>  
> api-segment {
>   gid vpp
> }
>  
> socksvr {
>   default
> }
>  
> dpdk {
>   uio-driver vfio-pci
>   dev 0000:00:06.0 {
>     name eth1
>   }
> }
>  
> buffers {
>   buffers-per-numa 65536
>   default data-size 2048
> }
>  
> cpu {
>   main-core 0
>   workers 1
> }
>  
> session {
>   evt_qs_memfd_seg
> }
>  
> VCL.CONF
> vcl {
>   rx-fifo-size 800000
>   tx-fifo-size 800000
>   app-scope-local
>   app-scope-global
>   api-socket-name /var/run/vpp/api.sock
> }
>  
> Steps I followed:
>  
> ·         Set IP address through vpcctl
> Iperf3 server command:
> ·         export LD_PRELOAD=$LDP_PATH && export VCL_CONFIG=$VCL_CFG
> ·         iperf3 -4 -s -A 1 -V
>  
> iperf3 client command:
> ·         export LD_PRELOAD=$LDP_PATH && export VCL_CONFIG=$VCL_CFG
> ·         iperf3 -c 10.21.120.181 -u -A 1 -V -b 0
>  
> Client side output:
>  
> iperf3 -c 10.21.120.181 -A 1 -V
> iperf 3.7
> Linux ip-10-21-120-48 5.13.0-1019-aws #21~20.04.1-Ubuntu SMP Wed Mar 16 
> 11:54:08 UTC 2022 x86_64
> Control connection MSS 1448
> Time: Tue, 22 Mar 2022 19:38:53 GMT
> Connecting to host 10.21.120.181, port 5201
>       Cookie: 3crb2g5fkqv6atlhbe7z6kr4r5kcgjj2tfeb
>       TCP MSS: 1448 (default)
> [ 33] local 10.21.120.128 port 35336 connected to 10.21.120.181 port 5201
> Starting Test: protocol: TCP, 1 streams, 131072 byte blocks, omitting 0 
> seconds, 10 second test, tos 0
> [ ID] Interval           Transfer     Bitrate         Retr  Cwnd
> [ 33]   0.00-1.00   sec   256 KBytes  2.10 Mbits/sec    0   0.00 Bytes
> [ 33]   1.00-2.01   sec  0.00 Bytes  0.00 bits/sec    0   0.00 Bytes
> [ 33]   2.01-3.00   sec  0.00 Bytes  0.00 bits/sec    0   0.00 Bytes
> [ 33]   3.00-4.01   sec  0.00 Bytes  0.00 bits/sec    0   0.00 Bytes
> [ 33]   4.01-5.00   sec  0.00 Bytes  0.00 bits/sec    0   0.00 Bytes
>  
> Server side output:
>  
> iperf3 -4 -s -A 1 -V
> iperf 3.7
> Linux ip-10-21-120-83 5.13.0-1019-aws #21~20.04.1-Ubuntu SMP Wed Mar 16 
> 11:54:08 UTC 2022 x86_64
> -----------------------------------------------------------
> Server listening on 5201
> -----------------------------------------------------------
> Time: Tue, 22 Mar 2022 19:38:53 GMT
> Accepted connection from 10.21.120.128, port 2061
>       Cookie: 3crb2g5fkqv6atlhbe7z6kr4r5kcgjj2tfeb
>       TCP MSS: 0 (default)
> [ 34] local 10.21.120.181 port 5201 connected to 10.21.120.128 port 35336
> Starting Test: protocol: TCP, 1 streams, 131072 byte blocks, omitting 0 
> seconds, 10 second test, tos 0
> [ ID] Interval           Transfer     Bitrate
> [ 34]   0.00-1.00   sec  0.00 Bytes  0.00 bits/sec
> [ 34]   1.00-2.00   sec  0.00 Bytes  0.00 bits/sec
> [ 34]   2.00-3.01   sec  0.00 Bytes  0.00 bits/sec
> [ 34]   3.01-4.01   sec  0.00 Bytes  0.00 bits/sec
>  
> Please let me know if I’m configuring something wrong.
>  
> Thanks
>  
> Shankar Raju
>  
>  
> 
> 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21098): https://lists.fd.io/g/vpp-dev/message/21098
Mute This Topic: https://lists.fd.io/mt/89961794/21656
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