Hdlc-Ppp-Physical Layer
Hdlc-Ppp-Physical Layer
the data link layer for transmitting data between network points or nodes. Since
it is a data link protocol, data is organized into frames. A frame is transmitted
via the network to the destination that verifies its successful arrival. It is a bit -
oriented protocol that is applicable for both point - to - point and multipoint
communications.
Transfer Modes
HDLC supports two types of transfer modes, normal response mode and
asynchronous balanced mode.
Normal Response Mode (NRM) − Here, two types of stations are there, a
primary station that send commands and secondary station that can respond to
received commands. It is used for both point - to - point and multipoint
communications.
Asynchronous Balanced Mode (ABM) − Here, the configuration is balanced, i.e.
each station can both send commands and respond to commands. It is used for
only point - to - point communications.
HDLC Frame
HDLC is a bit - oriented protocol where each frame contains up to six fields. The
structure varies according to the type of frame. The fields of a HDLC frame are
Flag − It is an 8-bit sequence that marks the beginning and the end of the
frame. The bit pattern of the flag is 01111110.
Address − It contains the address of the receiver. If the frame is sent by the
primary station, it contains the address(es) of the secondary station(s). If it is
sent by the secondary station, it contains the address of the primary station.
The address field may be from 1 byte to several bytes.
Payload − This carries the data from the network layer. Its length may vary
from one network to another.
FCS − It is a 2 byte or 4 bytes frame check sequence for error detection. The
standard code used is CRC (cyclic redundancy code)
Types of HDLC Frames
I-frame − I-frames or Information frames carry user data from the network
layer. They also include flow and error control information that is piggybacked
on user data. The first bit of control field of I-frame is 0.
Components of PPP
PPP Frame
PPP is a byte - oriented protocol where each field of the frame is composed of
one or more bytes. The fields of a PPP frame are −
Flag − 1 byte that marks the beginning and the end of the frame. The bit
pattern of the flag is 01111110.
Payload − This carries the data from the network layer. The maximum length of
the payload field is 1500 bytes. However, this may be negotiated between the
endpoints of communication.
FCS − It is a 2 byte or 4 bytes frame check sequence for error detection. The
standard code used is CRC (cyclic redundancy code)
Byte Stuffing in PPP Frame − Byte stuffing is used is PPP payload field
whenever the flag sequence appears in the message, so that the receiver does
not consider it as the end of the frame. The escape byte, 01111101, is stuffed
before every byte that contains the same byte as the flag byte or the escape
byte. The receiver on receiving the message removes the escape byte before
passing it onto the network layer.
Physical layer
The physical layer in the OSI model controls how the data is transferred over
the physical medium in a network channel.
It is also responsible for converting the data frames received from the Data-link
layer into data bits of 1’s and 0’s for transmission over the network.
● It is also responsible for maintaining the data quality by applying the necessary
protocols and maintaining the data bit rate.
Multiple network attributes are associated with the functioning of the physical
layer in the OSI model, some of which are:
1. Signals:
The physical layer converts data frames from the upper layers to network
signals for efficient data transmission over the network channel.
Digital Signals: This network signal represents the network pulses and digital
data from the upper layers.
Analog Signals: The physical data bits converted for transmission over the
network channel.
2. Transmission Medium:
The network function is damaged without proper data conversion at the physical
layer.
Wired Medium: The connection is made through cables for data transfer.
3. Data Flow:
This attribute is responsible for maintaining the information flow rate and the
network model's transmission time frame.
Encoding: Responsible for encoding data for transmission over the channel.
Bandwidth: Issue with the transmission rate of the data in the channel.
4. Noise in Transmission:
During data transmission from the physical layer, the transmitted data may get
damaged or corrupted for multiple reasons.
Data Delay: The transmitted data reaches the destination system outside the
specified time frame.