From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 53F6E378E for ; Thu, 23 Jul 2015 04:51:47 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 22 Jul 2015 19:51:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,527,1432623600"; d="scan'208";a="733882849" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga001.jf.intel.com with ESMTP; 22 Jul 2015 19:51:45 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t6N2pZhF003799; Thu, 23 Jul 2015 10:51:35 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t6N2pXpO007650; Thu, 23 Jul 2015 10:51:35 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t6N2pXIZ007646; Thu, 23 Jul 2015 10:51:33 +0800 From: Yong Liu To: dts@dpdk.org Date: Thu, 23 Jul 2015 10:51:31 +0800 Message-Id: <1437619891-7614-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] Enhance unfied packet type feature test plan 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: , X-List-Received-Date: Thu, 23 Jul 2015 02:51:48 -0000 From: Marvin Liu Enhance i350 and niantic packet type detect case. Forville l2 type named changed from "MAC" to "Ether". Signed-off-by: Marvin Liu diff --git a/test_plans/uni_pkt_test_plan.rst b/test_plans/uni_pkt_test_plan.rst index fc30308..c42308b 100644 --- a/test_plans/uni_pkt_test_plan.rst +++ b/test_plans/uni_pkt_test_plan.rst @@ -67,24 +67,27 @@ Send time sync packet from tester:: iface=txItf) Check below message dumped by testpmd:: - (outer) L2 type: MAC Timesync + (outer) L2 type: ETHER_Timesync Send ARP packet from tester:: - sendp([Ether(dst='FF:FF:FF:FF:FF:FF'/ARP()], + sendp([Ether(dst='FF:FF:FF:FF:FF:FF')/ARP()], iface=txItf) Check below message dumped by testpmd:: - (outer) L2 type: ARP + (outer) L2 type: ETHER_ARP Send LLDP packet from tester:: sendp([Ether()/LLDP()/LLDPManagementAddress()], iface=txItf) Check below message dumped by testpmd:: - (outer) L2 type: LLDP + (outer) L2 type: ETHER_LLDP Test Case: IPv4&L4 packet type detect ===================================== This case checked that whether L3 and L4 packet can be normally detected. +Niantic and i350 will shown that L2 type is MAC. +Only Fortville can detect icmp packet. +Only niantic and i350 can detect ipv4 extension packet. Fortville did not detect whether packet contian ipv4 header options, so L3 type will be shown as IPV4_EXT_UNKNOWN. Fortville will identify all unrecognized L4 packet as L4_NONFRAG. @@ -93,48 +96,53 @@ Only Fortville can inentify L4 fragement packet. Send IP only packet and verify L2/L3/L4 corrected:: sendp([Ether()/IP()/Raw('\0'*60)], iface=txItf) - (outer) L2 type: MAC + (outer) L2 type: ETHER (outer) L3 type: IPV4 (outer) L4 type: Unknown Send IP+UDP packet and verify L2/L3/L4 corrected:: sendp([Ether()/IP()/UDP()/Raw('\0'*60)], iface=txItf) - - (outer) L2 type: MAC - (outer) L3 type: IPV4 + (outer) L4 type: UDP Send IP+TCP packet and verify L2/L3/L4 corrected:: sendp([Ether()/IP()/TCP()/Raw('\0'*60)], iface=txItf) - - (outer) L2 type: MAC - (outer) L3 type: IPV4 + (outer) L4 type: TCP Send IP+SCTP packet and verify L2/L3/L4 corrected:: sendp([Ether()/IP()/SCTP()/Raw('\0'*60)], iface=txItf) - - (outer) L2 type: MAC - (outer) L3 type: IPV4 + (outer) L4 type: SCTP -Send IP+ICMP packet and verify L2/L3/L4 corrected:: +Send IP+ICMP packet and verify L2/L3/L4 corrected(Fortville):: sendp([Ether()/IP()/ICMP()/Raw('\0'*60)], iface=txItf) - (outer) L2 type: MAC - (outer) L3 type: IPV4 (outer) L4 type: ICMP -Send IP fragment+TCP packet and verify L2/L3/L4 corrected:: +Send IP fragment+TCP packet and verify L2/L3/L4 corrected(Fortville):: sendp([Ether()/IP(frag=5)/TCP()/Raw('\0'*60)], iface=txItf) - - (outer) L2 type: MAC + + (outer) L2 type: ETHER (outer) L3 type: IPV4_EXT_UNKNOWN (outer) L4 type: L4_FRAG +Send IP extension packet and verify L2/L3 corrected(Niantic,i350):: + sendp([Ether()/IP(ihl=10)/Raw('\0'*40)],iface=txItf) + + (outer) L3 type: IPV4_EXT + (outer) L4 type: Unknown + +Send IP extension+SCTP packet and verify L2/L3/L4 corrected(Niantic,i350):: + sendp([Ether()/IP(ihl=10)/SCTP()/Raw('\0'*40)],iface=txItf) + + (outer) L3 type: IPV4_EXT + (outer) L4 type: SCTP + Test Case: IPv6&L4 packet type detect ===================================== This case checked that whether IPv6 and L4 packet can be normally detected. +Niantic and i350 will shown that L2 type is MAC. Fortville did not detect whether packet contian ipv6 extension options, so L3 type will be shown as IPV6_EXT_UNKNOWN. Fortville will identify all unrecognized L4 packet as L4_NONFRAG. @@ -143,31 +151,31 @@ Only Fortville can inentify L4 fragement packet. Send IPv6 only packet and verify L2/L3/L4 corrected:: sendp([Ether()/IPv6()/Raw('\0'*60)], iface=txItf) - (outer) L2 type: MAC + (outer) L2 type: ETHER (outer) L3 type: IPV6 (outer) L4 type: Unknown Send IPv6+UDP packet and verify L2/L3/L4 corrected:: sendp([Ether()/IPv6()/UDP()/Raw('\0'*60)], iface=txItf) - (outer) L2 type: MAC - (outer) L3 type: IPV6 (outer) L4 type: UDP Send IPv6+TCP packet and verify L2/L3/L4 corrected:: sendp([Ether()/IPv6()/TCP()/Raw('\0'*60)], iface=txItf) - (outer) L2 type: MAC - (outer) L3 type: IPV6 (outer) L4 type: TCP -Send IPv6 fragment packet and verify L2/L3/L4 corrected:: +Send IPv6 fragment packet and verify L2/L3/L4 corrected(Fortville):: sendp([Ether()/IPv6()/IPv6ExtHdrFragment()/Raw('\0'*60)],iface=txItf) - (outer) L2 type: MAC (outer) L3 type: IPV6_EXT_UNKNOWN (outer) L4 type: L4_FRAG +Send IPv6 fragment packet and verify L2/L3/L4 corrected(Niantic,i350):: + sendp([Ether()/IPv6()/IPv6ExtHdrFragment()/Raw('\0'*60)],iface=txItf) + + (outer) L3 type: IPV6_EXT + (outer) L4 type: Unknown Test Case: IP in IPv4 tunnel packet type detect =============================================== @@ -177,7 +185,7 @@ detected by Fortville. Send IPv4+IPv4 fragment packet and verify inner and outer L2/L3/L4 corrected:: sendp([Ether()/IP()/IP(frag=5)/UDP()/Raw('\0'*40)], iface=txItf) - (outer) L2 type: MAC + (outer) L2 type: ETHER (outer) L3 type: IPV4_EXT_UNKNOWN (outer) L4 type: Unknown Tunnel type: IP @@ -217,7 +225,7 @@ Send IPv4+IPv6 fragment packet and inner and outer L2/L3/L4 corrected:: Inner L4 type: L4_FRAG Send IPv4+IPv6 packet and verify inner and outer L2/L3/L4 corrected:: - sendp([Ether()/IP()/IPv6()/IPv6ExtHdrFragment()/Raw('\0'*40)],iface=txItf) + sendp([Ether()/IP()/IPv6()/Raw('\0'*40)],iface=txItf) Inner L4 type: L4_NONFRAG @@ -241,10 +249,10 @@ Send IPv4+IPv6+ICMP packet and verify inner and outer L2/L3/L4 corrected:: Inner L4 type: ICMP -Test Case: IPv6 in IPv4 tunnel packet type detect by niantic -============================================================ +Test Case: IPv6 in IPv4 tunnel packet type detect by niantic and i350 +===================================================================== This case checked that whether IPv4 in IPv6 tunnel packet can be normally -detected by Niantic. +detected by Niantic and i350. Send IPv4+IPv6 packet and verify inner and outer L2/L3/L4 corrected:: sendp([Ether()/IP()/IPv6()/Raw('\0'*40)], iface=txItf) @@ -295,7 +303,7 @@ detected by Fortville. Send IPv4+IPv4 fragment packet and verify inner and outer L2/L3/L4 corrected:: sendp([Ether()/IP()/IP(frag=5)/UDP()/Raw('\0'*40)],iface=txItf) - (outer) L2 type: MAC + (outer) L2 type: ETHER (outer) L3 type: IPV4_EXT_UNKNOWN (outer) L4 type: Unknown Tunnel type: IP @@ -373,11 +381,11 @@ corrected:: sendp([Ether()/IP()/NVGRE()/Ether()/IP(frag=5)/Raw('\0'*40)], iface=txItf) - (outer) L2 type: MAC + (outer) L2 type: ETHER (outer) L3 type: IPV4_EXT_UNKNOWN (outer) L4 type: Unknown Tunnel type: GRENAT - Inner L2 type: MAC + Inner L2 type: ETHER Inner L3 type: IPV4_EXT_UNKNOWN Inner L4 type: L4_FRAG @@ -392,7 +400,7 @@ Send IPv4+NVGRE+MAC_VLAN packet and verify inner and outer L2/L3/L4 corrected:: sendp([Ether()/IP()/NVGRE()/Ether()/Dot1Q()/Raw('\0'*40)], iface=txItf) - Inner L2 type: MAC_VLAN + Inner L2 type: ETHER_VLAN Inner L4 type: Unknown Send IPv4+NVGRE+MAC_VLAN+IPv4 fragment packet and verify inner and outer @@ -428,7 +436,7 @@ Send IPv4+NVGRE+MAC_VLAN+IPv4+SCTP packet and verify inner and outer L2/L3/L4 corrected:: sendp([Ether()/IP()/NVGRE()/Ether()/Dot1Q()/IP()/SCTP()/Raw('\0'*40)], iface=txItf) - Inner L4 type: UDP + Inner L4 type: SCTP Send IPv4+NVGRE+MAC_VLAN+IPv4+ICMP packet and verify inner and outer L2/L3/L4 corrected:: @@ -488,11 +496,11 @@ be displayed as GRENAT. Send IPV6+NVGRE+MAC packet and verify inner and outer L2/L3/L4 corrected:: sendp([Ether()/IPv6(nh=47)/NVGRE()/Ether()/Raw('\0'*18)], iface=txItf) - (outer) L2 type: MAC + (outer) L2 type: ETHER (outer) L3 type: IPV6_EXT_UNKNOWN (outer) L4 type: Unknown Tunnel type: GRENAT - Inner L2 type: MAC + Inner L2 type: ETHER Inner L3 type: Unkown Inner L4 type: Unknown @@ -587,7 +595,7 @@ corrected:: sendp([Ether()/IPv6(nh=47)/NVGRE()/Ether()/Dot1Q()/IP(frag=5)/ Raw('\0'*40)], iface=txItf) - Inner L2 type: MAC_VLAN + Inner L2 type: ETHER_VLAN Inner L3 type: IPV4_EXT_UNKNOWN Inner L4 type: L4_FRAG @@ -680,7 +688,7 @@ Send IPv4+GRE+IPv4 fragment packet and verify inner and outer L2/L3/L4 corrected:: sendp([Ether()/IP()/GRE()/IP(frag=5)/Raw('x'*40)], iface=txItf) - (outer) L2 type: MAC + (outer) L2 type: ETHER (outer) L3 type: IPV4_EXT_UNKNOWN (outer) L4 type: Unknown Tunnel type: GRENAT @@ -731,11 +739,11 @@ corrected:: sendp([Ether()/IP()/UDP()/Vxlan()/Ether()/IP(frag=5)/Raw('\0'*40)], iface=txItf) - (outer) L2 type: MAC + (outer) L2 type: ETHER (outer) L3 type: IPV4_EXT_UNKNOWN (outer) L4 type: Unknown Tunnel type: GRENAT - Inner L2 type: MAC + Inner L2 type: ETHER Inner L3 type: IPV4_EXT_UNKNOWN Inner L4 type: L4_FRAG @@ -798,7 +806,7 @@ corrected:: Send IPv4+Vxlan+MAC+IPv6+TCP packet and verify inner and outer L2/L3/L4 corrected:: - sendp([Ether()/IP()/UDP()/Vxlan()/Ether()/IPv6()/UDP()/Raw('\0'*40)], + sendp([Ether()/IP()/UDP()/Vxlan()/Ether()/IPv6()/TCP()/Raw('\0'*40)], iface=txItf) Inner L4 type: TCP -- 1.9.3