summaryrefslogtreecommitdiff
path: root/code/perflow
diff options
context:
space:
mode:
Diffstat (limited to 'code/perflow')
-rw-r--r--code/perflow/flow_interarrival.R8
1 files changed, 8 insertions, 0 deletions
diff --git a/code/perflow/flow_interarrival.R b/code/perflow/flow_interarrival.R
new file mode 100644
index 0000000..5ef69ba
--- /dev/null
+++ b/code/perflow/flow_interarrival.R
@@ -0,0 +1,8 @@
+tcp_times = read.csv(file="../../data/perpacket/tcp_arrivel_time.csv", header=TRUE, sep=",")
+
+tcp_times_cdf = ecdf(tcp_times$time)
+
+plot(tcp_times_cdf, col="black", main="CDF of TCP inter-arrival time of TCP flows", xlab="time (s)", ylab="probability")
+dev.print(png, '../../plots/perflow/interarrival.png', width=500)
+
+#quit()