START	sys/net/pair	2024-07-15T08:35:40Z

==== 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.173 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.173/0.173/0.173/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.227 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.227/0.227/0.227/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      202117640     1616.941  100.00% 
Conn:   1 Mbps:     1616.941 Peak Mbps:     1616.941 Avg Mbps:     1616.941
        2000      200082952     1602.266  100.00% 
Conn:   1 Mbps:     1602.266 Peak Mbps:     1616.941 Avg Mbps:     1602.266
        3000      197817772     1582.542  100.00% 
Conn:   1 Mbps:     1582.542 Peak Mbps:     1616.941 Avg Mbps:     1582.542
        4000      198818380     1590.547  100.00% 
Conn:   1 Mbps:     1590.547 Peak Mbps:     1616.941 Avg Mbps:     1590.547
        5000      199542488     1596.340  100.00% 
Conn:   1 Mbps:     1596.340 Peak Mbps:     1616.941 Avg Mbps:     1596.340
--- 169.254.1.11 tcpbench statistics ---
1197103076 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 1582.542/1597.727/1616.941/11.609 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      205049792     1640.398  100.00% 
Conn:   1 Mbps:     1640.398 Peak Mbps:     1640.398 Avg Mbps:     1640.398
        2000      200197856     1603.186  100.00% 
Conn:   1 Mbps:     1603.186 Peak Mbps:     1640.398 Avg Mbps:     1603.186
        3000      202330488     1618.644  100.00% 
Conn:   1 Mbps:     1618.644 Peak Mbps:     1640.398 Avg Mbps:     1618.644
        4000      202354272     1618.834  100.00% 
Conn:   1 Mbps:     1618.834 Peak Mbps:     1640.398 Avg Mbps:     1618.834
        5000      201965800     1615.726  100.00% 
Conn:   1 Mbps:     1615.726 Peak Mbps:     1640.398 Avg Mbps:     1615.726
--- fc00:0:0:1::11 tcpbench statistics ---
1213388328 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 1603.186/1619.358/1640.398/11.985 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.238 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.238/0.238/0.238/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.439 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.439/0.439/0.439/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 
        1000       85849080      686.793  100.00% 
Conn:   1 Mbps:      686.793 Peak Mbps:      686.793 Avg Mbps:      686.793
        2001       86636736      693.094  100.00% 
Conn:   1 Mbps:      693.094 Peak Mbps:      693.094 Avg Mbps:      693.094
        3001       86499232      691.994  100.00% 
Conn:   1 Mbps:      691.994 Peak Mbps:      693.094 Avg Mbps:      691.994
        4005       86997288      693.205  100.00% 
Conn:   1 Mbps:      693.205 Peak Mbps:      693.205 Avg Mbps:      693.205
        5004       86612120      694.286  100.00% 
Conn:   1 Mbps:      694.286 Peak Mbps:      694.286 Avg Mbps:      694.286
--- 169.254.1.12 tcpbench statistics ---
518527464 bytes sent over 6.003 seconds
bandwidth min/avg/max/std-dev = 686.793/691.874/694.286/2.642 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       85351560      682.130  100.00% 
Conn:   1 Mbps:      682.130 Peak Mbps:      682.130 Avg Mbps:      682.130
        2003       85598604      684.105  100.00% 
Conn:   1 Mbps:      684.105 Peak Mbps:      684.105 Avg Mbps:      684.105
        3002       85703668      686.316  100.00% 
Conn:   1 Mbps:      686.316 Peak Mbps:      686.316 Avg Mbps:      686.316
        4004       85474368      682.430  100.00% 
Conn:   1 Mbps:      682.430 Peak Mbps:      686.316 Avg Mbps:      682.430
        5003       84966820      680.415  100.00% 
Conn:   1 Mbps:      680.415 Peak Mbps:      686.316 Avg Mbps:      680.415
--- fc00:0:0:1::12 tcpbench statistics ---
512617940 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 680.415/683.079/686.316/1.997 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.245 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.245/0.245/0.245/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.271 ms

--- fc00::13 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.271/0.271/0.271/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      112170124      897.361  100.00% 
Conn:   1 Mbps:      897.361 Peak Mbps:      897.361 Avg Mbps:      897.361
        2000      111049456      888.396  100.00% 
Conn:   1 Mbps:      888.396 Peak Mbps:      897.361 Avg Mbps:      888.396
        3000      111017664      889.030  100.00% 
Conn:   1 Mbps:      889.030 Peak Mbps:      897.361 Avg Mbps:      889.030
        4001      110485148      883.881  100.00% 
Conn:   1 Mbps:      883.881 Peak Mbps:      897.361 Avg Mbps:      883.881
        5001      112042956      897.241  100.00% 
Conn:   1 Mbps:      897.241 Peak Mbps:      897.361 Avg Mbps:      897.241
--- 169.254.0.13 tcpbench statistics ---
669110328 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 883.881/891.182/897.361/5.303 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      104562392      836.499  100.00% 
Conn:   1 Mbps:      836.499 Peak Mbps:      836.499 Avg Mbps:      836.499
        2000      103658600      830.099  100.00% 
Conn:   1 Mbps:      830.099 Peak Mbps:      836.499 Avg Mbps:      830.099
        3000      102723096      821.785  100.00% 
Conn:   1 Mbps:      821.785 Peak Mbps:      836.499 Avg Mbps:      821.785
        4000      104483112      835.865  100.00% 
Conn:   1 Mbps:      835.865 Peak Mbps:      836.499 Avg Mbps:      835.865
        5000      103626888      829.015  100.00% 
Conn:   1 Mbps:      829.015 Peak Mbps:      836.499 Avg Mbps:      829.015
--- fc00::13 tcpbench statistics ---
622688904 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 821.785/830.653/836.499/5.347 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.172 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.172/0.172/0.172/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.238 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.238/0.238/0.238/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 
        1001       86519448      691.464  100.00% 
Conn:   1 Mbps:      691.464 Peak Mbps:      691.464 Avg Mbps:      691.464
        2004       87961656      701.588  100.00% 
Conn:   1 Mbps:      701.588 Peak Mbps:      701.588 Avg Mbps:      701.588
        3005       87331776      698.654  100.00% 
Conn:   1 Mbps:      698.654 Peak Mbps:      701.588 Avg Mbps:      698.654
        4003       87171048      698.766  100.00% 
Conn:   1 Mbps:      698.766 Peak Mbps:      701.588 Avg Mbps:      698.766
        5004       87551872      699.715  100.00% 
Conn:   1 Mbps:      699.715 Peak Mbps:      701.588 Avg Mbps:      699.715
--- 169.254.1.11 tcpbench statistics ---
522904656 bytes sent over 6.001 seconds
bandwidth min/avg/max/std-dev = 691.464/698.038/701.588/3.451 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 
        1002       85937040      686.124  100.00% 
Conn:   1 Mbps:      686.124 Peak Mbps:      686.124 Avg Mbps:      686.124
        2002       86038428      688.996  100.00% 
Conn:   1 Mbps:      688.996 Peak Mbps:      688.996 Avg Mbps:      688.996
        3001       86262624      690.792  100.00% 
Conn:   1 Mbps:      690.792 Peak Mbps:      690.792 Avg Mbps:      690.792
        4002       86562504      692.500  100.00% 
Conn:   1 Mbps:      692.500 Peak Mbps:      692.500 Avg Mbps:      692.500
        5004       85537200      682.932  100.00% 
Conn:   1 Mbps:      682.932 Peak Mbps:      692.500 Avg Mbps:      682.932
--- fc00:0:0:1::11 tcpbench statistics ---
516534732 bytes sent over 6.000 seconds
bandwidth min/avg/max/std-dev = 682.932/688.269/692.500/3.402 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.192 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.192/0.192/0.192/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.205 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.205/0.205/0.205/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      198077712     1584.622  100.00% 
Conn:   1 Mbps:     1584.622 Peak Mbps:     1584.622 Avg Mbps:     1584.622
        2000      194437440     1557.057  100.00% 
Conn:   1 Mbps:     1557.057 Peak Mbps:     1584.622 Avg Mbps:     1557.057
        3000      194007384     1552.059  100.00% 
Conn:   1 Mbps:     1552.059 Peak Mbps:     1584.622 Avg Mbps:     1552.059
        4000      192556488     1540.452  100.00% 
Conn:   1 Mbps:     1540.452 Peak Mbps:     1584.622 Avg Mbps:     1540.452
        5000      194104400     1552.835  100.00% 
Conn:   1 Mbps:     1552.835 Peak Mbps:     1584.622 Avg Mbps:     1552.835
--- 169.254.1.12 tcpbench statistics ---
1167461584 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 1540.452/1557.405/1584.622/14.682 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      198570540     1588.564  100.00% 
Conn:   1 Mbps:     1588.564 Peak Mbps:     1588.564 Avg Mbps:     1588.564
        2000      196591332     1574.305  100.00% 
Conn:   1 Mbps:     1574.305 Peak Mbps:     1588.564 Avg Mbps:     1574.305
        3000      194983404     1559.867  100.00% 
Conn:   1 Mbps:     1559.867 Peak Mbps:     1588.564 Avg Mbps:     1559.867
        4000      196297164     1571.949  100.00% 
Conn:   1 Mbps:     1571.949 Peak Mbps:     1588.564 Avg Mbps:     1571.949
        5000      196689864     1573.519  100.00% 
Conn:   1 Mbps:     1573.519 Peak Mbps:     1588.564 Avg Mbps:     1573.519
--- fc00:0:0:1::12 tcpbench statistics ---
1179676512 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 1559.867/1573.641/1588.564/9.119 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.171 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.171/0.171/0.171/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.237 ms

--- fc00::13 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.237/0.237/0.237/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      320668502     2565.348  100.00% 
Conn:   1 Mbps:     2565.348 Peak Mbps:     2565.348 Avg Mbps:     2565.348
        2000      317001682     2538.552  100.00% 
Conn:   1 Mbps:     2538.552 Peak Mbps:     2565.348 Avg Mbps:     2538.552
        3000      322187168     2577.497  100.00% 
Conn:   1 Mbps:     2577.497 Peak Mbps:     2577.497 Avg Mbps:     2577.497
        4000      318293964     2546.352  100.00% 
Conn:   1 Mbps:     2546.352 Peak Mbps:     2577.497 Avg Mbps:     2546.352
        5000      317557854     2540.463  100.00% 
Conn:   1 Mbps:     2540.463 Peak Mbps:     2577.497 Avg Mbps:     2540.463
--- 169.254.0.13 tcpbench statistics ---
1914837392 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 2538.552/2553.642/2577.497/15.236 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      317986352     2543.891  100.00% 
Conn:   1 Mbps:     2543.891 Peak Mbps:     2543.891 Avg Mbps:     2543.891
        2000      314731696     2520.374  100.00% 
Conn:   1 Mbps:     2520.374 Peak Mbps:     2543.891 Avg Mbps:     2520.374
        3000      314764392     2518.115  100.00% 
Conn:   1 Mbps:     2518.115 Peak Mbps:     2543.891 Avg Mbps:     2518.115
        4000      313979688     2511.838  100.00% 
Conn:   1 Mbps:     2511.838 Peak Mbps:     2543.891 Avg Mbps:     2511.838
        5000      309631120     2477.049  100.00% 
Conn:   1 Mbps:     2477.049 Peak Mbps:     2543.891 Avg Mbps:     2477.049
--- fc00::13 tcpbench statistics ---
1884451712 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 2477.049/2514.253/2543.891/21.544 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.215 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.215/0.215/0.215/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.235 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.235/0.235/0.235/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       86044504      687.668  100.00% 
Conn:   1 Mbps:      687.668 Peak Mbps:      687.668 Avg Mbps:      687.668
        2002       86187856      688.814  100.00% 
Conn:   1 Mbps:      688.814 Peak Mbps:      688.814 Avg Mbps:      688.814
        3004       86520896      690.786  100.00% 
Conn:   1 Mbps:      690.786 Peak Mbps:      690.786 Avg Mbps:      690.786
        4004       85478336      684.511  100.00% 
Conn:   1 Mbps:      684.511 Peak Mbps:      690.786 Avg Mbps:      684.511
        5004       86380440      691.735  100.00% 
Conn:   1 Mbps:      691.735 Peak Mbps:      691.735 Avg Mbps:      691.735
--- 169.254.1.11 tcpbench statistics ---
516503048 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 684.511/688.703/691.735/2.537 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 
        1002      136529856     1090.059  100.00% 
Conn:   1 Mbps:     1090.059 Peak Mbps:     1090.059 Avg Mbps:     1090.059
        2001      135301200     1084.579  100.00% 
Conn:   1 Mbps:     1084.579 Peak Mbps:     1090.059 Avg Mbps:     1084.579
        3003      134309264     1072.329  100.00% 
Conn:   1 Mbps:     1072.329 Peak Mbps:     1090.059 Avg Mbps:     1072.329
        4005      136703184     1092.533  100.00% 
Conn:   1 Mbps:     1092.533 Peak Mbps:     1092.533 Avg Mbps:     1092.533
        5005      135420352     1083.363  100.00% 
Conn:   1 Mbps:     1083.363 Peak Mbps:     1092.533 Avg Mbps:     1083.363
--- fc00:0:0:1::11 tcpbench statistics ---
813415952 bytes sent over 6.000 seconds
bandwidth min/avg/max/std-dev = 1072.329/1084.573/1092.533/6.997 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
       7     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.183 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.183/0.183/0.183/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.219 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.219/0.219/0.219/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      323759178     2590.073  100.00% 
Conn:   1 Mbps:     2590.073 Peak Mbps:     2590.073 Avg Mbps:     2590.073
        2000      316985324     2538.421  100.00% 
Conn:   1 Mbps:     2538.421 Peak Mbps:     2590.073 Avg Mbps:     2538.421
        3000      318555692     2548.446  100.00% 
Conn:   1 Mbps:     2548.446 Peak Mbps:     2590.073 Avg Mbps:     2548.446
        4000      318801062     2550.408  100.00% 
Conn:   1 Mbps:     2550.408 Peak Mbps:     2590.073 Avg Mbps:     2550.408
        5000      319684394     2557.475  100.00% 
Conn:   1 Mbps:     2557.475 Peak Mbps:     2590.073 Avg Mbps:     2557.475
--- 169.254.1.12 tcpbench statistics ---
1916701218 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 2538.421/2556.965/2590.073/17.640 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      313556656     2508.453  100.00% 
Conn:   1 Mbps:     2508.453 Peak Mbps:     2508.453 Avg Mbps:     2508.453
        2000      314829784     2521.159  100.00% 
Conn:   1 Mbps:     2521.159 Peak Mbps:     2521.159 Avg Mbps:     2521.159
        3000      312312192     2498.498  100.00% 
Conn:   1 Mbps:     2498.498 Peak Mbps:     2521.159 Avg Mbps:     2498.498
        4000      308944504     2471.556  100.00% 
Conn:   1 Mbps:     2471.556 Peak Mbps:     2521.159 Avg Mbps:     2471.556
        5000      309663816     2477.311  100.00% 
Conn:   1 Mbps:     2477.311 Peak Mbps:     2521.159 Avg Mbps:     2477.311
--- fc00:0:0:1::12 tcpbench statistics ---
1867434056 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 2471.556/2495.395/2521.159/18.651 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.188 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.188/0.188/0.188/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.205 ms

--- fc00::13 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.205/0.205/0.205/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      333262708     2666.102  100.00% 
Conn:   1 Mbps:     2666.102 Peak Mbps:     2666.102 Avg Mbps:     2666.102
        2000      331903808     2657.888  100.00% 
Conn:   1 Mbps:     2657.888 Peak Mbps:     2666.102 Avg Mbps:     2657.888
        3000      332541782     2660.334  100.00% 
Conn:   1 Mbps:     2660.334 Peak Mbps:     2666.102 Avg Mbps:     2660.334
        4000      327536234     2620.290  100.00% 
Conn:   1 Mbps:     2620.290 Peak Mbps:     2666.102 Avg Mbps:     2620.290
        5000      331036846     2648.295  100.00% 
Conn:   1 Mbps:     2648.295 Peak Mbps:     2666.102 Avg Mbps:     2648.295
--- 169.254.0.13 tcpbench statistics ---
1988774086 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 2620.290/2650.582/2666.102/16.200 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      359788584     2878.309  100.00% 
Conn:   1 Mbps:     2878.309 Peak Mbps:     2878.309 Avg Mbps:     2878.309
        2000      351612784     2815.718  100.00% 
Conn:   1 Mbps:     2815.718 Peak Mbps:     2878.309 Avg Mbps:     2815.718
        3000      353607240     2828.858  100.00% 
Conn:   1 Mbps:     2828.858 Peak Mbps:     2878.309 Avg Mbps:     2828.858
        4000      355274736     2842.198  100.00% 
Conn:   1 Mbps:     2842.198 Peak Mbps:     2878.309 Avg Mbps:     2842.198
        5000      358184680     2865.477  100.00% 
Conn:   1 Mbps:     2865.477 Peak Mbps:     2878.309 Avg Mbps:     2865.477
--- fc00::13 tcpbench statistics ---
2135214080 bytes sent over 5.999 seconds
bandwidth min/avg/max/std-dev = 2815.718/2846.112/2878.309/23.015 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 1m54.09s