The bandwidth testing application
bwtester enables a variety of bandwidth tests on the SCION network. Installation and usage are described below. Documentation of the code and protocol are described in the bwtester README.
sudo apt install scion-apps-bwtester
See Installation for details.
You can run the bandwidth test client application as follows:
scion-bwtestclient -c 17-ffaa:1:89,[127.0.0.1]:0 -s <server-address>
-s flag specifies the bandwidth server. Sample servers are installed at the various locations in the SCIONLab network, see below.
-c specifies your local address. The
-c flag can be omitted if a SCION localhost address is configured. To do this, add your SCION host to the
/etc/hosts file. Below you can see an example:
# regular IPv4 hosts # .... # regular IPv6 hosts # .... # SCION hosts 17-ffaa:0:1,[192.168.1.1] localhost
The application supports specification of the test duration (up to 10 seconds), the packet size to be used (at least 4 bytes), the total number of packets that will be sent, and the target bandwidth. For instance,
5,100,10,1600bps specifies that 10 packets of size 100 bytes will be sent over 5 seconds, resulting in a bandwidth of 1600bps. The question mark
? character can be used as wildcard for any of these parameters. Its value is then computed according to the other parameters. The parameters for the test in the client-to-server direction are specified with
-cs, and the server-to-client direction with
-sc. So for instance to send 1 Mbps for 10 seconds from the client to the server, and 10 Mbps from the server to the client, you can use this command:
scion-bwtestclient -s <server-address> -cs 10,1000,1250,1Mbps -sc 10,1000,12500,10Mbps
For more information run the application without arguments to print its usage.
bwtestclient is also available via the webapp.
The server is started as follows:
scion-bwtestserver -s 17-ffaa:0:1102,[220.127.116.11]:30100 &
-s specifies your server address. Again, it can be omitted by specifying a SCION localhost like above. The server then uses localhost to bind to. In this case, the port can be specified with the
scion-bwtestserver -p 30100 &
There are multiple bandwidth servers deployed inside the SCIONLab infrastructure. Some of them can be reached using the following addresses
16-ffaa:0:1001,[172.31.0.23]:30100 16-ffaa:0:1002,[172.31.43.7]:30100 16-ffaa:0:1003,[172.31.19.144]:30100 16-ffaa:0:1004,[172.31.0.28]:30100 16-ffaa:0:1005,[172.31.26.94]:30100 16-ffaa:0:1007,[172.31.21.177]:30100 17-ffaa:0:1102,[18.104.22.168]:30100 17-ffaa:0:1102,[22.214.171.124]:30100 17-ffaa:0:1102,[126.96.36.199]:30100 17-ffaa:0:1107,[188.8.131.52]:30100 17-ffaa:0:1108,[184.108.40.206]:30100 17-ffaa:0:1108,[220.127.116.11]:30100 18-ffaa:0:1201,[18.104.22.168]:30100 18-ffaa:0:1201,[22.214.171.124]:30100 18-ffaa:0:1206,[126.96.36.199]:30100 19-ffaa:0:1302,[192.168.1.1]:30100 19-ffaa:0:1302,[192.168.1.2]:30100 19-ffaa:0:1303,[188.8.131.52]:30100 19-ffaa:0:1309,[184.108.40.206]:30100 20-ffaa:0:1401,[220.127.116.11]:30100 20-ffaa:0:1404,[18.104.22.168]:30100 26-ffaa:0:2001,[22.214.171.124]:30100 26-ffaa:0:2002,[126.96.36.199]:30100