IPv6 boost

Why

To boost the usage of IPv6, we have to cheat.

How

plan A

Use nping to send packages to another to increase the flow.

#! /bin/bash

NUM=3600
IP = 2408:8640:1:2::3

if ! which nping &>/dev/null
then
    echo "Install nmap first."
    exit 1
fi

while true
do
    nping -6 -q --udp --data-length 65400 --count $NUM --rate $NUM $IP
done

plan B

Use iperf3 to send packages to another to increase the flow.

#!/bin/bash

if ! command -v iperf3 &> /dev/null; then
    echo "## iperf3 not dound, installing..."
    sudo apt update
    sudo apt install -y iperf3
else
    echo "## iperf3 installed, running..."
fi

while true; do
    echo "## start iperf3..."
    iperf3 -c 2408:8640:1:2::3 -p 5201 -b 2G -t 86400 -P 2

    PID=$!
    wait $PID
    echo "## iperf3 exited, restarting..."
    sleep 5  # wait 5 sec
done

留下评论

您的邮箱地址不会被公开。 必填项已用 * 标注