2020-10-18 13:06:40 +01:00
|
|
|
{
|
|
|
|
"cells": [
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 1,
|
|
|
|
"metadata": {
|
|
|
|
"collapsed": true
|
|
|
|
},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"import os\n",
|
|
|
|
"import ipaddress\n",
|
|
|
|
"\n",
|
|
|
|
"import runners\n",
|
|
|
|
"from structure import Bridge\n",
|
|
|
|
"from structure import SpeedTestServer, RemoteServer, LocalServer\n",
|
|
|
|
"from structure import Interface, IpMethod\n",
|
|
|
|
"\n",
|
|
|
|
"%load_ext dotenv\n",
|
|
|
|
"%dotenv"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 2,
|
2020-11-02 17:21:50 +00:00
|
|
|
"metadata": {
|
|
|
|
"pycharm": {
|
|
|
|
"name": "#%%\n"
|
|
|
|
}
|
|
|
|
},
|
2020-11-01 18:35:10 +00:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"ename": "NameError",
|
|
|
|
"evalue": "name 'runners' is not defined",
|
|
|
|
"output_type": "error",
|
|
|
|
"traceback": [
|
|
|
|
"\u001B[0;31m---------------------------------------------------------------------------\u001B[0m",
|
|
|
|
"\u001B[0;31mNameError\u001B[0m Traceback (most recent call last)",
|
|
|
|
"\u001B[0;32m<ipython-input-2-5781debf60ce>\u001B[0m in \u001B[0;36m<module>\u001B[0;34m\u001B[0m\n\u001B[0;32m----> 1\u001B[0;31m runner = runners.ProxmoxRunner(\n\u001B[0m\u001B[1;32m 2\u001B[0m \u001B[0mhost\u001B[0m\u001B[0;34m=\u001B[0m\u001B[0mos\u001B[0m\u001B[0;34m.\u001B[0m\u001B[0mgetenv\u001B[0m\u001B[0;34m(\u001B[0m\u001B[0;34m'PROXMOX_HOST'\u001B[0m\u001B[0;34m)\u001B[0m\u001B[0;34m,\u001B[0m\u001B[0;34m\u001B[0m\u001B[0;34m\u001B[0m\u001B[0m\n\u001B[1;32m 3\u001B[0m \u001B[0mnode\u001B[0m\u001B[0;34m=\u001B[0m\u001B[0mos\u001B[0m\u001B[0;34m.\u001B[0m\u001B[0mgetenv\u001B[0m\u001B[0;34m(\u001B[0m\u001B[0;34m'PROXMOX_NODE'\u001B[0m\u001B[0;34m)\u001B[0m\u001B[0;34m,\u001B[0m\u001B[0;34m\u001B[0m\u001B[0;34m\u001B[0m\u001B[0m\n\u001B[1;32m 4\u001B[0m \u001B[0muser\u001B[0m\u001B[0;34m=\u001B[0m\u001B[0mos\u001B[0m\u001B[0;34m.\u001B[0m\u001B[0mgetenv\u001B[0m\u001B[0;34m(\u001B[0m\u001B[0;34m'PROXMOX_USER'\u001B[0m\u001B[0;34m)\u001B[0m\u001B[0;34m,\u001B[0m\u001B[0;34m\u001B[0m\u001B[0;34m\u001B[0m\u001B[0m\n\u001B[1;32m 5\u001B[0m \u001B[0mtoken_name\u001B[0m\u001B[0;34m=\u001B[0m\u001B[0mos\u001B[0m\u001B[0;34m.\u001B[0m\u001B[0mgetenv\u001B[0m\u001B[0;34m(\u001B[0m\u001B[0;34m'PROXMOX_TOKEN_NAME'\u001B[0m\u001B[0;34m)\u001B[0m\u001B[0;34m,\u001B[0m\u001B[0;34m\u001B[0m\u001B[0;34m\u001B[0m\u001B[0m\n",
|
|
|
|
"\u001B[0;31mNameError\u001B[0m: name 'runners' is not defined"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
2020-10-18 13:06:40 +01:00
|
|
|
"source": [
|
|
|
|
"runner = runners.ProxmoxRunner(\n",
|
|
|
|
" host=os.getenv('PROXMOX_HOST'),\n",
|
|
|
|
" node=os.getenv('PROXMOX_NODE'),\n",
|
|
|
|
" user=os.getenv('PROXMOX_USER'),\n",
|
|
|
|
" token_name=os.getenv('PROXMOX_TOKEN_NAME'),\n",
|
|
|
|
" token_value=os.getenv('PROXMOX_TOKEN_VALUE'),\n",
|
|
|
|
"\n",
|
|
|
|
" template_id=9000,\n",
|
|
|
|
" initial_vm_id=21002,\n",
|
|
|
|
"\n",
|
|
|
|
" internet_bridge='vmbr2',\n",
|
|
|
|
"\n",
|
|
|
|
" management_bridge='vmbr4',\n",
|
|
|
|
" management_initial_ip=ipaddress.ip_address('10.21.12.2'),\n",
|
|
|
|
")"
|
2020-11-02 17:21:50 +00:00
|
|
|
]
|
2020-10-18 13:06:40 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 5,
|
2020-11-02 17:21:50 +00:00
|
|
|
"metadata": {
|
|
|
|
"pycharm": {
|
|
|
|
"name": "#%%\n"
|
|
|
|
}
|
|
|
|
},
|
2020-10-18 13:06:40 +01:00
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"g_st = SpeedTestServer([Interface(IpMethod.Auto4)])\n",
|
|
|
|
"l_st = SpeedTestServer([Interface(IpMethod.Dhcp4)])\n",
|
|
|
|
"\n",
|
|
|
|
"rs = RemoteServer([Interface(IpMethod.Auto4)])\n",
|
|
|
|
"ls = LocalServer([\n",
|
|
|
|
" Interface(IpMethod.Auto4, limit=1),\n",
|
|
|
|
" Interface(IpMethod.Auto4, limit=1),\n",
|
|
|
|
"], l_st)\n",
|
|
|
|
"\n",
|
|
|
|
"top_level_bridge = Bridge(*[\n",
|
|
|
|
" g_st.get_interfaces()[0],\n",
|
|
|
|
" rs.get_interfaces()[0],\n",
|
|
|
|
" *ls.get_interfaces()[0:2],\n",
|
|
|
|
"])\n",
|
|
|
|
"runner.build(top_level_bridge)\n",
|
|
|
|
"\n",
|
|
|
|
"# Test from the client to the global network via the proxy\n",
|
|
|
|
"g_st.server()\n",
|
|
|
|
"l_st.client(rs.get_interfaces()[0])\n",
|
|
|
|
"\n",
|
|
|
|
"# Test from the global network to the client via the proxy\n",
|
|
|
|
"g_st.server()\n",
|
|
|
|
"l_st.client(rs.get_interfaces()[0])\n",
|
|
|
|
"\n",
|
|
|
|
"# Clean up\n",
|
|
|
|
"runner.teardown()"
|
2020-11-02 17:21:50 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 60,
|
2020-10-18 13:06:40 +01:00
|
|
|
"metadata": {
|
|
|
|
"pycharm": {
|
|
|
|
"name": "#%%\n"
|
|
|
|
}
|
2020-11-02 17:21:50 +00:00
|
|
|
},
|
2020-11-01 18:35:10 +00:00
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"from itertools import cycle\n",
|
|
|
|
"import matplotlib.pyplot as plt\n",
|
|
|
|
"\n",
|
2020-11-02 17:21:50 +00:00
|
|
|
"def plot_iperf_results(data, title, events=None, filename=None, start_at_zero=True):\n",
|
|
|
|
" cycol = cycle('brgy')\n",
|
2020-11-01 18:35:10 +00:00
|
|
|
"\n",
|
|
|
|
" fig = plt.figure()\n",
|
|
|
|
" axes = fig.add_axes([0,0,1,1])\n",
|
|
|
|
"\n",
|
2020-11-02 17:21:50 +00:00
|
|
|
" axes.set_title(title, pad=20.0)\n",
|
2020-11-01 18:35:10 +00:00
|
|
|
" axes.set_xlabel('Time (s)')\n",
|
|
|
|
" axes.set_ylabel('Throughput (Mbps)')\n",
|
|
|
|
"\n",
|
|
|
|
" for k, v in data.items():\n",
|
2020-11-02 17:21:50 +00:00
|
|
|
" intervals = [x['sum'] for x in v['intervals'] if not x['sum']['omitted']]\n",
|
|
|
|
"\n",
|
|
|
|
" x_axis = [((x['start'] + x['end'])/2) for x in intervals]\n",
|
|
|
|
" y_axis = [x['bits_per_second']/1e6 for x in intervals]\n",
|
2020-11-01 18:35:10 +00:00
|
|
|
" axes.plot(x_axis, y_axis, next(cycol), label=k)\n",
|
|
|
|
"\n",
|
|
|
|
" legend = axes.legend()\n",
|
|
|
|
"\n",
|
2020-11-02 17:21:50 +00:00
|
|
|
" if start_at_zero:\n",
|
|
|
|
" axes.set_ylim(bottom=0)\n",
|
|
|
|
" axes.set_xlim(left=0)\n",
|
|
|
|
"\n",
|
2020-11-01 18:35:10 +00:00
|
|
|
" if events is not None:\n",
|
|
|
|
" for k, v in events.items():\n",
|
|
|
|
" axes.axvline(k, linestyle='--', color='grey', ymax=0.92)\n",
|
2020-11-02 17:21:50 +00:00
|
|
|
" axes.annotate(v, (k, 1.02), xycoords=axes.get_xaxis_transform(), ha='center')\n",
|
2020-11-01 18:35:10 +00:00
|
|
|
"\n",
|
|
|
|
" if filename is not None:\n",
|
|
|
|
" fig.savefig(filename, bbox_extra_artists=(legend,), bbox_inches='tight', pad_inches=0.3)"
|
2020-11-02 17:21:50 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2020-11-02 17:23:42 +00:00
|
|
|
"execution_count": 71,
|
2020-11-01 18:35:10 +00:00
|
|
|
"metadata": {
|
|
|
|
"pycharm": {
|
|
|
|
"name": "#%%\n"
|
|
|
|
}
|
2020-11-02 17:21:50 +00:00
|
|
|
},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"# Manual results\n",
|
|
|
|
"# sudo iperf3 -c X.X.X.X -t 30 -O 5 -J\n",
|
|
|
|
"\n",
|
|
|
|
"import json\n",
|
|
|
|
"\n",
|
|
|
|
"def load_json_from_file(path):\n",
|
|
|
|
" with open(path, 'r') as f:\n",
|
|
|
|
" return json.loads(f.read())\n",
|
|
|
|
"\n",
|
|
|
|
"One1MBStraight = load_json_from_file('manual/One1MBStraight.json')\n",
|
|
|
|
"One2MBStraight = load_json_from_file('manual/One2MBStraight.json')\n",
|
|
|
|
"\n",
|
|
|
|
"Two1MBAggregate = load_json_from_file('manual/Two1MBAggregate.json')\n",
|
|
|
|
"Two2MBAggregate = load_json_from_file('manual/Two2MBAggregate.json')\n",
|
|
|
|
"\n",
|
|
|
|
"One1MBOne2MBAggregate = load_json_from_file('manual/One1MBOne2MBAggregate.json')\n",
|
|
|
|
"\n",
|
|
|
|
"Two2MBAggregateKillOneRecoverOne = load_json_from_file('manual/Two2MBAggregateKillOneRecoverOne.json')\n"
|
|
|
|
]
|
2020-11-01 18:35:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2020-11-02 17:23:42 +00:00
|
|
|
"execution_count": 72,
|
2020-11-02 17:21:50 +00:00
|
|
|
"metadata": {
|
|
|
|
"pycharm": {
|
|
|
|
"name": "#%%\n"
|
|
|
|
}
|
|
|
|
},
|
2020-11-01 18:35:10 +00:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": "<Figure size 432x288 with 1 Axes>",
|
2020-11-02 17:21:50 +00:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAeAAAAFrCAYAAAAJo1qOAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAAA9qElEQVR4nO3dd5hU5dnH8e/NLh2kCBoNGlCB0JaliBosKKjYS0wEUVTsxqhJVPCNYjckr7E3eNXYwdiTWGJFDLFQRQQVCyiKVEGQurv3+8czszu7zO7OlpmzzP4+1zXXzJxz5pz7lDn3eZ5THnN3REREJLMaRB2AiIhIfaQELCIiEgElYBERkQgoAYuIiERACVhERCQCSsAiIiIRUAKWrGRmu5rZOjPLqQOxLDSzIeX0G2Rmi+tSDGb2kZkNqmBcL5nZqbUf5VbTcTPbo5x+k83szHTHUN1pmdn/mNl9FfQvd31Ud5qy7cmNOgDJTma2ENgRKAR+BF4CLnD3dZmYvrt/BbTIxLSyjbv3iH82s6uBPdz95IT+h0UR17bE3W9Mddhky1jqB5WAJZ2OcvcWQF+gP3BF2QHMTAeBIlIvKQFL2rn7N4QScE8orlr8jZktABbEup1lZp+Z2Soz+4eZ7Rzrfo+ZPR0fl5n92cxet2CumR2V0K+hma0wsz5m1jE2ndxYv8lmdp2ZTTWztWb2ipm1S/jtSDNb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2vTxx+6XXOI+YoT74MHuPXq4b799WB7JXm3auHfs6L7LLmF9tW/v3rat+3bbuTdr5t6okXuDBlv/7rLL3AsKop7b5ObOdR82LKynZs3cL73UfenS6o+vsND
|
2020-11-01 18:35:10 +00:00
|
|
|
},
|
|
|
|
"metadata": {
|
|
|
|
"needs_background": "light"
|
|
|
|
},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"plot_iperf_results(\n",
|
2020-11-02 17:21:50 +00:00
|
|
|
" {\n",
|
|
|
|
" '1x1MBps connection (not proxied)': One1MBStraight,\n",
|
|
|
|
" '2x1MBps connections (proxied)': Two1MBAggregate,\n",
|
|
|
|
" },\n",
|
|
|
|
" 'Proxying adds additional bandwidth',\n",
|
2020-11-01 18:35:10 +00:00
|
|
|
")"
|
2020-11-02 17:21:50 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2020-11-02 17:23:42 +00:00
|
|
|
"execution_count": 73,
|
2020-11-02 17:21:50 +00:00
|
|
|
"metadata": {
|
|
|
|
"pycharm": {
|
|
|
|
"name": "#%%\n"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": "<Figure size 432x288 with 1 Axes>",
|
2020-11-02 17:23:42 +00:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAeAAAAFrCAYAAAAJo1qOAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAABfwklEQVR4nO3deXxU1fn48c8zk8lCQtjDvgsYlhARWYogivta1LrhinvrVr+12kUrrVrsr3WpikvV1hW14lIrte6iWBcQBGQXEgRCIAECIctMZs7vj3tnMplMwiSZJZk879drXnPnzl3OXeY+95x75hwxxqCUUkq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jAgwYNYsmSJYlOhlJKKdUkIlLY0HdaBK2UUkolgAZgpZRSKgE0ACullFIJoAFYKaWUSgANwEoppVQCaABWSimlEkADsGoyn8+Dx7M30clQSqk2rU38D1jFl8/nobp6K1VVBUGvzYHh6uptgI8uXY6ld+8r6d79DByOtEQnW6lWxRiD13sAESdOZ0aik6NaoXYRgCsrN1FS8gYuVze6d/8xKSmdEp2kVqWysoAtW+6momIDVVWbqa7eCviCpnCQltaX9PTBdO58NOnpgwAfO3Y8x+rV5+Jydadnz0vo3fsKMjMPTcxGqJjz+Wpwu7dTVbWF6uofqK7eQlXVFjyeEvr2vZ7OnY9MdBKjwhiDMV6McePzuYPeq/H53Ph8FXg8pfarJORVd5wx1bhcOfzoR9sRcSZ601QrI8aYRKfhoMaPH2+a2hJWdfU2du58hZ07X2L//q8C40VS6dr1JHJyzqVbt9NIScmKdnLblH37lrBy5al4veV
|
2020-11-02 17:21:50 +00:00
|
|
|
},
|
|
|
|
"metadata": {
|
|
|
|
"needs_background": "light"
|
|
|
|
},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"plot_iperf_results(\n",
|
|
|
|
" {\n",
|
|
|
|
" '1x1MBps connection (not proxied)': One1MBStraight,\n",
|
|
|
|
" '2x1MBps connections (proxied)': Two1MBAggregate,\n",
|
|
|
|
" '1x2MBps connection (not proxied)': One2MBStraight,\n",
|
|
|
|
" '2x2MBps connections (proxied)': Two2MBAggregate,\n",
|
|
|
|
" },\n",
|
|
|
|
" 'Proxing bandwidth scaling/overhead'\n",
|
|
|
|
")"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2020-11-02 17:23:42 +00:00
|
|
|
"execution_count": 74,
|
2020-11-02 17:21:50 +00:00
|
|
|
"metadata": {
|
|
|
|
"pycharm": {
|
|
|
|
"name": "#%%\n"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": "<Figure size 432x288 with 1 Axes>",
|
2020-11-02 17:23:42 +00:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAeAAAAFrCAYAAAAJo1qOAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAABfW0lEQVR4nO3dd3gU1frA8e+bBBJ6TZAOKh0hAgIWEMUuilhRbNeK14LtqvdeC/izXnvD3kVQQRBBQQUVRRHpHaWETiihpZGy7++Ps5tGElK2JJv38zzz7OxOO7OzO++cM2fOEVXFGGOMMcEVEeoEGGOMMVWRBWBjjDEmBCwAG2OMMSFgAdgYY4wJAQvAxhhjTAhYADbGGGNCwAKwqRJE5AMReayMy44UkU/8nabyEJEEETkt1OkIBBFJFpEjQ52OoojITyJyQxHT2oiIikhUsNNlKh8LwKbSCOegU1UVFsxUtbaqrgtVmowJFgvAxhhjTAhYADaVkohcKyKzReQFEdkrIutE5ATv55tEZIeIXFNgscYi8r2IHBCRn0WkdZ71veRdbr+IzBeRfsVs+wsR2S4i+0Rkloh0yTPtAxF5TUSmerfzh4gclWd6F28akkQkUUT+4/08QkQeEJG1IrJbRD4XkYZ5lrtKRDZ4p/33MN9NDRF5zjv/PhH5VURqeKedLyLLvd/ZTyLSKc9yCSJyr4gs8S73mYjEeKcNEJHNInKP97vdJiL/yLNstIg8KyIbvfv1hm+b3umDRWSR9/tdKyJnicjjQD/gVW+x86veeVVEjvaO1xORj0Rkp3d/HhSRiDy/gV+9290jIutF5OwCv5F13uOwXkSGFfF99RaR373fyTYReVVEqueZfrqIrPJ+J68CkmdapHf7u0RkHXBuccfGmLwsAJvKrA+wBGgEfAqMA44DjgauxJ3Ya+eZfxjwf0BjYBEwJs+0P4F4oKF3XV/4gk8hvgXaAXHAggLrARgKjAIaAGuAxwFEpA7wAzANaOZN5w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fVY+sTpv6bWhTvw3HHnEsbeq3oW2DtjmfedTDB4s+4J0F73DFl1fQsEZDru52NTf2vJHOsZ1DuDfGn/Yf3M/GfRtzhk37NrFxf+77zfs3k+XJ4h/x/+DNQW9SLbJaqJNcKhnZGfy4/keSM5I5mH2QjOyMIoeDWW56amYqu9N25wu2u1N3k63ZRW5nSKch1KxWM4h7ZioDUdVQp+GwevXqpaVpCWvVrlWMWzaOccvGsXr3aqIiohjYdiCJKYks2r4IQejfuj+XdbmMiztfTGytQlsJC3vZnmzu+e4eXvrjJc5rfx5Duw7NCbBH1D6CCDl8FQGPepi5fiZvL3ibiSsnkunJ5ISWJ3Bjjxu5tMulYXHSSclIIVuzqRtdN9RJCZhsTzaLExfzU8JP/LLxF9YmrWXjvo3sO7gv33xREVG0qNuCVvVa0bJuS1rVa8W+9H2Mnjeas44+iy8u+YLa1WuHaC9KZ9uBbVz8xcX8tum3w84bKZFUj6xO9cjqxETF0LhmYxrXbEyjmo1oXKNxzvucz7zjU/6awohpI0gYkUDr+q39vg8Z2Rls2reJ1vVbExVR+fJTG/dtpEFMA+pE1wl1UgJGROaraq9Cp4VLAE7Ym8Bnyz5j3PJxOUF2QJsBDO06lAs7XUjjmo0BF5x9863atYpIieTUtqcytOtQhnQcUmWK0lIzU7nyyyuZuGoid/W9i2dOf4bIiMhyrXNnyk4+WvwRby94m9W7V1M3ui5XHnMlN/a8kfgj4v2T8CDanbqbF+e8yMtzXyYzO5Nbj7uV+068Lywu2LI92SzavoifEn7ipw0/8cuGX3KC7dENj6ZLbJecAJt3OKL2EYX+Tt6e/zbDpw6nR9MeTL1iKnG14oK9S6Uyd8tchnw2hL3pexl9zmh6NuuZE2ALDtUiqpX
|
2020-11-02 17:21:50 +00:00
|
|
|
},
|
|
|
|
"metadata": {
|
|
|
|
"needs_background": "light"
|
|
|
|
},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
2020-11-01 18:35:10 +00:00
|
|
|
],
|
2020-11-02 17:21:50 +00:00
|
|
|
"source": [
|
|
|
|
"plot_iperf_results(\n",
|
|
|
|
" {\n",
|
|
|
|
" '2x1MBps connections (proxied)': Two1MBAggregate,\n",
|
|
|
|
" '1x1MBps+1x2MBps connections (proxied)': One1MBOne2MBAggregate,\n",
|
|
|
|
" '2x2MBps connections (proxied)': Two2MBAggregate,\n",
|
|
|
|
" },\n",
|
|
|
|
" 'Imbalanced connections add',\n",
|
|
|
|
")"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2020-11-02 17:23:42 +00:00
|
|
|
"execution_count": 75,
|
2020-11-01 18:35:10 +00:00
|
|
|
"metadata": {
|
|
|
|
"pycharm": {
|
|
|
|
"name": "#%%\n"
|
|
|
|
}
|
2020-11-02 17:21:50 +00:00
|
|
|
},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": "<Figure size 432x288 with 1 Axes>",
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAeAAAAFrCAYAAAAJo1qOAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAABCu0lEQVR4nO3deXhU5f3//+c7LAmbooACggIWUFkSFlGoshStqFgrti5FKyrV1rWL/amttWpbv7aX20dbW60LreJCFVzQYlFZROsCioIiVgUFMayyJoEA798fZyZMkslkSGbmJDOvx3XlmsyZmTPvAyfzmvs+97mPuTsiIiKSWXlhFyAiIpKLFMAiIiIhUACLiIiEQAEsIiISAgWwiIhICBTAIiIiIVAAi6SBmR1sZlvNrEnk/mwzmxj5fYKZzavjeuv82obOzH5lZveHXYdIpiiARerIzJab2XEx988ys6/NbIS7f+Hurd19V5g1NlRmNtLMVsYuc/eb3X1iWDWJZJoCWCQFzOw84C/Aye4+J+x6RKThUwCL1JOZXQzcBpzg7q9HlnUzMzezpkm8/jA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N9//+BzraqXXw7WedVVlZdPnRp8vn3zm8FnjHvQYh0yJAiy2r4IrFoV9NCVl8d//K23gkbD5ZfXvI5584Ln/OQnid8rkc2b3c84I9jGU05x37Ch7utKJGsC+MEHg50Pgm+Av/61+xdfVN7YFSuCnTD6DbFnT/ff/S74ZrNrVyr+Od2nTw/Wfc011R/bvj0I586d3b/+Ov7rt2xxv/Za9/z8oPvm+uuDb5x18eijwTf
|
|
|
|
},
|
|
|
|
"metadata": {
|
|
|
|
"needs_background": "light"
|
|
|
|
},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"plot_iperf_results(\n",
|
|
|
|
" {\n",
|
|
|
|
" '1x2MBps+1xYMBps connections (proxied)': Two2MBAggregateKillOneRecoverOne,\n",
|
|
|
|
" },\n",
|
|
|
|
" 'Killed connection',\n",
|
|
|
|
" events={15: 'Y = 0', 40: 'Y = 2'},\n",
|
|
|
|
")"
|
|
|
|
]
|
2020-11-01 18:35:10 +00:00
|
|
|
},
|
2020-10-18 13:06:40 +01:00
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
|
|
|
"metadata": {
|
|
|
|
"pycharm": {
|
|
|
|
"name": "#%%\n"
|
|
|
|
}
|
2020-11-02 17:21:50 +00:00
|
|
|
},
|
|
|
|
"outputs": [],
|
|
|
|
"source": []
|
2020-10-18 13:06:40 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"kernelspec": {
|
|
|
|
"display_name": "Python 3",
|
|
|
|
"language": "python",
|
|
|
|
"name": "python3"
|
|
|
|
},
|
|
|
|
"language_info": {
|
|
|
|
"codemirror_mode": {
|
|
|
|
"name": "ipython",
|
2020-11-02 17:21:50 +00:00
|
|
|
"version": 3
|
2020-10-18 13:06:40 +01:00
|
|
|
},
|
|
|
|
"file_extension": ".py",
|
|
|
|
"mimetype": "text/x-python",
|
|
|
|
"name": "python",
|
|
|
|
"nbconvert_exporter": "python",
|
2020-11-02 17:21:50 +00:00
|
|
|
"pygments_lexer": "ipython3",
|
|
|
|
"version": "3.8.6"
|
2020-10-18 13:06:40 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"nbformat": 4,
|
2020-11-02 17:21:50 +00:00
|
|
|
"nbformat_minor": 1
|
2020-10-18 13:06:40 +01:00
|
|
|
}
|