Hello all, It looks like the input interface is not receiving all packets. iperf is sending 35176 packets but GigabitEthernet0/14/1 is showing only 15390 rx packets, which is approximately 56% packet loss. So this is not a policer issue, but some thing related to dpdk-input I guess. My startup config has dpdk section totally commented out. Is this a case of missing some parameters?
[ ID] Interval Transfer Bitrate Jitter Lost/Total Datagrams [ 5] 0.00-10.00 sec 47.7 MBytes 40.0 Mbits/sec 0.000 ms 0/35176 (0%) sender [SUM] 0.0-10.0 sec 13 datagrams received out-of-order [ 5] 0.00-10.00 sec 20.8 MBytes 17.4 Mbits/sec 0.131 ms 19827/35176 (56%) receiver DBGvpp# sh int GigabitEthernet0/14/1 Name Idx State MTU (L3/IP4/IP6/MPLS) Counter Count GigabitEthernet0/14/1 1 up 1500/0/0/0 rx packets 15390 rx bytes 22443048 tx packets 32 tx bytes 2533 drops 12 punt 1 ip4 15386 Thanks and Regards, Raj On Mon, Dec 23, 2019 at 11:25 PM Raj via Lists.Fd.Io <rajlistuser=gmail....@lists.fd.io> wrote: > > Hello all, > > In VPP I have configured policer to limit 50mbps bandwidth upload and > download to an IP. > > vpp# sh policer > Name "lap50_dw_20191223_212712" type 2r3c-4115 > cir 51200 eir 51456 cb 12800 eb 1536000 > rate type kbps, round type up > conform action transmit, exceed action transmit, violate action drop > > Template policer at 7ff7b20cb36c: dual rate, not color-aware > cir 709911 tok/period, pir 713461 tok/period, scale 11 > cur lim 26214400, cur bkt 26214400, ext lim 3145728000, ext bkt 3145728000 > last update 0 > ----------- > Name "lap50_up_20191223_212712" type 2r3c-4115 > cir 51200 eir 51456 cb 12800 eb 1536000 > rate type kbps, round type up > conform action transmit, exceed action transmit, violate action drop > > Template policer at 7ff7b20cb3ac: dual rate, not color-aware > cir 709911 tok/period, pir 713461 tok/period, scale 11 > cur lim 26214400, cur bkt 26214400, ext lim 3145728000, ext bkt 3145728000 > last update 0 > > When iperf is run over UDP and TCP from a server with a round trip > time of 24ms I get full 50mbps for TCP and UDP for both upload and > download. > > But when the same test is performed from a server with rtt of 162ms or > even 46ms, I get full upload speed, but download speed is around > 17mbps, for both TCP and UDP. > > The iperf server is running on remote server and in local machine I > used the following command: > > iperf3 -c <server ip> -t 20 -u -b 40M -R. > > This is kind of baffling and would appreciate if there are any > pointers I can look to figure out what is happening. > > The output is as follows (here I am testing with 40mbps UDP in iperf) > > 24ms: > > [ ID] Interval Transfer Bitrate Jitter > Lost/Total Datagrams > [ 5] 0.00-1.00 sec 4.89 MBytes 41.0 Mbits/sec 0.014 ms 0/3613 (0%) > [ 5] 1.00-2.00 sec 4.76 MBytes 40.0 Mbits/sec 0.019 ms 0/3517 (0%) > [ 5] 2.00-3.00 sec 4.77 MBytes 40.0 Mbits/sec 0.017 ms 0/3521 (0%) > [ 5] 3.00-4.00 sec 4.77 MBytes 40.0 Mbits/sec 0.018 ms 0/3521 (0%) > [ 5] 4.00-5.00 sec 4.77 MBytes 40.0 Mbits/sec 0.017 ms 0/3521 (0%) > [ 5] 5.00-6.00 sec 4.77 MBytes 40.0 Mbits/sec 0.018 ms 0/3524 (0%) > [ 5] 6.00-7.00 sec 4.77 MBytes 40.0 Mbits/sec 0.021 ms 0/3519 (0%) > [ 5] 7.00-8.00 sec 4.77 MBytes 40.0 Mbits/sec 0.020 ms 0/3521 (0%) > [ 5] 8.00-9.00 sec 4.77 MBytes 40.0 Mbits/sec 0.024 ms 0/3522 (0%) > [ 5] 9.00-10.00 sec 4.76 MBytes 40.0 Mbits/sec 0.023 ms 0/3517 (0%) > [ 5] 10.00-11.00 sec 4.77 MBytes 40.0 Mbits/sec 0.020 ms 0/3523 (0%) > [ 5] 11.00-12.00 sec 4.77 MBytes 40.0 Mbits/sec 0.016 ms 0/3522 (0%) > [ 5] 12.00-13.00 sec 4.76 MBytes 40.0 Mbits/sec 0.020 ms 0/3518 (0%) > [ 5] 13.00-14.00 sec 4.77 MBytes 40.0 Mbits/sec 0.018 ms 0/3522 (0%) > [ 5] 14.00-15.00 sec 4.77 MBytes 40.0 Mbits/sec 0.018 ms 0/3523 (0%) > [ 5] 15.00-16.00 sec 4.77 MBytes 40.0 Mbits/sec 0.022 ms 0/3520 (0%) > [ 5] 16.00-17.00 sec 4.77 MBytes 40.0 Mbits/sec 0.020 ms 0/3522 (0%) > [ 5] 17.00-18.00 sec 4.77 MBytes 40.0 Mbits/sec 0.019 ms 0/3520 (0%) > [ 5] 18.00-19.00 sec 4.76 MBytes 40.0 Mbits/sec 0.025 ms 0/3518 (0%) > [ 5] 19.00-20.00 sec 4.77 MBytes 40.0 Mbits/sec 0.022 ms 0/3524 (0%) > - - - - - - - - - - - - - - - - - - - - - - - - - > [ ID] Interval Transfer Bitrate Jitter > Lost/Total Datagrams > [ 5] 0.00-20.00 sec 95.5 MBytes 40.1 Mbits/sec 0.000 ms > 0/70555 (0%) sender > [SUM] 0.0-20.0 sec 58 datagrams received out-of-order > [ 5] 0.00-20.00 sec 95.5 MBytes 40.1 Mbits/sec 0.019 ms > 0/70555 (0%) receiver > > 46ms: > > [ ID] Interval Transfer Bitrate Jitter > Lost/Total Datagrams > [ 5] 0.00-1.00 sec 2.09 MBytes 17.5 Mbits/sec 0.124 ms 1930/3473 > (56%) > [ 5] 1.00-2.00 sec 2.14 MBytes 17.9 Mbits/sec 0.135 ms 1978/3557 > (56%) > [ 5] 2.00-3.00 sec 2.12 MBytes 17.8 Mbits/sec 0.142 ms 1926/3489 > (55%) > [ 5] 3.00-4.00 sec 2.26 MBytes 19.0 Mbits/sec 0.151 ms 1905/3575 > (53%) > [ 5] 4.00-5.00 sec 2.07 MBytes 17.4 Mbits/sec 0.131 ms 1959/3490 > (56%) > [ 5] 5.00-6.00 sec 2.13 MBytes 17.8 Mbits/sec 0.127 ms 1961/3532 > (56%) > [ 5] 6.00-7.00 sec 2.09 MBytes 17.5 Mbits/sec 0.128 ms 1984/3525 > (56%) > [ 5] 7.00-8.00 sec 2.08 MBytes 17.4 Mbits/sec 0.126 ms 1982/3515 > (56%) > [ 5] 8.00-9.00 sec 2.03 MBytes 17.0 Mbits/sec 0.133 ms 2025/3523 > (57%) > [ 5] 9.00-10.00 sec 1.99 MBytes 16.7 Mbits/sec 0.127 ms 2049/3521 > (58%) > [ 5] 10.00-11.00 sec 1.99 MBytes 16.7 Mbits/sec 0.132 ms 2072/3543 > (58%) > [ 5] 11.00-12.00 sec 2.02 MBytes 16.9 Mbits/sec 0.131 ms 2013/3503 > (57%) > [ 5] 12.00-13.00 sec 1.99 MBytes 16.7 Mbits/sec 0.137 ms 2058/3531 > (58%) > [ 5] 13.00-14.00 sec 2.11 MBytes 17.7 Mbits/sec 0.150 ms 1954/3512 > (56%) > [ 5] 14.00-15.00 sec 2.01 MBytes 16.9 Mbits/sec 0.127 ms 1995/3479 > (57%) > [ 5] 15.00-16.00 sec 1.96 MBytes 16.5 Mbits/sec 0.132 ms 2133/3582 > (60%) > [ 5] 16.00-17.00 sec 2.01 MBytes 16.8 Mbits/sec 0.131 ms 2011/3492 > (58%) > [ 5] 17.00-18.00 sec 2.03 MBytes 17.0 Mbits/sec 0.129 ms 1993/3493 > (57%) > [ 5] 18.00-19.00 sec 2.04 MBytes 17.1 Mbits/sec 0.132 ms 2059/3566 > (58%) > [ 5] 19.00-20.00 sec 2.12 MBytes 17.8 Mbits/sec 0.127 ms 1970/3533 > (56%) > - - - - - - - - - - - - - - - - - - - - - - - - - > [ ID] Interval Transfer Bitrate Jitter > Lost/Total Datagrams > [ 5] 0.00-20.00 sec 95.4 MBytes 40.0 Mbits/sec 0.000 ms > 0/70434 (0%) sender > [SUM] 0.0-20.0 sec 14 datagrams received out-of-order > [ 5] 0.00-20.00 sec 41.3 MBytes 17.3 Mbits/sec 0.127 ms > 39957/70434 (57%) receiver > > 162ms: > > [ ID] Interval Transfer Bitrate Jitter > Lost/Total Datagrams > [ 5] 0.00-1.00 sec 2.04 MBytes 17.1 Mbits/sec 0.149 ms 1976/3484 > (57%) > [ 5] 1.00-2.00 sec 2.08 MBytes 17.4 Mbits/sec 0.149 ms 1993/3527 > (57%) > [ 5] 2.00-3.00 sec 2.05 MBytes 17.2 Mbits/sec 0.160 ms 2015/3527 > (57%) > [ 5] 3.00-4.00 sec 1.99 MBytes 16.7 Mbits/sec 0.138 ms 2035/3508 > (58%) > [ 5] 4.00-5.00 sec 2.03 MBytes 17.0 Mbits/sec 0.137 ms 2025/3525 > (57%) > [ 5] 5.00-6.00 sec 2.02 MBytes 16.9 Mbits/sec 0.147 ms 2047/3537 > (58%) > [ 5] 6.00-7.00 sec 2.02 MBytes 16.9 Mbits/sec 0.137 ms 2060/3552 > (58%) > [ 5] 7.00-8.00 sec 2.01 MBytes 16.9 Mbits/sec 0.142 ms 1989/3473 > (57%) > [ 5] 8.00-9.00 sec 2.04 MBytes 17.1 Mbits/sec 0.152 ms 2068/3572 > (58%) > [ 5] 9.00-10.00 sec 2.02 MBytes 17.0 Mbits/sec 0.144 ms 2000/3493 > (57%) > [ 5] 10.00-11.00 sec 2.07 MBytes 17.3 Mbits/sec 0.136 ms 2006/3531 > (57%) > [ 5] 11.00-12.00 sec 2.07 MBytes 17.4 Mbits/sec 0.141 ms 2011/3540 > (57%) > [ 5] 12.00-13.00 sec 2.02 MBytes 16.9 Mbits/sec 0.133 ms 1968/3458 > (57%) > [ 5] 13.00-14.00 sec 2.03 MBytes 17.1 Mbits/sec 0.139 ms 2026/3528 > (57%) > [ 5] 14.00-15.00 sec 2.01 MBytes 16.9 Mbits/sec 0.136 ms 2031/3516 > (58%) > [ 5] 15.00-16.00 sec 2.07 MBytes 17.4 Mbits/sec 0.143 ms 2021/3551 > (57%) > [ 5] 16.00-17.00 sec 2.06 MBytes 17.3 Mbits/sec 0.138 ms 1972/3495 > (56%) > [ 5] 17.00-18.00 sec 2.07 MBytes 17.4 Mbits/sec 0.143 ms 2009/3537 > (57%) > [ 5] 18.00-19.00 sec 2.05 MBytes 17.2 Mbits/sec 0.165 ms 2050/3563 > (58%) > [ 5] 19.00-20.00 sec 2.06 MBytes 17.3 Mbits/sec 0.142 ms 1952/3473 > (56%) > - - - - - - - - - - - - - - - - - - - - - - - - - > [ ID] Interval Transfer Bitrate Jitter > Lost/Total Datagrams > [ 5] 0.00-20.00 sec 96.0 MBytes 40.3 Mbits/sec 0.000 ms > 0/70904 (0%) sender > [SUM] 0.0-20.0 sec 67 datagrams received out-of-order > [ 5] 0.00-20.00 sec 41.2 MBytes 17.3 Mbits/sec 0.106 ms > 40505/70904 (57%) receiver > > > > Thanks and Regards, > > Raj > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > > View/Reply Online (#14957): https://lists.fd.io/g/vpp-dev/message/14957 > Mute This Topic: https://lists.fd.io/mt/69236177/157026 > Group Owner: vpp-dev+ow...@lists.fd.io > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [rajlistu...@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14958): https://lists.fd.io/g/vpp-dev/message/14958 Mute This Topic: https://lists.fd.io/mt/69236177/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-