Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
X-Lap
Commits
39cdd957
Commit
39cdd957
authored
Mar 19, 2020
by
Andreas Schmidt
Browse files
+= trace_jitter for paper
parent
73bcd941
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
drone-notebook.ipynb
View file @
39cdd957
...
...
@@ -31,9 +31,10 @@
"source": [
"from xlap.parse import evaluate, parse_config\n",
"config = parse_config(\"drone/xlap.yml\")\n",
"protocol = \"python\"\n",
"data_files = {\n",
" \"sender\": \"drone/sender.csv\",\n",
" \"receiver\": \"drone/receiver.csv\"\n",
" \"sender\": \"drone/
{}-bridge/
sender.csv\"
.format(protocol)
,\n",
" \"receiver\": \"drone/
{}-bridge/
receiver.csv\"
.format(protocol)
\n",
"}\n",
"df_1 = evaluate(data_files[\"sender\"], data_files[\"receiver\"], config=config, kind=0)\n",
"df_1.name = \"\"\n",
...
...
@@ -73,7 +74,7 @@
"outputs": [],
"source": [
"from xlap.analyse.jitter import trace_jitter\n",
"trace_jitter(df_1, config)"
"trace_jitter(df_1, config
,file_name=\"{}_trace_jitter.pdf\".format(protocol),export=True
)"
]
},
{
...
...
@@ -113,13 +114,6 @@
"from xlap.analyse.correlation import multi_correlation\n",
"multi_correlation(dfs, config, colors=colors, figsize=(3.0,2.0), cols=4)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
...
...
@@ -138,7 +132,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.
8.1
"
"version": "3.
6.9
"
}
},
"nbformat": 4,
...
...
%% Cell type:markdown id: tags:
# X-Lap in Action
%% Cell type:code id: tags:
```
python
%
matplotlib
inline
```
%% Cell type:markdown id: tags:
## Data Retrieval
%% Cell type:code id: tags:
```
python
from
xlap.parse
import
evaluate
,
parse_config
config
=
parse_config
(
"drone/xlap.yml"
)
protocol
=
"python"
data_files
=
{
"sender"
:
"drone/sender.csv"
,
"receiver"
:
"drone/receiver.csv"
"sender"
:
"drone/
{}-bridge/
sender.csv"
.
format
(
protocol
)
,
"receiver"
:
"drone/
{}-bridge/
receiver.csv"
.
format
(
protocol
)
}
df_1
=
evaluate
(
data_files
[
"sender"
],
data_files
[
"receiver"
],
config
=
config
,
kind
=
0
)
df_1
.
name
=
""
dfs
=
[
df_1
]
```
%% Cell type:markdown id: tags:
## Individual Packet Traces
%% Cell type:code id: tags:
```
python
from
xlap.analyse.trace
import
traces
traces
(
df_1
,
config
,
global_xaxis
=
True
)
```
%% Cell type:markdown id: tags:
## Trace Jitter Analysis
%% Cell type:code id: tags:
```
python
from
xlap.analyse.jitter
import
trace_jitter
trace_jitter
(
df_1
,
config
)
trace_jitter
(
df_1
,
config
,
file_name
=
"{}_trace_jitter.pdf"
.
format
(
protocol
),
export
=
True
)
```
%% Cell type:markdown id: tags:
## Latency Distributions
%% Cell type:code id: tags:
```
python
from
xlap.analyse.cdf
import
multi_cdf
from
xlap.analyse.util
import
colors
import
copy
cfg
=
copy
.
deepcopy
(
config
)
multi_cdf
(
dfs
,
cfg
,
colors
=
colors
)
```
%% Cell type:markdown id: tags:
## Correlation with E2E Latency
%% Cell type:code id: tags:
```
python
from
xlap.analyse.correlation
import
multi_correlation
multi_correlation
(
dfs
,
config
,
colors
=
colors
,
figsize
=
(
3.0
,
2.0
),
cols
=
4
)
```
%% Cell type:code id: tags:
```
python
```
...
...
drone/python-bridge/receiver.csv
0 → 100644
View file @
39cdd957
This diff is collapsed.
Click to expand it.
drone/python-bridge/sender.csv
0 → 100644
View file @
39cdd957
This diff is collapsed.
Click to expand it.
python_trace_jitter.pdf
0 → 100644
View file @
39cdd957
File added
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment