Skip to content

Instantly share code, notes, and snippets.

@minyk
Created July 6, 2017 05:16
Show Gist options
  • Save minyk/afc3e46fb932c81049ab4693df73cd2d to your computer and use it in GitHub Desktop.
Save minyk/afc3e46fb932c81049ab4693df73cd2d to your computer and use it in GitHub Desktop.
DC/OS Overlay Network Iperf3 Test

Iperf3 test on Opensource DC/OS 1.9.0

Docker image

  • Built with alpine linux: See Dockerfile and entrypoint.sh

Marathon App definition

{
  "id": "/drake/iperf3",
  "instances": 1,
  "cpus": 1,
  "mem": 128,
  "container": {
    "type": "DOCKER",
    "docker": {
      "image": "minyk/iperf3:build",
      "network": "USER",
      "portMappings": [
        {
          "containerPort": 5201,
          "servicePort": 10181,
          "name": "iperf"
        }
      ],
      "privileged": false,
      "forcePullImage": true
    }
  },
  "ipAddress": {
    "networkName": "dev"
  },
  "labels": {
    "HAPROXY_GROUP": "external"
  }
}

Test

  • Test Duration: 10 seconds
Client location Transfer Bandwidth Retr
Outside of DC/OS 10.5 MBytes 8.78 Mbits/sec
DC/OS Container, Different agent 899 KBytes 736 Kbits/sec 211
DC/OS Container, Same agent 39.0 GBytes 33.5 Gbits/sec 82
FROM alpine:3.6
RUN set -ex && \
apk upgrade --update && \
apk add --no-cache --update libstdc++ curl ca-certificates bash iperf3
ADD entrypoint.sh /entrypoint.sh
ENV IPERF_MODE server
ENV IPERF_PORT 5201
ENV IPERF_TARGET 127.0.0.1
ENTRYPOINT ["/entrypoint.sh"]
#!/bin/bash
if [[ "${IPERF_MODE}" == "server" ]];
then
iperf3 -s -p ${IPERF_PORT}
else
iperf3 -c ${IPERF_TARGET} -p ${IPERF_PORT}
iperf3 -c ${IPERF_TARGET} -p ${IPERF_PORT} -R
fi
Registered docker executor on 192.10.250.235
Starting task drake_iperf3.bc10db68-6201-11e7-b70d-2eabedf65fb0
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 44.128.0.5, port 36842
[ 5] local 9.0.14.3 port 5201 connected to 44.128.0.5 port 36844
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-1.00 sec 882 KBytes 7.23 Mbits/sec
[ 5] 1.00-2.00 sec 902 KBytes 7.39 Mbits/sec
[ 5] 2.00-3.00 sec 974 KBytes 7.98 Mbits/sec
[ 5] 3.00-4.00 sec 805 KBytes 6.59 Mbits/sec
[ 5] 4.00-5.00 sec 921 KBytes 7.54 Mbits/sec
[ 5] 5.00-6.00 sec 1.04 MBytes 8.76 Mbits/sec
[ 5] 6.00-7.00 sec 911 KBytes 7.46 Mbits/sec
[ 5] 7.00-8.00 sec 913 KBytes 7.48 Mbits/sec
[ 5] 8.00-9.00 sec 841 KBytes 6.89 Mbits/sec
[ 5] 9.00-10.00 sec 966 KBytes 7.91 Mbits/sec
[ 5] 10.00-10.03 sec 31.1 KBytes 8.56 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-10.03 sec 0.00 Bytes 0.00 bits/sec sender
[ 5] 0.00-10.03 sec 9.00 MBytes 7.53 Mbits/sec receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 44.128.0.5, port 36862
[ 5] local 9.0.14.3 port 5201 connected to 44.128.0.5 port 36864
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 5] 0.00-1.00 sec 120 KBytes 984 Kbits/sec 18 2.83 KBytes
[ 5] 1.00-2.00 sec 0.00 Bytes 0.00 bits/sec 5 2.83 KBytes
[ 5] 2.00-3.00 sec 0.00 Bytes 0.00 bits/sec 5 2.83 KBytes
[ 5] 3.00-4.00 sec 0.00 Bytes 0.00 bits/sec 5 2.83 KBytes
[ 5] 4.00-5.00 sec 0.00 Bytes 0.00 bits/sec 5 2.83 KBytes
[ 5] 5.00-6.00 sec 63.6 KBytes 522 Kbits/sec 43 5.66 KBytes
[ 5] 6.00-7.00 sec 646 KBytes 5.29 Mbits/sec 129 2.83 KBytes
[ 5] 7.00-8.00 sec 871 KBytes 7.14 Mbits/sec 172 2.83 KBytes
[ 5] 8.00-9.00 sec 792 KBytes 6.49 Mbits/sec 162 4.24 KBytes
[ 5] 9.00-10.00 sec 871 KBytes 7.14 Mbits/sec 170 2.83 KBytes
[ 5] 10.00-10.03 sec 0.00 Bytes 0.00 bits/sec 5 2.83 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 5] 0.00-10.03 sec 3.29 MBytes 2.75 Mbits/sec 719 sender
[ 5] 0.00-10.03 sec 0.00 Bytes 0.00 bits/sec receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 9.0.10.6, port 52168
[ 5] local 9.0.14.3 port 5201 connected to 9.0.10.6 port 52170
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-1.00 sec 124 KBytes 1.01 Mbits/sec
[ 5] 1.00-2.00 sec 7.07 KBytes 57.9 Kbits/sec
[ 5] 2.00-3.00 sec 72.1 KBytes 591 Kbits/sec
[ 5] 3.00-4.00 sec 260 KBytes 2.13 Mbits/sec
[ 5] 4.00-5.00 sec 87.7 KBytes 718 Kbits/sec
[ 5] 5.00-6.00 sec 5.66 KBytes 46.3 Kbits/sec
[ 5] 6.00-7.00 sec 32.5 KBytes 266 Kbits/sec
[ 5] 7.00-8.00 sec 24.0 KBytes 197 Kbits/sec
[ 5] 8.00-9.00 sec 5.66 KBytes 46.3 Kbits/sec
[ 5] 9.00-10.00 sec 29.7 KBytes 243 Kbits/sec
[ 5] 10.00-10.03 sec 0.00 Bytes 0.00 bits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-10.03 sec 0.00 Bytes 0.00 bits/sec sender
[ 5] 0.00-10.03 sec 648 KBytes 529 Kbits/sec receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 9.0.10.6, port 52466
[ 5] local 9.0.14.3 port 5201 connected to 9.0.10.6 port 52468
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 5] 0.00-1.00 sec 797 KBytes 6.53 Mbits/sec 78 2.83 KBytes
[ 5] 1.00-2.00 sec 209 KBytes 1.71 Mbits/sec 46 2.83 KBytes
[ 5] 2.00-3.00 sec 209 KBytes 1.71 Mbits/sec 55 4.24 KBytes
[ 5] 3.00-4.00 sec 209 KBytes 1.71 Mbits/sec 55 2.83 KBytes
[ 5] 4.00-5.00 sec 209 KBytes 1.71 Mbits/sec 44 2.83 KBytes
[ 5] 5.00-6.00 sec 419 KBytes 3.43 Mbits/sec 55 4.24 KBytes
[ 5] 6.00-7.00 sec 209 KBytes 1.71 Mbits/sec 49 2.83 KBytes
[ 5] 7.00-8.00 sec 209 KBytes 1.71 Mbits/sec 49 4.24 KBytes
[ 5] 8.00-9.00 sec 209 KBytes 1.71 Mbits/sec 42 4.24 KBytes
[ 5] 9.00-10.00 sec 209 KBytes 1.71 Mbits/sec 56 2.83 KBytes
[ 5] 10.00-10.03 sec 0.00 Bytes 0.00 bits/sec 2 2.83 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 5] 0.00-10.03 sec 2.82 MBytes 2.36 Mbits/sec 531 sender
[ 5] 0.00-10.03 sec 0.00 Bytes 0.00 bits/sec receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 9.0.14.6, port 34408
[ 5] local 9.0.14.3 port 5201 connected to 9.0.14.6 port 34410
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-1.00 sec 3.72 GBytes 31.9 Gbits/sec
[ 5] 1.00-2.00 sec 3.87 GBytes 33.2 Gbits/sec
[ 5] 2.00-3.00 sec 3.95 GBytes 34.0 Gbits/sec
[ 5] 3.00-4.00 sec 3.93 GBytes 33.7 Gbits/sec
[ 5] 4.00-5.00 sec 3.90 GBytes 33.5 Gbits/sec
[ 5] 5.00-6.00 sec 3.92 GBytes 33.7 Gbits/sec
[ 5] 6.00-7.00 sec 3.93 GBytes 33.8 Gbits/sec
[ 5] 7.00-8.00 sec 3.94 GBytes 33.9 Gbits/sec
[ 5] 8.00-9.00 sec 3.87 GBytes 33.3 Gbits/sec
[ 5] 9.00-10.00 sec 3.81 GBytes 32.7 Gbits/sec
[ 5] 10.00-10.03 sec 136 MBytes 32.8 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-10.03 sec 0.00 Bytes 0.00 bits/sec sender
[ 5] 0.00-10.03 sec 39.0 GBytes 33.4 Gbits/sec receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 9.0.14.6, port 34466
[ 5] local 9.0.14.3 port 5201 connected to 9.0.14.6 port 34468
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 5] 0.00-1.00 sec 3.82 GBytes 32.8 Gbits/sec 32 1014 KBytes
[ 5] 1.00-2.00 sec 3.86 GBytes 33.2 Gbits/sec 15 1014 KBytes
[ 5] 2.00-3.00 sec 4.00 GBytes 34.4 Gbits/sec 0 1014 KBytes
[ 5] 3.00-4.00 sec 3.86 GBytes 33.1 Gbits/sec 0 1014 KBytes
[ 5] 4.00-5.00 sec 3.90 GBytes 33.5 Gbits/sec 0 1014 KBytes
[ 5] 5.00-6.00 sec 3.90 GBytes 33.5 Gbits/sec 0 1014 KBytes
[ 5] 6.00-7.00 sec 3.89 GBytes 33.4 Gbits/sec 0 1014 KBytes
[ 5] 7.00-8.00 sec 3.92 GBytes 33.7 Gbits/sec 0 1014 KBytes
[ 5] 8.00-9.00 sec 3.90 GBytes 33.5 Gbits/sec 0 1014 KBytes
[ 5] 9.00-10.00 sec 3.91 GBytes 33.6 Gbits/sec 0 1014 KBytes
[ 5] 10.00-10.03 sec 131 MBytes 33.2 Gbits/sec 0 1014 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 5] 0.00-10.03 sec 39.1 GBytes 33.5 Gbits/sec 47 sender
[ 5] 0.00-10.03 sec 0.00 Bytes 0.00 bits/sec receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 9.0.10.6, port 53676
[ 5] local 9.0.14.3 port 5201 connected to 9.0.10.6 port 53678
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-1.00 sec 162 KBytes 1.33 Mbits/sec
[ 5] 1.00-2.00 sec 53.7 KBytes 440 Kbits/sec
[ 5] 2.00-3.00 sec 28.3 KBytes 232 Kbits/sec
[ 5] 3.00-4.00 sec 5.66 KBytes 46.3 Kbits/sec
[ 5] 4.00-5.00 sec 48.1 KBytes 394 Kbits/sec
[ 5] 5.00-6.00 sec 7.07 KBytes 57.9 Kbits/sec
[ 5] 6.00-7.00 sec 5.66 KBytes 46.3 Kbits/sec
[ 5] 7.00-8.00 sec 7.07 KBytes 57.9 Kbits/sec
[ 5] 8.00-9.00 sec 7.07 KBytes 57.9 Kbits/sec
[ 5] 9.00-10.00 sec 5.66 KBytes 46.4 Kbits/sec
[ 5] 10.00-10.01 sec 0.00 Bytes 0.00 bits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-10.01 sec 0.00 Bytes 0.00 bits/sec sender
[ 5] 0.00-10.01 sec 330 KBytes 270 Kbits/sec receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 9.0.10.6, port 53976
[ 5] local 9.0.14.3 port 5201 connected to 9.0.10.6 port 53982
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 5] 0.00-1.00 sec 307 KBytes 2.51 Mbits/sec 30 4.24 KBytes
[ 5] 1.00-2.00 sec 301 KBytes 2.47 Mbits/sec 29 2.83 KBytes
[ 5] 2.00-3.00 sec 157 KBytes 1.29 Mbits/sec 55 4.24 KBytes
[ 5] 3.00-4.00 sec 157 KBytes 1.29 Mbits/sec 31 2.83 KBytes
[ 5] 4.00-5.00 sec 314 KBytes 2.57 Mbits/sec 47 7.07 KBytes
[ 5] 5.00-6.00 sec 0.00 Bytes 0.00 bits/sec 5 2.83 KBytes
[ 5] 6.00-7.00 sec 0.00 Bytes 0.00 bits/sec 5 1.41 KBytes
[ 5] 7.00-8.00 sec 0.00 Bytes 0.00 bits/sec 4 2.83 KBytes
[ 5] 8.00-9.00 sec 0.00 Bytes 0.00 bits/sec 5 2.83 KBytes
[ 5] 9.00-10.00 sec 0.00 Bytes 0.00 bits/sec 5 2.83 KBytes
[ 5] 10.00-10.04 sec 0.00 Bytes 0.00 bits/sec 0 2.83 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 5] 0.00-10.04 sec 1.21 MBytes 1.01 Mbits/sec 216 sender
[ 5] 0.00-10.04 sec 0.00 Bytes 0.00 bits/sec receiver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment