1*49cdfc7eSAndroid Build Coastguard Worker# Stress test for IPsec with ICMP messages 2*49cdfc7eSAndroid Build Coastguard Worker# Max ICMP message size descriptsion, MAX_SIZE is 65535 3*49cdfc7eSAndroid Build Coastguard Worker# 4*49cdfc7eSAndroid Build Coastguard Worker# IPv4 5*49cdfc7eSAndroid Build Coastguard Worker# ---- 6*49cdfc7eSAndroid Build Coastguard Worker# MAX = MAX_SIZE - IP(20) - ICMP(8) = 65507 7*49cdfc7eSAndroid Build Coastguard Worker# 8*49cdfc7eSAndroid Build Coastguard Worker# IPsec [AH]: MAX - AH(24) = 65483 9*49cdfc7eSAndroid Build Coastguard Worker# IPsec [AH + Tunnel]: MAX - AH(24) - Tunnel(20) = 65463 10*49cdfc7eSAndroid Build Coastguard Worker# 11*49cdfc7eSAndroid Build Coastguard Worker# ESP Header has pad payload, so the ESP length is variable 12*49cdfc7eSAndroid Build Coastguard Worker# IPsec [ESP]: MAX - ESP(37) = 65470 13*49cdfc7eSAndroid Build Coastguard Worker# IPsec [ESP + Tunnel]: MAX - ESP(37) - Tunnel(20) = 65450 14*49cdfc7eSAndroid Build Coastguard Worker# 15*49cdfc7eSAndroid Build Coastguard Worker# IPv6 16*49cdfc7eSAndroid Build Coastguard Worker# ---- 17*49cdfc7eSAndroid Build Coastguard Worker# MAX = MAX_SIZE - ICMP(8) = 65527 18*49cdfc7eSAndroid Build Coastguard Worker# 19*49cdfc7eSAndroid Build Coastguard Worker# IPsec [AH]: MAX - AH(24) = 65503 20*49cdfc7eSAndroid Build Coastguard Worker# 21*49cdfc7eSAndroid Build Coastguard Worker# When receive, we drop the tunnel header first and only leave the inside IPv6 22*49cdfc7eSAndroid Build Coastguard Worker# Header and ICMP message. That's why we can have so large message size. 23*49cdfc7eSAndroid Build Coastguard Worker# IPsec [AH + Tunnel]: MAX 24*49cdfc7eSAndroid Build Coastguard Worker# IPsec [ESP]: MAX - ESP(37) = 65490 25*49cdfc7eSAndroid Build Coastguard Worker# IPsec [ESP + Tunnel]: MAX 26*49cdfc7eSAndroid Build Coastguard Worker# 27*49cdfc7eSAndroid Build Coastguard Worker# IPsec compression: same message size but different content will result in different data size 28*49cdfc7eSAndroid Build Coastguard Worker# after compression. So we just use a large enough message size(65000) for testing 29*49cdfc7eSAndroid Build Coastguard Worker 30*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic01 icmp-uni-basic.sh -s 10:100:1000:10000:65507 31*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic02 icmp-uni-basic.sh -p ah -m transport -s 10:100:1000:10000:65483 32*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic03 icmp-uni-basic.sh -p ah -m tunnel -s 10:100:1000:10000:65463 33*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic04 icmp-uni-basic.sh -p esp -m transport -s 10:100:1000:10000:65470 34*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic05 icmp-uni-basic.sh -p esp -m tunnel -s 10:100:1000:10000:65450 35*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic06 icmp-uni-basic.sh -p comp -m transport -s 10:100:1000:10000:65000 36*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic07 icmp-uni-basic.sh -p comp -m tunnel -s 10:100:1000:10000:65000 37*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic08 icmp-uni-basic.sh -A rfc4106_128 -p esp_aead -m transport -s 10:100:1000:10000:65470 38*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic09 icmp-uni-basic.sh -A rfc4106_192 -p esp_aead -m transport -s 10:100:1000:10000:65470 39*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic10 icmp-uni-basic.sh -A rfc4106_256 -p esp_aead -m transport -s 10:100:1000:10000:65470 40*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic11 icmp-uni-basic.sh -A rfc4309_128 -p esp_aead -m transport -s 10:100:1000:10000:65470 41*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic12 icmp-uni-basic.sh -A rfc4309_192 -p esp_aead -m transport -s 10:100:1000:10000:65470 42*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic13 icmp-uni-basic.sh -A rfc4309_256 -p esp_aead -m transport -s 10:100:1000:10000:65470 43*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic14 icmp-uni-basic.sh -A rfc4543_128 -p esp_aead -m transport -s 10:100:1000:10000:65470 44*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic15 icmp-uni-basic.sh -A rfc4543_192 -p esp_aead -m transport -s 10:100:1000:10000:65470 45*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic16 icmp-uni-basic.sh -A rfc4543_256 -p esp_aead -m transport -s 10:100:1000:10000:65470 46*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic17 icmp-uni-basic.sh -A rfc4106_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 47*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic18 icmp-uni-basic.sh -A rfc4106_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 48*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic19 icmp-uni-basic.sh -A rfc4106_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 49*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic20 icmp-uni-basic.sh -A rfc4309_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 50*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic21 icmp-uni-basic.sh -A rfc4309_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 51*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic22 icmp-uni-basic.sh -A rfc4309_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 52*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic23 icmp-uni-basic.sh -A rfc4543_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 53*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic24 icmp-uni-basic.sh -A rfc4543_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 54*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic25 icmp-uni-basic.sh -A rfc4543_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 55*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-basic26 icmp-uni-basic.sh -p esp -m beet -s 10:100:1000:10000:65470 56*49cdfc7eSAndroid Build Coastguard Worker 57*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic01 icmp-uni-basic.sh -6 -s 10:100:1000:10000:65527 58*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic02 icmp-uni-basic.sh -6 -p ah -m transport -s 10:100:1000:10000:65503 59*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic03 icmp-uni-basic.sh -6 -p ah -m tunnel -s 10:100:1000:10000:65527 60*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic04 icmp-uni-basic.sh -6 -p esp -m transport -s 10:100:1000:10000:65490 61*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic05 icmp-uni-basic.sh -6 -p esp -m tunnel -s 10:100:1000:10000:65527 62*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic06 icmp-uni-basic.sh -6 -p comp -m transport -s 10:100:1000:10000:65000 63*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic07 icmp-uni-basic.sh -6 -p comp -m tunnel -s 10:100:1000:10000:65000 64*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic08 icmp-uni-basic.sh -6 -A rfc4106_128 -p esp_aead -m transport -s 10:100:1000:10000:65490 65*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic09 icmp-uni-basic.sh -6 -A rfc4106_192 -p esp_aead -m transport -s 10:100:1000:10000:65490 66*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic10 icmp-uni-basic.sh -6 -A rfc4106_256 -p esp_aead -m transport -s 10:100:1000:10000:65490 67*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic11 icmp-uni-basic.sh -6 -A rfc4309_128 -p esp_aead -m transport -s 10:100:1000:10000:65490 68*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic12 icmp-uni-basic.sh -6 -A rfc4309_192 -p esp_aead -m transport -s 10:100:1000:10000:65490 69*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic13 icmp-uni-basic.sh -6 -A rfc4309_256 -p esp_aead -m transport -s 10:100:1000:10000:65490 70*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic14 icmp-uni-basic.sh -6 -A rfc4543_128 -p esp_aead -m transport -s 10:100:1000:10000:65490 71*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic15 icmp-uni-basic.sh -6 -A rfc4543_192 -p esp_aead -m transport -s 10:100:1000:10000:65490 72*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic16 icmp-uni-basic.sh -6 -A rfc4543_256 -p esp_aead -m transport -s 10:100:1000:10000:65490 73*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic17 icmp-uni-basic.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 74*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic18 icmp-uni-basic.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 75*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic19 icmp-uni-basic.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 76*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic20 icmp-uni-basic.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 77*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic21 icmp-uni-basic.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 78*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic22 icmp-uni-basic.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 79*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic23 icmp-uni-basic.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 80*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic24 icmp-uni-basic.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 81*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic25 icmp-uni-basic.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 82*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-basic26 icmp-uni-basic.sh -6 -p esp -m beet -s 10:100:1000:10000:65490 83*49cdfc7eSAndroid Build Coastguard Worker 84*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-vti01 icmp-uni-vti.sh -p ah -a sha256 -m tunnel -S fffffffe -k 1 -s 10:100:1000:10000:65463 85*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-vti02 icmp-uni-vti.sh -p esp -a sha512 -e des -m tunnel -S fffffffe -k 2 -s 10:100:1000:10000:65450 86*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-vti03 icmp-uni-vti.sh -p esp -a rmd160 -e cast5 -m tunnel -S fffffffe -k 0xffffffff -s 10:100:1000:10000:65463 87*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-vti04 icmp-uni-vti.sh -p esp -e blowfish -m tunnel -S fffffffe -k 3 -s 10:100:1000:10000:65463 88*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-vti05 icmp-uni-vti.sh -p esp -a sha512 -e twofish -m tunnel -S fffffffe -k 0x7fffffff -s 10:100:1000:10000:65463 89*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-vti06 icmp-uni-vti.sh -p esp -a sha384 -e camellia -m tunnel -S fffffffe -k 0x80000000 -s 10:100:1000:10000:65463 90*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-vti07 icmp-uni-vti.sh -p esp -a sha512 -e serpent -m tunnel -S fffffffe -k 0xffff -s 10:100:1000:10000:65463 91*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-vti08 icmp-uni-vti.sh -A rfc4106_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 92*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-vti09 icmp-uni-vti.sh -A rfc4106_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 93*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-vti10 icmp-uni-vti.sh -A rfc4106_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 94*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-vti11 icmp-uni-vti.sh -A rfc4309_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 95*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-vti12 icmp-uni-vti.sh -A rfc4309_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 96*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-vti13 icmp-uni-vti.sh -A rfc4309_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 97*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-vti14 icmp-uni-vti.sh -A rfc4543_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 98*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-vti15 icmp-uni-vti.sh -A rfc4543_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 99*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-vti16 icmp-uni-vti.sh -A rfc4543_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 100*49cdfc7eSAndroid Build Coastguard Workericmp4-uni-vti17 icmp-uni-vti.sh -p comp -m tunnel -s 1000 101*49cdfc7eSAndroid Build Coastguard Worker 102*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-vti01 icmp-uni-vti.sh -6 -p ah -m tunnel -S fffffffe -k 0xffffffff -s 10:100:1000:10000:65527 103*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-vti02 icmp-uni-vti.sh -6 -p esp -a sha256 -e des3_ede -m tunnel -S fffffffe -k 0xffffffff -s 10:100:1000:10000:65527 104*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-vti03 icmp-uni-vti.sh -6 -p esp -a sha512 -e cast5 -m tunnel -S fffffffe -k 1 -s 10:100:1000:10000:65527 105*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-vti04 icmp-uni-vti.sh -6 -p esp -a rmd160 -e blowfish -m tunnel -S fffffffe -k 0x80000000 -s 10:100:1000:10000:65527 106*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-vti05 icmp-uni-vti.sh -6 -p esp -e twofish -m tunnel -S fffffffe -k 0xffff -s 10:100:1000:10000:65527 107*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-vti06 icmp-uni-vti.sh -6 -p esp -a sha512 -e camellia -m tunnel -S fffffffe -k 0x7fffffff -s 10:100:1000:10000:65527 108*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-vti07 icmp-uni-vti.sh -6 -p esp -a sha384 -e serpent -m tunnel -S ffffffff -k 0x11111111 -s 10:100:1000:10000:65527 109*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-vti08 icmp-uni-vti.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 110*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-vti09 icmp-uni-vti.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 111*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-vti10 icmp-uni-vti.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 112*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-vti11 icmp-uni-vti.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 113*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-vti12 icmp-uni-vti.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 114*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-vti13 icmp-uni-vti.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 115*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-vti14 icmp-uni-vti.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 116*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-vti15 icmp-uni-vti.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 117*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-vti16 icmp-uni-vti.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 118*49cdfc7eSAndroid Build Coastguard Workericmp6-uni-vti17 icmp-uni-vti.sh -6 -p comp -m tunnel -s 1000 119*49cdfc7eSAndroid Build Coastguard Worker 120