-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmeetings.Rmd
209 lines (175 loc) · 5.55 KB
/
meetings.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
---
title: "5 min. Zoom Test Trace: Meetings"
date: "`r Sys.Date()`"
output:
html_document:
df_print: paged
params:
input_file: "meetings.csv"
fig_path: "fig/"
---
```{r setup, include=FALSE}
source("setup.R")
knitr::opts_chunk$set(dev = c("png", "pdf"), fig.width = 7, fig.height = 4,
fig.align = "center", fig.keep = "high", fig.path = params$fig_path)
colors <- c("#22528E", "#882111", "#3D8926")
```
```{r import}
meetings <- read_csv(params$input_file, show_col_types = FALSE) %>%
mutate(conn_type = as.factor(conn_type), zoom_type = as.factor(zoom_type))
```
### Summary
```{r summary}
list(
streams = meetings %>% nrow(),
unique_streams = meetings$stream_id %>% unique() %>% length(),
meetings = meetings$meeting_id %>% unique() %>% length()
) %>% as_tibble_row()
```
```{r}
meetings %>%
group_by(stream_id, zoom_type) %>%
summarize(.groups="keep") %>%
group_by(zoom_type) %>%
summarize(count = n(), .groups="keep") %>%
arrange(-count)
```
### Stream Duplicates
* limited to <= 20 duplicates
```{r stream-duplicates}
meetings %>%
group_by(stream_id, zoom_type) %>%
summarize(n = n(), .groups="keep") %>%
filter(n > 1 & n <= 20) %>%
ggplot(aes(x=factor(n))) +
geom_bar(stat="count", aes(fill=zoom_type)) +
scale_fill_manual(name="Type",values=colors, labels=c("Screen S.", "Audio", "Video")) +
labs(x="# Stream Duplicates", y="Frequency") +
theme_om()
```
### Meeting duration
```{r meeting-duration-cdf}
meetings %>%
group_by(meeting_id) %>%
summarize(start = min(start_ts_s), end = max(end_ts_s)) %>%
mutate(duration_s = (end - start) / 60) %>%
ggplot(aes(x=duration_s)) +
labs(x="Meeting duration [min.]", y="CDF") +
scale_x_continuous(breaks=seq(0,720,60)) +
stat_ecdf(color=colors[1], size=0.75) +
theme_om()
```
### Number of streams per meeting
```{r}
meetings %>%
group_by(meeting_id) %>%
summarize(streams = n()) %>%
ggplot(aes(x=streams)) +
labs(x="# Streams per meeting (log.)", y="CDF") +
scale_x_log10() +
annotation_logticks(sides="b", colour = "gray50") +
stat_ecdf(color=colors[1], size=0.75) +
theme_om()
```
### Number of unique streams per meeting
```{r}
meetings %>%
group_by(meeting_id) %>%
summarize(unique_streams = stream_id %>% unique() %>% length()) %>%
ggplot(aes(x=unique_streams)) +
labs(x="# Unique streams per meeting (log.)", y="CDF") +
scale_x_log10() +
annotation_logticks(sides="b", colour = "gray50") +
stat_ecdf(color=colors[1], size=0.75) +
theme_om()
```
### Number of participants per meeting
```{r}
participants_per_meeting <- meetings %>%
group_by(meeting_id) %>%
arrange(ssrc, .by_group = TRUE) %>%
mutate(participant = cumsum((ssrc - lag(ssrc)) > 1 & !is.na(lag(ssrc)))) %>%
summarize(participants = participant %>% unique() %>% length())
participants_per_meeting %>%
ggplot(aes(x=participants)) +
labs(x="# Meeting Participants (log.)", y="CDF") +
scale_x_log10() +
annotation_logticks(sides="b", colour = "gray50") +
stat_ecdf(color=colors[1], size=0.75) +
theme_om()
```
```{r}
# group by meeting participant:
participants <- meetings %>%
group_by(meeting_id) %>%
arrange(ssrc, .by_group = TRUE) %>%
mutate(participant_id = cumsum((ssrc - lag(ssrc)) > 1 & !is.na(lag(ssrc)))) %>%
group_by(meeting_id, participant_id) %>%
summarize(
start_ts_s = min(start_ts_s),
end_ts_s = max(end_ts_s),
audio = 15 %in% unique(zoom_type),
video = 16 %in% unique(zoom_type),
screen = 13 %in% unique(zoom_type),
start_ts_min = as.integer(min(start_ts_s) / 60), # 60s buckets
end_ts_min = as.integer(max(end_ts_s) / 60),
.groups="keep"
)
```
```{r}
list(participants = participants %>% nrow()) %>% as_tibble_row()
```
```{r}
# generate time series from meeting/participant list:
participants_over_time <- participants %>%
group_by(meeting_id, participant_id) %>%
summarize(min_activity = seq(start_ts_min, end_ts_min, 1), .groups="keep") %>%
group_by(min_activity) %>%
summarize(
meeting_count = meeting_id %>% unique() %>% length(),
participant_count = unique(meeting_id, participant_id) %>% length(),
.groups = "keep"
) %>%
mutate(ts = as_datetime((min_activity - 4*60) * 60)) # LT = UTC-4
```
### Number of concurrent meetings on campus
```{r meeting-count-ts}
participants_over_time %>%
ggplot(aes(x=ts, y=meeting_count)) +
labs(x = "Local Time", y = "Concurrent Meeting Count") +
scale_y_continuous(limits = c(0, 150)) +
geom_line(color=colors[1], size=0.75) +
theme_om()
```
### Number of concurrent participants on campus
```{r participant-count-ts}
participants_over_time %>%
ggplot(aes(x=ts, y=participant_count)) +
labs(x = "Local Time", y = "Concurrent Participant Count") +
scale_y_continuous(limits = c(0, 250)) +
geom_line(color=colors[1], size=0.75) +
theme_om()
```
### Media usage per participant
```{r}
participants %>%
group_by(audio, video, screen) %>%
summarize(count = n(), frac = n() / participants %>% nrow(), .groups="keep") %>%
arrange(-frac)
```
### Fraction of speaking time when not muted
* by number of packets
```{r frac-speaking, fig.width=4, fig.height=3.8}
meetings %>%
filter(zoom_type == 15 & audio_112_pkts > 0) %>%
mutate(
audio_112_frac = audio_112_pkts / (audio_99_pkts + audio_112_pkts),
) %>%
select(speaking = audio_112_frac) %>%
ggplot(aes(x=speaking)) +
scale_x_continuous(expand = c(0.035, 0)) +
scale_y_continuous(expand = c(0.035, 0)) +
stat_ecdf(color=colors[1], size=0.75) +
labs(x="Fraction Speaking (by packet count)", y="CDF") +
theme_om()
```