Lines Matching refs:ns1
5 ns1="ns1-$rndh"
29 for netns in "$ns1" "$ns2" "$ns3";do
59 for i in "$ns1" "$ns2" "$ns3";do
64 ip link add ns1eth1 netns "$ns1" type veth peer name ns2eth1 netns "$ns2"
65 ip link add ns1eth2 netns "$ns1" type veth peer name ns2eth2 netns "$ns2"
68 ip -net "$ns1" addr add 10.0.1.1/24 dev ns1eth1
69 ip -net "$ns1" addr add dead:beef:1::1/64 dev ns1eth1 nodad
70 ip -net "$ns1" link set ns1eth1 up mtu 1500
71 ip -net "$ns1" route add default via 10.0.1.2
72 ip -net "$ns1" route add default via dead:beef:1::2
74 ip -net "$ns1" addr add 10.0.2.1/24 dev ns1eth2
75 ip -net "$ns1" addr add dead:beef:2::1/64 dev ns1eth2 nodad
76 ip -net "$ns1" link set ns1eth2 up mtu 1500
77 ip -net "$ns1" route add default via 10.0.2.2 metric 101
78 ip -net "$ns1" route add default via dead:beef:2::2 metric 101
80 ip netns exec "$ns1" ./pm_nl_ctl limits 1 1
81 ip netns exec "$ns1" ./pm_nl_ctl add 10.0.2.1 dev ns1eth2 flags subflow
82 ip netns exec "$ns1" sysctl -q net.ipv4.conf.all.rp_filter=0
154 ip netns exec ${ns1} tcpdump ${capopt} -w "${capfile}-connector.pcap" >> "${capout}" 2>&1 &
167 ip netns exec ${ns1} ./mptcp_connect -jt $timeout -p $port 10.0.3.3 < "$cin" > "$cout" &
205 echo -e "\nnetns ${ns1} socket stat for $port:" 1>&2
206 ip netns exec ${ns1} ss -nita 1>&2 -o "dport = :$port"
229 tc -n $ns1 qdisc del dev $dev root >/dev/null 2>&1
234 tc -n $ns1 qdisc add dev ns1eth1 root netem rate ${rate1}mbit $delay1
235 tc -n $ns1 qdisc add dev ns1eth2 root netem rate ${rate2}mbit $delay2