Lines Matching refs:ns1

46 	ns1="ns1-$rndh"
49 for netns in "$ns1" "$ns2";do
67 ip link add ns1eth$i netns "$ns1" type veth peer name ns2eth$i netns "$ns2"
68 ip -net "$ns1" addr add 10.0.$i.1/24 dev ns1eth$i
69 ip -net "$ns1" addr add dead:beef:$i::1/64 dev ns1eth$i nodad
70 ip -net "$ns1" link set ns1eth$i up
84 tc -n $ns1 qdisc add dev ns1eth$i root netem rate 20mbit delay 1
93 for netns in "$ns1" "$ns2"; do
116 for netns in "$ns1" "$ns2";do
133 ip netns exec $ns1 sysctl -q net.mptcp.add_addr_timeout=1
148 ip netns exec $ns1 sysctl -q net.mptcp.checksum_enabled=$ns1_enable
159 ip netns exec $ns1 sysctl -q net.mptcp.allow_join_initial_addr_port=$ns1_enable
338 ip netns exec $ns1 ./pm_nl_ctl add $addr flags signal
427 for netns in "$ns1" "$ns2"; do
554 count=`ip netns exec $ns1 nstat -as | grep MPTcpExtDataCsumErr | awk '{print $2}'`
575 ip netns exec $ns1 nstat -as | grep MPTcp
589 count=`ip netns exec $ns1 nstat -as | grep MPTcpExtMPFailTx | awk '{print $2}'`
612 ip netns exec $ns1 nstat -as | grep MPTcp
628 count=`ip netns exec $ns1 nstat -as | grep MPTcpExtMPJoinSynRx | awk '{print $2}'`
650 count=`ip netns exec $ns1 nstat -as | grep MPTcpExtMPJoinAckRx | awk '{print $2}'`
661 ip netns exec $ns1 nstat -as | grep MPTcp
736 count=`ip netns exec $ns1 nstat -as | grep MPTcpExtEchoAdd | awk '{print $2}'`
759 count=`ip netns exec $ns1 nstat -as | grep MPTcpExtMPJoinPortSynRx |
785 count=`ip netns exec $ns1 nstat -as | grep MPTcpExtMPJoinPortAckRx |
798 count=`ip netns exec $ns1 nstat -as | grep MPTcpExtMismatchPortSynRx |
811 count=`ip netns exec $ns1 nstat -as | grep MPTcpExtMismatchPortAckRx |
828 ip netns exec $ns1 nstat -as | grep MPTcp
845 addr_ns=$ns1
849 subflow_ns=$ns1
876 ip netns exec $ns1 nstat -as | grep MPTcp
890 count=`ip netns exec $ns1 nstat -as | grep MPTcpExtMPPrioTx | awk '{print $2}'`
901 count=`ip netns exec $ns1 nstat -as | grep MPTcpExtMPPrioRx | awk '{print $2}'`
913 ip netns exec $ns1 nstat -as | grep MPTcp
943 run_tests $ns1 $ns2 10.0.1.1
948 ip netns exec $ns1 ./pm_nl_ctl limits 0 0
951 run_tests $ns1 $ns2 10.0.1.1
956 ip netns exec $ns1 ./pm_nl_ctl limits 0 0
959 run_tests $ns1 $ns2 10.0.1.1
964 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
967 run_tests $ns1 $ns2 10.0.1.1
972 ip netns exec $ns1 ./pm_nl_ctl limits 0 2
976 run_tests $ns1 $ns2 10.0.1.1
981 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
985 run_tests $ns1 $ns2 10.0.1.1
990 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
993 run_tests $ns1 $ns2 10.0.1.1
1001 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1002 run_tests $ns1 $ns2 10.0.1.1
1008 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1010 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1011 run_tests $ns1 $ns2 10.0.1.1
1020 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1021 ip netns exec $ns1 ./pm_nl_ctl limits 0 2
1024 run_tests $ns1 $ns2 10.0.1.1
1030 ip netns exec $ns1 ./pm_nl_ctl limits 0 3
1031 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1035 run_tests $ns1 $ns2 10.0.1.1
1041 ip netns exec $ns1 ./pm_nl_ctl limits 3 3
1042 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1043 ip netns exec $ns1 ./pm_nl_ctl add 10.0.3.1 flags signal
1044 ip netns exec $ns1 ./pm_nl_ctl add 10.0.4.1 flags signal
1046 run_tests $ns1 $ns2 10.0.1.1
1052 ip netns exec $ns1 ./pm_nl_ctl limits 3 3
1053 ip netns exec $ns1 ./pm_nl_ctl add 10.0.12.1 flags signal
1054 ip netns exec $ns1 ./pm_nl_ctl add 10.0.3.1 flags signal
1055 ip netns exec $ns1 ./pm_nl_ctl add 10.0.14.1 flags signal
1057 run_tests $ns1 $ns2 10.0.1.1
1063 ip netns exec $ns1 ./pm_nl_ctl limits 4 4
1065 ip netns exec $ns1 ./pm_nl_ctl add 10.0.1.1 flags signal
1066 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1067 ip netns exec $ns1 ./pm_nl_ctl add 10.0.3.1 flags signal
1068 ip netns exec $ns1 ./pm_nl_ctl add 10.0.4.1 flags signal
1073 run_tests $ns1 $ns2 10.0.1.1
1089 ip netns exec $ns1 ./pm_nl_ctl limits 0 3
1090 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 dev ns1eth2 flags signal
1094 run_tests $ns1 $ns2 10.0.1.1 1
1103 ip netns exec $ns1 ./pm_nl_ctl limits 0 3
1104 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 dev ns1eth2 flags signal
1108 run_tests $ns1 $ns2 10.0.1.1 2
1117 ip netns exec $ns1 ./pm_nl_ctl limits 0 2
1118 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 dev ns1eth2 flags signal
1122 run_tests $ns1 $ns2 10.0.1.1 1
1131 ip netns exec $ns1 ./pm_nl_ctl limits 0 2
1132 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 dev ns1eth2 flags signal
1136 run_tests $ns1 $ns2 10.0.1.1 1
1146 ip netns exec $ns1 ./pm_nl_ctl limits 0 2
1147 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 dev ns1eth2 flags signal
1150 run_tests $ns1 $ns2 10.0.1.1 2
1161 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1163 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1164 run_tests $ns1 $ns2 10.0.1.1 0 0 0 slow
1170 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1172 ip netns exec $ns1 ./pm_nl_ctl add dead:beef:2::1 flags signal
1173 run_tests $ns1 $ns2 dead:beef:1::1 0 0 0 slow
1179 ip netns exec $ns1 ./pm_nl_ctl limits 2 2
1180 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1181 ip netns exec $ns1 ./pm_nl_ctl add 10.0.3.1 flags signal
1183 run_tests $ns1 $ns2 10.0.1.1 0 0 0 least
1189 ip netns exec $ns1 ./pm_nl_ctl limits 2 2
1190 ip netns exec $ns1 ./pm_nl_ctl add 10.0.12.1 flags signal
1191 ip netns exec $ns1 ./pm_nl_ctl add 10.0.3.1 flags signal
1193 run_tests $ns1 $ns2 10.0.1.1 0 0 0 least
1202 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1205 run_tests $ns1 $ns2 10.0.1.1 0 0 -1 slow
1211 ip netns exec $ns1 ./pm_nl_ctl limits 0 2
1215 run_tests $ns1 $ns2 10.0.1.1 0 0 -2 slow
1221 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1222 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1224 run_tests $ns1 $ns2 10.0.1.1 0 -1 0 slow
1231 ip netns exec $ns1 ./pm_nl_ctl limits 0 2
1232 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1235 run_tests $ns1 $ns2 10.0.1.1 0 -1 -1 slow
1242 ip netns exec $ns1 ./pm_nl_ctl limits 0 3
1243 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1247 run_tests $ns1 $ns2 10.0.1.1 0 -1 -2 slow
1254 ip netns exec $ns1 ./pm_nl_ctl limits 3 3
1255 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal id 250
1256 ip netns exec $ns1 ./pm_nl_ctl add 10.0.3.1 flags signal
1257 ip netns exec $ns1 ./pm_nl_ctl add 10.0.4.1 flags signal
1259 run_tests $ns1 $ns2 10.0.1.1 0 -3 0 slow
1266 ip netns exec $ns1 ./pm_nl_ctl limits 3 3
1267 ip netns exec $ns1 ./pm_nl_ctl add 10.0.12.1 flags signal
1268 ip netns exec $ns1 ./pm_nl_ctl add 10.0.3.1 flags signal
1269 ip netns exec $ns1 ./pm_nl_ctl add 10.0.14.1 flags signal
1271 run_tests $ns1 $ns2 10.0.1.1 0 -3 0 slow
1278 ip netns exec $ns1 ./pm_nl_ctl limits 0 3
1279 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1283 run_tests $ns1 $ns2 10.0.1.1 0 -8 -8 slow
1290 ip netns exec $ns1 ./pm_nl_ctl limits 3 3
1295 run_tests $ns1 $ns2 10.0.1.1 0 -8 -8 slow
1301 ip netns exec $ns1 ./pm_nl_ctl limits 3 3
1302 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal id 250
1303 ip netns exec $ns1 ./pm_nl_ctl add 10.0.3.1 flags signal
1304 ip netns exec $ns1 ./pm_nl_ctl add 10.0.4.1 flags signal
1306 run_tests $ns1 $ns2 10.0.1.1 0 -8 -8 slow
1313 ip netns exec $ns1 ./pm_nl_ctl limits 3 3
1314 ip netns exec $ns1 ./pm_nl_ctl add 10.0.12.1 flags signal
1315 ip netns exec $ns1 ./pm_nl_ctl add 10.0.3.1 flags signal
1316 ip netns exec $ns1 ./pm_nl_ctl add 10.0.14.1 flags signal
1318 run_tests $ns1 $ns2 10.0.1.1 0 -8 0 slow
1325 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1328 run_tests $ns1 $ns2 10.0.1.1 0 0 -9 slow
1334 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1335 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1337 run_tests $ns1 $ns2 10.0.1.1 0 -9 0 slow
1347 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1349 run_tests $ns1 $ns2 10.0.1.1 0 0 1 slow
1354 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1356 run_tests $ns1 $ns2 10.0.1.1 0 1 0 slow
1362 ip netns exec $ns1 ./pm_nl_ctl limits 0 2
1364 run_tests $ns1 $ns2 10.0.1.1 0 0 2 slow
1369 ip netns exec $ns1 ./pm_nl_ctl limits 0 2
1371 run_tests $ns1 $ns2 dead:beef:1::1 0 0 2 slow
1376 ip netns exec $ns1 ./pm_nl_ctl limits 0 2
1378 run_tests $ns1 $ns2 dead:beef:1::1 0 2 0 slow
1387 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1390 run_tests $ns1 $ns2 dead:beef:1::1 0 0 0 slow
1395 ip netns exec $ns1 ./pm_nl_ctl add dead:beef:2::1 flags signal
1396 run_tests $ns1 $ns2 dead:beef:1::1 0 0 0 slow
1402 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1403 ip netns exec $ns1 ./pm_nl_ctl add dead:beef:2::1 flags signal
1405 run_tests $ns1 $ns2 dead:beef:1::1 0 0 0 slow
1411 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1412 ip netns exec $ns1 ./pm_nl_ctl add dead:beef:2::1 flags signal
1414 run_tests $ns1 $ns2 dead:beef:1::1 0 -1 0 slow
1421 ip netns exec $ns1 ./pm_nl_ctl limits 0 2
1422 ip netns exec $ns1 ./pm_nl_ctl add dead:beef:2::1 flags signal
1425 run_tests $ns1 $ns2 dead:beef:1::1 0 -1 -1 slow
1435 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1438 run_tests $ns1 $ns2 "::ffff:10.0.1.1"
1443 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1445 ip netns exec $ns1 ./pm_nl_ctl add "::ffff:10.0.2.1" flags signal
1446 run_tests $ns1 $ns2 "::ffff:10.0.1.1"
1452 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1455 run_tests $ns1 $ns2 "::ffff:10.0.1.1"
1460 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1462 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1463 run_tests $ns1 $ns2 "::ffff:10.0.1.1"
1469 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1472 run_tests $ns1 $ns2 10.0.1.1
1477 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1479 ip netns exec $ns1 ./pm_nl_ctl add "::ffff:10.0.2.1" flags signal
1480 run_tests $ns1 $ns2 10.0.1.1
1486 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1489 run_tests $ns1 $ns2 10.0.1.1
1494 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1497 run_tests $ns1 $ns2 10.0.1.1
1502 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1505 run_tests $ns1 $ns2 dead:beef:1::1
1513 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1516 run_tests $ns1 $ns2 10.0.1.1 0 0 0 slow nobackup
1522 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1523 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1525 run_tests $ns1 $ns2 10.0.1.1 0 0 0 slow backup
1535 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1537 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal port 10100
1538 run_tests $ns1 $ns2 10.0.1.1
1544 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal port 10100
1545 ip netns exec $ns1 ./pm_nl_ctl limits 0 2
1548 run_tests $ns1 $ns2 10.0.1.1
1554 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1555 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal port 10100
1557 run_tests $ns1 $ns2 10.0.1.1 0 -1 0 slow
1564 ip netns exec $ns1 ./pm_nl_ctl limits 0 2
1565 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal port 10100
1568 run_tests $ns1 $ns2 10.0.1.1 0 -1 -1 slow
1575 ip netns exec $ns1 ./pm_nl_ctl limits 0 3
1576 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal port 10100
1580 run_tests $ns1 $ns2 10.0.1.1 0 -8 -8 slow
1587 ip netns exec $ns1 ./pm_nl_ctl limits 2 2
1588 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal port 10100
1589 ip netns exec $ns1 ./pm_nl_ctl add 10.0.3.1 flags signal port 10100
1591 run_tests $ns1 $ns2 10.0.1.1
1597 ip netns exec $ns1 ./pm_nl_ctl limits 2 2
1598 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal port 10100
1599 ip netns exec $ns1 ./pm_nl_ctl add 10.0.3.1 flags signal port 10101
1601 run_tests $ns1 $ns2 10.0.1.1
1610 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1613 run_tests $ns1 $ns2 10.0.1.1
1618 ip netns exec $ns1 ./pm_nl_ctl limits 0 2
1622 run_tests $ns1 $ns2 10.0.1.1
1627 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1631 run_tests $ns1 $ns2 10.0.1.1
1636 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1638 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1639 run_tests $ns1 $ns2 10.0.1.1
1645 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1646 ip netns exec $ns1 ./pm_nl_ctl limits 0 2
1649 run_tests $ns1 $ns2 10.0.1.1
1655 ip netns exec $ns1 ./pm_nl_ctl limits 0 3
1656 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1660 run_tests $ns1 $ns2 10.0.1.1
1669 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1671 run_tests $ns1 $ns2 10.0.1.1
1676 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1678 run_tests $ns1 $ns2 10.0.1.1
1683 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1685 run_tests $ns1 $ns2 10.0.1.1
1690 ip netns exec $ns1 ./pm_nl_ctl limits 0 1
1692 run_tests $ns1 $ns2 10.0.1.1
1700 ip netns exec $ns1 ./pm_nl_ctl limits 1 1
1703 run_tests $ns1 $ns2 10.0.1.1
1708 ip netns exec $ns1 ./pm_nl_ctl limits 1 1
1711 run_tests $ns1 $ns2 10.0.1.1
1717 ip netns exec $ns1 ./pm_nl_ctl limits 1 1
1719 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1720 run_tests $ns1 $ns2 10.0.1.1
1727 ip netns exec $ns1 ./pm_nl_ctl limits 1 1
1729 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1730 run_tests $ns1 $ns2 10.0.1.1
1736 ip netns exec $ns1 ./pm_nl_ctl limits 2 2
1738 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1740 run_tests $ns1 $ns2 10.0.1.1
1745 ip netns exec $ns1 ./pm_nl_ctl limits 2 2
1747 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1749 run_tests $ns1 $ns2 10.0.1.1
1759 ip netns exec $ns1 ./pm_nl_ctl limits 0 4
1763 run_tests $ns1 $ns2 10.0.1.1 0 1 0 slow
1771 ip netns exec $ns1 ./pm_nl_ctl limits 1 3
1773 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1774 run_tests $ns1 $ns2 10.0.1.1 0 0 fullmesh_1 slow
1782 ip netns exec $ns1 ./pm_nl_ctl limits 2 5
1784 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1785 run_tests $ns1 $ns2 10.0.1.1 0 0 fullmesh_2 slow
1794 ip netns exec $ns1 ./pm_nl_ctl limits 2 4
1796 ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal
1797 run_tests $ns1 $ns2 10.0.1.1 0 0 fullmesh_2 slow