dcc2015s1 Lecture05
dcc2015s1 Lecture05
Frame Relay
secondary stations
Secondary Station – receives commands and send response to primary
station
Combined Station – sends command and response
Configurations
Unbalanced – One primary station and one or more secondary stations
all stations are equal and therefore only combined stations connected in
NRM ABM
Station Primary
type & Combined
Secondary
Initiator Primary Any
Address
Control
Information (absent in S-
frames)
Frame Check Sequence
(FCS)
Ending flag
Problem: data field of HDLC may contain the same sequence pattern
Receiver wrongly interprets the data
frame
send
Final – Secondary replies that there is nothing to send; otherwise it
N(R) (Next frame expected by the receiver) field having 3 bits (up to 8
frames)
Poll – When transmitted by primary with P/F bit set, RR asks if it has
anything to send
Negative response to poll – RR tells primary that secondary has nothing
receipt of all frames up to, but not including the frame indicated in the
N(R) field
Select – When a primary wishes to transmit data to a specific secondary,
it alerts the secondary by sending an RNR frame with the P/F (used as P)
set
Negative response to select – When a selected secondary is unable to
frame
SREJ (Selective-reject)
The negative acknowledgement returned by a receiver in a selective-reject
The main purpose of I-frames is to carry user data in the Information field,
but they also use N(S) and N(R) fields to acknowledge receipt of frames
The combination of data and acknowledgement in one single frame is called
piggybacking
data transfer
disconnect
KTLO/EIE/HKPolyU/2015 29
Example 4: Piggybacking
KTLO/EIE/HKPolyU/2015 30
Example 5: Piggybacking
with Error
Node B sends three data frames (0, 1, and 2),
but frame 1 is lost.
When node A receives frame 2, it discards it
and sends a REJ frame for frame 1.
Note that the protocol being used is Go-
Back-N with the special use of an REJ frame
as a NAK frame.
The NAK frame does two things here: It
confirms the receipt of frame 0 and declares
that frame 1 and any following frames must
be resent.
Node B, after receiving the REJ frame,
resends frames 1 and 2.
Node A acknowledges the receipt by sending
an RR frame (ACK) with acknowledgment
number 3.
EIE3333 DCC 31
HDLC Operation Example
Millions of Internet users who need to connect their home computers to the
server of an Internet service provider use PPP.
PPP can often be run over other data link technologies providing best of
both worlds, e.g., PPPoE.
Services provided:
Establishment of the link and the exchange of data
Authentication (optional)
Provide connections over multiple links (Multilink PPP)
Services not provided:
No flow control
No error control (only error detection)
No sequence numbering
Flag: A PPP frame starts and ends with a specific 1-byte pattern of 01111110
Address: A constant value and set to 11111111 (broadcast address)
Control: Set to a constant value 00000011 (imitating unnumbered frames in
HDLC)
Protocol: Define what is being carried in the data field: either user data or other
information.
FCS: The frame check sequence is simply a 2-byte or 4-byte CRC.
appears in the data, this extra byte is stuffed to tell the receiver that
the next byte is not a flag. The escape byte should also be stuffed
with another escape byte.
Padding: Since there is no field defining the size of the data field,
padding is needed if the size is less than the maximum default value or
a maximum negotiated value.
EIE3333 DCC KTLO/EIE/HKPolyU/2015 37
PPP Transition Phases
A PPP connection goes through phases which can be shown in a transition
phase diagram
The system checks the validity of the identification and password and
either accepts or denies connection.
None of the NCP packets carry network layer data; they just
configure the link at the network layer for the incoming data.
LCP
Setup
PAP
IP NCP
setup