[Swan-dev] testing yesterday's tree

Andrew Cagney andrew.cagney at gmail.com
Fri May 18 20:21:18 UTC 2018


On 15 May 2018 at 10:27, Paul Wouters <paul at nohats.ca> wrote:
> On Tue, 15 May 2018, Andrew Cagney wrote:
>
>>> I only got a packet loss here :)
>>
>>
>> We should be able to account for all packets sent and received - our
>> transport is reliable.  Unfortunately:
>>
>> - the way ping is used (or some would argue, ping itself) isn't very
>> robust.  As a simple example, the first ping below is
>> non-deterministic (it can send one or two ping packets):
>>
>> ping -q      -w 1 -n -c 1 "$@"
>> ping -q -i 2 -w 1 -n -c 1 "$@"
>>
>> (see one-ping.sh)
>
>
> One idea was to migrate to hping3
>
>> - I'm beginning to wonder if there's a race between whack
>> --trafficstatus showing a connection being up and a connection being up?
>
>
> I have never seen that.

Here's an example:

- whack --trafficstatus shows things up
- but the first of 4 ping packets goes into the weeds

--- MASTER/testing/pluto/ikev2-delete-05-sa-start/west.console.txt
+++ OUTPUT/testing/pluto/ikev2-delete-05-sa-start/west.console.txt
@@ -49,22 +49,20 @@
  # should be 0
 west #
  ../../pluto/bin/wait-for-whack-trafficstatus.sh --timeout 5
'westnet-eastnet-auto.*inBytes=0'
-006 #4: "westnet-eastnet-auto", type=ESP, add_time=1234567890,
inBytes=0, outBytes=0, id='@east'
 west #
  # A new IPsec SA should be established (older versions would be dead
for 30 seconds)
 west #
  ping -n -c 4 -I 192.0.1.254 192.0.2.254
 PING 192.0.2.254 (192.0.2.254) from 192.0.1.254 : 56(84) bytes of data.
-64 bytes from 192.0.2.254: icmp_seq=1 ttl=64 time=0.XXX ms
 64 bytes from 192.0.2.254: icmp_seq=2 ttl=64 time=0.XXX ms
 64 bytes from 192.0.2.254: icmp_seq=3 ttl=64 time=0.XXX ms
 64 bytes from 192.0.2.254: icmp_seq=4 ttl=64 time=0.XXX ms
 --- 192.0.2.254 ping statistics ---
-4 packets transmitted, 4 received, 0% packet loss, time XXXX
+4 packets transmitted, 3 received, 25% packet loss, time XXXX
 rtt min/avg/max/mdev = 0.XXX/0.XXX/0.XXX/0.XXX ms
 west #
  ipsec whack --trafficstatus
-006 #4: "westnet-eastnet-auto", type=ESP, add_time=1234567890,
inBytes=336, outBytes=336, id='@east'
+006 #4: "westnet-eastnet-auto", type=ESP, add_time=1234567890,
inBytes=252, outBytes=252, id='@east'
 west #
  echo done
 done


More information about the Swan-dev mailing list