From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 64D2EA0471 for ; Wed, 14 Aug 2019 05:28:52 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 11ADE1BE8A; Wed, 14 Aug 2019 05:28:52 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id B2A6B1BE85 for ; Wed, 14 Aug 2019 05:28:50 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Aug 2019 20:28:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,383,1559545200"; d="scan'208";a="200699013" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga004.fm.intel.com with ESMTP; 13 Aug 2019 20:28:49 -0700 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 13 Aug 2019 20:28:48 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.80]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.15]) with mapi id 14.03.0439.000; Wed, 14 Aug 2019 11:28:46 +0800 From: "Tu, Lijuan" To: "Peng, Yuan" , "dts@dpdk.org" CC: "Peng, Yuan" Thread-Topic: [dts] [PATCH]test_plans: add cases to qos_meter_test_plan.rst Thread-Index: AQHVUOFYR2E1AB84Jka1mBX476VFDKb5/vPw Date: Wed, 14 Aug 2019 03:28:46 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB02470@SHSMSX101.ccr.corp.intel.com> References: <1565595887-64969-1-git-send-email-yuan.peng@intel.com> In-Reply-To: <1565595887-64969-1-git-send-email-yuan.peng@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzNjNTgxYWUtZTZkNC00ZGZmLWEyZmYtZGIwNGNmYWYzMDI2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiNVMwY2hGVkFjWko1ckl5dEpESlVDNGR2eVFJNWxUVnlhN0tBUHJWZG1BZjJUMVVpQmhYS3Y3RmhsVFRjU1wvRFkifQ== x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH]test_plans: add cases to qos_meter_test_plan.rst X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Peng Yuan > Sent: Monday, August 12, 2019 3:45 PM > To: dts@dpdk.org > Cc: Peng, Yuan > Subject: [dts] [PATCH]test_plans: add cases to qos_meter_test_plan.rst >=20 > Add some cases to qos_meter_test_plan.rst >=20 > Signed-off-by: Peng Yuan >=20 > diff --git a/test_plans/qos_meter_test_plan.rst > b/test_plans/qos_meter_test_plan.rst > index 671c6ce..8e20167 100644 > --- a/test_plans/qos_meter_test_plan.rst > +++ b/test_plans/qos_meter_test_plan.rst > @@ -60,15 +60,35 @@ dut_port_1 : "0000:05:00.1" >=20 > APP_MODE_SRTCM_COLOR_BLIND >=20 > -Test Case: srTCM blind > -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > -1. The application is constrained to use a single core in the EAL core m= ask > +4. The policy table is:: > + > + policer_table[RTE_COLORS][RTE_COLORS] =3D > + { > + { GREEN, RED, RED}, > + { DROP, YELLOW, RED}, > + { DROP, DROP, RED} > + }; > + > + In which:: > + > + GREEN =3D 0; YELLOW =3D 1; RED =3D 2; DROP =3D 3. > + > + So the policy action is decided by input_color and output_color. > + > +5. The application is constrained to use a single core in the EAL core > +mask > and 2 ports only in the application port mask (first port from the po= rt > mask is used for RX and the other port in the core mask is used for T= X):: >=20 > ./build/qos_meter -c 1 -n 4 -- -p 0x3 >=20 > -2. Assuming the input traffic is generated at line rate and all packets > +Test Case: srTCM blind input color RED > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +1. The input color of packets depends on the value "APP_PKT_COLOR_POS". > + The default value is 5, caculate the input_color is "RED" > + > +2. Use the default setting, the packets are 64 bytes Ethernet frames, > + and the metering mode is srTCM blind. > + Assuming the input traffic is generated at line rate and all packets > are 64 bytes Ethernet frames (IPv4 packet size of 46 bytes) and green= , > the expected output traffic should be marked as shown in the followin= g > table: > @@ -87,7 +107,175 @@ Test Case: srTCM blind > | FWD | 14.88 | 0 | 0 | > +-------------+------------------------------+------------+ >=20 > -3. Use the default setting, the packets are 64 bytes Ethernet frames, > - and the metering mode is srTCM blind. > - The green packets are dropped. > + The data is caculated by "cir =3D 1000000 * 46, .cbs =3D 2048, .ebs = =3D 2048". > + The linerate is 14.88Mpps, 1Mpps packets output_color are marked > Green, > + 13.88Mpps packets output_color are marked Red and Yellow. > + mapping the policer_table[2][0](DROP), policer_table[2][1](YELLOW) > + and policer_table[2][2](RED). > So the valid frames received on the peer IXIA port is 13.88(Mpps). > + > +Test Case: srTCM blind input color GREEN > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +1. The input color of packets depends on the value "APP_PKT_COLOR_POS". > + Set:: > + > + #define APP_PKT_COLOR_POS 3 > + > + Caculate the input_color is "GREEN". > + > +2. Use the default setting, the packets are 64 bytes Ethernet frames, > + and the metering mode is srTCM blind. > + All the packets are mapped to the first row policer_table[0][0](GREEN= ), > + and policer_table[0][1](RED) and policer_table[0][2](RED). > + So the valid frames received on the peer IXIA port is 14.88(Mpps). > + > +Test Case: srTCM aware input color RED > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +1. The input color of packets depends on the value "APP_PKT_COLOR_POS". > + Set:: > + > + #define APP_PKT_COLOR_POS 5 > + > + Caculate the input_color is "RED". > + > +2. Use the default setting, the packets are 64 bytes Ethernet frames, > + and the metering mode is srTCM aware:: > + > + #define APP_MODE APP_MODE_SRTCM_COLOR_AWARE > + > +3. In Color-Aware mode, if the input color is red, then output color is = red > too. > + See the RFC 2697 file. > + The linerate is 14.88Mpps, all packets output_color are marked red, > + mapping the policer_table[2][2](RED). > + So the valid frames received on the peer IXIA port is 14.88(Mpps). > + > +Test Case: trTCM blind mode > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > +1. The input color of packets depends on the value "APP_PKT_COLOR_POS". > + Set:: > + > + #define APP_PKT_COLOR_POS 5 > + > + Caculate the input_color is "RED". > + > +2. Use the default setting, the packets are 64 bytes Ethernet frames, > + and the metering mode is trTCM blind:: > + > + #define APP_MODE APP_MODE_TRTCM_COLOR_BLIND > + > +3. In Color-Blind mode, the output color has nothing to do with input co= lor. > + See the RFC 2698 file. > + The linerate is 14.88Mpps, 1Mpps packets output_color are marked > Green, > + 0.5Mpps packets are marked yellow, 13.38Mpps packets output_color are > marked Red. > + Mapping the policer_table[2][0](DROP), policer_table[2][1](DROP) > + and policer_table[2][2](RED). > + So the valid frames received on the peer IXIA port is 13.38(Mpps). > + > +4. If Set:: > + > + #define APP_PKT_COLOR_POS 4 > + > + Caculate the input_color is "YELLOW". > + Mapping the policer_table[1][0](DROP), policer_table[1][1](YELLOW) > + and policer_table[1][2](RED). > + The valid frames received on the peer IXIA port is 13.88(Mpps). > + > +5. If Set:: > + > + #define APP_PKT_COLOR_POS 3 > + > + Caculate the input_color is "GREEN". > + Mapping the policer_table[0][0](GREEN), policer_table[0][1](RED) > + and policer_table[0][2](RED). > + The valid frames received on the peer IXIA port is 14.88(Mpps). > + > +Test Case: trTCM aware mode > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > +1. The input color of packets depends on the value "APP_PKT_COLOR_POS". > + Set:: > + > + #define APP_PKT_COLOR_POS 5 > + > + Caculate the input_color is "RED". > + > +2. Use the default setting, the packets are 64 bytes Ethernet frames, > + and the metering mode is trTCM aware:: > + > + #define APP_MODE APP_MODE_TRTCM_COLOR_AWARE > + > +3. See the RFC 2698 file. > + If the packet has been precolored as red or if Tp(t)-B < 0, the packe= t is red, > + So all packets output_color are marked Red. > + Mapping the policer_table[2][2](RED). > + So the valid frames received on the peer IXIA port is 14.88(Mpps). > + > +4. If Set:: > + > + #define APP_PKT_COLOR_POS 4 > + > + Caculate the input_color is "YELLOW". > + If the packet has been precolored as yellow or if Tc(t)-B < 0, > + the packet is yellow and Tp is decremented by B > + So all packets output_color are marked yellow. > + Mapping the policer_table[2][2](YELLOW). > + The valid frames received on the peer IXIA port is 14.88(Mpps). > + > +5. If Set:: > + > + #define APP_PKT_COLOR_POS 3 > + > + Caculate the input_color is "GREEN". > + See the RFC 2698 file, all packets output_color are marked green. > + The valid frames received on the peer IXIA port is 14.88(Mpps). > + > +Test Case: srTCM blind changed CBS and EBS > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +1. Use the default settings:: > + > + #define APP_MODE APP_MODE_SRTCM_COLOR_BLIND > + #define APP_PKT_COLOR_POS 5 > + > + Caculate the input_color is "RED". > + > +2. Set app_srtcm_params:: > + > + .cbs =3D 64, > + .ebs =3D 512 > + > +3. The metering mode is srTCM blind. > + The packets are 64 bytes Ethernet frames, the IPv4 packet size of 46 = bytes. > + The linerate is 14.88Mpps, 1.01Mpps packets output_color are marked > Green and yellow, > + 13.87Mpps packets output_color are marked red. > + Mapping the policer_table[2][0]/[2][1](DROP) and policer_table[2][2](= RED). > + So the valid frames received on the peer IXIA port is 13.87(Mpps). > + The drop percent is 6.79% > + > +4. The packets are 82 bytes Ethernet frames, the IPv4 packet size of 64 = bytes. > + The linerate is 12.255 Mpps, the valid frames received on the peer IX= IA > port is 11.530Mpps. > + The drop percent is 5.92%. > + If set policer_table[2][0] "GREEN", > + the valid frames received on the peer IXIA port is 12.142Mpps. > + The drop percent is 0.92%. > + So the packets whose output color are marked green are 5%, yellow 0.9= 2%, > red 94.08%. > + > +5. The packets are 83 bytes Ethernet frames, the IPv4 packet size of 65 > bytes > cbs. > + The linerate is 12.135 Mpps, the valid frames received on the peer IX= IA > port is 11.422Mpps. > + The drop percent is 5.88%. > + If set policer_table[2][0] "GREEN", > + the valid frames received on the peer IXIA port is still 11.422Mpps. > + So the packets whose output color are marked green are 0%, yellow 5.8= 8%, > red 94.12%. > + > +6. The packets are 146 bytes Ethernet frames, the IPv4 packet size of 12= 8 > bytes. > + The linerate is 7.530 Mpps, the valid frames received on the peer IXI= A > port is 7.168Mpps. > + The dropped packets are marked yellow, others are marked red. > + The drop percent is 4.81%. > + > +7. The packets are 512 bytes Ethernet frames, the IPv4 packet size of 53= 0 > bytes. > + The linerate is 2.272 Mpps, the valid frames received on the peer IXI= A > port is 2.191Mpps. > + The dropped packets are marked yellow, others are marked red. > + The drop percent is 3.57%. > + > +8. The packets are 513 bytes Ethernet frames, the IPv4 packet size of 53= 1 > bytes > ebs. > + The linerate is 2.268 Mpps, the valid frames received on the peer IXI= A > port is 2.268Mpps. > + All the packets are marked red. > + The drop percent is 0%. > -- > 2.7.4