ipsec/tcp: create new ipsec tests based on existed stress/tcp/*

Don't use setup variations with sysctl knobs and netem,
this can be done outside of LTP (if needed) or later with
additional test-cases.

New tests run with different types of IPsec and payload size.

Disable the old ones (remove them from runtest file).

Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
diff --git a/runtest/net_stress.ipsec_tcp b/runtest/net_stress.ipsec_tcp
index 7206b3a..1a34f87 100644
--- a/runtest/net_stress.ipsec_tcp
+++ b/runtest/net_stress.ipsec_tcp
@@ -1,333 +1,71 @@
-#
-# Stress test for TCP/IP protocol stack (TCP)
-#
+tcp4_ipsec01 tcp_ipsec.sh -s "100 1000 65535"
+tcp4_ipsec02 tcp_ipsec.sh -p ah -m transport -s "100 1000 65535"
+tcp4_ipsec03 tcp_ipsec.sh -p ah -m tunnel -s "100 1000 65535"
+tcp4_ipsec04 tcp_ipsec.sh -p esp -m transport -s "100 1000 65535"
+tcp4_ipsec05 tcp_ipsec.sh -p esp -m tunnel -s "100 1000 65535"
+tcp4_ipsec06 tcp_ipsec.sh -p comp -m transport -s "100 1000 65535"
+tcp4_ipsec07 tcp_ipsec.sh -p comp -m tunnel -s "100 1000 65535"
+tcp4_ipsec08 tcp_ipsec.sh -A rfc4106_128 -p esp_aead -m transport -s "100 1000 65535"
+tcp4_ipsec09 tcp_ipsec.sh -A rfc4106_128 -p esp_aead -m tunnel -s "100 1000 65535"
+tcp4_ipsec10 tcp_ipsec.sh -A rfc4106_192 -p esp_aead -m transport -s "100 1000 65535"
+tcp4_ipsec11 tcp_ipsec.sh -A rfc4106_192 -p esp_aead -m tunnel -s "100 1000 65535"
+tcp4_ipsec12 tcp_ipsec.sh -A rfc4106_256 -p esp_aead -m transport -s "100 1000 65535"
+tcp4_ipsec13 tcp_ipsec.sh -A rfc4106_256 -p esp_aead -m tunnel -s "100 1000 65535"
+tcp4_ipsec14 tcp_ipsec.sh -A rfc4309_128 -p esp_aead -m transport -s "100 1000 65535"
+tcp4_ipsec15 tcp_ipsec.sh -A rfc4309_128 -p esp_aead -m tunnel -s "100 1000 65535"
+tcp4_ipsec16 tcp_ipsec.sh -A rfc4309_192 -p esp_aead -m transport -s "100 1000 65535"
+tcp4_ipsec17 tcp_ipsec.sh -A rfc4309_192 -p esp_aead -m tunnel -s "100 1000 65535"
+tcp4_ipsec18 tcp_ipsec.sh -A rfc4309_256 -p esp_aead -m transport -s "100 1000 65535"
+tcp4_ipsec19 tcp_ipsec.sh -A rfc4309_256 -p esp_aead -m tunnel -s "100 1000 65535"
+tcp4_ipsec20 tcp_ipsec.sh -A rfc4543_128 -p esp_aead -m transport -s "100 1000 65535"
+tcp4_ipsec21 tcp_ipsec.sh -A rfc4543_128 -p esp_aead -m tunnel -s "100 1000 65535"
+tcp4_ipsec22 tcp_ipsec.sh -A rfc4543_192 -p esp_aead -m transport -s "100 1000 65535"
+tcp4_ipsec23 tcp_ipsec.sh -A rfc4543_192 -p esp_aead -m tunnel -s "100 1000 65535"
+tcp4_ipsec24 tcp_ipsec.sh -A rfc4543_256 -p esp_aead -m transport -s "100 1000 65535"
+tcp4_ipsec25 tcp_ipsec.sh -A rfc4543_256 -p esp_aead -m tunnel -s "100 1000 65535"
+tcp4_ipsec26 tcp_ipsec.sh -p esp -a sha1 -e cast5 -m transport -s "100 1000 65535"
+tcp4_ipsec27 tcp_ipsec.sh -p esp -a sha1 -e cast5 -m tunnel -s "100 1000 65535"
+tcp4_ipsec28 tcp_ipsec.sh -p esp -a sha256 -e blowfish -m transport -s "100 1000 65535"
+tcp4_ipsec29 tcp_ipsec.sh -p esp -a sha256 -e blowfish -m tunnel -s "100 1000 65535"
+tcp4_ipsec30 tcp_ipsec.sh -p esp -a sha384 -e twofish -m transport -s "100 1000 65535"
+tcp4_ipsec31 tcp_ipsec.sh -p esp -a sha384 -e twofish -m tunnel -s "100 1000 65535"
+tcp4_ipsec32 tcp_ipsec.sh -p esp -a sha512 -e camellia -m transport -s "100 1000 65535"
+tcp4_ipsec33 tcp_ipsec.sh -p esp -a sha512 -e camellia -m tunnel -s "100 1000 65535"
+tcp4_ipsec34 tcp_ipsec.sh -p esp -a rmd160 -e serpent -m transport -s "100 1000 65535"
+tcp4_ipsec35 tcp_ipsec.sh -p esp -a rmd160 -e serpent -m tunnel -s "100 1000 65535"
 
-tcp4-uni-basic01 tcp4-uni-basic01
-tcp4-uni-basic02 tcp4-uni-basic02
-tcp4-uni-basic03 tcp4-uni-basic03
-tcp4-uni-basic04 tcp4-uni-basic04
-tcp4-uni-basic05 tcp4-uni-basic05
-tcp4-uni-basic06 tcp4-uni-basic06
-tcp4-uni-basic07 tcp4-uni-basic07
-tcp4-uni-basic08 tcp4-uni-basic08
-tcp4-uni-basic09 tcp4-uni-basic09
-tcp4-uni-basic10 tcp4-uni-basic10
-tcp4-uni-basic11 tcp4-uni-basic11
-tcp4-uni-basic12 tcp4-uni-basic12
-tcp4-uni-basic13 tcp4-uni-basic13
-tcp4-uni-basic14 tcp4-uni-basic14
-
-tcp6-uni-basic01 tcp6-uni-basic01
-tcp6-uni-basic02 tcp6-uni-basic02
-tcp6-uni-basic03 tcp6-uni-basic03
-tcp6-uni-basic04 tcp6-uni-basic04
-tcp6-uni-basic05 tcp6-uni-basic05
-tcp6-uni-basic06 tcp6-uni-basic06
-tcp6-uni-basic07 tcp6-uni-basic07
-tcp6-uni-basic08 tcp6-uni-basic08
-tcp6-uni-basic09 tcp6-uni-basic09
-tcp6-uni-basic10 tcp6-uni-basic10
-tcp6-uni-basic11 tcp6-uni-basic11
-tcp6-uni-basic12 tcp6-uni-basic12
-tcp6-uni-basic13 tcp6-uni-basic13
-tcp6-uni-basic14 tcp6-uni-basic14
-
-tcp4-uni-smallsend01 tcp4-uni-smallsend01
-tcp4-uni-smallsend02 tcp4-uni-smallsend02
-tcp4-uni-smallsend03 tcp4-uni-smallsend03
-tcp4-uni-smallsend04 tcp4-uni-smallsend04
-tcp4-uni-smallsend05 tcp4-uni-smallsend05
-tcp4-uni-smallsend06 tcp4-uni-smallsend06
-tcp4-uni-smallsend07 tcp4-uni-smallsend07
-tcp4-uni-smallsend08 tcp4-uni-smallsend08
-tcp4-uni-smallsend09 tcp4-uni-smallsend09
-tcp4-uni-smallsend10 tcp4-uni-smallsend10
-tcp4-uni-smallsend11 tcp4-uni-smallsend11
-tcp4-uni-smallsend12 tcp4-uni-smallsend12
-tcp4-uni-smallsend13 tcp4-uni-smallsend13
-tcp4-uni-smallsend14 tcp4-uni-smallsend14
-
-tcp6-uni-smallsend01 tcp6-uni-smallsend01
-tcp6-uni-smallsend02 tcp6-uni-smallsend02
-tcp6-uni-smallsend03 tcp6-uni-smallsend03
-tcp6-uni-smallsend04 tcp6-uni-smallsend04
-tcp6-uni-smallsend05 tcp6-uni-smallsend05
-tcp6-uni-smallsend06 tcp6-uni-smallsend06
-tcp6-uni-smallsend07 tcp6-uni-smallsend07
-tcp6-uni-smallsend08 tcp6-uni-smallsend08
-tcp6-uni-smallsend09 tcp6-uni-smallsend09
-tcp6-uni-smallsend10 tcp6-uni-smallsend10
-tcp6-uni-smallsend11 tcp6-uni-smallsend11
-tcp6-uni-smallsend12 tcp6-uni-smallsend12
-tcp6-uni-smallsend13 tcp6-uni-smallsend13
-tcp6-uni-smallsend14 tcp6-uni-smallsend14
-
-tcp4-uni-winscale01 tcp4-uni-winscale01
-tcp4-uni-winscale02 tcp4-uni-winscale02
-tcp4-uni-winscale03 tcp4-uni-winscale03
-tcp4-uni-winscale04 tcp4-uni-winscale04
-tcp4-uni-winscale05 tcp4-uni-winscale05
-tcp4-uni-winscale06 tcp4-uni-winscale06
-tcp4-uni-winscale07 tcp4-uni-winscale07
-tcp4-uni-winscale08 tcp4-uni-winscale08
-tcp4-uni-winscale09 tcp4-uni-winscale09
-tcp4-uni-winscale10 tcp4-uni-winscale10
-tcp4-uni-winscale11 tcp4-uni-winscale11
-tcp4-uni-winscale12 tcp4-uni-winscale12
-tcp4-uni-winscale13 tcp4-uni-winscale13
-tcp4-uni-winscale14 tcp4-uni-winscale14
-
-tcp6-uni-winscale01 tcp6-uni-winscale01
-tcp6-uni-winscale02 tcp6-uni-winscale02
-tcp6-uni-winscale03 tcp6-uni-winscale03
-tcp6-uni-winscale04 tcp6-uni-winscale04
-tcp6-uni-winscale05 tcp6-uni-winscale05
-tcp6-uni-winscale06 tcp6-uni-winscale06
-tcp6-uni-winscale07 tcp6-uni-winscale07
-tcp6-uni-winscale08 tcp6-uni-winscale08
-tcp6-uni-winscale09 tcp6-uni-winscale09
-tcp6-uni-winscale10 tcp6-uni-winscale10
-tcp6-uni-winscale11 tcp6-uni-winscale11
-tcp6-uni-winscale12 tcp6-uni-winscale12
-tcp6-uni-winscale13 tcp6-uni-winscale13
-tcp6-uni-winscale14 tcp6-uni-winscale14
-
-tcp4-uni-tso01 tcp4-uni-tso01
-tcp4-uni-tso02 tcp4-uni-tso02
-tcp4-uni-tso03 tcp4-uni-tso03
-tcp4-uni-tso04 tcp4-uni-tso04
-tcp4-uni-tso05 tcp4-uni-tso05
-tcp4-uni-tso06 tcp4-uni-tso06
-tcp4-uni-tso07 tcp4-uni-tso07
-tcp4-uni-tso08 tcp4-uni-tso08
-tcp4-uni-tso09 tcp4-uni-tso09
-tcp4-uni-tso10 tcp4-uni-tso10
-tcp4-uni-tso11 tcp4-uni-tso11
-tcp4-uni-tso12 tcp4-uni-tso12
-tcp4-uni-tso13 tcp4-uni-tso13
-tcp4-uni-tso14 tcp4-uni-tso14
-
-tcp6-uni-tso01 tcp6-uni-tso01
-tcp6-uni-tso02 tcp6-uni-tso02
-tcp6-uni-tso03 tcp6-uni-tso03
-tcp6-uni-tso04 tcp6-uni-tso04
-tcp6-uni-tso05 tcp6-uni-tso05
-tcp6-uni-tso06 tcp6-uni-tso06
-tcp6-uni-tso07 tcp6-uni-tso07
-tcp6-uni-tso08 tcp6-uni-tso08
-tcp6-uni-tso09 tcp6-uni-tso09
-tcp6-uni-tso10 tcp6-uni-tso10
-tcp6-uni-tso11 tcp6-uni-tso11
-tcp6-uni-tso12 tcp6-uni-tso12
-tcp6-uni-tso13 tcp6-uni-tso13
-tcp6-uni-tso14 tcp6-uni-tso14
-
-tcp4-uni-pktlossdup01 tcp4-uni-pktlossdup01
-tcp4-uni-pktlossdup02 tcp4-uni-pktlossdup02
-tcp4-uni-pktlossdup03 tcp4-uni-pktlossdup03
-tcp4-uni-pktlossdup04 tcp4-uni-pktlossdup04
-tcp4-uni-pktlossdup05 tcp4-uni-pktlossdup05
-tcp4-uni-pktlossdup06 tcp4-uni-pktlossdup06
-tcp4-uni-pktlossdup07 tcp4-uni-pktlossdup07
-tcp4-uni-pktlossdup08 tcp4-uni-pktlossdup08
-tcp4-uni-pktlossdup09 tcp4-uni-pktlossdup09
-tcp4-uni-pktlossdup10 tcp4-uni-pktlossdup10
-tcp4-uni-pktlossdup11 tcp4-uni-pktlossdup11
-tcp4-uni-pktlossdup12 tcp4-uni-pktlossdup12
-tcp4-uni-pktlossdup13 tcp4-uni-pktlossdup13
-tcp4-uni-pktlossdup14 tcp4-uni-pktlossdup14
-
-tcp6-uni-pktlossdup01 tcp6-uni-pktlossdup01
-tcp6-uni-pktlossdup02 tcp6-uni-pktlossdup02
-tcp6-uni-pktlossdup03 tcp6-uni-pktlossdup03
-tcp6-uni-pktlossdup04 tcp6-uni-pktlossdup04
-tcp6-uni-pktlossdup05 tcp6-uni-pktlossdup05
-tcp6-uni-pktlossdup06 tcp6-uni-pktlossdup06
-tcp6-uni-pktlossdup07 tcp6-uni-pktlossdup07
-tcp6-uni-pktlossdup08 tcp6-uni-pktlossdup08
-tcp6-uni-pktlossdup09 tcp6-uni-pktlossdup09
-tcp6-uni-pktlossdup10 tcp6-uni-pktlossdup10
-tcp6-uni-pktlossdup11 tcp6-uni-pktlossdup11
-tcp6-uni-pktlossdup12 tcp6-uni-pktlossdup12
-tcp6-uni-pktlossdup13 tcp6-uni-pktlossdup13
-tcp6-uni-pktlossdup14 tcp6-uni-pktlossdup14
-
-tcp4-uni-dsackoff01 tcp4-uni-dsackoff01
-tcp4-uni-dsackoff02 tcp4-uni-dsackoff02
-tcp4-uni-dsackoff03 tcp4-uni-dsackoff03
-tcp4-uni-dsackoff04 tcp4-uni-dsackoff04
-tcp4-uni-dsackoff05 tcp4-uni-dsackoff05
-tcp4-uni-dsackoff06 tcp4-uni-dsackoff06
-tcp4-uni-dsackoff07 tcp4-uni-dsackoff07
-tcp4-uni-dsackoff08 tcp4-uni-dsackoff08
-tcp4-uni-dsackoff09 tcp4-uni-dsackoff09
-tcp4-uni-dsackoff10 tcp4-uni-dsackoff10
-tcp4-uni-dsackoff11 tcp4-uni-dsackoff11
-tcp4-uni-dsackoff12 tcp4-uni-dsackoff12
-tcp4-uni-dsackoff13 tcp4-uni-dsackoff13
-tcp4-uni-dsackoff14 tcp4-uni-dsackoff14
-
-tcp6-uni-dsackoff01 tcp6-uni-dsackoff01
-tcp6-uni-dsackoff02 tcp6-uni-dsackoff02
-tcp6-uni-dsackoff03 tcp6-uni-dsackoff03
-tcp6-uni-dsackoff04 tcp6-uni-dsackoff04
-tcp6-uni-dsackoff05 tcp6-uni-dsackoff05
-tcp6-uni-dsackoff06 tcp6-uni-dsackoff06
-tcp6-uni-dsackoff07 tcp6-uni-dsackoff07
-tcp6-uni-dsackoff08 tcp6-uni-dsackoff08
-tcp6-uni-dsackoff09 tcp6-uni-dsackoff09
-tcp6-uni-dsackoff10 tcp6-uni-dsackoff10
-tcp6-uni-dsackoff11 tcp6-uni-dsackoff11
-tcp6-uni-dsackoff12 tcp6-uni-dsackoff12
-tcp6-uni-dsackoff13 tcp6-uni-dsackoff13
-tcp6-uni-dsackoff14 tcp6-uni-dsackoff14
-
-tcp4-uni-sackoff01 tcp4-uni-sackoff01
-tcp4-uni-sackoff02 tcp4-uni-sackoff02
-tcp4-uni-sackoff03 tcp4-uni-sackoff03
-tcp4-uni-sackoff04 tcp4-uni-sackoff04
-tcp4-uni-sackoff05 tcp4-uni-sackoff05
-tcp4-uni-sackoff06 tcp4-uni-sackoff06
-tcp4-uni-sackoff07 tcp4-uni-sackoff07
-tcp4-uni-sackoff08 tcp4-uni-sackoff08
-tcp4-uni-sackoff09 tcp4-uni-sackoff09
-tcp4-uni-sackoff10 tcp4-uni-sackoff10
-tcp4-uni-sackoff11 tcp4-uni-sackoff11
-tcp4-uni-sackoff12 tcp4-uni-sackoff12
-tcp4-uni-sackoff13 tcp4-uni-sackoff13
-tcp4-uni-sackoff14 tcp4-uni-sackoff14
-
-tcp6-uni-sackoff01 tcp6-uni-sackoff01
-tcp6-uni-sackoff02 tcp6-uni-sackoff02
-tcp6-uni-sackoff03 tcp6-uni-sackoff03
-tcp6-uni-sackoff04 tcp6-uni-sackoff04
-tcp6-uni-sackoff05 tcp6-uni-sackoff05
-tcp6-uni-sackoff06 tcp6-uni-sackoff06
-tcp6-uni-sackoff07 tcp6-uni-sackoff07
-tcp6-uni-sackoff08 tcp6-uni-sackoff08
-tcp6-uni-sackoff09 tcp6-uni-sackoff09
-tcp6-uni-sackoff10 tcp6-uni-sackoff10
-tcp6-uni-sackoff11 tcp6-uni-sackoff11
-tcp6-uni-sackoff12 tcp6-uni-sackoff12
-tcp6-uni-sackoff13 tcp6-uni-sackoff13
-tcp6-uni-sackoff14 tcp6-uni-sackoff14
-
-tcp4-multi-sameport01 tcp4-multi-sameport01
-tcp4-multi-sameport02 tcp4-multi-sameport02
-tcp4-multi-sameport03 tcp4-multi-sameport03
-tcp4-multi-sameport04 tcp4-multi-sameport04
-tcp4-multi-sameport05 tcp4-multi-sameport05
-tcp4-multi-sameport06 tcp4-multi-sameport06
-tcp4-multi-sameport07 tcp4-multi-sameport07
-tcp4-multi-sameport08 tcp4-multi-sameport08
-tcp4-multi-sameport09 tcp4-multi-sameport09
-tcp4-multi-sameport10 tcp4-multi-sameport10
-tcp4-multi-sameport11 tcp4-multi-sameport11
-tcp4-multi-sameport12 tcp4-multi-sameport12
-tcp4-multi-sameport13 tcp4-multi-sameport13
-tcp4-multi-sameport14 tcp4-multi-sameport14
-
-tcp6-multi-sameport01 tcp6-multi-sameport01
-tcp6-multi-sameport02 tcp6-multi-sameport02
-tcp6-multi-sameport03 tcp6-multi-sameport03
-tcp6-multi-sameport04 tcp6-multi-sameport04
-tcp6-multi-sameport05 tcp6-multi-sameport05
-tcp6-multi-sameport06 tcp6-multi-sameport06
-tcp6-multi-sameport07 tcp6-multi-sameport07
-tcp6-multi-sameport08 tcp6-multi-sameport08
-tcp6-multi-sameport09 tcp6-multi-sameport09
-tcp6-multi-sameport10 tcp6-multi-sameport10
-tcp6-multi-sameport11 tcp6-multi-sameport11
-tcp6-multi-sameport12 tcp6-multi-sameport12
-tcp6-multi-sameport13 tcp6-multi-sameport13
-tcp6-multi-sameport14 tcp6-multi-sameport14
-
-tcp4-multi-diffport01 tcp4-multi-diffport01
-tcp4-multi-diffport02 tcp4-multi-diffport02
-tcp4-multi-diffport03 tcp4-multi-diffport03
-tcp4-multi-diffport04 tcp4-multi-diffport04
-tcp4-multi-diffport05 tcp4-multi-diffport05
-tcp4-multi-diffport06 tcp4-multi-diffport06
-tcp4-multi-diffport07 tcp4-multi-diffport07
-tcp4-multi-diffport08 tcp4-multi-diffport08
-tcp4-multi-diffport09 tcp4-multi-diffport09
-tcp4-multi-diffport10 tcp4-multi-diffport10
-tcp4-multi-diffport11 tcp4-multi-diffport11
-tcp4-multi-diffport12 tcp4-multi-diffport12
-tcp4-multi-diffport13 tcp4-multi-diffport13
-tcp4-multi-diffport14 tcp4-multi-diffport14
-
-tcp6-multi-diffport01 tcp6-multi-diffport01
-tcp6-multi-diffport02 tcp6-multi-diffport02
-tcp6-multi-diffport03 tcp6-multi-diffport03
-tcp6-multi-diffport04 tcp6-multi-diffport04
-tcp6-multi-diffport05 tcp6-multi-diffport05
-tcp6-multi-diffport06 tcp6-multi-diffport06
-tcp6-multi-diffport07 tcp6-multi-diffport07
-tcp6-multi-diffport08 tcp6-multi-diffport08
-tcp6-multi-diffport09 tcp6-multi-diffport09
-tcp6-multi-diffport10 tcp6-multi-diffport10
-tcp6-multi-diffport11 tcp6-multi-diffport11
-tcp6-multi-diffport12 tcp6-multi-diffport12
-tcp6-multi-diffport13 tcp6-multi-diffport13
-tcp6-multi-diffport14 tcp6-multi-diffport14
-
-tcp4-multi-diffip01 tcp4-multi-diffip01
-tcp4-multi-diffip02 tcp4-multi-diffip02
-tcp4-multi-diffip03 tcp4-multi-diffip03
-tcp4-multi-diffip04 tcp4-multi-diffip04
-tcp4-multi-diffip05 tcp4-multi-diffip05
-tcp4-multi-diffip06 tcp4-multi-diffip06
-tcp4-multi-diffip07 tcp4-multi-diffip07
-tcp4-multi-diffip08 tcp4-multi-diffip08
-tcp4-multi-diffip09 tcp4-multi-diffip09
-tcp4-multi-diffip10 tcp4-multi-diffip10
-tcp4-multi-diffip11 tcp4-multi-diffip11
-tcp4-multi-diffip12 tcp4-multi-diffip12
-tcp4-multi-diffip13 tcp4-multi-diffip13
-tcp4-multi-diffip14 tcp4-multi-diffip14
-
-tcp6-multi-diffip01 tcp6-multi-diffip01
-tcp6-multi-diffip02 tcp6-multi-diffip02
-tcp6-multi-diffip03 tcp6-multi-diffip03
-tcp6-multi-diffip04 tcp6-multi-diffip04
-tcp6-multi-diffip05 tcp6-multi-diffip05
-tcp6-multi-diffip06 tcp6-multi-diffip06
-tcp6-multi-diffip07 tcp6-multi-diffip07
-tcp6-multi-diffip08 tcp6-multi-diffip08
-tcp6-multi-diffip09 tcp6-multi-diffip09
-tcp6-multi-diffip10 tcp6-multi-diffip10
-tcp6-multi-diffip11 tcp6-multi-diffip11
-tcp6-multi-diffip12 tcp6-multi-diffip12
-tcp6-multi-diffip13 tcp6-multi-diffip13
-tcp6-multi-diffip14 tcp6-multi-diffip14
-
-tcp4-multi-diffnic01 tcp4-multi-diffnic01
-tcp4-multi-diffnic02 tcp4-multi-diffnic02
-tcp4-multi-diffnic03 tcp4-multi-diffnic03
-tcp4-multi-diffnic04 tcp4-multi-diffnic04
-tcp4-multi-diffnic05 tcp4-multi-diffnic05
-tcp4-multi-diffnic06 tcp4-multi-diffnic06
-tcp4-multi-diffnic07 tcp4-multi-diffnic07
-tcp4-multi-diffnic08 tcp4-multi-diffnic08
-tcp4-multi-diffnic09 tcp4-multi-diffnic09
-tcp4-multi-diffnic10 tcp4-multi-diffnic10
-tcp4-multi-diffnic11 tcp4-multi-diffnic11
-tcp4-multi-diffnic12 tcp4-multi-diffnic12
-tcp4-multi-diffnic13 tcp4-multi-diffnic13
-tcp4-multi-diffnic14 tcp4-multi-diffnic14
-
-tcp6-multi-diffnic01 tcp6-multi-diffnic01
-tcp6-multi-diffnic02 tcp6-multi-diffnic02
-tcp6-multi-diffnic03 tcp6-multi-diffnic03
-tcp6-multi-diffnic04 tcp6-multi-diffnic04
-tcp6-multi-diffnic05 tcp6-multi-diffnic05
-tcp6-multi-diffnic06 tcp6-multi-diffnic06
-tcp6-multi-diffnic07 tcp6-multi-diffnic07
-tcp6-multi-diffnic08 tcp6-multi-diffnic08
-tcp6-multi-diffnic09 tcp6-multi-diffnic09
-tcp6-multi-diffnic10 tcp6-multi-diffnic10
-tcp6-multi-diffnic11 tcp6-multi-diffnic11
-tcp6-multi-diffnic12 tcp6-multi-diffnic12
-tcp6-multi-diffnic13 tcp6-multi-diffnic13
-tcp6-multi-diffnic14 tcp6-multi-diffnic14
+tcp6_ipsec01 tcp_ipsec.sh -6 -s "100 1000 65535"
+tcp6_ipsec02 tcp_ipsec.sh -6 -p ah -m transport -s "100 1000 65535"
+tcp6_ipsec03 tcp_ipsec.sh -6 -p ah -m tunnel -s "100 1000 65535"
+tcp6_ipsec04 tcp_ipsec.sh -6 -p esp -m transport -s "100 1000 65535"
+tcp6_ipsec05 tcp_ipsec.sh -6 -p esp -m tunnel -s "100 1000 65535"
+tcp6_ipsec06 tcp_ipsec.sh -6 -p comp -m transport -s "100 1000 65535"
+tcp6_ipsec07 tcp_ipsec.sh -6 -p comp -m tunnel -s "100 1000 65535"
+tcp6_ipsec08 tcp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m transport -s "100 1000 65535"
+tcp6_ipsec09 tcp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s "100 1000 65535"
+tcp6_ipsec10 tcp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m transport -s "100 1000 65535"
+tcp6_ipsec11 tcp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s "100 1000 65535"
+tcp6_ipsec12 tcp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m transport -s "100 1000 65535"
+tcp6_ipsec13 tcp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s "100 1000 65535"
+tcp6_ipsec14 tcp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m transport -s "100 1000 65535"
+tcp6_ipsec15 tcp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s "100 1000 65535"
+tcp6_ipsec16 tcp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m transport -s "100 1000 65535"
+tcp6_ipsec17 tcp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s "100 1000 65535"
+tcp6_ipsec18 tcp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m transport -s "100 1000 65535"
+tcp6_ipsec19 tcp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s "100 1000 65535"
+tcp6_ipsec20 tcp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m transport -s "100 1000 65535"
+tcp6_ipsec21 tcp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s "100 1000 65535"
+tcp6_ipsec22 tcp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m transport -s "100 1000 65535"
+tcp6_ipsec23 tcp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s "100 1000 65535"
+tcp6_ipsec24 tcp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m transport -s "100 1000 65535"
+tcp6_ipsec25 tcp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s "100 1000 65535"
+tcp6_ipsec26 tcp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m transport -s "100 1000 65535"
+tcp6_ipsec27 tcp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s "100 1000 65535"
+tcp6_ipsec28 tcp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m transport -s "100 1000 65535"
+tcp6_ipsec29 tcp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s "100 1000 65535"
+tcp6_ipsec30 tcp_ipsec.sh -6 -p esp -a sha384 -e twofish -m transport -s "100 1000 65535"
+tcp6_ipsec31 tcp_ipsec.sh -6 -p esp -a sha384 -e twofish -m tunnel -s "100 1000 65535"
+tcp6_ipsec32 tcp_ipsec.sh -6 -p esp -a sha512 -e camellia -m transport -s "100 1000 65535"
+tcp6_ipsec33 tcp_ipsec.sh -6 -p esp -a sha512 -e camellia -m tunnel -s "100 1000 65535"
+tcp6_ipsec34 tcp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m transport -s "100 1000 65535"
+tcp6_ipsec35 tcp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s "100 1000 65535"
diff --git a/testcases/network/stress/tcp/Makefile b/testcases/network/stress/tcp/Makefile
index e9d3858..8caf2c0 100644
--- a/testcases/network/stress/tcp/Makefile
+++ b/testcases/network/stress/tcp/Makefile
@@ -23,4 +23,7 @@
 top_srcdir		?= ../../../..
 
 include $(top_srcdir)/include/mk/env_pre.mk
+
+INSTALL_TARGETS		:= tcp_ipsec.sh
+
 include $(top_srcdir)/include/mk/generic_trunk_target.mk
diff --git a/testcases/network/stress/tcp/tcp_ipsec.sh b/testcases/network/stress/tcp/tcp_ipsec.sh
new file mode 100755
index 0000000..ebcd1d5
--- /dev/null
+++ b/testcases/network/stress/tcp/tcp_ipsec.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+# Copyright (c) 2017 Oracle and/or its affiliates. All Rights Reserved.
+#
+# 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: Alexey Kodanev <alexey.kodanev@oracle.com>
+
+TCID=tcp_ipsec
+TST_TOTAL=3
+TST_CLEANUP="tst_ipsec_cleanup"
+
+client_requests=10000
+max_requests=10
+
+. ipsec_lib.sh
+
+do_setup()
+{
+	# Configure SAD/SPD
+	if [ -n "$IPSEC_MODE" -a -n "$IPSEC_PROTO" ]; then
+		tst_ipsec lhost $(tst_ipaddr) $(tst_ipaddr rhost)
+		tst_ipsec rhost $(tst_ipaddr rhost) $(tst_ipaddr)
+	fi
+}
+
+do_test()
+{
+	IPSEC_SIZE_ARRAY="${IPSEC_SIZE_ARRAY:-100 1000 65000}"
+
+	for p in $IPSEC_SIZE_ARRAY; do
+		tst_netload -H $(tst_ipaddr rhost) -n $p -N $p \
+			-r $client_requests -R $max_requests
+	done
+}
+
+do_setup
+
+do_test
+
+tst_exit