diff options
| author | Kumar Damani <kumar.damani@mail.utoronto.ca> | 2018-11-22 00:14:29 +0000 |
|---|---|---|
| committer | Kumar Damani <kumar.damani@mail.utoronto.ca> | 2018-11-22 00:14:29 +0000 |
| commit | f028cae7a693e2d3bb9317dbaed44e30bf12842d (patch) | |
| tree | 05fe59e47ece2dd505cc4330c9e5d0e9f259b4ed /code | |
| parent | ff0e28fbdfe8fd9f8fbaa9559834fee8f4dbcecc (diff) | |
more on flow size
Diffstat (limited to 'code')
| -rw-r--r-- | code/perflow/flow_size_overhead.R | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/code/perflow/flow_size_overhead.R b/code/perflow/flow_size_overhead.R new file mode 100644 index 0000000..513ccda --- /dev/null +++ b/code/perflow/flow_size_overhead.R @@ -0,0 +1,17 @@ +data_tcp = read.csv(file="../../data/perflow/flow_tcp.csv", header=TRUE, sep=",") + +tcp_bytes = data_tcp$Bytes +tcp_packets = data_tcp$Packets + +# eth + ip + tcp headers per packet +overhead = sum(14,20,20) +tcp_overhead_perflow = tcp_packets * overhead + +tcp_overhead_ratio = tcp_overhead_perflow / tcp_bytes + +tcp_cdf = ecdf(tcp_overhead_ratio) + +plot(tcp_cdf, col="black", main="CDF of TCP overhead ratio of TCP flows", xlab="overhead ratio", ylab="probability") +dev.print(png, '../../plots/perflow/flowsize_overhead.png', width=500) + +#quit() |
