Documentos de Académico
Documentos de Profesional
Documentos de Cultura
INTEGRANTES:
Karen Narváez
Iván Farez
Roger Rojas
Cesar Alava
Objetivo:
Test
nt = 201; % number of channels
at = 17; % traffic intensity [Erlangs]
nExp=10;%numberofexperimentstocheckproccessingtime tFzeros(nExp,1);
tR=zeros(nExp,l);
far i=l:nExp
tic,Bct=Erl(nt,at);tF(i)=toe; tic,Bes=Erl_R(nt,at);tR(i)=toe; end
m tF = mean(tF)
m_tF =7.3930e-04
m_tR = mean(tR)
m_tR= 1.8480e-04
Be=Erl(n_c,a_c); whileBe>Bc_obj
n_c = n_c+ 1;
BeErl_R(n_c,a_c);
end
n(h)=n-e,
end
plot(a,n); grid on;
xlabel('Trafficintensity,a');ylabel('Capacity,n')
Quality of service vs. Trafficintensity
Functions
funetion Be= Erl(n, a)
% n = number of ehannels on the link
% a= (offered) traffie intensity
% Be= bloeking probability
OBJETIVO:
Pz_obj = 0.0100
for 1 =1:la
e=e;
lambda= a(l);
Pz =Wait(c,lambda,L,z); whilePz>Pz_obj
e=e+0.001;
Pz = Wait(c,lambda,L,z);
end
LS(l) = e;
end
plot(a,LS); grid on
title('Capaci ty vs. Arrival rate') xlabel('Arrival rate (\lambda) [packets/\mus]
Quality of Service vs. Arrival rate
z=10;%longestwaitingtime[us] L1; %[kbits]
e1;%linkspeed[GbpsorKb/us]
QoS_l = zeros(la,1); % variable to store the QoS(lambda)
for 1 =1:la
lambda= a(l);
QoS_l(l) = 1 - Wait(C, lambda, L,z);
end
plot(a,QoS_l);gridon
title('QualityofServicevs.Arrivalrate') xlabel('Arrival rate (\lambda) [packets/\
Quality of service vs. Capacity
z = 10; % longest waiting time[us]
L1;%averagepacketlenght[kbits]
e0.6:0.01:1;%linkspeedvectorforanalysislC =length(C);
lambda= 0.6; %[packets/us]
QoS_C = zeros(lC,1); % vector to storeQoS(C)
for q=l:lC
c = C(q);
QoS_C(q) = 1-Wait(c, lambda, L,z);
end
plot(C, QoS_C); gridon
title('QualityofServicevs.Capacity') xlabel('Link Speed (C) [Gbps]') ylabel({'QoS
0_9
0 _8
0_7
-
0 _6 , O 5
DA
(íJ Ñ 0_3
aoCL 0-2
o ........__,_.. ,'---.._.
0_6 0_65 0_7 0-75 0_8 0_85 0_9 0_95
Link Speed (C)
[Gbps]
function Pz = Wait(C,lambda,L,z)
%UNTITLED3 Summary of this function goeshere
%Detailedexplanationgoeshere iflambda*L<e%(stable-rho<l)
Pz((lambda*L)/C)*exp(-((C/L)-lambda)*z);
else
Pz = 1;
end end
CONCLUSIONES:
Con estas simulacones se puede demostrar en operaciones reales
que se puede ahorrar recursos cuando no se tiene en uso la red en
ciertos intervalos de poco de trafico, y esto se lo logra mediante el
analisis de la capacidad vs trafico a si como la calidad de servicios vs
capacidad.