Professional Documents
Culture Documents
244809
244809
244809
a) Flag:
The Flag is an 8-bit (1-byte) pattern
beginning with 0, followed by six
consecutive 1s, and ending in 0
(01111110).
The Flag is used to signify the beginning
of a Signal Unit and the end of the
preceding Signal Unit.
19/04/2013 Bahman R. Alyaei 75
Continue
b) Indicators:
The Indicator are used to request a
Retransmission.
They are also used for Positive and
Negative Acknowledgments.
There are three types of Indicators:
1. Indicator Bit.
2. Sequence Number.
3. Length Indicator.
19/04/2013 Bahman R. Alyaei 76
Continue
Indicator Bit:
There are two types of Indicator Bit:
1. Backward Indicator Bit (BIB).
2. Forward Indicator Bit (FIB).
During normal conditions, both Indicator
Bit (BIB and FIB) should be of the same
value (0 or 1).
When a Retransmission is being
requested, the SU being sent by the SP
requesting the Retransmission will have
an inverted BIB.
19/04/2013 Bahman R. Alyaei 77
Continue
The FIB retains its original value, this
indicates to the distant SP that an error
occurred and Retransmission must take
place.
The Sequence Numbers:
There are two Sequence Numbers:
1. The Backward Sequence Number (BSN).
2. The Forward Sequence Number (FSN).
BSN and FSN are used for Sequencing
Packets and are used by Level 2 to ensure
that all transmitted packets are received.
19/04/2013 Bahman R. Alyaei 78
Continue
The FSN and BSN are numbers in binary
code from a cyclic sequence ranging from
0 to 127.
The FSN Indicates the Number of the SU
now being sent.
This Sequence Number is incremented
by 1 after every SU transmission, except
in the case of the SUs FISU or LSSU.
The FISU and LSSU assume the FSN of
the last MSU or LSSU is sent and is never
incremented.
19/04/2013 Bahman R. Alyaei 79
Continue
The BSN Indicates the last SU received
without error.
It is used to Acknowledge the receipt of SUs
by the Remote SP.
The BSN contains the Sequence Number of
the SU being Acknowledged.
The transmitting SP maintains all transmitted
SUs in its transmit buffer until an
Acknowledgment is received.
When a SU is received, the BSN is examined
to determine which SUs are being
Acknowledged.
19/04/2013 Bahman R. Alyaei 80
Continue
All Acknowledged SUs are then
dropped from the transmit buffer.
For example, if sequence numbers 1
through 7 have been sent and received
by the distant SP, the next SU sent by
the receiving SP could have a BSN of 7,
which Acknowledges that all SUs, 1
through 7, were received without
error.
19/04/2013 Bahman R. Alyaei 81
Continue
In case of Retransmission Request, the
receiver of the Retransmission Request
then retransmits everything in its transmit
buffer with a sequence number higher than
the BSN of the Retransmission Request.
The Indicator Bits in the retransmitted
message are independent of the originating
exchanges Indicator Bits and do not
provide any indication.
Therefore, they will both be of the same value
during the retransmission.
19/04/2013 Bahman R. Alyaei 82
Continue
The Length Indicator (LI):
LI is used by Level 2 to determine which
type of Signal Unit (SU) is being sent.
The values of the LI can be:
1) 0 for (FISU).
2) 1 or 2 for (LSSU).
3) 3 or more for (MSU).