Professional Documents
Culture Documents
Multiple Access Protocols
Multiple Access Protocols
Faculty of Engineering
Computers & Systems
Engineering Department
Presented by:
G=0:0.0001:9;
%pure ALOHA
S=G.*exp(-2.*G);
figure
plot(G,S,'b')
hold on
%slotted ALOHA
S=G.*exp(-G);
plot(G,S,'r')
hold on
%non-presistent CSMA
S = G ./(1+G);
plot(G,S,'k')
hold on
%1-presistent CSMA
S = (G + (G.*G)) ./ (1 + G .* exp(G));
plot(G,S,'m')
hold on
Output: