Ring Network
Active Repeater
Point-to-Point
Connections
Unidirectional
Transmission
Ring Networks -2
Ring Network
Functions of the Repeater
Frame Insertion: Medium Access
Control Dependent
Frame Reception: Address Recognition
Frame Removal: Close Loop without
Terminators
Ring Networks -3
Ring Network
Configuration
Token
Ring Networks -4
Repeater States
Listen State: Retransmission with
Ring Networks -5
Repeater States
Transmit State: Transmit the
Repeater States
Bypass State: If station falls or its
powered off
Provide a better network reliability
Eliminate unnecessary repeater
delay
Ring Networks -7
Bit Length
Total number of bits can reside in the ring
simultaneously
Example
Ring Networks -8
(e.g., 11111111)
Busy-token -- The last bit of the
free token is changed (e.g.,
11111110)
Any station gets the free-token
may change it to a busy-token and
followed by the frame to be
transmitted.
Ring Networks -9
(a)
(b)
(c)
Frame Format
15
(Header)
Ring No.
1
SD
(Trailer)
Node Addr.
2
PCF
6
DA
4
6
FCS
ED PCF
SA
PPPTMRRR
VV0VV
PPP = Priority bits
000
T = Token bit
M = Monitor bit
RRR = Priority
Reservation bits
FF = Format bits
rr = Reserved bits
ZZZZ = Control bits
FFrrZZZZ
1
VV0VV000
VV1VV10E
AC00AC00
PPPTMRRR
1
Token
VV1VV100
Token-Access
Control
Token-Access
Control
ARI is set while FCI is not set may
Token Monitor
Functions
Token Monitor: One of the active
Token Monitor
Functions
Token Lost
Cause: Interference or noise
Detection: The token monitor has a
timer which is set upon the passage of
either a busy token or a free token. The
timer expiration indicates the loss of
token.
Action: The token monitor will
regenerate the token
Token Monitor
Functions
Circulating busy token
Cause: Transmitting station fails
Detection: The Monitor Count flag is
reset by the transmitting station and
set by the token monitor. If the token
monitor detects an already set flag, it
is a circulating busy token.
Action: The token monitor removes the
frame and issues a free token
Token Monitor
Functions
Multiple tokens
Cause: Noise
Detection: Two or more stations are
in transmit state. The station will
find that the removed frame has a
different source address.
Action: No free token will be issued
by that station. As a result, it is in a
lost-token condition.
Ring Networks -19
Token Monitor
Functions
Minimum Bit Length
If all stations are idle (in listen
state), only the free token is
circulating around the ring.
The token monitor has to
maintain the minimum bit
length (24 bits of the token
length)
Ring Networks -20
Operation
Token Ring Priority Scheme
Priority Scheme Examples
SFS
SD
AC
FC
DA
SA
FCS
EFS
ED
FS
INFO = Information (0 or
FCS = Frame Check Seque
EFS = End of Frame Sequ
ED = Ending Delimiter (1
FS = Frame Status (1 octe
J = Non-data-J
K = Non-data-K
I = Intermediate frame bit
E = Error-detected bit
Ring Networks -22
JK0JK000
SD
PPP
RRR
AC
FF
JK1JK1
ZZZZZZ
E ACrr
ED
FC
A = Address-recognized bits
SD
C = Frame-copied bits
r = Reserved bits
JK0JK
000
PPP
AC
FS
ED
ACrr
Token
RRR
JK1JK1
0: 1:
Reservation(RRR)
Priority(PPP)
Token(T)
Monitor(M)
Frame Type(FF)
Intermediate Frame(I)
0:
1:
Error Detected(E)
Address Recognized(A)
Frame Copied(C)
D
Low Priority
Token
A
(a)
(b)
A
High Priority
Token
(c)
(d)
HIgh Priority
Token
(e)
(f)
Low Priority
Token
B
(g)
(h)
transmitted by station
Pr: Received priority
Rr: Received reservation
R: Transmitted reservation
Sr: Stack to store the old
priority level
priority level
Rr
Pr
Token or Frame
Sx
Sr
A
Token or Frame
Pm
Pr = Sx
Rr <= Pr &
Pm <= Pr
Rr > Pr &
Sx = Pr
POP Sx
Rr <= Sr
Rr > Sr
P <- Pr
P <- Max(Rr,Pm)
P <- Max(Rr,Pm)
R <- 0
Sr <- Pr
Sx <- P
P <- Max(Rr,Pm)
R <- 0
PoP Sx
Sx <- P
P <- Sr
R <- Rr
POP Sr
P <- Rr
R <- 0
Sx <- P
Pm
Rr <
Pm
Pm >= Pr
Pm < Pr
Pr = Sx
POP Sx
Rr > Sr
P <- Rr
R <- 0
Sx <- P
Rr < Pm < Pr
R <- Pm
R <- Pm
Rr <= Sr
P <- Sr
R <- Rr
POP Sr
5
Sx = 6
Sr = 4 1 0 6
5 4 2
1 04
A
C
6 4
4
5 4 3
6
D
(a)
5 6
C
5 6
5 6 3
4
D
(b)
5 6
5 6
7
7 6
Sx = 6
Sr = 4
D
Sx = 62
Sr = 4
(c)
5 7
0 7
C
1 0 7
5 7
Sx = 7
Sr = 6(d)
Ring Networks -44
B
5
1 5 7
2
5 7 2
0 5
C
Sx = 64 5 6
Sr = 4
5 7
(e)
3
0 5
Sx = 6 -> 55 6
Sr = 4
1
D
(f)