You are on page 1of 2

Ain Shams University

Faculty of Engineering
Computers & Systems
Engineering Department

Multiple Access Protocols

Presented by:

Marina Raouf Tawfik sec2


‫مارينا رؤوف توفيق‬
Nathalie Fateen Fayek sec3
‫ناتالى فطين فايق‬
Ninet Nabil Farid sec3
‫نينت نبيل فريد‬
Code:

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:

You might also like