-
Notifications
You must be signed in to change notification settings - Fork 58
/
plot_1_stream_s.m
51 lines (44 loc) · 1.19 KB
/
plot_1_stream_s.m
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
function plot_1_streams(a,Tlim,maxR,maxD,maxRT, U)
% Plot stdout for 1-streaming
% script is adapted to 1 stream
% Tlim [min max] time e.g [0 1000]
% maxR max rate [Mbps]
% maxD max delay [s]
% example:
% >a = load('logfile.txt');
% >plot_vay_4(a,[0 1000],15,0.1);
T=a(:,1);T=T-T(1);
B = ones(1,U)/U;
K=4;L=1;
subplot(K,1,L);L=L+1;
%plot(T,a(:,4)/1e3,T,a(:,5)/1e3,':',T,a(:,7)*max(a(:,4))/1e3*0.05,':k');
plot(T,a(:,4)/1200,T,a(:,5)/1200,':');
set(gca,'FontSize',12);grid on;
%title('CWND and bytes in flight [kbyte]')
title('CWND and bytes in flight [MSS]')
set(gca,'XTickLabel',[]);
xlim(Tlim);
subplot(K,1,L);L=L+1;
plot(T,a(:,2),T,a(:,3));
set(gca,'FontSize',12);grid on;
set(gca,'XTickLabel',[]);
title('Est. queue delay and RTT [s]')
ylim([0 maxD]);
xlim(Tlim);
subplot(K,1,L);L=L+1;
plot(T,a(:,8));
set(gca,'FontSize',12);grid on;
set(gca,'XTickLabel',[]);
title('RTP queue delay[s]')
ylim([0 maxD]);
xlim(Tlim);
subplot(K,1,L);L=L+1;
ce = a(:,13);
loss = a(:,12);
plot(T,filter(B,1,a(:,6))/1e3,'k');
set(gca,'FontSize',12);grid on;
title('Tx rate [Mbps]')
ylim([0 maxRT]);
xlim(Tlim);
xlabel('T [s]')
end