Re: [vpp-dev] Policer download bandwidth reduces on high rtt connection
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 IdxState MTU (L3/IP4/IP6/MPLS) Counter Count GigabitEthernet0/14/1 1 up 1500/0/0/0 rx packets 15390 rx bytes22443048 tx packets32 tx bytes2533 drops 12 punt 1 ip415386 Thanks and Regards, Raj On Mon, Dec 23, 2019 at 11:25 PM Raj via 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 -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]
[vpp-dev] Policer download bandwidth reduces on high rtt connection
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 -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