START	sys/net/pair	2025-03-17T04:52:04Z

==== ifconfig ====
# Destroy interfaces.
/sbin/route -n -T 11 delete -inet 169.254.0.13
delete host 169.254.0.13: not in table
*** Error 1 in target 'unconfig' (ignored)
/sbin/route -n -T 11 delete -inet6 fc00::13
delete host fc00::13: not in table
*** Error 1 in target 'unconfig' (ignored)
/sbin/ifconfig lo13 rdomain 13
/sbin/ifconfig lo13 inet 169.254.0.13 delete
ifconfig: SIOCDIFADDR: Can't assign requested address
*** Error 1 in target 'unconfig' (ignored)
/sbin/ifconfig lo13 inet6 fc00::13 delete
ifconfig: SIOCDIFADDR: Can't assign requested address
*** Error 1 in target 'unconfig' (ignored)
/sbin/ifconfig pair11 destroy
ifconfig: pair11: SIOCIFDESTROY: Device not configured
*** Error 1 in target 'unconfig' (ignored)
/sbin/ifconfig pair12 destroy
ifconfig: pair12: SIOCIFDESTROY: Device not configured
*** Error 1 in target 'unconfig' (ignored)
/sbin/route -n -T 11 delete -inet 169.254.0.0/16
delete net 169.254.0.0/16: not in table
*** Error 1 in target 'unconfig' (ignored)
/sbin/route -n -T 11 delete -inet6 fc00::/48
delete net fc00::/48: not in table
*** Error 1 in target 'unconfig' (ignored)
/sbin/ifconfig lo11 inet 127.0.0.1 delete
ifconfig: SIOCDIFADDR: Can't assign requested address
*** Error 1 in target 'unconfig' (ignored)
/sbin/ifconfig lo11 inet6 ::1 delete
ifconfig: SIOCDIFADDR: Can't assign requested address
*** Error 1 in target 'unconfig' (ignored)
/sbin/ifconfig lo11 destroy
/sbin/route -n -T 12 delete -inet 169.254.0.0/16
delete net 169.254.0.0/16: not in table
*** Error 1 in target 'unconfig' (ignored)
/sbin/route -n -T 12 delete -inet6 fc00::/48
delete net fc00::/48: not in table
*** Error 1 in target 'unconfig' (ignored)
/sbin/ifconfig lo12 inet 127.0.0.1 delete
ifconfig: SIOCDIFADDR: Can't assign requested address
*** Error 1 in target 'unconfig' (ignored)
/sbin/ifconfig lo12 inet6 ::1 delete
ifconfig: SIOCDIFADDR: Can't assign requested address
*** Error 1 in target 'unconfig' (ignored)
/sbin/ifconfig lo12 destroy
/sbin/route -n -T 13 delete -inet 169.254.0.0/16
delete net 169.254.0.0/16: not in table
*** Error 1 in target 'unconfig' (ignored)
/sbin/route -n -T 13 delete -inet6 fc00::/48
delete net fc00::/48: not in table
*** Error 1 in target 'unconfig' (ignored)
/sbin/ifconfig lo13 inet 127.0.0.1 delete
ifconfig: SIOCDIFADDR: Can't assign requested address
*** Error 1 in target 'unconfig' (ignored)
/sbin/ifconfig lo13 inet6 ::1 delete
/sbin/ifconfig lo13 destroy
rm -f stamp-ifconfig
# Create and configure pflog and loopback interfaces.
/sbin/ifconfig lo11 rdomain 11
/sbin/ifconfig lo11 inet 127.0.0.1/8
/sbin/ifconfig lo11 inet6 ::1/128
/sbin/route -n -T 11 add -inet 169.254.0.0/16 127.0.0.1
add net 169.254.0.0/16: gateway 127.0.0.1
/sbin/route -n -T 11 add -inet6 fc00::/48 ::1
add net fc00::/48: gateway ::1
/sbin/ifconfig lo12 rdomain 12
/sbin/ifconfig lo12 inet 127.0.0.1/8
/sbin/ifconfig lo12 inet6 ::1/128
/sbin/route -n -T 12 add -inet 169.254.0.0/16 127.0.0.1
add net 169.254.0.0/16: gateway 127.0.0.1
/sbin/route -n -T 12 add -inet6 fc00::/48 ::1
add net fc00::/48: gateway ::1
/sbin/ifconfig lo13 rdomain 13
/sbin/ifconfig lo13 inet 127.0.0.1/8
/sbin/ifconfig lo13 inet6 ::1/128
/sbin/route -n -T 13 add -inet 169.254.0.0/16 127.0.0.1
add net 169.254.0.0/16: gateway 127.0.0.1
/sbin/route -n -T 13 add -inet6 fc00::/48 ::1
add net fc00::/48: gateway ::1
/sbin/ifconfig pair11 rdomain 11
/sbin/ifconfig pair11 inet 169.254.1.11/24
/sbin/ifconfig pair11 inet6 fc00:0:0:1::11/64
/sbin/ifconfig pair12 rdomain 12
/sbin/ifconfig pair12 inet 169.254.1.12/24
/sbin/ifconfig pair12 inet6 fc00:0:0:1::12/64
/sbin/ifconfig pair11 patch pair12
/sbin/ifconfig lo13 inet 169.254.0.13/24 alias
/sbin/ifconfig lo13 inet6 fc00::13/64
/sbin/ifconfig pair11 mtu 8000
/sbin/route -n -T 11 add -inet 169.254.0.13 169.254.1.12
add host 169.254.0.13: gateway 169.254.1.12
/sbin/route -n -T 11 add -inet6 fc00::13 fc00:0:0:1::12
add host fc00::13: gateway fc00:0:0:1::12
# Wait until IPv6 addresses are no longer tentative.
for i in `jot 50`; do if ! { /sbin/ifconfig pair11; /sbin/ifconfig pair12; /sbin/ifconfig lo13; } | fgrep -q tentative; then break; fi; sleep .1; done
! { /sbin/ifconfig pair11; /sbin/ifconfig pair12; /sbin/ifconfig lo13; } | fgrep tentative

==== pfctl ====
# Create python include file containing the addresses.
rm -f addr.py addr.py.tmp
echo 'N1="11"' >>addr.py.tmp
echo 'LO_N1="lo11"' >>addr.py.tmp
echo 'PAIR_N1="pair11"' >>addr.py.tmp
echo 'IP_N1="169.254.1.11"' >>addr.py.tmp
echo 'IP6_N1="fc00:0:0:1::11"' >>addr.py.tmp
echo 'N2="12"' >>addr.py.tmp
echo 'LO_N2="lo12"' >>addr.py.tmp
echo 'PAIR_N2="pair12"' >>addr.py.tmp
echo 'IP_N2="169.254.1.12"' >>addr.py.tmp
echo 'IP6_N2="fc00:0:0:1::12"' >>addr.py.tmp
echo 'N3="13"' >>addr.py.tmp
echo 'LO_N3="lo13"' >>addr.py.tmp
echo 'PAIR_N3="pair13"' >>addr.py.tmp
echo 'IP_N3="169.254.0.13"' >>addr.py.tmp
echo 'IP6_N3="fc00::13"' >>addr.py.tmp
mv addr.py.tmp addr.py
# Load the pf rules into the kernel.
cat addr.py /usr/src/regress/sys/net/pair/pf.conf | /sbin/pfctl -n -f -
cat addr.py /usr/src/regress/sys/net/pair/pf.conf |  /sbin/pfctl -a regress -f -

==== run-ping-1-1 ====
/sbin/ping -c 1 -w 1 -n -V 11 -I 169.254.1.11 169.254.1.11
PING 169.254.1.11 (169.254.1.11): 56 data bytes
64 bytes from 169.254.1.11: icmp_seq=0 ttl=255 time=0.039 ms

--- 169.254.1.11 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.039/0.039/0.039/0.000 ms

==== run-ping6-1-1 ====
/sbin/ping6 -c 1 -w 1 -n -V 11 -I fc00:0:0:1::11 fc00:0:0:1::11
PING fc00:0:0:1::11 (fc00:0:0:1::11): 56 data bytes
64 bytes from fc00:0:0:1::11: icmp_seq=0 hlim=64 time=0.052 ms

--- fc00:0:0:1::11 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.052/0.052/0.052/0.000 ms

==== run-tcpbench-1-1 ====
rm -f nc.log
nc -4 -v -l -V 11 169.254.1.11 12345 >/dev/null 2>nc.log &
# Wait until nc is listening.
for  i in `jot 30`; do if fgrep -q Listening nc.log; then break; fi; sleep .1; done
fgrep Listening nc.log
Listening on 169.254.1.11 12345
# Test that path MTU dicovery is working.
tcpbench -4 -t 5 -V 11 -b 169.254.1.11 169.254.1.11
  elapsed_ms          bytes         mbps   bwidth 
        1000      510428508     4083.428  100.00% 
Conn:   1 Mbps:     4083.428 Peak Mbps:     4083.428 Avg Mbps:     4083.428
        2000      509125036     4077.077  100.00% 
Conn:   1 Mbps:     4077.077 Peak Mbps:     4083.428 Avg Mbps:     4077.077
        3000      508958128     4071.665  100.00% 
Conn:   1 Mbps:     4071.665 Peak Mbps:     4083.428 Avg Mbps:     4071.665
        4000      509315788     4074.526  100.00% 
Conn:   1 Mbps:     4074.526 Peak Mbps:     4083.428 Avg Mbps:     4074.526
        5000      509244256     4073.954  100.00% 
Conn:   1 Mbps:     4073.954 Peak Mbps:     4083.428 Avg Mbps:     4073.954
--- 169.254.1.11 tcpbench statistics ---
3056125220 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 4071.665/4076.130/4083.428/4.035 Mbps

==== run-tcpbench6-1-1 ====
rm -f nc.log
nc -6 -v -l -V 11 fc00:0:0:1::11 12345 >/dev/null 2>nc.log &
# Wait until nc is listening.
for  i in `jot 30`; do if fgrep -q Listening nc.log; then break; fi; sleep .1; done
fgrep Listening nc.log
Listening on fc00:0:0:1::11 12345
# Test that path MTU dicovery is working.
tcpbench -6 -t 5 -V 11 -b fc00:0:0:1::11 fc00:0:0:1::11
  elapsed_ms          bytes         mbps   bwidth 
        1000      507320648     4058.565  100.00% 
Conn:   1 Mbps:     4058.565 Peak Mbps:     4058.565 Avg Mbps:     4058.565
        2000      506638840     4057.168  100.00% 
Conn:   1 Mbps:     4057.168 Peak Mbps:     4058.565 Avg Mbps:     4057.168
        3000      506599200     4052.794  100.00% 
Conn:   1 Mbps:     4052.794 Peak Mbps:     4058.565 Avg Mbps:     4052.794
        4000      506710192     4053.682  100.00% 
Conn:   1 Mbps:     4053.682 Peak Mbps:     4058.565 Avg Mbps:     4053.682
        5000      506297936     4050.383  100.00% 
Conn:   1 Mbps:     4050.383 Peak Mbps:     4058.565 Avg Mbps:     4050.383
--- fc00:0:0:1::11 tcpbench statistics ---
3039587272 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 4050.383/4054.518/4058.565/2.972 Mbps

==== run-ping-1-2 ====
/sbin/ping -c 1 -w 1 -n -V 11 -I 169.254.1.11 169.254.1.12
PING 169.254.1.12 (169.254.1.12): 56 data bytes
64 bytes from 169.254.1.12: icmp_seq=0 ttl=255 time=0.071 ms

--- 169.254.1.12 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.071/0.071/0.071/0.000 ms

==== run-ping6-1-2 ====
/sbin/ping6 -c 1 -w 1 -n -V 11 -I fc00:0:0:1::11 fc00:0:0:1::12
PING fc00:0:0:1::12 (fc00:0:0:1::12): 56 data bytes
64 bytes from fc00:0:0:1::12: icmp_seq=0 hlim=64 time=0.135 ms

--- fc00:0:0:1::12 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.135/0.135/0.135/0.000 ms

==== run-tcpbench-1-2 ====
rm -f nc.log
nc -4 -v -l -V 12 169.254.1.12 12345 >/dev/null 2>nc.log &
# Wait until nc is listening.
for  i in `jot 30`; do if fgrep -q Listening nc.log; then break; fi; sleep .1; done
fgrep Listening nc.log
Listening on 169.254.1.12 12345
# Test that path MTU dicovery is working.
tcpbench -4 -t 5 -V 11 -b 169.254.1.11 169.254.1.12
  elapsed_ms          bytes         mbps   bwidth 
        1001      269236432     2151.740  100.00% 
Conn:   1 Mbps:     2151.740 Peak Mbps:     2151.740 Avg Mbps:     2151.740
        2001      283863120     2273.178  100.00% 
Conn:   1 Mbps:     2273.178 Peak Mbps:     2273.178 Avg Mbps:     2273.178
        3001      282367392     2261.200  100.00% 
Conn:   1 Mbps:     2261.200 Peak Mbps:     2273.178 Avg Mbps:     2261.200
        4003      287133480     2292.483  100.00% 
Conn:   1 Mbps:     2292.483 Peak Mbps:     2292.483 Avg Mbps:     2292.483
        5002      281082400     2253.166  100.00% 
Conn:   1 Mbps:     2253.166 Peak Mbps:     2292.483 Avg Mbps:     2253.166
--- 169.254.1.12 tcpbench statistics ---
1685711776 bytes sent over 6.000 seconds
bandwidth min/avg/max/std-dev = 2151.740/2246.353/2292.483/49.124 Mbps

==== run-tcpbench6-1-2 ====
rm -f nc.log
nc -6 -v -l -V 12 fc00:0:0:1::12 12345 >/dev/null 2>nc.log &
# Wait until nc is listening.
for  i in `jot 30`; do if fgrep -q Listening nc.log; then break; fi; sleep .1; done
fgrep Listening nc.log
Listening on fc00:0:0:1::12 12345
# Test that path MTU dicovery is working.
tcpbench -6 -t 5 -V 11 -b fc00:0:0:1::11 fc00:0:0:1::12
  elapsed_ms          bytes         mbps   bwidth 
        1001      250553312     2002.424  100.00% 
Conn:   1 Mbps:     2002.424 Peak Mbps:     2002.424 Avg Mbps:     2002.424
        2001      264597988     2116.784  100.00% 
Conn:   1 Mbps:     2116.784 Peak Mbps:     2116.784 Avg Mbps:     2116.784
        3002      267844412     2140.615  100.00% 
Conn:   1 Mbps:     2140.615 Peak Mbps:     2140.615 Avg Mbps:     2140.615
        4002      268313800     2146.510  100.00% 
Conn:   1 Mbps:     2146.510 Peak Mbps:     2146.510 Avg Mbps:     2146.510
        5003      269464980     2155.720  100.00% 
Conn:   1 Mbps:     2155.720 Peak Mbps:     2155.720 Avg Mbps:     2155.720
--- fc00:0:0:1::12 tcpbench statistics ---
1591062128 bytes sent over 6.001 seconds
bandwidth min/avg/max/std-dev = 2002.424/2112.411/2155.720/56.480 Mbps

==== run-ping-1-3 ====
/sbin/ping -c 1 -w 1 -n -V 11 -I 169.254.1.11 169.254.0.13
PING 169.254.0.13 (169.254.0.13): 56 data bytes
64 bytes from 169.254.0.13: icmp_seq=0 ttl=254 time=0.064 ms

--- 169.254.0.13 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.064/0.064/0.064/0.000 ms

==== run-ping6-1-3 ====
/sbin/ping6 -c 1 -w 1 -n -V 11 -I fc00:0:0:1::11 fc00::13
PING fc00::13 (fc00::13): 56 data bytes
64 bytes from fc00::13: icmp_seq=0 hlim=63 time=0.072 ms

--- fc00::13 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.072/0.072/0.072/0.000 ms

==== run-tcpbench-1-3 ====
rm -f nc.log
nc -4 -v -l -V 13 169.254.0.13 12345 >/dev/null 2>nc.log &
# Wait until nc is listening.
for  i in `jot 30`; do if fgrep -q Listening nc.log; then break; fi; sleep .1; done
fgrep Listening nc.log
Listening on 169.254.0.13 12345
# Test that path MTU dicovery is working.
tcpbench -4 -t 5 -V 11 -b 169.254.1.11 169.254.0.13
  elapsed_ms          bytes         mbps   bwidth 
        1000      548982576     4391.861  100.00% 
Conn:   1 Mbps:     4391.861 Peak Mbps:     4391.861 Avg Mbps:     4391.861
        2000      553927352     4435.855  100.00% 
Conn:   1 Mbps:     4435.855 Peak Mbps:     4435.855 Avg Mbps:     4435.855
        3000      538293076     4306.345  100.00% 
Conn:   1 Mbps:     4306.345 Peak Mbps:     4435.855 Avg Mbps:     4306.345
        4000      533144172     4269.423  100.00% 
Conn:   1 Mbps:     4269.423 Peak Mbps:     4435.855 Avg Mbps:     4269.423
        5000      498863748     3994.905  100.00% 
Conn:   1 Mbps:     3994.905 Peak Mbps:     4435.855 Avg Mbps:     3994.905
--- 169.254.0.13 tcpbench statistics ---
3185427592 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 3994.905/4279.678/4435.855/154.200 Mbps

==== run-tcpbench6-1-3 ====
rm -f nc.log
nc -6 -v -l -V 13 fc00::13 12345 >/dev/null 2>nc.log &
# Wait until nc is listening.
for  i in `jot 30`; do if fgrep -q Listening nc.log; then break; fi; sleep .1; done
fgrep Listening nc.log
Listening on fc00::13 12345
# Test that path MTU dicovery is working.
tcpbench -6 -t 5 -V 11 -b fc00:0:0:1::11 fc00::13
  elapsed_ms          bytes         mbps   bwidth 
        1000      589459544     4715.676  100.00% 
Conn:   1 Mbps:     4715.676 Peak Mbps:     4715.676 Avg Mbps:     4715.676
        2000      621553912     4972.431  100.00% 
Conn:   1 Mbps:     4972.431 Peak Mbps:     4972.431 Avg Mbps:     4972.431
        3001      629447856     5035.583  100.00% 
Conn:   1 Mbps:     5035.583 Peak Mbps:     5035.583 Avg Mbps:     5035.583
        4001      620953984     4967.632  100.00% 
Conn:   1 Mbps:     4967.632 Peak Mbps:     5035.583 Avg Mbps:     4967.632
        5002      629201312     5033.610  100.00% 
Conn:   1 Mbps:     5033.610 Peak Mbps:     5035.583 Avg Mbps:     5033.610
--- fc00::13 tcpbench statistics ---
3714706048 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 4715.676/4944.987/5035.583/118.246 Mbps

==== run-ping-2-1 ====
/sbin/ping -c 1 -w 1 -n -V 12 -I 169.254.1.12 169.254.1.11
PING 169.254.1.11 (169.254.1.11): 56 data bytes
64 bytes from 169.254.1.11: icmp_seq=0 ttl=255 time=0.057 ms

--- 169.254.1.11 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.057/0.057/0.057/0.000 ms

==== run-ping6-2-1 ====
/sbin/ping6 -c 1 -w 1 -n -V 12 -I fc00:0:0:1::12 fc00:0:0:1::11
PING fc00:0:0:1::11 (fc00:0:0:1::11): 56 data bytes
64 bytes from fc00:0:0:1::11: icmp_seq=0 hlim=64 time=0.051 ms

--- fc00:0:0:1::11 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.051/0.051/0.051/0.000 ms

==== run-tcpbench-2-1 ====
rm -f nc.log
nc -4 -v -l -V 11 169.254.1.11 12345 >/dev/null 2>nc.log &
# Wait until nc is listening.
for  i in `jot 30`; do if fgrep -q Listening nc.log; then break; fi; sleep .1; done
fgrep Listening nc.log
Listening on 169.254.1.11 12345
# Test that path MTU dicovery is working.
tcpbench -4 -t 5 -V 12 -b 169.254.1.12 169.254.1.11
  elapsed_ms          bytes         mbps   bwidth 
        1000      268670584     2149.365  100.00% 
Conn:   1 Mbps:     2149.365 Peak Mbps:     2149.365 Avg Mbps:     2149.365
        2000      280569144     2244.553  100.00% 
Conn:   1 Mbps:     2244.553 Peak Mbps:     2244.553 Avg Mbps:     2244.553
        3002      282485680     2257.628  100.00% 
Conn:   1 Mbps:     2257.628 Peak Mbps:     2257.628 Avg Mbps:     2257.628
        4002      281193728     2249.550  100.00% 
Conn:   1 Mbps:     2249.550 Peak Mbps:     2257.628 Avg Mbps:     2249.550
        5003      279374144     2232.760  100.00% 
Conn:   1 Mbps:     2232.760 Peak Mbps:     2257.628 Avg Mbps:     2232.760
--- 169.254.1.11 tcpbench statistics ---
1671792672 bytes sent over 6.000 seconds
bandwidth min/avg/max/std-dev = 2149.365/2226.771/2257.628/39.534 Mbps

==== run-tcpbench6-2-1 ====
rm -f nc.log
nc -6 -v -l -V 11 fc00:0:0:1::11 12345 >/dev/null 2>nc.log &
# Wait until nc is listening.
for  i in `jot 30`; do if fgrep -q Listening nc.log; then break; fi; sleep .1; done
fgrep Listening nc.log
Listening on fc00:0:0:1::11 12345
# Test that path MTU dicovery is working.
tcpbench -6 -t 5 -V 12 -b fc00:0:0:1::12 fc00:0:0:1::11
  elapsed_ms          bytes         mbps   bwidth 
        1000      251842908     2014.743  100.00% 
Conn:   1 Mbps:     2014.743 Peak Mbps:     2014.743 Avg Mbps:     2014.743
        2001      262954388     2103.635  100.00% 
Conn:   1 Mbps:     2103.635 Peak Mbps:     2103.635 Avg Mbps:     2103.635
        3002      267525232     2138.064  100.00% 
Conn:   1 Mbps:     2138.064 Peak Mbps:     2138.064 Avg Mbps:     2138.064
        4002      268161004     2147.435  100.00% 
Conn:   1 Mbps:     2147.435 Peak Mbps:     2147.435 Avg Mbps:     2147.435
        5004      267981712     2141.712  100.00% 
Conn:   1 Mbps:     2141.712 Peak Mbps:     2147.435 Avg Mbps:     2141.712
--- fc00:0:0:1::11 tcpbench statistics ---
1584829400 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 2014.743/2109.118/2147.435/49.609 Mbps

==== run-ping-2-2 ====
/sbin/ping -c 1 -w 1 -n -V 12 -I 169.254.1.12 169.254.1.12
PING 169.254.1.12 (169.254.1.12): 56 data bytes
64 bytes from 169.254.1.12: icmp_seq=0 ttl=255 time=0.053 ms

--- 169.254.1.12 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.053/0.053/0.053/0.000 ms

==== run-ping6-2-2 ====
/sbin/ping6 -c 1 -w 1 -n -V 12 -I fc00:0:0:1::12 fc00:0:0:1::12
PING fc00:0:0:1::12 (fc00:0:0:1::12): 56 data bytes
64 bytes from fc00:0:0:1::12: icmp_seq=0 hlim=64 time=0.060 ms

--- fc00:0:0:1::12 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.060/0.060/0.060/0.000 ms

==== run-tcpbench-2-2 ====
rm -f nc.log
nc -4 -v -l -V 12 169.254.1.12 12345 >/dev/null 2>nc.log &
# Wait until nc is listening.
for  i in `jot 30`; do if fgrep -q Listening nc.log; then break; fi; sleep .1; done
fgrep Listening nc.log
Listening on 169.254.1.12 12345
# Test that path MTU dicovery is working.
tcpbench -4 -t 5 -V 12 -b 169.254.1.12 169.254.1.12
  elapsed_ms          bytes         mbps   bwidth 
        1000      514678568     4117.429  100.00% 
Conn:   1 Mbps:     4117.429 Peak Mbps:     4117.429 Avg Mbps:     4117.429
        2000      514315120     4118.640  100.00% 
Conn:   1 Mbps:     4118.640 Peak Mbps:     4118.640 Avg Mbps:     4118.640
        3000      513799632     4110.397  100.00% 
Conn:   1 Mbps:     4110.397 Peak Mbps:     4118.640 Avg Mbps:     4110.397
        4000      513772120     4110.177  100.00% 
Conn:   1 Mbps:     4110.177 Peak Mbps:     4118.640 Avg Mbps:     4110.177
        5000      514585896     4116.687  100.00% 
Conn:   1 Mbps:     4116.687 Peak Mbps:     4118.640 Avg Mbps:     4116.687
--- 169.254.1.12 tcpbench statistics ---
3085740128 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 4110.177/4114.666/4118.640/3.630 Mbps

==== run-tcpbench6-2-2 ====
rm -f nc.log
nc -6 -v -l -V 12 fc00:0:0:1::12 12345 >/dev/null 2>nc.log &
# Wait until nc is listening.
for  i in `jot 30`; do if fgrep -q Listening nc.log; then break; fi; sleep .1; done
fgrep Listening nc.log
Listening on fc00:0:0:1::12 12345
# Test that path MTU dicovery is working.
tcpbench -6 -t 5 -V 12 -b fc00:0:0:1::12 fc00:0:0:1::12
  elapsed_ms          bytes         mbps   bwidth 
        1000      513547356     4108.379  100.00% 
Conn:   1 Mbps:     4108.379 Peak Mbps:     4108.379 Avg Mbps:     4108.379
        2000      512146488     4101.273  100.00% 
Conn:   1 Mbps:     4101.273 Peak Mbps:     4108.379 Avg Mbps:     4101.273
        3000      511492464     4091.940  100.00% 
Conn:   1 Mbps:     4091.940 Peak Mbps:     4108.379 Avg Mbps:     4091.940
        4000      511295400     4090.363  100.00% 
Conn:   1 Mbps:     4090.363 Peak Mbps:     4108.379 Avg Mbps:     4090.363
        5000      511588140     4092.705  100.00% 
Conn:   1 Mbps:     4092.705 Peak Mbps:     4108.379 Avg Mbps:     4092.705
--- fc00:0:0:1::12 tcpbench statistics ---
3071955012 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 4090.363/4096.932/4108.379/6.868 Mbps

==== run-ping-2-3 ====
/sbin/ping -c 1 -w 1 -n -V 12 -I 169.254.1.12 169.254.0.13
PING 169.254.0.13 (169.254.0.13): 56 data bytes
64 bytes from 169.254.0.13: icmp_seq=0 ttl=255 time=0.057 ms

--- 169.254.0.13 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.057/0.057/0.057/0.000 ms

==== run-ping6-2-3 ====
/sbin/ping6 -c 1 -w 1 -n -V 12 -I fc00:0:0:1::12 fc00::13
PING fc00::13 (fc00::13): 56 data bytes
64 bytes from fc00::13: icmp_seq=0 hlim=64 time=0.051 ms

--- fc00::13 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.051/0.051/0.051/0.000 ms

==== run-tcpbench-2-3 ====
rm -f nc.log
nc -4 -v -l -V 13 169.254.0.13 12345 >/dev/null 2>nc.log &
# Wait until nc is listening.
for  i in `jot 30`; do if fgrep -q Listening nc.log; then break; fi; sleep .1; done
fgrep Listening nc.log
Listening on 169.254.0.13 12345
# Test that path MTU dicovery is working.
tcpbench -4 -t 5 -V 12 -b 169.254.1.12 169.254.0.13
  elapsed_ms          bytes         mbps   bwidth 
        1000      770810366     6166.483  100.00% 
Conn:   1 Mbps:     6166.483 Peak Mbps:     6166.483 Avg Mbps:     6166.483
        2000      776383396     6217.284  100.00% 
Conn:   1 Mbps:     6217.284 Peak Mbps:     6217.284 Avg Mbps:     6217.284
        3000      774093276     6192.746  100.00% 
Conn:   1 Mbps:     6192.746 Peak Mbps:     6217.284 Avg Mbps:     6192.746
        4000      775042040     6200.336  100.00% 
Conn:   1 Mbps:     6200.336 Peak Mbps:     6217.284 Avg Mbps:     6200.336
        5000      777168580     6217.349  100.00% 
Conn:   1 Mbps:     6217.349 Peak Mbps:     6217.349 Avg Mbps:     6217.349
--- 169.254.0.13 tcpbench statistics ---
4649161302 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 6166.483/6198.840/6217.349/18.810 Mbps

==== run-tcpbench6-2-3 ====
rm -f nc.log
nc -6 -v -l -V 13 fc00::13 12345 >/dev/null 2>nc.log &
# Wait until nc is listening.
for  i in `jot 30`; do if fgrep -q Listening nc.log; then break; fi; sleep .1; done
fgrep Listening nc.log
Listening on fc00::13 12345
# Test that path MTU dicovery is working.
tcpbench -6 -t 5 -V 12 -b fc00:0:0:1::12 fc00::13
  elapsed_ms          bytes         mbps   bwidth 
        1000      752816828     6022.535  100.00% 
Conn:   1 Mbps:     6022.535 Peak Mbps:     6022.535 Avg Mbps:     6022.535
        2000      753544712     6034.392  100.00% 
Conn:   1 Mbps:     6034.392 Peak Mbps:     6034.392 Avg Mbps:     6034.392
        3000      752661920     6021.295  100.00% 
Conn:   1 Mbps:     6021.295 Peak Mbps:     6034.392 Avg Mbps:     6021.295
        4000      752792704     6022.342  100.00% 
Conn:   1 Mbps:     6022.342 Peak Mbps:     6034.392 Avg Mbps:     6022.342
        5000      751386776     6011.094  100.00% 
Conn:   1 Mbps:     6011.094 Peak Mbps:     6034.392 Avg Mbps:     6011.094
--- fc00::13 tcpbench statistics ---
4514687804 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 6011.094/6022.332/6034.392/7.387 Mbps

==== run-ping-3-1 ====
/sbin/ping -c 1 -w 1 -n -V 13 -I 169.254.0.13 169.254.1.11
PING 169.254.1.11 (169.254.1.11): 56 data bytes
64 bytes from 169.254.1.11: icmp_seq=0 ttl=255 time=0.060 ms

--- 169.254.1.11 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.060/0.060/0.060/0.000 ms

==== run-ping6-3-1 ====
/sbin/ping6 -c 1 -w 1 -n -V 13 -I fc00::13 fc00:0:0:1::11
PING fc00:0:0:1::11 (fc00:0:0:1::11): 56 data bytes
64 bytes from fc00:0:0:1::11: icmp_seq=0 hlim=64 time=0.058 ms

--- fc00:0:0:1::11 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.058/0.058/0.058/0.000 ms

==== run-tcpbench-3-1 ====
rm -f nc.log
nc -4 -v -l -V 11 169.254.1.11 12345 >/dev/null 2>nc.log &
# Wait until nc is listening.
for  i in `jot 30`; do if fgrep -q Listening nc.log; then break; fi; sleep .1; done
fgrep Listening nc.log
Listening on 169.254.1.11 12345
# Test that path MTU dicovery is working.
tcpbench -4 -t 5 -V 13 -b 169.254.0.13 169.254.1.11
  elapsed_ms          bytes         mbps   bwidth 
        1001      270318696     2160.389  100.00% 
Conn:   1 Mbps:     2160.389 Peak Mbps:     2160.389 Avg Mbps:     2160.389
        2000      277030952     2218.466  100.00% 
Conn:   1 Mbps:     2218.466 Peak Mbps:     2218.466 Avg Mbps:     2218.466
        3001      278299736     2226.398  100.00% 
Conn:   1 Mbps:     2226.398 Peak Mbps:     2226.398 Avg Mbps:     2226.398
        4002      278417520     2227.340  100.00% 
Conn:   1 Mbps:     2227.340 Peak Mbps:     2227.340 Avg Mbps:     2227.340
        5004      281117928     2244.455  100.00% 
Conn:   1 Mbps:     2244.455 Peak Mbps:     2244.455 Avg Mbps:     2244.455
--- 169.254.1.11 tcpbench statistics ---
1664437400 bytes sent over 6.000 seconds
bandwidth min/avg/max/std-dev = 2160.389/2215.410/2244.455/28.786 Mbps
# path MTU discovery must create a dynamic route
/sbin/route -T 13 -n get -host -inet 169.254.1.11 | grep DYNAMIC
      flags: <UP,GATEWAY,HOST,DYNAMIC,DONE>

==== run-tcpbench6-3-1 ====
rm -f nc.log
nc -6 -v -l -V 11 fc00:0:0:1::11 12345 >/dev/null 2>nc.log &
# Wait until nc is listening.
for  i in `jot 30`; do if fgrep -q Listening nc.log; then break; fi; sleep .1; done
fgrep Listening nc.log
Listening on fc00:0:0:1::11 12345
# Test that path MTU dicovery is working.
tcpbench -6 -t 5 -V 13 -b fc00::13 fc00:0:0:1::11
  elapsed_ms          bytes         mbps   bwidth 
        1000      521059816     4168.479  100.00% 
Conn:   1 Mbps:     4168.479 Peak Mbps:     4168.479 Avg Mbps:     4168.479
        2000      588783776     4710.270  100.00% 
Conn:   1 Mbps:     4710.270 Peak Mbps:     4710.270 Avg Mbps:     4710.270
        3000      582106752     4656.854  100.00% 
Conn:   1 Mbps:     4656.854 Peak Mbps:     4710.270 Avg Mbps:     4656.854
        4000      586553168     4697.122  100.00% 
Conn:   1 Mbps:     4697.122 Peak Mbps:     4710.270 Avg Mbps:     4697.122
        5000      584057872     4677.140  100.00% 
Conn:   1 Mbps:     4677.140 Peak Mbps:     4710.270 Avg Mbps:     4677.140
--- fc00:0:0:1::11 tcpbench statistics ---
3449064800 bytes sent over 6.000 seconds
bandwidth min/avg/max/std-dev = 4168.479/4581.973/4710.270/207.539 Mbps
# path MTU discovery in other rtable does not work in ip6_output()
/sbin/route -T 13 -n get -host -inet6 fc00:0:0:1::11
   route to: fc00:0:0:1::11
destination: fc00::
       mask: ffff:ffff:ffff::
    gateway: ::1
  interface: lo13
 if address: ::1
   priority: 8 (static)
      flags: <UP,GATEWAY,DONE,STATIC>
     use       mtu    expire
       8     32768         0 
DISABLED

==== run-ping-3-2 ====
/sbin/ping -c 1 -w 1 -n -V 13 -I 169.254.0.13 169.254.1.12
PING 169.254.1.12 (169.254.1.12): 56 data bytes
64 bytes from 169.254.1.12: icmp_seq=0 ttl=255 time=0.060 ms

--- 169.254.1.12 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.060/0.060/0.060/0.000 ms

==== run-ping6-3-2 ====
/sbin/ping6 -c 1 -w 1 -n -V 13 -I fc00::13 fc00:0:0:1::12
PING fc00:0:0:1::12 (fc00:0:0:1::12): 56 data bytes
64 bytes from fc00:0:0:1::12: icmp_seq=0 hlim=64 time=0.050 ms

--- fc00:0:0:1::12 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.050/0.050/0.050/0.000 ms

==== run-tcpbench-3-2 ====
rm -f nc.log
nc -4 -v -l -V 12 169.254.1.12 12345 >/dev/null 2>nc.log &
# Wait until nc is listening.
for  i in `jot 30`; do if fgrep -q Listening nc.log; then break; fi; sleep .1; done
fgrep Listening nc.log
Listening on 169.254.1.12 12345
# Test that path MTU dicovery is working.
tcpbench -4 -t 5 -V 13 -b 169.254.0.13 169.254.1.12
  elapsed_ms          bytes         mbps   bwidth 
        1000      772134530     6177.076  100.00% 
Conn:   1 Mbps:     6177.076 Peak Mbps:     6177.076 Avg Mbps:     6177.076
        2000      773079080     6190.823  100.00% 
Conn:   1 Mbps:     6190.823 Peak Mbps:     6190.823 Avg Mbps:     6190.823
        3000      773667968     6189.344  100.00% 
Conn:   1 Mbps:     6189.344 Peak Mbps:     6190.823 Avg Mbps:     6189.344
        4000      774551300     6196.410  100.00% 
Conn:   1 Mbps:     6196.410 Peak Mbps:     6196.410 Avg Mbps:     6196.410
        5000      774649448     6197.196  100.00% 
Conn:   1 Mbps:     6197.196 Peak Mbps:     6197.196 Avg Mbps:     6197.196
--- 169.254.1.12 tcpbench statistics ---
4641488566 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 6177.076/6190.170/6197.196/7.223 Mbps

==== run-tcpbench6-3-2 ====
rm -f nc.log
nc -6 -v -l -V 12 fc00:0:0:1::12 12345 >/dev/null 2>nc.log &
# Wait until nc is listening.
for  i in `jot 30`; do if fgrep -q Listening nc.log; then break; fi; sleep .1; done
fgrep Listening nc.log
Listening on fc00:0:0:1::12 12345
# Test that path MTU dicovery is working.
tcpbench -6 -t 5 -V 13 -b fc00::13 fc00:0:0:1::12
  elapsed_ms          bytes         mbps   bwidth 
        1000      746358108     5970.865  100.00% 
Conn:   1 Mbps:     5970.865 Peak Mbps:     5970.865 Avg Mbps:     5970.865
        2000      747234384     5983.859  100.00% 
Conn:   1 Mbps:     5983.859 Peak Mbps:     5983.859 Avg Mbps:     5983.859
        3000      747299776     5978.398  100.00% 
Conn:   1 Mbps:     5978.398 Peak Mbps:     5983.859 Avg Mbps:     5978.398
        4000      746776640     5974.213  100.00% 
Conn:   1 Mbps:     5974.213 Peak Mbps:     5983.859 Avg Mbps:     5974.213
        5000      747397864     5979.183  100.00% 
Conn:   1 Mbps:     5979.183 Peak Mbps:     5983.859 Avg Mbps:     5979.183
--- fc00:0:0:1::12 tcpbench statistics ---
4482955076 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 5970.865/5977.304/5983.859/4.443 Mbps

==== run-ping-3-3 ====
/sbin/ping -c 1 -w 1 -n -V 13 -I 169.254.0.13 169.254.0.13
PING 169.254.0.13 (169.254.0.13): 56 data bytes
64 bytes from 169.254.0.13: icmp_seq=0 ttl=255 time=0.041 ms

--- 169.254.0.13 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.041/0.041/0.041/0.000 ms

==== run-ping6-3-3 ====
/sbin/ping6 -c 1 -w 1 -n -V 13 -I fc00::13 fc00::13
PING fc00::13 (fc00::13): 56 data bytes
64 bytes from fc00::13: icmp_seq=0 hlim=64 time=0.046 ms

--- fc00::13 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.046/0.046/0.046/0.000 ms

==== run-tcpbench-3-3 ====
rm -f nc.log
nc -4 -v -l -V 13 169.254.0.13 12345 >/dev/null 2>nc.log &
# Wait until nc is listening.
for  i in `jot 30`; do if fgrep -q Listening nc.log; then break; fi; sleep .1; done
fgrep Listening nc.log
Listening on 169.254.0.13 12345
# Test that path MTU dicovery is working.
tcpbench -4 -t 5 -V 13 -b 169.254.0.13 169.254.0.13
  elapsed_ms          bytes         mbps   bwidth 
        1000      759258330     6074.067  100.00% 
Conn:   1 Mbps:     6074.067 Peak Mbps:     6074.067 Avg Mbps:     6074.067
        2000      758487744     6073.976  100.00% 
Conn:   1 Mbps:     6073.976 Peak Mbps:     6074.067 Avg Mbps:     6073.976
        3000      758553176     6068.425  100.00% 
Conn:   1 Mbps:     6068.425 Peak Mbps:     6074.067 Avg Mbps:     6068.425
        4000      758095152     6064.761  100.00% 
Conn:   1 Mbps:     6064.761 Peak Mbps:     6074.067 Avg Mbps:     6064.761
        5000      757702560     6061.620  100.00% 
Conn:   1 Mbps:     6061.620 Peak Mbps:     6074.067 Avg Mbps:     6061.620
--- 169.254.0.13 tcpbench statistics ---
4550126682 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 6061.620/6068.570/6074.067/4.945 Mbps

==== run-tcpbench6-3-3 ====
rm -f nc.log
nc -6 -v -l -V 13 fc00::13 12345 >/dev/null 2>nc.log &
# Wait until nc is listening.
for  i in `jot 30`; do if fgrep -q Listening nc.log; then break; fi; sleep .1; done
fgrep Listening nc.log
Listening on fc00::13 12345
# Test that path MTU dicovery is working.
tcpbench -6 -t 5 -V 13 -b fc00::13 fc00::13
  elapsed_ms          bytes         mbps   bwidth 
        1000      776221260     6209.770  100.00% 
Conn:   1 Mbps:     6209.770 Peak Mbps:     6209.770 Avg Mbps:     6209.770
        2000      775810688     6212.698  100.00% 
Conn:   1 Mbps:     6212.698 Peak Mbps:     6212.698 Avg Mbps:     6212.698
        3000      774764416     6198.115  100.00% 
Conn:   1 Mbps:     6198.115 Peak Mbps:     6212.698 Avg Mbps:     6198.115
        4000      774633632     6197.069  100.00% 
Conn:   1 Mbps:     6197.069 Peak Mbps:     6212.698 Avg Mbps:     6197.069
        5000      774306672     6194.453  100.00% 
Conn:   1 Mbps:     6194.453 Peak Mbps:     6212.698 Avg Mbps:     6194.453
--- fc00::13 tcpbench statistics ---
4649945252 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 6194.453/6202.421/6212.698/7.352 Mbps

==== unconfig ====
# Destroy interfaces.
/sbin/route -n -T 11 delete -inet 169.254.0.13
delete host 169.254.0.13
/sbin/route -n -T 11 delete -inet6 fc00::13
delete host fc00::13
/sbin/ifconfig lo13 rdomain 13
/sbin/ifconfig lo13 inet 169.254.0.13 delete
/sbin/ifconfig lo13 inet6 fc00::13 delete
/sbin/ifconfig pair11 destroy
/sbin/ifconfig pair12 destroy
/sbin/route -n -T 11 delete -inet 169.254.0.0/16
delete net 169.254.0.0/16
/sbin/route -n -T 11 delete -inet6 fc00::/48
delete net fc00::/48
/sbin/ifconfig lo11 inet 127.0.0.1 delete
/sbin/ifconfig lo11 inet6 ::1 delete
/sbin/ifconfig lo11 destroy
/sbin/route -n -T 12 delete -inet 169.254.0.0/16
delete net 169.254.0.0/16
/sbin/route -n -T 12 delete -inet6 fc00::/48
delete net fc00::/48
/sbin/ifconfig lo12 inet 127.0.0.1 delete
/sbin/ifconfig lo12 inet6 ::1 delete
/sbin/ifconfig lo12 destroy
/sbin/route -n -T 13 delete -inet 169.254.0.0/16
delete net 169.254.0.0/16
/sbin/route -n -T 13 delete -inet6 fc00::/48
delete net fc00::/48
/sbin/ifconfig lo13 inet 127.0.0.1 delete
/sbin/ifconfig lo13 inet6 ::1 delete
/sbin/ifconfig lo13 destroy
rm -f stamp-ifconfig

PASS	sys/net/pair	Duration 1m52.86s