Académique Documents
Professionnel Documents
Culture Documents
P 213224
P 213224
$1(;$$
$/*25,70,'(5(`($
!
" # #
#
"
"
$
#
%
& '
'
$
#
(
$) *
+ (
$,)
- ,
#
#
'
# " &N &M .
-
#
2)3
! & /0 $/01 0 ,
& /0 $/01
repeat
k:=1
repeat
if(mesaj pentru nodul Sk) then
trimite mesajul nodului Sk;
endif
adreseaza cererea de transmisie nodului Sk;
if(mesaj de transmis din nodul Sk) then
acorda permisiunea de transmisie nodului Sk;
accepta mesajul din nodul Sk;
endif
2):
! & /0 $/01 0 ,
& /0 $/01
k:=k+1
until k:=n+1 (*n - numarul total de noduri slave din retea *)
until se intrerupe functionarea.
!
K:=1
&
&
$
"#
NU
$
DA
DA NU
k>n+1
2);
! & /0 $/01 0 ,
& /0 $/01
repeat
asteapta mesaj dinspre nodul master;
if(mesaj destinat nodului slave) then
accepta mesajul transmis de nodul master;
elseif(solicitare de transmisie) then
if(exista date de transmis) then
cere permisiunea de transmisie;
asteapta acordarea permisiunii de transmisie;
transmite datele catre nodul master;
endif
endif
until se intrerupe functionarea nodului.
6ROLFLWDUH 18
GH WUDQVPLVLH
"
'$
repeat
asteapta primirea unui cadru;
if(mesaj pentru nodul Nk) then
2)=
! & /0 $/01 0 ,
& /0 $/01
receptioneaza mesajul;
elseif(jeton) then
if(exista mesaj de transmis din nodul Nk) then
transmite mesajul;
endif
transmite jetonul nodului urmator;
endif
until se intrerupe functionarea nodului.
!
(%
- "#
$ .
% & /&/
'
!%
& - "#
.
$ $
& '
$
$
&
&
$&
0 &
$
&
)&
2)>
! & /0 $/01 0 ,
& /0 $/01
! ! !
%
5&
3- 5 &
%
&
!
$
"#
5 &
$
$
5 (% 5
$
&%
$%
4
5&
#%
3
4
6 &
$ 5 75-
22C
! & /0 $/01 0 ,
& /0 $/01
MID=1
NID=2
MID=2
NID=3
MID=3
NID=4
&
$
22)
! & /0 $/01 0 ,
& /0 $/01
6WDUW 0
6/
'
00 (
0
%UXLDM
3
4
00
,&
%
$
(%
$
$
& % 8
(
$> $
B,D
E 4
4
7
7
"
E
#
#
5
$@
" B,
:
%
&
0 9
!
#
& %
4
$
"#
$
=& (%
&%
=&
$
7
;%
&
!%
5<7
"
&
> &
$ &)!
223
! & /0 $/01 0 ,
& /0 $/01
$3/,&$`,(
22: