* [LTP] [PATCH 2/4] network/stress/icmp: remove old multi-diffip/* tests
2016-05-09 7:57 [LTP] [PATCH 1/4] network/stress/icmp: add icmp-multi-diffip.sh to implement diffip stress test Hangbin Liu
@ 2016-05-09 7:57 ` Hangbin Liu
2016-05-09 7:57 ` [LTP] [PATCH 3/4] network/stress/icmp: add icmp-multi-diffnic.sh to implement diffnic stress test Hangbin Liu
` (2 subsequent siblings)
3 siblings, 0 replies; 11+ messages in thread
From: Hangbin Liu @ 2016-05-09 7:57 UTC (permalink / raw)
To: ltp
multi-diffip/* tests have been rewritten and the new version
can be found in icmp/icmp-multi-diffip.sh.
Signed-off-by: Hangbin Liu <haliu@redhat.com>
---
.../stress/icmp/multi-diffip/00_Descriptions.txt | 56 ---
.../network/stress/icmp/multi-diffip/Makefile | 31 --
.../stress/icmp/multi-diffip/icmp4-multi-diffip01 | 378 ---------------------
.../stress/icmp/multi-diffip/icmp4-multi-diffip02 | 66 ----
.../stress/icmp/multi-diffip/icmp4-multi-diffip03 | 67 ----
.../stress/icmp/multi-diffip/icmp4-multi-diffip04 | 66 ----
.../stress/icmp/multi-diffip/icmp4-multi-diffip05 | 67 ----
.../stress/icmp/multi-diffip/icmp4-multi-diffip06 | 67 ----
.../stress/icmp/multi-diffip/icmp4-multi-diffip07 | 66 ----
.../stress/icmp/multi-diffip/icmp6-multi-diffip01 | 56 ---
.../stress/icmp/multi-diffip/icmp6-multi-diffip02 | 66 ----
.../stress/icmp/multi-diffip/icmp6-multi-diffip03 | 67 ----
.../stress/icmp/multi-diffip/icmp6-multi-diffip04 | 66 ----
.../stress/icmp/multi-diffip/icmp6-multi-diffip05 | 67 ----
.../stress/icmp/multi-diffip/icmp6-multi-diffip06 | 67 ----
.../stress/icmp/multi-diffip/icmp6-multi-diffip07 | 66 ----
16 files changed, 1319 deletions(-)
delete mode 100644 testcases/network/stress/icmp/multi-diffip/00_Descriptions.txt
delete mode 100644 testcases/network/stress/icmp/multi-diffip/Makefile
delete mode 100644 testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip01
delete mode 100644 testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip02
delete mode 100644 testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip03
delete mode 100644 testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip04
delete mode 100644 testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip05
delete mode 100644 testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip06
delete mode 100644 testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip07
delete mode 100644 testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip01
delete mode 100644 testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip02
delete mode 100644 testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip03
delete mode 100644 testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip04
delete mode 100644 testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip05
delete mode 100644 testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip06
delete mode 100644 testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip07
diff --git a/testcases/network/stress/icmp/multi-diffip/00_Descriptions.txt b/testcases/network/stress/icmp/multi-diffip/00_Descriptions.txt
deleted file mode 100644
index 4ac83b5..0000000
--- a/testcases/network/stress/icmp/multi-diffip/00_Descriptions.txt
+++ /dev/null
@@ -1,56 +0,0 @@
-Verify that the kernel is not crashed with receiving and sending various
-size of ICMP message at the different IP address(alias) simultaneously
-
-icmp4-multi-diffip01
- IPv4
-
-icmp4-multi-diffip02
- IPv4
- IPsec [ AH / transport ]
-
-icmp4-multi-diffip03
- IPv4
- IPsec [ AH / tunnel ]
-
-icmp4-multi-diffip04
- IPv4
- IPsec [ ESP / transport ]
-
-icmp4-multi-diffip05
- IPv4
- IPsec [ ESP / tunnel ]
-
-icmp4-multi-diffip06
- IPv4
- IPcomp [ transport ]
-
-icmp4-multi-diffip07
- IPv4
- IPcomp [ tunnel ]
-
-icmp6-multi-diffip01
- IPv6
-
-icmp6-multi-diffip02
- IPv6
- IPsec [ AH / transport ]
-
-icmp6-multi-diffip03
- IPv6
- IPsec [ AH / tunnel ]
-
-icmp6-multi-diffip04
- IPv6
- IPsec [ ESP / transport ]
-
-icmp6-multi-diffip05
- IPv6
- IPsec [ ESP / tunnel ]
-
-icmp6-multi-diffip06
- IPv6
- IPcomp [ transport ]
-
-icmp6-multi-diffip07
- IPv6
- IPcomp [ tunnel ]
diff --git a/testcases/network/stress/icmp/multi-diffip/Makefile b/testcases/network/stress/icmp/multi-diffip/Makefile
deleted file mode 100644
index d114c45..0000000
--- a/testcases/network/stress/icmp/multi-diffip/Makefile
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# network/stress/icmp/multi-diffip testcases Makefile.
-#
-# Copyright (C) 2009, Cisco Systems Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# Garrett Cooper, October 2009
-#
-
-top_srcdir ?= ../../../../..
-
-include $(top_srcdir)/include/mk/env_pre.mk
-
-INSTALL_TARGETS := icmp*
-
-MAKE_TARGETS :=
-
-include $(top_srcdir)/include/mk/generic_leaf_target.mk
diff --git a/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip01 b/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip01
deleted file mode 100644
index ad2da16..0000000
--- a/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip01
+++ /dev/null
@@ -1,378 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp4-multi-diffip01
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at different IP address(alias) with the following conditions
-# - The version of IP is IPv4
-# - IPsec is not used
-#
-# *) This script may be read by the other test case
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-# The test case ID, the test case count and the total number of test case
-TCID=${TCID:-icmp4-multi-diffip01}
-TST_TOTAL=1
-TST_COUNT=1
-export TCID
-export TST_COUNT
-export TST_TOTAL
-
-# Test description
-tst_resm TINFO "Verify that the kernel is not crashed with receiving and sending various size of ICMP message at the different IP address(alias) simultaneously with the following conditions"
-
-# Make sure the value of LTPROOT
-LTPROOT=${LTPROOT:-`(cd ../../../../.. ; pwd)`}
-export LTPROOT
-
-# Check the environmanet variable
-. check_envval || exit $TST_TOTAL
-
-# Dulation of the test [sec]
-NS_DURATION=${NS_DURATION:-3600} # 1 hour
-
-# The number of IP address (alias)
-IP_TOTAL_FOR_TCPIP=${IP_TOTAL_FOR_TCPIP:-100}
-
-# The number of the test link where tests run
-LINK_NUM=${LINK_NUM:-0}
-
-# The version of IP
-IP_VER=${IP_VER:-4}
-
-# true, if ipsec is used
-DO_IPSEC=${DO_IPSEC:-false}
-
-# The value of SPI
-SPI=${SPI:-1000}
-
-# IPsec Protocol ( ah / esp / ipcomp )
-IPSEC_PROTO=${IPSEC_PROTO:-ah}
-
-# IPsec Mode ( transport / tunnel )
-IPSEC_MODE=${IPSEC_MODE:-transport}
-
-# Array of the echo request packet size
-ICMP_SIZE_ARRAY=${ICMP_SIZE_ARRAY:-"10 100 1000 10000 65507"}
-
-
-#-----------------------------------------------------------------------
-#
-# Function: do_cleanup
-#
-# Description:
-# Recover the system configuration
-#
-#-----------------------------------------------------------------------
-do_cleanup()
-{
- # Kill the icmp traffic server
- killall_icmp_traffic
-
- # Unset SAD/SPD
- output_ipsec_conf flush | setkey -c >/dev/null 2>&1
- $LTP_RSH $RHOST ${LTPROOT}/'testcases/bin/output_ipsec_conf flush | PATH=/sbin:/usr/sbin:$PATH setkey -c' >/dev/null 2>&1
-
- # Clean up each interface
- initialize_if lhost ${LINK_NUM}
- initialize_if rhost ${LINK_NUM}
-}
-
-
-#-----------------------------------------------------------------------
-#
-# Setup
-#
-
-# Unset the maximum number of processes
-ulimit -u unlimited
-
-# Output the informaion
-tst_resm TINFO "- Test duration is $NS_DURATION [sec]"
-tst_resm TINFO "- Target number of the connection is $IP_TOTAL_FOR_TCPIP"
-tst_resm TINFO "- Version of IP is IPv${IP_VER}"
-tst_resm TINFO "- Size of packets are ( $ICMP_SIZE_ARRAY )"
-
-if $DO_IPSEC ; then
- message=`check_setkey`
- if [ $? -ne 0 ]; then
- tst_resm TBROK "$message"
- exit 1
- fi
-
- case $IPSEC_PROTO in
- ah)
- tst_resm TINFO "- IPsec [ AH / $IPSEC_MODE ]"
- ;;
- esp)
- tst_resm TINFO "- IPsec [ ESP / $IPSEC_MODE ]"
- ;;
- ipcomp)
- tst_resm TINFO "- IPcomp [ $IPSEC_MODE ]"
- ;;
- esac
-fi
-
-
-# name of interface of the local/remote host
-lhost_ifname=`get_ifname lhost $LINK_NUM`
-if [ $? -ne 0 ]; then
- tst_resm TBROK "Failed to get the interface name at the local host"
- exit $TST_TOTAL
-fi
-
-rhost_ifname=`get_ifname rhost $LINK_NUM`
-if [ $? -ne 0 ]; then
- tst_resm TBROK "Failed to get the interface name at the remote host"
- exit $TST_TOTAL
-fi
-
-
-# Initialize the system configuration
-do_cleanup
-
-# Call do_cleanup function before exit
-trap do_cleanup 0
-
-# Loop to assign IP addresses
-ipaddr_pair_num=0
-while [ $ipaddr_pair_num -lt $IP_TOTAL_FOR_TCPIP ]; do
- # Add new IP addresses
- x=`expr $ipaddr_pair_num \/ 255 % 255`
- y=`expr $ipaddr_pair_num % 255`
- if [ $x -ge 255 ]; then
- tst_info TINFO "This script cannot add more than $ipaddr_pair_num addresses"
- break
- fi
-
- case $IP_VER in
- 4)
- network_part="10.${x}.${y}"
- network_broadcast=${network_part}.255
- network_mask=24
- lhost_addr="${network_part}.2"
- rhost_addr="${network_part}.1"
-
- # Set IPv4 addresses to the interfaces
- ip addr add ${lhost_addr}/${network_mask} broadcast $network_broadcast dev $lhost_ifname
-
- ### delete before setting
- if [ $? -eq 2 ]; then
- ip addr del ${lhost_addr}/${network_mask} broadcast $network_broadcast dev $lhost_ifname 2>&1
- ip addr add ${lhost_addr}/${network_mask} broadcast $network_broadcast dev $lhost_ifname
- fi
-
- if [ $? -ne 0 ]; then
- if [ $ipaddr_pair_num -eq 0 ]; then
- tst_resm TBROK "Failed to add any IP address at the local"
- exit 1
- else
- tst_resm TINFO "The number of IP address at the local host seems to reach the maximum. The number is $ipaddr_pair_num"
- fi
- break
- fi
-
- ret=`$LTP_RSH $RHOST 'PATH=/sbin:/usr/sbin:$PATH ip' addr add ${rhost_addr}/${network_mask} broadcast $network_broadcast dev $rhost_ifname' ; echo $?'`
-
- if [ $ret -eq 2 ]; then
- $LTP_RSH $RHOST 'PATH=/sbin:/usr/sbin:$PATH ip' addr del ${rhost_addr}/${network_mask} broadcast $network_broadcast dev $rhost_ifname
- ret=`$LTP_RSH $RHOST 'PATH=/sbin:/usr/sbin:$PATH ip' addr add ${rhost_addr}/${network_mask} broadcast $network_broadcast dev $rhost_ifname' ; echo $?'`
- fi
-
- if [ $ret -ne 0 ]; then
- if [ $ipaddr_pair_num -eq 0 ]; then
- tst_resm TBROK "Failed to add any IP address at the remote"
- exit 1
- else
- tst_resm TINFO "The number of IP address at the remote host seems to reach the maximum. The number is $ipaddr_pair_num"
- fi
- break
- fi
- ;;
-
- 6)
- hex_x=`printf %x $x`
- hex_y=`printf %x $y`
-
- network_part="fd00:1:${hex_x}:${hex_y}"
- network_mask=64
- lhost_addr="${network_part}::2"
- rhost_addr="${network_part}::1"
-
- # Set IPv6 addresses to the interfaces
- ip addr add ${lhost_addr}/${network_mask} dev $lhost_ifname
-
- if [ $? -eq 2 ]; then
- ip addr del ${lhost_addr}/${network_mask} dev $lhost_ifname 2>&1
- ip addr add ${lhost_addr}/${network_mask} dev $lhost_ifname
- fi
-
- if [ $? -ne 0 ]; then
- if [ $ipaddr_pair_num -eq 0 ]; then
- tst_resm TBROK "Failed to add any IP address at the local"
- exit 1
- else
- tst_resm TINFO "The number of IP address at the local host seems to reach the maximum. The number is $ipaddr_pair_num"
- fi
- break
- fi
-
- ret=`$LTP_RSH $RHOST 'PATH=/sbin:/usr/sbin:$PATH ip' addr add ${rhost_addr}/${network_mask} dev $rhost_ifname' ; echo $?'`
-
- if [ $ret -eq 2 ]; then
- $LTP_RSH $RHOST 'PATH=/sbin:/usr/sbin:$PATH ip' addr del ${rhost_addr}/${network_mask} dev $rhost_ifname
- ret=`$LTP_RSH $RHOST 'PATH=/sbin:/usr/sbin:$PATH ip' addr add ${rhost_addr}/${network_mask} dev $rhost_ifname' ; echo $?'`
- fi
-
- if [ $ret -ne 0 ]; then
- if [ $ipaddr_pair_num -eq 0 ]; then
- tst_resm TBROK "Failed to add any IP address at the remote"
- exit 1
- else
- tst_resm TINFO "The number of IP address at the remote host seems to reach the maximum. The number is $ipaddr_pair_num"
- fi
- break
- fi
- ;;
- esac
-
- # Set SAD/SPD
- if $DO_IPSEC ; then
- ipsec_log=`mktemp -p $TMPDIR`
- output_ipsec_conf src \
- $IPSEC_PROTO $IPSEC_MODE $SPI $lhost_addr $rhost_addr \
- | setkey -c 2>&1 | tee $ipsec_log
- if [ $? -ne 0 -o -s $ipsec_log ]; then
- rm -f $ipsec_log
- if [ $ipaddr_pair_num -eq 0 ]; then
- tst_resm TBROK "Failed to add any SAD/SPD"
- exit 1
- else
- tst_resm TINFO "The number of SAD/SPD seems to reach the maximum at the local host."
- fi
- break
- fi
- rm -f $ipsec_log
-
- $LTP_RSH $RHOST ${LTPROOT}/testcases/bin/output_ipsec_conf dst $IPSEC_PROTO $IPSEC_MODE $SPI $lhost_addr $rhost_addr' | PATH=/sbin:/usr/sbin:$PATH setkey -c' 2>&1 | tee $ipsec_log
- if [ -s $ipsec_log ]; then
- rm -f $ipsec_log
- if [ $ipaddr_pair_num -eq 0 ]; then
- tst_resm TBROK "Failed to add any SAD/SPD"
- exit 1
- else
- tst_resm TINFO "The number of SAD/SPD seems to reach the maximum at the remote host."
- fi
- break
- fi
- rm -f $ipsec_log
- fi
-
- # Check the connectivity
- case $IP_VER in
- 4)
- ret=`$LTP_RSH $RHOST ${LTPROOT}/testcases/bin/check_icmpv4_connectivity $rhost_ifname $lhost_addr' ; echo $?'`
- if [ $ret -ne 0 ]; then
- tst_resm TBROK "No IPv4 connectivity among ${ipaddr_pair_num}th IP address pair"
- exit 1
- fi
- ;;
-
- 6)
- ret=`$LTP_RSH $RHOST ${LTPROOT}/testcases/bin/check_icmpv6_connectivity $rhost_ifname $lhost_addr' ; echo $?'`
- if [ $ret -ne 0 ]; then
- tst_resm TBROK "No IPv6 connectivity among ${ipaddr_pair_num}th IP address pair"
- exit 1
- fi
- ;;
- esac
-
- if [ $? -ne 0 ]; then
- tst_resm TFAIL "There is no connectivity."
- exit 1
- fi
-
- ipaddr_pair_num=`expr $ipaddr_pair_num + 1`
-done
-
-
-
-#-----------------------------------------------------------------------
-#
-# Main
-#
-#
-
-# Start to receiving/replying ICMP echo
-connection_num=0
-while [ $connection_num -lt $ipaddr_pair_num ]; do
- # IP addresses
- x=`expr $connection_num \/ 255 % 255`
- y=`expr $connection_num % 255`
-
- case $IP_VER in
- 4)
- lhost_addr="10.${x}.${y}.2"
- ;;
-
- 6)
- hex_x=`printf %x $x`
- hex_y=`printf %x $y`
- lhost_addr="fd00:1:${hex_x}:${hex_y}::2"
- ;;
- esac
-
- # Run a client
- $LTP_RSH $RHOST "${LTPROOT}/testcases/bin/ns-echoclient -S $lhost_addr -f $IP_VER -s \"$ICMP_SIZE_ARRAY\"" &
- connection_num=`expr $connection_num + 1`
-done
-
-
-sleep $NS_DURATION
-killall_icmp_traffic
-wait
-
-
-#-----------------------------------------------------------------------
-#
-# Clean up
-#
-
-tst_resm TPASS "Test is finished successfully."
-exit 0
diff --git a/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip02 b/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip02
deleted file mode 100644
index bd4553e..0000000
--- a/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip02
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp4-multi-diffip02
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at different IP address(alias) with the following conditions
-# - The version of IP is IPv4
-# - IPsec(AH), transport mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffip testcase
-#
-
-# The test case ID
-TCID=icmp4-multi-diffip02
-
-# The version of IP
-IP_VER=4
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=ah
-
-# IPsec Mode
-IPSEC_MODE=transport
-
-. icmp4-multi-diffip01
diff --git a/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip03 b/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip03
deleted file mode 100644
index 78879e6..0000000
--- a/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip03
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp4-multi-diffip03
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at different IP address(alias) with the following conditions
-#
-# - The version of IP is IPv4
-# - IPsec(AH), tunnel mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffip testcase
-#
-
-# The test case ID
-TCID=icmp4-multi-diffip03
-
-# The version of IP
-IP_VER=4
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=ah
-
-# IPsec Mode
-IPSEC_MODE=tunnel
-
-. icmp4-multi-diffip01
diff --git a/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip04 b/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip04
deleted file mode 100644
index 496d548..0000000
--- a/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip04
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp4-multi-diffip04
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at different IP address(alias) with the following conditions
-# - The version of IP is IPv4
-# - IPsec(ESP), transport mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffip testcase
-#
-
-# The test case ID
-TCID=icmp4-multi-diffip04
-
-# The version of IP
-IP_VER=4
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=esp
-
-# IPsec Mode
-IPSEC_MODE=transport
-
-. icmp4-multi-diffip01
diff --git a/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip05 b/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip05
deleted file mode 100644
index bf7979b..0000000
--- a/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip05
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp4-multi-diffip05
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at different IP address(alias) with the following conditions
-#
-# - The version of IP is IPv4
-# - IPsec(ESP), tunnel mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffip testcase
-#
-
-# The test case ID
-TCID=icmp4-multi-diffip05
-
-# The version of IP
-IP_VER=4
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=esp
-
-# IPsec Mode
-IPSEC_MODE=tunnel
-
-. icmp4-multi-diffip01
diff --git a/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip06 b/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip06
deleted file mode 100644
index fe4baaa..0000000
--- a/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip06
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp4-multi-diffip06
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at different IP address(alias) with the following conditions
-#
-# - The version of IP is IPv4
-# - IPcomp, transport mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffip testcase
-#
-
-# The test case ID
-TCID=icmp4-multi-diffip06
-
-# The version of IP
-IP_VER=4
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=ipcomp
-
-# IPsec Mode
-IPSEC_MODE=transport
-
-. icmp4-multi-diffip01
diff --git a/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip07 b/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip07
deleted file mode 100644
index 164d616..0000000
--- a/testcases/network/stress/icmp/multi-diffip/icmp4-multi-diffip07
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp4-multi-diffip07
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at different IP address(alias) with the following conditions
-# - The version of IP is IPv4
-# - IPcomp, tunnel mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffip testcase
-#
-
-# The test case ID
-TCID=icmp4-multi-diffip07
-
-# The version of IP
-IP_VER=4
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=ipcomp
-
-# IPsec Mode
-IPSEC_MODE=tunnel
-
-. icmp4-multi-diffip01
diff --git a/testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip01 b/testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip01
deleted file mode 100644
index 84b2844..0000000
--- a/testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip01
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp6-multi-diffip01
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at different IP address(alias) with the following conditions
-# - The version of IP is IPv6
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffip testcase
-#
-
-# The test case ID
-TCID=icmp6-multi-diffip01
-
-# The version of IP
-IP_VER=6
-
-. icmp4-multi-diffip01
diff --git a/testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip02 b/testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip02
deleted file mode 100644
index cba23c1..0000000
--- a/testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip02
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp6-multi-diffip02
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at different IP address(alias) with the following conditions
-# - The version of IP is IPv6
-# - IPsec(AH), transport mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffip testcase
-#
-
-# The test case ID
-TCID=icmp6-multi-diffip02
-
-# The version of IP
-IP_VER=6
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=ah
-
-# IPsec Mode
-IPSEC_MODE=transport
-
-. icmp4-multi-diffip01
diff --git a/testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip03 b/testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip03
deleted file mode 100644
index ea632c9..0000000
--- a/testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip03
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp6-multi-diffip03
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at different IP address(alias) with the following conditions
-#
-# - The version of IP is IPv6
-# - IPsec(AH), tunnel mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffip testcase
-#
-
-# The test case ID
-TCID=icmp6-multi-diffip03
-
-# The version of IP
-IP_VER=6
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=ah
-
-# IPsec Mode
-IPSEC_MODE=tunnel
-
-. icmp4-multi-diffip01
diff --git a/testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip04 b/testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip04
deleted file mode 100644
index ab6834e..0000000
--- a/testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip04
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp6-multi-diffip04
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at different IP address(alias) with the following conditions
-# - The version of IP is IPv6
-# - IPsec(ESP), transport mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffip testcase
-#
-
-# The test case ID
-TCID=icmp6-multi-diffip04
-
-# The version of IP
-IP_VER=6
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=esp
-
-# IPsec Mode
-IPSEC_MODE=transport
-
-. icmp4-multi-diffip01
diff --git a/testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip05 b/testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip05
deleted file mode 100644
index e85493e..0000000
--- a/testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip05
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp6-multi-diffip05
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at different IP address(alias) with the following conditions
-#
-# - The version of IP is IPv6
-# - IPsec(ESP), tunnel mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffip testcase
-#
-
-# The test case ID
-TCID=icmp6-multi-diffip05
-
-# The version of IP
-IP_VER=6
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=esp
-
-# IPsec Mode
-IPSEC_MODE=tunnel
-
-. icmp4-multi-diffip01
diff --git a/testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip06 b/testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip06
deleted file mode 100644
index a055c28..0000000
--- a/testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip06
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp6-multi-diffip06
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at different IP address(alias) with the following conditions
-#
-# - The version of IP is IPv6
-# - IPcomp, transport mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffip testcase
-#
-
-# The test case ID
-TCID=icmp6-multi-diffip06
-
-# The version of IP
-IP_VER=6
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=ipcomp
-
-# IPsec Mode
-IPSEC_MODE=transport
-
-. icmp4-multi-diffip01
diff --git a/testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip07 b/testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip07
deleted file mode 100644
index 6aa2985..0000000
--- a/testcases/network/stress/icmp/multi-diffip/icmp6-multi-diffip07
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp6-multi-diffip07
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at different IP address(alias) with the following conditions
-# - The version of IP is IPv6
-# - IPcomp, tunnel mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffip testcase
-#
-
-# The test case ID
-TCID=icmp6-multi-diffip07
-
-# The version of IP
-IP_VER=6
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=ipcomp
-
-# IPsec Mode
-IPSEC_MODE=tunnel
-
-. icmp4-multi-diffip01
--
2.5.5
^ permalink raw reply related [flat|nested] 11+ messages in thread* [LTP] [PATCH 3/4] network/stress/icmp: add icmp-multi-diffnic.sh to implement diffnic stress test
2016-05-09 7:57 [LTP] [PATCH 1/4] network/stress/icmp: add icmp-multi-diffip.sh to implement diffip stress test Hangbin Liu
2016-05-09 7:57 ` [LTP] [PATCH 2/4] network/stress/icmp: remove old multi-diffip/* tests Hangbin Liu
@ 2016-05-09 7:57 ` Hangbin Liu
2016-05-17 11:18 ` Alexey Kodanev
2016-05-09 7:57 ` [LTP] [PATCH 4/4] network/stress/icmp: remove old multi-diffnic/* tests Hangbin Liu
2016-05-17 11:46 ` [LTP] [PATCH 1/4] network/stress/icmp: add icmp-multi-diffip.sh to implement diffip stress test Alexey Kodanev
3 siblings, 1 reply; 11+ messages in thread
From: Hangbin Liu @ 2016-05-09 7:57 UTC (permalink / raw)
To: ltp
Signed-off-by: Hangbin Liu <haliu@redhat.com>
---
runtest/network_stress.icmp | 28 ++--
.../network/stress/icmp/icmp-multi-diffnic.sh | 153 +++++++++++++++++++++
2 files changed, 167 insertions(+), 14 deletions(-)
create mode 100755 testcases/network/stress/icmp/icmp-multi-diffnic.sh
diff --git a/runtest/network_stress.icmp b/runtest/network_stress.icmp
index 87feb74..58d1dd8 100644
--- a/runtest/network_stress.icmp
+++ b/runtest/network_stress.icmp
@@ -53,18 +53,18 @@ icmp6-multi-diffip05 icmp-multi-diffip.sh -6 -n 100 -p esp -m tunnel
icmp6-multi-diffip06 icmp-multi-diffip.sh -6 -n 100 -p ipcomp -m transport
icmp6-multi-diffip07 icmp-multi-diffip.sh -6 -n 100 -p ipcomp -m tunnel
-icmp4-multi-diffnic01 icmp4-multi-diffnic01
-icmp4-multi-diffnic02 icmp4-multi-diffnic02
-icmp4-multi-diffnic03 icmp4-multi-diffnic03
-icmp4-multi-diffnic04 icmp4-multi-diffnic04
-icmp4-multi-diffnic05 icmp4-multi-diffnic05
-icmp4-multi-diffnic06 icmp4-multi-diffnic06
-icmp4-multi-diffnic07 icmp4-multi-diffnic07
+icmp4-multi-diffnic01 icmp-multi-diffnic.sh
+icmp4-multi-diffnic02 icmp-multi-diffnic.sh -p ah -m transport
+icmp4-multi-diffnic03 icmp-multi-diffnic.sh -p ah -m tunnel
+icmp4-multi-diffnic04 icmp-multi-diffnic.sh -p esp -m transport
+icmp4-multi-diffnic05 icmp-multi-diffnic.sh -p esp -m tunnel
+icmp4-multi-diffnic06 icmp-multi-diffnic.sh -p ipcomp -m transport
+icmp4-multi-diffnic07 icmp-multi-diffnic.sh -p ipcomp -m tunnel
-icmp6-multi-diffnic01 icmp6-multi-diffnic01
-icmp6-multi-diffnic02 icmp6-multi-diffnic02
-icmp6-multi-diffnic03 icmp6-multi-diffnic03
-icmp6-multi-diffnic04 icmp6-multi-diffnic04
-icmp6-multi-diffnic05 icmp6-multi-diffnic05
-icmp6-multi-diffnic06 icmp6-multi-diffnic06
-icmp6-multi-diffnic07 icmp6-multi-diffnic07
+icmp6-multi-diffnic01 icmp-multi-diffnic.sh -6
+icmp6-multi-diffnic02 icmp-multi-diffnic.sh -6 -p ah -m transport
+icmp6-multi-diffnic03 icmp-multi-diffnic.sh -6 -p ah -m tunnel
+icmp6-multi-diffnic04 icmp-multi-diffnic.sh -6 -p esp -m transport
+icmp6-multi-diffnic05 icmp-multi-diffnic.sh -6 -p esp -m tunnel
+icmp6-multi-diffnic06 icmp-multi-diffnic.sh -6 -p ipcomp -m transport
+icmp6-multi-diffnic07 icmp-multi-diffnic.sh -6 -p ipcomp -m tunnel
diff --git a/testcases/network/stress/icmp/icmp-multi-diffnic.sh b/testcases/network/stress/icmp/icmp-multi-diffnic.sh
new file mode 100755
index 0000000..c149ca4
--- /dev/null
+++ b/testcases/network/stress/icmp/icmp-multi-diffnic.sh
@@ -0,0 +1,153 @@
+#!/bin/sh
+# Copyright (c) 2016 Red Hat Inc., All Rights Reserved.
+# Copyright (c) International Business Machines Corp., 2005
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it would be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
+#
+# Author: Hangbin Liu <haliu@redhat.com>
+#
+################################################################################
+TCID=${TCID:-icmp-multi-diffnic}
+TST_TOTAL=1
+TST_COUNT=1
+TST_CLEANUP="do_cleanup"
+
+. ipsec_lib.sh
+
+while getopts "hl:m:n:N:p:s:S:6" opt; do
+ case "$opt" in
+ h)
+ echo "Usage:"
+ echo "h help"
+ echo "l n n is the number of test link when tests run"
+ echo "m x x is ipsec mode, could be transport / tunnel"
+ echo "N n n is seconds of the network stress duration time"
+ echo "p x x is ipsec protocol, could be ah / esp / ipcomp"
+ echo "s x x is icmp messge size array"
+ echo "S n n is IPsec SPI value"
+ echo "6 run over IPv6"
+ exit 0
+ ;;
+ l) LINK_NUM=$OPTARG ;;
+ m) IPSEC_MODE=$OPTARG ;;
+ N) NS_DURATION=$OPTARG ;;
+ p) IPSEC_PROTO=$OPTARG ;;
+ s) ICMP_SIZE_ARRAY=$OPTARG ;;
+ S) SPI=$OPTARG ;;
+ 6) # skip, test_net library already processed it
+ ;;
+ *) tst_brkm TBROK "unknown option: $opt" ;;
+ esac
+done
+
+SPI=${SPI:-1000}
+LINK_NUM=${LINK_NUM:-0}
+DO_IPSEC=${DO_IPSEC:-false}
+NS_DURATION=${NS_DURATION:-"3600"}
+# Use large enough pkt size(65000) to fix each encapsulation
+ICMP_SIZE_ARRAY=${ICMP_SIZE_ARRAY:-"10 100 1000 10000 65000"}
+[ -n "$IPSEC_MODE" -a -n "$IPSEC_PROTO" ] && DO_IPSEC=true || DO_IPSEC=false
+
+link_total=`echo $LHOST_HWADDRS | wc -w`
+rhost_link_total=`echo $RHOST_HWADDRS | wc -w`
+if [ $link_total -ne $rhost_link_total ]; then
+ tst_brkm TBROK "The number of element in LHOST_HWADDRS differs from RHOST_HWADDRS"
+elif [ $link_total -lt 2 ]; then
+ tst_brkm TBROK "This test case requires plural NICs."
+fi
+
+do_cleanup()
+{
+ pkill -9 ping$TST_IPV6 &> /dev/null
+ tst_ipsec_cleanup
+ # Clean up each interface
+ link_num=0
+ while [ $link_num -lt $link_total ]; do
+ tst_init_iface lhost ${link_num}
+ tst_init_iface rhost ${link_num}
+ link_num=`expr $link_num + 1`
+ done
+ tst_restore_ipaddr lhost
+ tst_restore_ipaddr rhost
+}
+
+# Test description
+tst_resm TINFO "Sending ICMP messages with the following conditions"
+tst_resm TINFO "- Target number of interfaces is $link_total"
+tst_resm TINFO "- Version of IP is IPv${TST_IPV6:-4}"
+tst_resm TINFO "- Size of packets are ( $ICMP_SIZE_ARRAY )"
+
+if $DO_IPSEC; then
+ case $IPSEC_PROTO in
+ ah) tst_resm TINFO "- IPsec [ AH / $IPSEC_MODE ]" ;;
+ esp) tst_resm TINFO "- IPsec [ ESP / $IPSEC_MODE ]" ;;
+ ipcomp) tst_resm TINFO "- IPcomp [ $IPSEC_MODE ]" ;;
+ esac
+fi
+
+# name of interface of the local/remote host
+lhost_iface=`tst_iface lhost $LINK_NUM`
+rhost_iface=`tst_iface rhost $LINK_NUM`
+
+# Loop for NIC configuration
+[ "$TST_IPV6" ] && netmask=64 || netmask=24
+for link_num in `seq 0 $((link_total - 1))`; do
+ # name of interface of the local/remote host
+ lhost_iface=`tst_iface lhost $link_num`
+ rhost_iface=`tst_iface rhost $link_num`
+
+ if [ "$TST_IPV6" ]; then
+ lhost_addr=${IPV6_NET32_UNUSED}:${link_num}:${LHOST_IPV6_HOST}
+ rhost_addr=${IPV6_NET32_UNUSED}:${link_num}:${RHOST_IPV6_HOST}
+ else
+ lhost_addr=${IPV4_NET16_UNUSED}.${link_num}.${LHOST_IPV4_HOST}
+ rhost_addr=${IPV4_NET16_UNUSED}.${link_num}.${RHOST_IPV4_HOST}
+ fi
+ ROD ip addr add $lhost_addr/$netmask dev $lhost_iface
+ tst_rhost_run -s -c "ip addr add $rhost_addr/$netmask dev $rhost_iface"
+
+ # Configure SAD/SPD
+ if $DO_IPSEC ; then
+ tst_ipsec lhost $IPSEC_PROTO $IPSEC_MODE $SPI $lhost_addr $rhost_addr
+ tst_ipsec rhost $IPSEC_PROTO $IPSEC_MODE $SPI $rhost_addr $lhost_addr
+ fi
+
+ # Make sure the connectvity
+ if [ "$IPSEC_PROTO" == ipcomp ]; then
+ tst_ping $lhost_iface $rhost_addr 2000
+ else
+ tst_ping $lhost_iface $rhost_addr
+ fi
+ if [ $? -ne 0 ]; then
+ tst_resm TFAIL "IPv${TST_IPV6:-4} $lhost_addr/$netmask -- $rhost_addr/$netmask $IPSEC_PROTO $IPSEC_MODE connectivity"
+ else
+ tst_resm TPASS "IPv${TST_IPV6:-4} $lhost_addr/$netmask -- $rhost_addr/$netmask $IPSEC_PROTO $IPSEC_MODE connectivity"
+ fi
+
+ lhost_iface_array[$link_num]=$lhost_iface
+ rhost_addr_array[$link_num]=$rhost_addr
+done
+
+# Do Stress testing, ping flood
+tst_resm TINFO "start ping flood stress testing"
+for link_num in `seq 0 $((link_total - 1))`; do
+ for size in ${ICMP_SIZE_ARRAY}; do
+ ping$TST_IPV6 -f -q -I ${lhost_iface_array[$link_num]} \
+ ${rhost_addr_array[$link_num]} -s $size &> /dev/null &
+ done
+done
+
+sleep ${NS_DURATION}
+
+tst_exit
--
2.5.5
^ permalink raw reply related [flat|nested] 11+ messages in thread* [LTP] [PATCH 3/4] network/stress/icmp: add icmp-multi-diffnic.sh to implement diffnic stress test
2016-05-09 7:57 ` [LTP] [PATCH 3/4] network/stress/icmp: add icmp-multi-diffnic.sh to implement diffnic stress test Hangbin Liu
@ 2016-05-17 11:18 ` Alexey Kodanev
2016-05-19 13:55 ` Hangbin Liu
0 siblings, 1 reply; 11+ messages in thread
From: Alexey Kodanev @ 2016-05-17 11:18 UTC (permalink / raw)
To: ltp
Hi,
On 05/09/2016 10:57 AM, Hangbin Liu wrote:
> Signed-off-by: Hangbin Liu <haliu@redhat.com>
> ---
> runtest/network_stress.icmp | 28 ++--
> .../network/stress/icmp/icmp-multi-diffnic.sh | 153 +++++++++++++++++++++
> 2 files changed, 167 insertions(+), 14 deletions(-)
> create mode 100755 testcases/network/stress/icmp/icmp-multi-diffnic.sh
>
> diff --git a/runtest/network_stress.icmp b/runtest/network_stress.icmp
> index 87feb74..58d1dd8 100644
> --- a/runtest/network_stress.icmp
> +++ b/runtest/network_stress.icmp
> @@ -53,18 +53,18 @@ icmp6-multi-diffip05 icmp-multi-diffip.sh -6 -n 100 -p esp -m tunnel
> icmp6-multi-diffip06 icmp-multi-diffip.sh -6 -n 100 -p ipcomp -m transport
> icmp6-multi-diffip07 icmp-multi-diffip.sh -6 -n 100 -p ipcomp -m tunnel
>
> -icmp4-multi-diffnic01 icmp4-multi-diffnic01
> -icmp4-multi-diffnic02 icmp4-multi-diffnic02
> -icmp4-multi-diffnic03 icmp4-multi-diffnic03
> -icmp4-multi-diffnic04 icmp4-multi-diffnic04
> -icmp4-multi-diffnic05 icmp4-multi-diffnic05
> -icmp4-multi-diffnic06 icmp4-multi-diffnic06
> -icmp4-multi-diffnic07 icmp4-multi-diffnic07
> +icmp4-multi-diffnic01 icmp-multi-diffnic.sh
> +icmp4-multi-diffnic02 icmp-multi-diffnic.sh -p ah -m transport
> +icmp4-multi-diffnic03 icmp-multi-diffnic.sh -p ah -m tunnel
> +icmp4-multi-diffnic04 icmp-multi-diffnic.sh -p esp -m transport
> +icmp4-multi-diffnic05 icmp-multi-diffnic.sh -p esp -m tunnel
> +icmp4-multi-diffnic06 icmp-multi-diffnic.sh -p ipcomp -m transport
> +icmp4-multi-diffnic07 icmp-multi-diffnic.sh -p ipcomp -m tunnel
>
> -icmp6-multi-diffnic01 icmp6-multi-diffnic01
> -icmp6-multi-diffnic02 icmp6-multi-diffnic02
> -icmp6-multi-diffnic03 icmp6-multi-diffnic03
> -icmp6-multi-diffnic04 icmp6-multi-diffnic04
> -icmp6-multi-diffnic05 icmp6-multi-diffnic05
> -icmp6-multi-diffnic06 icmp6-multi-diffnic06
> -icmp6-multi-diffnic07 icmp6-multi-diffnic07
> +icmp6-multi-diffnic01 icmp-multi-diffnic.sh -6
> +icmp6-multi-diffnic02 icmp-multi-diffnic.sh -6 -p ah -m transport
> +icmp6-multi-diffnic03 icmp-multi-diffnic.sh -6 -p ah -m tunnel
> +icmp6-multi-diffnic04 icmp-multi-diffnic.sh -6 -p esp -m transport
> +icmp6-multi-diffnic05 icmp-multi-diffnic.sh -6 -p esp -m tunnel
> +icmp6-multi-diffnic06 icmp-multi-diffnic.sh -6 -p ipcomp -m transport
> +icmp6-multi-diffnic07 icmp-multi-diffnic.sh -6 -p ipcomp -m tunnel
> diff --git a/testcases/network/stress/icmp/icmp-multi-diffnic.sh b/testcases/network/stress/icmp/icmp-multi-diffnic.sh
> new file mode 100755
> index 0000000..c149ca4
> --- /dev/null
> +++ b/testcases/network/stress/icmp/icmp-multi-diffnic.sh
> @@ -0,0 +1,153 @@
> +#!/bin/sh
> +# Copyright (c) 2016 Red Hat Inc., All Rights Reserved.
> +# Copyright (c) International Business Machines Corp., 2005
> +#
> +# This program is free software; you can redistribute it and/or
> +# modify it under the terms of the GNU General Public License as
> +# published by the Free Software Foundation; either version 2 of
> +# the License, or (at your option) any later version.
> +#
> +# This program is distributed in the hope that it would be useful,
> +# but WITHOUT ANY WARRANTY; without even the implied warranty of
> +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> +# GNU General Public License for more details.
> +#
> +# You should have received a copy of the GNU General Public License
> +# along with this program; if not, see <http://www.gnu.org/licenses/>.
> +#
> +# Author: Hangbin Liu <haliu@redhat.com>
> +#
> +################################################################################
> +TCID=${TCID:-icmp-multi-diffnic}
> +TST_TOTAL=1
> +TST_COUNT=1
> +TST_CLEANUP="do_cleanup"
> +
> +. ipsec_lib.sh
> +
> +while getopts "hl:m:n:N:p:s:S:6" opt; do
there is no option 'n'
> + case "$opt" in
> + h)
> + echo "Usage:"
> + echo "h help"
> + echo "l n n is the number of test link when tests run"
> + echo "m x x is ipsec mode, could be transport / tunnel"
> + echo "N n n is seconds of the network stress duration time"
> + echo "p x x is ipsec protocol, could be ah / esp / ipcomp"
> + echo "s x x is icmp messge size array"
> + echo "S n n is IPsec SPI value"
> + echo "6 run over IPv6"
> + exit 0
> + ;;
> + l) LINK_NUM=$OPTARG ;;
> + m) IPSEC_MODE=$OPTARG ;;
> + N) NS_DURATION=$OPTARG ;;
> + p) IPSEC_PROTO=$OPTARG ;;
> + s) ICMP_SIZE_ARRAY=$OPTARG ;;
> + S) SPI=$OPTARG ;;
> + 6) # skip, test_net library already processed it
> + ;;
> + *) tst_brkm TBROK "unknown option: $opt" ;;
> + esac
> +done
> +
> +SPI=${SPI:-1000}
> +LINK_NUM=${LINK_NUM:-0}
> +DO_IPSEC=${DO_IPSEC:-false}
> +NS_DURATION=${NS_DURATION:-"3600"}
> +# Use large enough pkt size(65000) to fix each encapsulation
> +ICMP_SIZE_ARRAY=${ICMP_SIZE_ARRAY:-"10 100 1000 10000 65000"}
> +[ -n "$IPSEC_MODE" -a -n "$IPSEC_PROTO" ] && DO_IPSEC=true || DO_IPSEC=false
> +
> +link_total=`echo $LHOST_HWADDRS | wc -w`
> +rhost_link_total=`echo $RHOST_HWADDRS | wc -w`
> +if [ $link_total -ne $rhost_link_total ]; then
> + tst_brkm TBROK "The number of element in LHOST_HWADDRS differs from RHOST_HWADDRS"
> +elif [ $link_total -lt 2 ]; then
> + tst_brkm TBROK "This test case requires plural NICs."
> +fi
> +
Should we check that the number of interfaces more then 1, otherwise
exit with TCONF?
.. not TBROK
Hmm, what is the difference between running those tests
LHOST_IFACE=eth1 ... ./icmp_uni_basic.sh &
LHOST_IFACE=eth2 ... ./icmp_uni_basic.sh &
...
and running multinic script?
Thanks,
Alexey
> +do_cleanup()
> +{
> + pkill -9 ping$TST_IPV6 &> /dev/null
> + tst_ipsec_cleanup
> + # Clean up each interface
> + link_num=0
> + while [ $link_num -lt $link_total ]; do
> + tst_init_iface lhost ${link_num}
> + tst_init_iface rhost ${link_num}
> + link_num=`expr $link_num + 1`
> + done
> + tst_restore_ipaddr lhost
> + tst_restore_ipaddr rhost
> +}
> +
> +# Test description
> +tst_resm TINFO "Sending ICMP messages with the following conditions"
> +tst_resm TINFO "- Target number of interfaces is $link_total"
> +tst_resm TINFO "- Version of IP is IPv${TST_IPV6:-4}"
> +tst_resm TINFO "- Size of packets are ( $ICMP_SIZE_ARRAY )"
> +
> +if $DO_IPSEC; then
> + case $IPSEC_PROTO in
> + ah) tst_resm TINFO "- IPsec [ AH / $IPSEC_MODE ]" ;;
> + esp) tst_resm TINFO "- IPsec [ ESP / $IPSEC_MODE ]" ;;
> + ipcomp) tst_resm TINFO "- IPcomp [ $IPSEC_MODE ]" ;;
> + esac
> +fi
> +
> +# name of interface of the local/remote host
> +lhost_iface=`tst_iface lhost $LINK_NUM`
> +rhost_iface=`tst_iface rhost $LINK_NUM`
> +
> +# Loop for NIC configuration
> +[ "$TST_IPV6" ] && netmask=64 || netmask=24
> +for link_num in `seq 0 $((link_total - 1))`; do
> + # name of interface of the local/remote host
> + lhost_iface=`tst_iface lhost $link_num`
> + rhost_iface=`tst_iface rhost $link_num`
> +
> + if [ "$TST_IPV6" ]; then
> + lhost_addr=${IPV6_NET32_UNUSED}:${link_num}:${LHOST_IPV6_HOST}
> + rhost_addr=${IPV6_NET32_UNUSED}:${link_num}:${RHOST_IPV6_HOST}
> + else
> + lhost_addr=${IPV4_NET16_UNUSED}.${link_num}.${LHOST_IPV4_HOST}
> + rhost_addr=${IPV4_NET16_UNUSED}.${link_num}.${RHOST_IPV4_HOST}
> + fi
> + ROD ip addr add $lhost_addr/$netmask dev $lhost_iface
> + tst_rhost_run -s -c "ip addr add $rhost_addr/$netmask dev $rhost_iface"
> +
> + # Configure SAD/SPD
> + if $DO_IPSEC ; then
> + tst_ipsec lhost $IPSEC_PROTO $IPSEC_MODE $SPI $lhost_addr $rhost_addr
> + tst_ipsec rhost $IPSEC_PROTO $IPSEC_MODE $SPI $rhost_addr $lhost_addr
> + fi
> +
> + # Make sure the connectvity
> + if [ "$IPSEC_PROTO" == ipcomp ]; then
> + tst_ping $lhost_iface $rhost_addr 2000
> + else
> + tst_ping $lhost_iface $rhost_addr
> + fi
> + if [ $? -ne 0 ]; then
> + tst_resm TFAIL "IPv${TST_IPV6:-4} $lhost_addr/$netmask -- $rhost_addr/$netmask $IPSEC_PROTO $IPSEC_MODE connectivity"
> + else
> + tst_resm TPASS "IPv${TST_IPV6:-4} $lhost_addr/$netmask -- $rhost_addr/$netmask $IPSEC_PROTO $IPSEC_MODE connectivity"
> + fi
> +
> + lhost_iface_array[$link_num]=$lhost_iface
> + rhost_addr_array[$link_num]=$rhost_addr
> +done
> +
> +# Do Stress testing, ping flood
> +tst_resm TINFO "start ping flood stress testing"
> +for link_num in `seq 0 $((link_total - 1))`; do
> + for size in ${ICMP_SIZE_ARRAY}; do
> + ping$TST_IPV6 -f -q -I ${lhost_iface_array[$link_num]} \
> + ${rhost_addr_array[$link_num]} -s $size &> /dev/null &
> + done
> +done
> +
> +sleep ${NS_DURATION}
> +
> +tst_exit
^ permalink raw reply [flat|nested] 11+ messages in thread* [LTP] [PATCH 3/4] network/stress/icmp: add icmp-multi-diffnic.sh to implement diffnic stress test
2016-05-17 11:18 ` Alexey Kodanev
@ 2016-05-19 13:55 ` Hangbin Liu
0 siblings, 0 replies; 11+ messages in thread
From: Hangbin Liu @ 2016-05-19 13:55 UTC (permalink / raw)
To: ltp
Hi,
On Tue, May 17, 2016 at 02:18:48PM +0300, Alexey Kodanev wrote:
> >+TCID=${TCID:-icmp-multi-diffnic}
> >+TST_TOTAL=1
> >+TST_COUNT=1
> >+TST_CLEANUP="do_cleanup"
> >+
> >+. ipsec_lib.sh
> >+
> >+while getopts "hl:m:n:N:p:s:S:6" opt; do
> there is no option 'n'
Ah, yes, thanks, will fix it.
> >+ case "$opt" in
> >+ h)
> >+ echo "Usage:"
> >+ echo "h help"
> >+ echo "l n n is the number of test link when tests run"
> >+ echo "m x x is ipsec mode, could be transport / tunnel"
> >+ echo "N n n is seconds of the network stress duration time"
> >+ echo "p x x is ipsec protocol, could be ah / esp / ipcomp"
> >+ echo "s x x is icmp messge size array"
> >+ echo "S n n is IPsec SPI value"
> >+ echo "6 run over IPv6"
> >+ exit 0
> >+ ;;
> >+ l) LINK_NUM=$OPTARG ;;
> >+ m) IPSEC_MODE=$OPTARG ;;
> >+ N) NS_DURATION=$OPTARG ;;
> >+ p) IPSEC_PROTO=$OPTARG ;;
> >+ s) ICMP_SIZE_ARRAY=$OPTARG ;;
> >+ S) SPI=$OPTARG ;;
> >+ 6) # skip, test_net library already processed it
> >+ ;;
> >+ *) tst_brkm TBROK "unknown option: $opt" ;;
> >+ esac
> >+done
> >+
> >+SPI=${SPI:-1000}
> >+LINK_NUM=${LINK_NUM:-0}
> >+DO_IPSEC=${DO_IPSEC:-false}
> >+NS_DURATION=${NS_DURATION:-"3600"}
> >+# Use large enough pkt size(65000) to fix each encapsulation
> >+ICMP_SIZE_ARRAY=${ICMP_SIZE_ARRAY:-"10 100 1000 10000 65000"}
> >+[ -n "$IPSEC_MODE" -a -n "$IPSEC_PROTO" ] && DO_IPSEC=true || DO_IPSEC=false
> >+
> >+link_total=`echo $LHOST_HWADDRS | wc -w`
> >+rhost_link_total=`echo $RHOST_HWADDRS | wc -w`
> >+if [ $link_total -ne $rhost_link_total ]; then
> >+ tst_brkm TBROK "The number of element in LHOST_HWADDRS differs from RHOST_HWADDRS"
> >+elif [ $link_total -lt 2 ]; then
> >+ tst_brkm TBROK "This test case requires plural NICs."
> >+fi
> >+
>
> Should we check that the number of interfaces more then 1, otherwise exit
> with TCONF?
> .. not TBROK
Yeah, that make sense.
>
> Hmm, what is the difference between running those tests
>
> LHOST_IFACE=eth1 ... ./icmp_uni_basic.sh &
> LHOST_IFACE=eth2 ... ./icmp_uni_basic.sh &
> ...
>
> and running multinic script?
The uni_basic test is a basic, functional test, to verify we can handle all
kinds of message size with different configures. There is no much stress
actually.
And multi-diffnic will only check basic connectvity to make sure the
configuration is right. The main purpose of the test is to make sure system do
not break/crash under ping flood with various of messages. The same with
multi-diffip test.
Thanks
Hangbin
^ permalink raw reply [flat|nested] 11+ messages in thread
* [LTP] [PATCH 4/4] network/stress/icmp: remove old multi-diffnic/* tests
2016-05-09 7:57 [LTP] [PATCH 1/4] network/stress/icmp: add icmp-multi-diffip.sh to implement diffip stress test Hangbin Liu
2016-05-09 7:57 ` [LTP] [PATCH 2/4] network/stress/icmp: remove old multi-diffip/* tests Hangbin Liu
2016-05-09 7:57 ` [LTP] [PATCH 3/4] network/stress/icmp: add icmp-multi-diffnic.sh to implement diffnic stress test Hangbin Liu
@ 2016-05-09 7:57 ` Hangbin Liu
2016-05-17 11:46 ` [LTP] [PATCH 1/4] network/stress/icmp: add icmp-multi-diffip.sh to implement diffip stress test Alexey Kodanev
3 siblings, 0 replies; 11+ messages in thread
From: Hangbin Liu @ 2016-05-09 7:57 UTC (permalink / raw)
To: ltp
multi-diffnic/* tests have been rewritten and the new version
can be found in icmp/icmp-multi-diffnic.sh.
Signed-off-by: Hangbin Liu <haliu@redhat.com>
---
.../stress/icmp/multi-diffnic/00_Descriptions.txt | 56 ----
.../network/stress/icmp/multi-diffnic/Makefile | 31 ---
.../icmp/multi-diffnic/icmp4-multi-diffnic01 | 301 ---------------------
.../icmp/multi-diffnic/icmp4-multi-diffnic02 | 66 -----
.../icmp/multi-diffnic/icmp4-multi-diffnic03 | 67 -----
.../icmp/multi-diffnic/icmp4-multi-diffnic04 | 66 -----
.../icmp/multi-diffnic/icmp4-multi-diffnic05 | 67 -----
.../icmp/multi-diffnic/icmp4-multi-diffnic06 | 67 -----
.../icmp/multi-diffnic/icmp4-multi-diffnic07 | 66 -----
.../icmp/multi-diffnic/icmp6-multi-diffnic01 | 56 ----
.../icmp/multi-diffnic/icmp6-multi-diffnic02 | 66 -----
.../icmp/multi-diffnic/icmp6-multi-diffnic03 | 67 -----
.../icmp/multi-diffnic/icmp6-multi-diffnic04 | 66 -----
.../icmp/multi-diffnic/icmp6-multi-diffnic05 | 67 -----
.../icmp/multi-diffnic/icmp6-multi-diffnic06 | 67 -----
.../icmp/multi-diffnic/icmp6-multi-diffnic07 | 66 -----
16 files changed, 1242 deletions(-)
delete mode 100644 testcases/network/stress/icmp/multi-diffnic/00_Descriptions.txt
delete mode 100644 testcases/network/stress/icmp/multi-diffnic/Makefile
delete mode 100644 testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic01
delete mode 100644 testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic02
delete mode 100644 testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic03
delete mode 100644 testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic04
delete mode 100644 testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic05
delete mode 100644 testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic06
delete mode 100644 testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic07
delete mode 100644 testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic01
delete mode 100644 testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic02
delete mode 100644 testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic03
delete mode 100644 testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic04
delete mode 100644 testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic05
delete mode 100644 testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic06
delete mode 100644 testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic07
diff --git a/testcases/network/stress/icmp/multi-diffnic/00_Descriptions.txt b/testcases/network/stress/icmp/multi-diffnic/00_Descriptions.txt
deleted file mode 100644
index 32da9d0..0000000
--- a/testcases/network/stress/icmp/multi-diffnic/00_Descriptions.txt
+++ /dev/null
@@ -1,56 +0,0 @@
-Verify that the kernel is not crashed with receiving and sending various
-size of ICMP message at differnt NIC simultaneously
-
-icmp4-multi-diffnic01
- IPv4
-
-icmp4-multi-diffnic02
- IPv4
- IPsec [ AH / transport ]
-
-icmp4-multi-diffnic03
- IPv4
- IPsec [ AH / tunnel ]
-
-icmp4-multi-diffnic04
- IPv4
- IPsec [ ESP / transport ]
-
-icmp4-multi-diffnic05
- IPv4
- IPsec [ ESP / tunnel ]
-
-icmp4-multi-diffnic06
- IPv4
- IPcomp [ transport ]
-
-icmp4-multi-diffnic07
- IPv4
- IPcomp [ tunnel ]
-
-icmp6-multi-diffnic01
- IPv6
-
-icmp6-multi-diffnic02
- IPv6
- IPsec [ AH / transport ]
-
-icmp6-multi-diffnic03
- IPv6
- IPsec [ AH / tunnel ]
-
-icmp6-multi-diffnic04
- IPv6
- IPsec [ ESP / transport ]
-
-icmp6-multi-diffnic05
- IPv6
- IPsec [ ESP / tunnel ]
-
-icmp6-multi-diffnic06
- IPv6
- IPcomp [ transport ]
-
-icmp6-multi-diffnic07
- IPv6
- IPcomp [ tunnel ]
diff --git a/testcases/network/stress/icmp/multi-diffnic/Makefile b/testcases/network/stress/icmp/multi-diffnic/Makefile
deleted file mode 100644
index 4746e87..0000000
--- a/testcases/network/stress/icmp/multi-diffnic/Makefile
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# network/stress/icmp/multi-diffnic testcases Makefile.
-#
-# Copyright (C) 2009, Cisco Systems Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# Garrett Cooper, October 2009
-#
-
-top_srcdir ?= ../../../../..
-
-include $(top_srcdir)/include/mk/env_pre.mk
-
-INSTALL_TARGETS := icmp*
-
-MAKE_TARGETS :=
-
-include $(top_srcdir)/include/mk/generic_leaf_target.mk
diff --git a/testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic01 b/testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic01
deleted file mode 100644
index c2103f2..0000000
--- a/testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic01
+++ /dev/null
@@ -1,301 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp4-multi-diffnic01
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at differnt NIC with the following conditions
-# - The version of IP is IPv4
-# - IPsec is not used
-#
-# *) This script may be read by the other test case
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-# The test case ID, the test case count and the total number of test case
-TCID=${TCID:-icmp4-multi-diffnic01}
-TST_TOTAL=1
-TST_COUNT=1
-export TCID
-export TST_COUNT
-export TST_TOTAL
-
-# Test description
-tst_resm TINFO "Verify that the kernel is not crashed with receiving and sending various size of ICMP message at differnt NIC simultaneously with the following conditions"
-
-# Make sure the value of LTPROOT
-LTPROOT=${LTPROOT:-`(cd ../../../../.. ; pwd)`}
-export LTPROOT
-
-# Check the environmanet variable
-. check_envval || exit $TST_TOTAL
-
-# Dulation of the test [sec]
-NS_DURATION=${NS_DURATION:-3600} # 1 hour
-
-# The version of IP
-IP_VER=${IP_VER:-4}
-
-# true, if ipsec is used
-DO_IPSEC=${DO_IPSEC:-false}
-
-# The value of SPI
-SPI=${SPI:-1000}
-
-# IPsec Protocol ( ah / esp / ipcomp )
-IPSEC_PROTO=${IPSEC_PROTO:-ah}
-
-# IPsec Mode ( transport / tunnel )
-IPSEC_MODE=${IPSEC_MODE:-transport}
-
-# Array of the echo request packet size
-ICMP_SIZE_ARRAY=${ICMP_SIZE_ARRAY:-"10 100 1000 10000 65507"}
-
-
-
-#-----------------------------------------------------------------------
-#
-# Function: do_cleanup
-#
-# Description:
-# Recover the system configuration
-#
-#-----------------------------------------------------------------------
-do_cleanup()
-{
- # Kill the icmp traffic server
- killall_icmp_traffic
-
- # Unset SAD/SPD
- output_ipsec_conf flush | setkey -c >/dev/null 2>&1
- $LTP_RSH $RHOST ${LTPROOT}/'testcases/bin/output_ipsec_conf flush | PATH=/sbin:/usr/sbin:$PATH setkey -c' >/dev/null 2>&1
-
- # Clean up each interface
- link_num=0
- while [ $link_num -lt $link_total ]; do
- initialize_if lhost ${link_num}
- initialize_if rhost ${link_num}
- link_num=`expr $link_num + 1`
- done
-}
-
-
-#-----------------------------------------------------------------------
-#
-# Setup
-#
-
-# Unset the maximum number of processes
-ulimit -u unlimited
-
-# Output the informaion
-tst_resm TINFO "- Test duration is $NS_DURATION [sec]"
-
-link_total=`echo $LHOST_HWADDRS | wc -w`
-rhost_link_total=`echo $RHOST_HWADDRS | wc -w`
-if [ $link_total -ne $rhost_link_total ]; then
- tst_resm TBROK "The number of element in LHOST_HWADDRS differs from RHOST_HWADDRS"
- exit 1
-fi
-if [ $link_total -lt 2 ]; then
- tst_resm TBROK "This test case requires plural NICs."
- exit 1
-fi
-tst_resm TINFO "- Target number of the connection is $link_total"
-
-tst_resm TINFO "- Version of IP is IPv${IP_VER}"
-tst_resm TINFO "- Size of packets are ( $ICMP_SIZE_ARRAY )"
-
-if $DO_IPSEC ; then
- message=`check_setkey`
- if [ $? -ne 0 ]; then
- tst_resm TBROK "$message"
- exit 1
- fi
-
- case $IPSEC_PROTO in
- ah)
- tst_resm TINFO "- IPsec [ AH / $IPSEC_MODE ]"
- ;;
- esp)
- tst_resm TINFO "- IPsec [ ESP / $IPSEC_MODE ]"
- ;;
- ipcomp)
- tst_resm TINFO "- IPcomp [ $IPSEC_MODE ]"
- ;;
- esac
-fi
-
-# Initialize the system configuration
-do_cleanup
-
-# Call do_cleanup function before exit
-trap do_cleanup 0
-
-# Loop for NIC configuration
-link_num=0
-lhost_addrs=""
-while [ $link_num -lt $link_total ]; do
- # name of interface of the local/remote host
- lhost_ifname=`get_ifname lhost $link_num`
- rhost_ifname=`get_ifname rhost $link_num`
-
- # Set the IP address to each interface
- case $IP_VER in
- 4)
- network_part="10.0.${link_num}"
- network_mask=24
- lhost_host_part="2" # local host
- rhost_host_part="1" # remote host
- set_ipv4addr lhost $link_num $network_part $lhost_host_part
- if [ $? -ne 0 ]; then
- tst_resm TBROK "Failed to set IPv4 address at the local host"
- exit 1
- fi
- set_ipv4addr rhost $link_num $network_part $rhost_host_part
- if [ $? -ne 0 ]; then
- tst_resm TBROK "Failed to set IPv4 address at the remote host"
- exit 1
- fi
-
- # IPv4 address of the local/remote host
- lhost_addr="${network_part}.${lhost_host_part}"
- rhost_addr="${network_part}.${rhost_host_part}"
- lhost_addrs="${lhost_addrs} ${lhost_addr}"
- ;;
-
- 6)
- network_part="fd00:1:0:`printf %x ${link_num}`"
- network_mask=64
- lhost_host_part=":2" # local host
- rhost_host_part=":1" # remote host
- add_ipv6addr lhost $link_num $network_part $lhost_host_part
- if [ $? -ne 0 ]; then
- tst_resm TBROK "Failed to set IPv6 address at the local host"
- exit 1
- fi
- add_ipv6addr rhost $link_num $network_part $rhost_host_part
- if [ $? -ne 0 ]; then
- tst_resm TBROK "Failed to set IPv6 address at the remote host"
- exit 1
- fi
- lhost_addr="${network_part}:${lhost_host_part}"
- rhost_addr="${network_part}:${rhost_host_part}"
- lhost_addrs="${lhost_addrs} ${lhost_addr}"
- ;;
-
- *)
- tst_resm TBROK "Unknown IP version"
- ;;
- esac
-
- # Configure SAD/SPD
- if $DO_IPSEC ; then
- ipsec_log=`mktemp -p $TMPDIR`
-
- # Set SAD/SPD according to the variables
- output_ipsec_conf src \
- $IPSEC_PROTO $IPSEC_MODE $SPI $lhost_addr $rhost_addr \
- | setkey -c 2>&1 | tee $ipsec_log
- if [ $? -ne 0 -o -s $ipsec_log ]; then
- rm -f $ipsec_log
- tst_resm TBROK "Failed to configure SAD/SPD on the local host."
- exit 1
- fi
-
- $LTP_RSH $RHOST ${LTPROOT}/testcases/bin/output_ipsec_conf dst $IPSEC_PROTO $IPSEC_MODE $SPI $lhost_addr $rhost_addr' | PATH=/sbin:/usr/sbin:$PATH setkey -c' 2>&1 | tee $ipsec_log
- if [ $? -ne 0 -o -s $ipsec_log ]; then
- rm -f $ipsec_log
- tst_resm TBROK "Failed to configure SAD/SPD on the remote host."
- exit 1
- fi
- rm -f $ipsec_log
- fi
-
- # Make sure the connectivity
- case $IP_VER in
- 4)
- ret=`$LTP_RSH $RHOST ${LTPROOT}/testcases/bin/check_icmpv4_connectivity $rhost_ifname $lhost_addr' ; echo $?'`
- if [ $ret -ne 0 ]; then
- tst_resm TBROK "There is no IPv4 connectivity on Link${link_num}"
- exit 1
- fi
- ;;
-
- 6)
- ret=`$LTP_RSH $RHOST ${LTPROOT}/testcases/bin/check_icmpv6_connectivity $rhost_ifname $lhost_addr' ; echo $?'`
- if [ $ret -ne 0 ]; then
- tst_resm TBROK "There is no IPv6 connectivity on Link${link_num}"
- exit 1
- fi
- ;;
- esac
-
- link_num=`expr $link_num + 1`
-done
-
-
-#-----------------------------------------------------------------------
-#
-# Main
-#
-#
-
-connection_num=0
-while [ $connection_num -lt $link_total ]; do
- field=`expr $connection_num + 1`
- lhost_addr=`echo $lhost_addrs | cut -d ' ' -f $field`
-
- lhost_ifname=`get_ifname lhost $connection_num`
- rhost_ifname=`get_ifname rhost $connection_num`
-
- # Run a client
- $LTP_RSH $RHOST "${LTPROOT}/testcases/bin/ns-echoclient -S $lhost_addr -f $IP_VER -s \"$ICMP_SIZE_ARRAY\"" &
- connection_num=`expr $connection_num + 1`
-done
-
-sleep $NS_DURATION
-killall_icmp_traffic
-wait
-
-#-----------------------------------------------------------------------
-#
-# Clean up
-#
-
-tst_resm TPASS "Test is finished successfully."
-exit 0
diff --git a/testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic02 b/testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic02
deleted file mode 100644
index edddce3..0000000
--- a/testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic02
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp4-multi-diffnic02
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at differnt NIC with the following conditions
-# - The version of IP is IPv4
-# - IPsec(AH), transport mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffnic testcase
-#
-
-# The test case ID
-TCID=icmp4-multi-diffnic02
-
-# The version of IP
-IP_VER=4
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=ah
-
-# IPsec Mode
-IPSEC_MODE=transport
-
-. icmp4-multi-diffnic01
diff --git a/testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic03 b/testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic03
deleted file mode 100644
index 40350f1..0000000
--- a/testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic03
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp4-multi-diffnic03
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at differnt NIC with the following conditions
-#
-# - The version of IP is IPv4
-# - IPsec(AH), tunnel mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffnic testcase
-#
-
-# The test case ID
-TCID=icmp4-multi-diffnic03
-
-# The version of IP
-IP_VER=4
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=ah
-
-# IPsec Mode
-IPSEC_MODE=tunnel
-
-. icmp4-multi-diffnic01
diff --git a/testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic04 b/testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic04
deleted file mode 100644
index df23cc6..0000000
--- a/testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic04
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp4-multi-diffnic04
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at differnt NIC with the following conditions
-# - The version of IP is IPv4
-# - IPsec(ESP), transport mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffnic testcase
-#
-
-# The test case ID
-TCID=icmp4-multi-diffnic04
-
-# The version of IP
-IP_VER=4
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=esp
-
-# IPsec Mode
-IPSEC_MODE=transport
-
-. icmp4-multi-diffnic01
diff --git a/testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic05 b/testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic05
deleted file mode 100644
index 328183c..0000000
--- a/testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic05
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp4-multi-diffnic05
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at differnt NIC with the following conditions
-#
-# - The version of IP is IPv4
-# - IPsec(ESP), tunnel mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffnic testcase
-#
-
-# The test case ID
-TCID=icmp4-multi-diffnic05
-
-# The version of IP
-IP_VER=4
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=esp
-
-# IPsec Mode
-IPSEC_MODE=tunnel
-
-. icmp4-multi-diffnic01
diff --git a/testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic06 b/testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic06
deleted file mode 100644
index 1f6a33b..0000000
--- a/testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic06
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp4-multi-diffnic06
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at differnt NIC with the following conditions
-#
-# - The version of IP is IPv4
-# - IPcomp, transport mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffnic testcase
-#
-
-# The test case ID
-TCID=icmp4-multi-diffnic06
-
-# The version of IP
-IP_VER=4
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=ipcomp
-
-# IPsec Mode
-IPSEC_MODE=transport
-
-. icmp4-multi-diffnic01
diff --git a/testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic07 b/testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic07
deleted file mode 100644
index 89190ae..0000000
--- a/testcases/network/stress/icmp/multi-diffnic/icmp4-multi-diffnic07
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp4-multi-diffnic07
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at differnt NIC with the following conditions
-# - The version of IP is IPv4
-# - IPcomp, tunnel mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffnic testcase
-#
-
-# The test case ID
-TCID=icmp4-multi-diffnic07
-
-# The version of IP
-IP_VER=4
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=ipcomp
-
-# IPsec Mode
-IPSEC_MODE=tunnel
-
-. icmp4-multi-diffnic01
diff --git a/testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic01 b/testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic01
deleted file mode 100644
index 7b9b104..0000000
--- a/testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic01
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp6-multi-diffnic01
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at differnt NIC with the following conditions
-# - The version of IP is IPv6
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffnic testcase
-#
-
-# The test case ID
-TCID=icmp6-multi-diffnic01
-
-# The version of IP
-IP_VER=6
-
-. icmp4-multi-diffnic01
diff --git a/testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic02 b/testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic02
deleted file mode 100644
index ffd74c3..0000000
--- a/testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic02
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp6-multi-diffnic02
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at differnt NIC with the following conditions
-# - The version of IP is IPv6
-# - IPsec(AH), transport mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffnic testcase
-#
-
-# The test case ID
-TCID=icmp6-multi-diffnic02
-
-# The version of IP
-IP_VER=6
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=ah
-
-# IPsec Mode
-IPSEC_MODE=transport
-
-. icmp4-multi-diffnic01
diff --git a/testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic03 b/testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic03
deleted file mode 100644
index 84a31e8..0000000
--- a/testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic03
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp6-multi-diffnic03
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at differnt NIC with the following conditions
-#
-# - The version of IP is IPv6
-# - IPsec(AH), tunnel mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffnic testcase
-#
-
-# The test case ID
-TCID=icmp6-multi-diffnic03
-
-# The version of IP
-IP_VER=6
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=ah
-
-# IPsec Mode
-IPSEC_MODE=tunnel
-
-. icmp4-multi-diffnic01
diff --git a/testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic04 b/testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic04
deleted file mode 100644
index 836142b..0000000
--- a/testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic04
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp6-multi-diffnic04
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at differnt NIC with the following conditions
-# - The version of IP is IPv6
-# - IPsec(ESP), transport mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffnic testcase
-#
-
-# The test case ID
-TCID=icmp6-multi-diffnic04
-
-# The version of IP
-IP_VER=6
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=esp
-
-# IPsec Mode
-IPSEC_MODE=transport
-
-. icmp4-multi-diffnic01
diff --git a/testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic05 b/testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic05
deleted file mode 100644
index 58eb616..0000000
--- a/testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic05
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp6-multi-diffnic05
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at differnt NIC with the following conditions
-#
-# - The version of IP is IPv6
-# - IPsec(ESP), tunnel mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffnic testcase
-#
-
-# The test case ID
-TCID=icmp6-multi-diffnic05
-
-# The version of IP
-IP_VER=6
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=esp
-
-# IPsec Mode
-IPSEC_MODE=tunnel
-
-. icmp4-multi-diffnic01
diff --git a/testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic06 b/testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic06
deleted file mode 100644
index cee918a..0000000
--- a/testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic06
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp6-multi-diffnic06
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at differnt NIC with the following conditions
-#
-# - The version of IP is IPv6
-# - IPcomp, transport mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffnic testcase
-#
-
-# The test case ID
-TCID=icmp6-multi-diffnic06
-
-# The version of IP
-IP_VER=6
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=ipcomp
-
-# IPsec Mode
-IPSEC_MODE=transport
-
-. icmp4-multi-diffnic01
diff --git a/testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic07 b/testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic07
deleted file mode 100644
index 7b46609..0000000
--- a/testcases/network/stress/icmp/multi-diffnic/icmp6-multi-diffnic07
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2005 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
-## ##
-## ##
-################################################################################
-#
-# File:
-# icmp6-multi-diffnic07
-#
-# Description:
-# Verify that the kernel is not crashed with receiving and sending ICMP
-# message at differnt NIC with the following conditions
-# - The version of IP is IPv6
-# - IPcomp, tunnel mode
-#
-# Setup:
-# See ltp-yyyymmdd/testcases/network/stress/README
-#
-# Author:
-# Mitsuru Chinen <mitch@jp.ibm.com>
-#
-# History:
-# Oct 19 2005 - Created (Mitsuru Chinen)
-#
-#-----------------------------------------------------------------------
-# Uncomment line below for debug output.
-#trace_logic=${trace_logic:-"set -x"}
-$trace_logic
-
-#
-# Variables -- Changed by each multi-diffnic testcase
-#
-
-# The test case ID
-TCID=icmp6-multi-diffnic07
-
-# The version of IP
-IP_VER=6
-
-# true, if ipsec is used
-DO_IPSEC=true
-
-# IPsec Protocol
-IPSEC_PROTO=ipcomp
-
-# IPsec Mode
-IPSEC_MODE=tunnel
-
-. icmp4-multi-diffnic01
--
2.5.5
^ permalink raw reply related [flat|nested] 11+ messages in thread* [LTP] [PATCH 1/4] network/stress/icmp: add icmp-multi-diffip.sh to implement diffip stress test
2016-05-09 7:57 [LTP] [PATCH 1/4] network/stress/icmp: add icmp-multi-diffip.sh to implement diffip stress test Hangbin Liu
` (2 preceding siblings ...)
2016-05-09 7:57 ` [LTP] [PATCH 4/4] network/stress/icmp: remove old multi-diffnic/* tests Hangbin Liu
@ 2016-05-17 11:46 ` Alexey Kodanev
2016-05-19 14:29 ` Hangbin Liu
3 siblings, 1 reply; 11+ messages in thread
From: Alexey Kodanev @ 2016-05-17 11:46 UTC (permalink / raw)
To: ltp
Hi,
On 05/09/2016 10:57 AM, Hangbin Liu wrote:
> Signed-off-by: Hangbin Liu <haliu@redhat.com>
> ---
> runtest/network_stress.icmp | 29 ++---
> testcases/network/stress/icmp/icmp-multi-diffip.sh | 138 +++++++++++++++++++++
> 2 files changed, 153 insertions(+), 14 deletions(-)
> create mode 100755 testcases/network/stress/icmp/icmp-multi-diffip.sh
>
> diff --git a/runtest/network_stress.icmp b/runtest/network_stress.icmp
> index 2b989b1..87feb74 100644
> --- a/runtest/network_stress.icmp
> +++ b/runtest/network_stress.icmp
> @@ -36,21 +36,22 @@ icmp6-uni-basic05 icmp-uni-basic.sh -6 -p esp -m tunnel -s "10 100 1000 10000 65
> icmp6-uni-basic06 icmp-uni-basic.sh -6 -p ipcomp -m transport -s "10 100 1000 10000 65000"
> icmp6-uni-basic07 icmp-uni-basic.sh -6 -p ipcomp -m tunnel -s "10 100 1000 10000 65000"
>
> -icmp4-multi-diffip01 icmp4-multi-diffip01
> -icmp4-multi-diffip02 icmp4-multi-diffip02
> -icmp4-multi-diffip03 icmp4-multi-diffip03
> -icmp4-multi-diffip04 icmp4-multi-diffip04
> -icmp4-multi-diffip05 icmp4-multi-diffip05
> -icmp4-multi-diffip06 icmp4-multi-diffip06
> -icmp4-multi-diffip07 icmp4-multi-diffip07
> +# networkstress.sh set IP_TOTAL=10000 by default, which is too much for these tests
if it is too much, I would rather check it in the script and set to the
appropriate maximum.
> +icmp4-multi-diffip01 icmp-multi-diffip.sh -n 100
> +icmp4-multi-diffip02 icmp-multi-diffip.sh -n 100 -p ah -m transport
> +icmp4-multi-diffip03 icmp-multi-diffip.sh -n 100 -p ah -m tunnel
> +icmp4-multi-diffip04 icmp-multi-diffip.sh -n 100 -p esp -m transport
> +icmp4-multi-diffip05 icmp-multi-diffip.sh -n 100 -p esp -m tunnel
> +icmp4-multi-diffip06 icmp-multi-diffip.sh -n 100 -p ipcomp -m transport
> +icmp4-multi-diffip07 icmp-multi-diffip.sh -n 100 -p ipcomp -m tunnel
>
> -icmp6-multi-diffip01 icmp6-multi-diffip01
> -icmp6-multi-diffip02 icmp6-multi-diffip02
> -icmp6-multi-diffip03 icmp6-multi-diffip03
> -icmp6-multi-diffip04 icmp6-multi-diffip04
> -icmp6-multi-diffip05 icmp6-multi-diffip05
> -icmp6-multi-diffip06 icmp6-multi-diffip06
> -icmp6-multi-diffip07 icmp6-multi-diffip07
> +icmp6-multi-diffip01 icmp-multi-diffip.sh -6 -n 100
> +icmp6-multi-diffip02 icmp-multi-diffip.sh -6 -n 100 -p ah -m transport
> +icmp6-multi-diffip03 icmp-multi-diffip.sh -6 -n 100 -p ah -m tunnel
> +icmp6-multi-diffip04 icmp-multi-diffip.sh -6 -n 100 -p esp -m transport
> +icmp6-multi-diffip05 icmp-multi-diffip.sh -6 -n 100 -p esp -m tunnel
> +icmp6-multi-diffip06 icmp-multi-diffip.sh -6 -n 100 -p ipcomp -m transport
> +icmp6-multi-diffip07 icmp-multi-diffip.sh -6 -n 100 -p ipcomp -m tunnel
>
> icmp4-multi-diffnic01 icmp4-multi-diffnic01
> icmp4-multi-diffnic02 icmp4-multi-diffnic02
> diff --git a/testcases/network/stress/icmp/icmp-multi-diffip.sh b/testcases/network/stress/icmp/icmp-multi-diffip.sh
> new file mode 100755
> index 0000000..f6f5f4b
> --- /dev/null
> +++ b/testcases/network/stress/icmp/icmp-multi-diffip.sh
> @@ -0,0 +1,138 @@
> +#!/bin/sh
> +# Copyright (c) 2016 Red Hat Inc., All Rights Reserved.
> +# Copyright (c) International Business Machines Corp., 2005
> +#
> +# This program is free software; you can redistribute it and/or
> +# modify it under the terms of the GNU General Public License as
> +# published by the Free Software Foundation; either version 2 of
> +# the License, or (at your option) any later version.
> +#
> +# This program is distributed in the hope that it would be useful,
> +# but WITHOUT ANY WARRANTY; without even the implied warranty of
> +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> +# GNU General Public License for more details.
> +#
> +# You should have received a copy of the GNU General Public License
> +# along with this program; if not, see <http://www.gnu.org/licenses/>.
> +#
> +# Author: Hangbin Liu <haliu@redhat.com>
> +#
> +################################################################################
> +TCID=${TCID:-icmp-multi-diffip}
> +TST_TOTAL=1
> +TST_COUNT=1
> +TST_CLEANUP="do_cleanup"
> +
> +. ipsec_lib.sh
> +
> +while getopts "hl:m:n:N:p:s:S:6" opt; do
> + case "$opt" in
> + h)
> + echo "Usage:"
> + echo "h help"
> + echo "l n n is the number of test link when tests run"
> + echo "m x x is ipsec mode, could be transport / tunnel"
> + echo "n n n is number of total ip addresses for testing"
> + echo "N n n is seconds of the network stress duration time"
> + echo "p x x is ipsec protocol, could be ah / esp / ipcomp"
> + echo "s x x is icmp messge size array"
> + echo "S n n is IPsec SPI value"
> + echo "6 run over IPv6"
> + exit 0
> + ;;
> + l) LINK_NUM=$OPTARG ;;
> + m) IPSEC_MODE=$OPTARG ;;
> + n) IP_TOTAL=$OPTARG ;;
> + N) NS_DURATION=$OPTARG ;;
> + p) IPSEC_PROTO=$OPTARG ;;
> + s) ICMP_SIZE_ARRAY=$OPTARG ;;
> + S) SPI=$OPTARG ;;
> + 6) # skip, test_net library already processed it
> + ;;
> + *) tst_brkm TBROK "unknown option: $opt" ;;
> + esac
> +done
> +
> +SPI=${SPI:-1000}
> +LINK_NUM=${LINK_NUM:-0}
> +IP_TOTAL=${IP_TOTAL:-100}
> +DO_IPSEC=${DO_IPSEC:-false}
> +NS_DURATION=${NS_DURATION:-"3600"}
> +# Use large enough pkt size(65000) to fix each encapsulation
> +ICMP_SIZE_ARRAY=${ICMP_SIZE_ARRAY:-"10 100 1000 10000 65000"}
> +[ -n "$IPSEC_MODE" -a -n "$IPSEC_PROTO" ] && DO_IPSEC=true || DO_IPSEC=false
> +
> +do_cleanup()
> +{
> + pkill -9 ping$TST_IPV6 &> /dev/null
> + tst_ipsec_cleanup
> + # Clean up each interface
> + tst_restore_ipaddr lhost ${LINK_NUM}
> + tst_restore_ipaddr rhost ${LINK_NUM}
> +}
> +
> +# Test description
> +tst_resm TINFO "Sending ICMP messages with the following conditions"
> +tst_resm TINFO "- Target number of the connection is $IP_TOTAL"
> +tst_resm TINFO "- Version of IP is IPv${TST_IPV6:-4}"
> +tst_resm TINFO "- Size of packets are ( $ICMP_SIZE_ARRAY )"
> +
> +if $DO_IPSEC; then
> + case $IPSEC_PROTO in
> + ah) tst_resm TINFO "- IPsec [ AH / $IPSEC_MODE ]" ;;
> + esp) tst_resm TINFO "- IPsec [ ESP / $IPSEC_MODE ]" ;;
> + ipcomp) tst_resm TINFO "- IPcomp [ $IPSEC_MODE ]" ;;
> + esac
> +fi
> +
> +# name of interface of the local/remote host
> +lhost_iface=$(tst_iface lhost $LINK_NUM)
> +rhost_iface=$(tst_iface rhost $LINK_NUM)
> +
> +[ "$TST_IPV6" ] && netmask=64 || netmask=30
> +for cnt in $(seq $IP_TOTAL); do
> + x=`expr $cnt \/ 64 % 255`
> + y=`expr $cnt % 64 \* 4 + 1`
> + if [ $x -ge 255 ]; then
> + tst_resm TCONF "This script cannot add more than $cnt addresses"
> + break
> + fi
> + if [ "$TST_IPV6" ]; then
> + lhost_addr=${IPV6_NET32_UNUSED}:$x:$y:${LHOST_IPV6_HOST}
> + rhost_addr=${IPV6_NET32_UNUSED}:$x:$y:${RHOST_IPV6_HOST}
> + else
> + lhost_addr=${IPV4_NET16_UNUSED}.$x.$y
> + rhost_addr=${IPV4_NET16_UNUSED}.$x.$(($y + 1))
> + fi
> + ROD ip addr add $lhost_addr/$netmask dev $lhost_iface
> + tst_rhost_run -s -c "ip addr add $rhost_addr/$netmask dev $rhost_iface"
> +
> + # Configure SAD/SPD
> + if $DO_IPSEC ; then
> + tst_ipsec lhost $IPSEC_PROTO $IPSEC_MODE $SPI $lhost_addr $rhost_addr
> + tst_ipsec rhost $IPSEC_PROTO $IPSEC_MODE $SPI $rhost_addr $lhost_addr
> + fi
> +
> + # Make sure the connectvity
> + tst_ping $lhost_iface $rhost_addr
> + if [ $? -ne 0 ]; then
> + tst_resm TFAIL "IPv${TST_IPV6:-4} $lhost_addr/$netmask -- $rhost_addr/$netmask $IPSEC_PROTO $IPSEC_MODE connectivity"
proto/mode were printed in the beginning of the test so it seems
redundant to print it again and again during the test.
> + else
> + tst_resm TPASS "IPv${TST_IPV6:-4} $lhost_addr/$netmask -- $rhost_addr/$netmask $IPSEC_PROTO $IPSEC_MODE connectivity"
> + fi
TST_TOTAL doesn't match TPASS/TFAIL assertions.
> + rhost_addr_array[$cnt]=$rhost_addr
Please don't use arrays, it's a bash extension.
> +done
> +
> +# Do Stress testing, ping flood
> +tst_resm TINFO "start ping flood stress testing"
> +for rhost_addr in ${rhost_addr_array[@]}; do
> + for size in ${ICMP_SIZE_ARRAY}; do
> + ping$TST_IPV6 -f -q -I $lhost_iface $rhost_addr -s $size &> /dev/null &
> + done
> +done
> +
> +sleep ${NS_DURATION}
> +
> +tst_resm TPASS "$TCID IPv${TST_IPV6:-4} $IPSEC_PROTO $IPSEC_MODE stress test"
Is the test always passing here with no checks?
Why we need to print $TCID?
> +tst_exit
Thanks,
Alexey
^ permalink raw reply [flat|nested] 11+ messages in thread* [LTP] [PATCH 1/4] network/stress/icmp: add icmp-multi-diffip.sh to implement diffip stress test
2016-05-17 11:46 ` [LTP] [PATCH 1/4] network/stress/icmp: add icmp-multi-diffip.sh to implement diffip stress test Alexey Kodanev
@ 2016-05-19 14:29 ` Hangbin Liu
2016-05-19 16:01 ` Alexey Kodanev
0 siblings, 1 reply; 11+ messages in thread
From: Hangbin Liu @ 2016-05-19 14:29 UTC (permalink / raw)
To: ltp
On Tue, May 17, 2016 at 02:46:33PM +0300, Alexey Kodanev wrote:
> Hi,
> On 05/09/2016 10:57 AM, Hangbin Liu wrote:
> >Signed-off-by: Hangbin Liu <haliu@redhat.com>
> >---
> > runtest/network_stress.icmp | 29 ++---
> > testcases/network/stress/icmp/icmp-multi-diffip.sh | 138 +++++++++++++++++++++
> > 2 files changed, 153 insertions(+), 14 deletions(-)
> > create mode 100755 testcases/network/stress/icmp/icmp-multi-diffip.sh
> >
> >diff --git a/runtest/network_stress.icmp b/runtest/network_stress.icmp
> >index 2b989b1..87feb74 100644
> >--- a/runtest/network_stress.icmp
> >+++ b/runtest/network_stress.icmp
> >@@ -36,21 +36,22 @@ icmp6-uni-basic05 icmp-uni-basic.sh -6 -p esp -m tunnel -s "10 100 1000 10000 65
> > icmp6-uni-basic06 icmp-uni-basic.sh -6 -p ipcomp -m transport -s "10 100 1000 10000 65000"
> > icmp6-uni-basic07 icmp-uni-basic.sh -6 -p ipcomp -m tunnel -s "10 100 1000 10000 65000"
> >-icmp4-multi-diffip01 icmp4-multi-diffip01
> >-icmp4-multi-diffip02 icmp4-multi-diffip02
> >-icmp4-multi-diffip03 icmp4-multi-diffip03
> >-icmp4-multi-diffip04 icmp4-multi-diffip04
> >-icmp4-multi-diffip05 icmp4-multi-diffip05
> >-icmp4-multi-diffip06 icmp4-multi-diffip06
> >-icmp4-multi-diffip07 icmp4-multi-diffip07
> >+# networkstress.sh set IP_TOTAL=10000 by default, which is too much for these tests
>
> if it is too much, I would rather check it in the script and set to the
> appropriate maximum.
OK, I will do it in the script.
> >+
> >+ # Make sure the connectvity
> >+ tst_ping $lhost_iface $rhost_addr
> >+ if [ $? -ne 0 ]; then
> >+ tst_resm TFAIL "IPv${TST_IPV6:-4} $lhost_addr/$netmask -- $rhost_addr/$netmask $IPSEC_PROTO $IPSEC_MODE connectivity"
>
> proto/mode were printed in the beginning of the test so it seems redundant
> to print it again and again during the test.
Ah, yes, exactly. I will simplify it.
>
> >+ else
> >+ tst_resm TPASS "IPv${TST_IPV6:-4} $lhost_addr/$netmask -- $rhost_addr/$netmask $IPSEC_PROTO $IPSEC_MODE connectivity"
> >+ fi
>
> TST_TOTAL doesn't match TPASS/TFAIL assertions.
Hmm...I didn't notice about this. We should to make sure the connectivity. But
the checking times is based on $IP_TOTAL.
OK, I will use tst_brkm TCONF instead of tst_resm TFAIL. Which report you feel
is better,
tst_brkm TCONF "IPv${TST_IPV6:-4} connectivity after add $cnt addresses" or
tst_brkm TCONF "$cnt addr: IPv${TST_IPV6:-4} $lhost_addr/$netmask -- $rhost_addr/$netmask connectivity"
>
> >+ rhost_addr_array[$cnt]=$rhost_addr
>
> Please don't use arrays, it's a bash extension.
Is there a better way to store the addresses? Use a temp file?
>
> >+done
> >+
> >+# Do Stress testing, ping flood
> >+tst_resm TINFO "start ping flood stress testing"
> >+for rhost_addr in ${rhost_addr_array[@]}; do
> >+ for size in ${ICMP_SIZE_ARRAY}; do
> >+ ping$TST_IPV6 -f -q -I $lhost_iface $rhost_addr -s $size &> /dev/null &
> >+ done
> >+done
> >+
> >+sleep ${NS_DURATION}
> >+
> >+tst_resm TPASS "$TCID IPv${TST_IPV6:-4} $IPSEC_PROTO $IPSEC_MODE stress test"
>
> Is the test always passing here with no checks?
Yes, if the system under test do not crash with ping flood after ${NS_DURATION}
seconds, we can pass the test.
>
> Why we need to print $TCID?
No reason. I just want to contain as much info in the report log. If you think
there is no need for the info since we have print it at the begining. I can
do like the previous way. i.e.
tst_resm TPASS "Test is finished successfully."
Thanks
Hangbin
^ permalink raw reply [flat|nested] 11+ messages in thread* [LTP] [PATCH 1/4] network/stress/icmp: add icmp-multi-diffip.sh to implement diffip stress test
2016-05-19 14:29 ` Hangbin Liu
@ 2016-05-19 16:01 ` Alexey Kodanev
2016-05-20 2:16 ` Hangbin Liu
0 siblings, 1 reply; 11+ messages in thread
From: Alexey Kodanev @ 2016-05-19 16:01 UTC (permalink / raw)
To: ltp
Hi,
On 05/19/2016 05:29 PM, Hangbin Liu wrote:
> On Tue, May 17, 2016 at 02:46:33PM +0300, Alexey Kodanev wrote:
>> Hi,
>> On 05/09/2016 10:57 AM, Hangbin Liu wrote:
>>> Signed-off-by: Hangbin Liu <haliu@redhat.com>
>>> ---
>>> runtest/network_stress.icmp | 29 ++---
>>> testcases/network/stress/icmp/icmp-multi-diffip.sh | 138 +++++++++++++++++++++
>>> 2 files changed, 153 insertions(+), 14 deletions(-)
>>> create mode 100755 testcases/network/stress/icmp/icmp-multi-diffip.sh
>>>
>>> diff --git a/runtest/network_stress.icmp b/runtest/network_stress.icmp
>>> index 2b989b1..87feb74 100644
>>> --- a/runtest/network_stress.icmp
>>> +++ b/runtest/network_stress.icmp
>>> @@ -36,21 +36,22 @@ icmp6-uni-basic05 icmp-uni-basic.sh -6 -p esp -m tunnel -s "10 100 1000 10000 65
>>> icmp6-uni-basic06 icmp-uni-basic.sh -6 -p ipcomp -m transport -s "10 100 1000 10000 65000"
>>> icmp6-uni-basic07 icmp-uni-basic.sh -6 -p ipcomp -m tunnel -s "10 100 1000 10000 65000"
>>> -icmp4-multi-diffip01 icmp4-multi-diffip01
>>> -icmp4-multi-diffip02 icmp4-multi-diffip02
>>> -icmp4-multi-diffip03 icmp4-multi-diffip03
>>> -icmp4-multi-diffip04 icmp4-multi-diffip04
>>> -icmp4-multi-diffip05 icmp4-multi-diffip05
>>> -icmp4-multi-diffip06 icmp4-multi-diffip06
>>> -icmp4-multi-diffip07 icmp4-multi-diffip07
>>> +# networkstress.sh set IP_TOTAL=10000 by default, which is too much for these tests
>> if it is too much, I would rather check it in the script and set to the
>> appropriate maximum.
> OK, I will do it in the script.
>
>>> +
>>> + # Make sure the connectvity
>>> + tst_ping $lhost_iface $rhost_addr
>>> + if [ $? -ne 0 ]; then
>>> + tst_resm TFAIL "IPv${TST_IPV6:-4} $lhost_addr/$netmask -- $rhost_addr/$netmask $IPSEC_PROTO $IPSEC_MODE connectivity"
>> proto/mode were printed in the beginning of the test so it seems redundant
>> to print it again and again during the test.
> Ah, yes, exactly. I will simplify it.
>
>>> + else
>>> + tst_resm TPASS "IPv${TST_IPV6:-4} $lhost_addr/$netmask -- $rhost_addr/$netmask $IPSEC_PROTO $IPSEC_MODE connectivity"
>>> + fi
>> TST_TOTAL doesn't match TPASS/TFAIL assertions.
> Hmm...I didn't notice about this. We should to make sure the connectivity. But
> the checking times is based on $IP_TOTAL.
>
> OK, I will use tst_brkm TCONF instead of tst_resm TFAIL. Which report you feel
> is better,
>
> tst_brkm TCONF "IPv${TST_IPV6:-4} connectivity after add $cnt addresses" or
>
> tst_brkm TCONF "$cnt addr: IPv${TST_IPV6:-4} $lhost_addr/$netmask -- $rhost_addr/$netmask connectivity"
>
>
>>> + rhost_addr_array[$cnt]=$rhost_addr
>> Please don't use arrays, it's a bash extension.
> Is there a better way to store the addresses? Use a temp file?
We can easily calculate them again, why store them... number might be
quite big.
>>> +done
>>> +
>>> +# Do Stress testing, ping flood
>>> +tst_resm TINFO "start ping flood stress testing"
>>> +for rhost_addr in ${rhost_addr_array[@]}; do
>>> + for size in ${ICMP_SIZE_ARRAY}; do
>>> + ping$TST_IPV6 -f -q -I $lhost_iface $rhost_addr -s $size &> /dev/null &
>>> + done
>>> +done
Can we start ping test in background after adding each IP, i.e. after
tst_ping finished?
>>> +
>>> +sleep ${NS_DURATION}
>>> +
>>> +tst_resm TPASS "$TCID IPv${TST_IPV6:-4} $IPSEC_PROTO $IPSEC_MODE stress test"
>> Is the test always passing here with no checks?
> Yes, if the system under test do not crash with ping flood after ${NS_DURATION}
> seconds, we can pass the test.
What if remote host crashed somehow, and local not... test would pass in
that case.
May be we should kill ping processes (or add -w deadline) and check
connectivity again,
what do you think?
Thanks,
Alexey
^ permalink raw reply [flat|nested] 11+ messages in thread* [LTP] [PATCH 1/4] network/stress/icmp: add icmp-multi-diffip.sh to implement diffip stress test
2016-05-19 16:01 ` Alexey Kodanev
@ 2016-05-20 2:16 ` Hangbin Liu
2016-05-20 2:38 ` Hangbin Liu
0 siblings, 1 reply; 11+ messages in thread
From: Hangbin Liu @ 2016-05-20 2:16 UTC (permalink / raw)
To: ltp
Hi,
On Thu, May 19, 2016 at 07:01:30PM +0300, Alexey Kodanev wrote:
> >>>+ rhost_addr_array[$cnt]=$rhost_addr
> >>Please don't use arrays, it's a bash extension.
> >Is there a better way to store the addresses? Use a temp file?
>
> We can easily calculate them again, why store them... number might be quite
> big.
OK
>
> >>>+done
> >>>+
> >>>+# Do Stress testing, ping flood
> >>>+tst_resm TINFO "start ping flood stress testing"
> >>>+for rhost_addr in ${rhost_addr_array[@]}; do
> >>>+ for size in ${ICMP_SIZE_ARRAY}; do
> >>>+ ping$TST_IPV6 -f -q -I $lhost_iface $rhost_addr -s $size &> /dev/null &
> >>>+ done
> >>>+done
>
> Can we start ping test in background after adding each IP, i.e. after
> tst_ping finished?
OK
>
> >>>+
> >>>+sleep ${NS_DURATION}
> >>>+
> >>>+tst_resm TPASS "$TCID IPv${TST_IPV6:-4} $IPSEC_PROTO $IPSEC_MODE stress test"
> >>Is the test always passing here with no checks?
> >Yes, if the system under test do not crash with ping flood after ${NS_DURATION}
> >seconds, we can pass the test.
>
> What if remote host crashed somehow, and local not... test would pass in
> that case.
>
> May be we should kill ping processes (or add -w deadline) and check
> connectivity again,
> what do you think?
Good advice. Will add this check.
Thanks
Hangbin
^ permalink raw reply [flat|nested] 11+ messages in thread* [LTP] [PATCH 1/4] network/stress/icmp: add icmp-multi-diffip.sh to implement diffip stress test
2016-05-20 2:16 ` Hangbin Liu
@ 2016-05-20 2:38 ` Hangbin Liu
0 siblings, 0 replies; 11+ messages in thread
From: Hangbin Liu @ 2016-05-20 2:38 UTC (permalink / raw)
To: ltp
On Fri, May 20, 2016 at 10:16:33AM +0800, Hangbin Liu wrote:
> > >>>+# Do Stress testing, ping flood
> > >>>+tst_resm TINFO "start ping flood stress testing"
> > >>>+for rhost_addr in ${rhost_addr_array[@]}; do
> > >>>+ for size in ${ICMP_SIZE_ARRAY}; do
> > >>>+ ping$TST_IPV6 -f -q -I $lhost_iface $rhost_addr -s $size &> /dev/null &
> > >>>+ done
> > >>>+done
> >
> > Can we start ping test in background after adding each IP, i.e. after
> > tst_ping finished?
Ah, suddenly come in mind, If we start ping flood just after adding each IP,
there will have packets loose when we test later added IP address, which may
cause tst_ping failed. What do you think?
Thanks
Hangbin
^ permalink raw reply [flat|nested] 11+ messages in thread