public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Alexey Kodanev <alexey.kodanev@oracle.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCHv3 3/3] network/stress/icmp: use ip xfrm for icmp4-uni-basic01 ipsec testing
Date: Wed, 6 Apr 2016 12:49:50 +0300	[thread overview]
Message-ID: <5704DBBE.20804@oracle.com> (raw)
In-Reply-To: <20160406075217.GC8609@Leo.nay.redhat.com>

Hi,

On 04/06/2016 10:52 AM, Hangbin Liu wrote:
> Hi,
> On Wed, Mar 30, 2016 at 03:41:36PM +0300, Alexey Kodanev wrote:
>>> Does it looks like
>>>
>>> icmp4-uni-basic01 icmp-uni-basic
>>> icmp4-uni-basic02 DO_IPSEC=true IPSEC_PROTO=ah IPSEC_MODE=transport ICMP_SIZE_ARRAY="10 100 1000 10000 65483"; icmp-uni-basic
>>> ...
>>> icmp6-uni-basic01 icmp-uni-basic -6
>>> icmp6-uni-basic02 DO_IPSEC=true IPSEC_PROTO=ah IPSEC_MODE=transport ICMP_SIZE_ARRAY="10 100 1000 10000 65503"; icmp-uni-basic -6
>> Or something like network/virt_lib.sh does with getopts, so instead of
>> setting
>> environment variables we would have easy to look at runtest lines, e.g.:
>>
>> icmp6-uni-basic01 icmp-uni-basic -6
>> icmp6-uni-basic02 icmp-uni-basic -6 -p ah -m transport -s "10 100 1000 10000 65503"
> OK, I will try this way
>
>>>> I still think we should add it to the library. tst_ping replaces
>>>> 'icmp4/6_check_connectivity'. And adding variable message size there,
>>>> will replace ns-echoclient library tool.
>>> I did't find icmp4/6_check_connectivity will do icmp msg_size check. But anyway,
>>> here is a msg_sizes version. how do you think? should we use ROD ping... directly?
>> It's in "ns-echoclient".
> ns-echoclient only ping remote but do not check the return status.

Yeah, I know, that's the reason you removed it in your patch.

>
>> About ROD in tst_ping()... may be we shouldn't use it here. It's quite
>> simple
>> to call "ROD tst_ping" anyway.
>>
>> Also I'm not sure we won't have tests that pass on failed ping. For example,
>> vxlan tests set different IDs and check that there is no connectivity. In
>> this particular cases,
>> the test shouldn't exit with TBROK but return TPASS status. We could simply
>> return ping
>> status here and let test to decide what to do next.
> Here comes back the old discuss. tst_ping is used for check connectivity. If
> we use msg_sizes="10 100 1000 10000 65530" and failed when send msg_size
> 10000 and return -1. How the test know which msg size failed? That's the
> reason I feel we should let tst_ping check one msg_size each time.

We could print it in tst_ping() as information message before 'return 1',
will it be enough?


Thanks,
Alexey

> Thanks
> Hangbin
>
>>> tst_ping()
>>> {
>>>          # The max number of ICMP echo request
>>>          PING_MAX=${PING_MAX:-"10"}
>>>
>>>          local src_iface=${1:-"$(tst_iface)"}
>>>          local dst_addr=${2:-"$(tst_ipaddr rhost)"}
>>>          # ping cmd use 56 as default message size
>>>          local msg_sizes=${3:-"56"}
>> local msg_sizes=${@:3}
>>
>> for size in ${msg_sizes:-"56"}; do
>>      ping...
>>
>>
>> Best regards,
>> Alexey
>>
>>>          for size in $msg_sizes; do
>>>                  ping$TST_IPV6 -I $src_iface -c $PING_MAX $dst_addr \
>>>                          -s $msg_size > /dev/null 2>&1
>>>                  if [ $? -ne 0 ]; then
>>>                          tst_brkm TBROK "There is no IPv${IP_VER:-4} connectivity with msg_size $msg_size"
>>>                  else
>>>                          tst_resm TPASS "There is IPv${IP_VER:-4} connectivity with msg_size $msg_size"
>>>                  fi
>>>          done
>>> }
>>>
>>> Thanks & Best Regards
>>> Hangbin Liu
>>
>> -- 
>> Mailing list info: https://lists.linux.it/listinfo/ltp


  reply	other threads:[~2016-04-06  9:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-17 10:04 [LTP] [PATCHv3 0/3] networking/stress: add ip xfrm ipsec support Hangbin Liu
2016-03-17 10:04 ` [LTP] [PATCHv3 1/3] lib/test_net.sh: add tst_ping() to check icmp connectivity Hangbin Liu
2016-03-17 10:04 ` [LTP] [PATCHv3 2/3] network/stress: add ipsec lib Hangbin Liu
2016-03-22 12:51   ` Alexey Kodanev
2016-03-22 13:36     ` Hangbin Liu
2016-03-17 10:04 ` [LTP] [PATCHv3 3/3] network/stress/icmp: use ip xfrm for icmp4-uni-basic01 ipsec testing Hangbin Liu
2016-03-22 13:34   ` Alexey Kodanev
2016-03-23  2:02     ` Hangbin Liu
2016-03-23  8:21       ` Alexey Kodanev
2016-03-23 13:30         ` Hangbin Liu
2016-03-28 10:09           ` Alexey Kodanev
2016-03-28 14:33             ` Hangbin Liu
2016-03-30 12:41               ` Alexey Kodanev
2016-04-06  7:52                 ` Hangbin Liu
2016-04-06  9:49                   ` Alexey Kodanev [this message]
2016-04-06 12:58                     ` Hangbin Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5704DBBE.20804@oracle.com \
    --to=alexey.kodanev@oracle.com \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox