Ch2. The Physical Layer
Ch2. The Physical Layer
Time
Time
Analog Signal
Digital Signal
Line Coding
• It is the process of converting digital data to digital
signals.
• Line coding converts a sequence of bits to digital
signal.
• At the sender, digital data are encoded into digital
signal ; at the receiver, the digital data are
recreated by decoding the digital signal.
Line Coding
• Unipolar
– NRZ
• Polar
– NRZ-I
– NRZ-L
– Manchester
– Differential Manchester
Unipolar
• Unipolar encoding schemes use single voltage
level to represent data.
• In this case, to represent binary 1, high voltage
is transmitted and to represent 0, no voltage is
transmitted. It is also called Unipolar-Non-
return-to-zero (NRZ ), it either represents 1 or
0.
•
Polar
• Polar encoding scheme uses two voltage levels ,
positive and negative to represent binary values.
• Polar encodings is available in four types:
• Polar Non-Return to Zero (Polar NRZ)
– It uses two different voltage levels to represent binary
values.
– NRZ scheme has two variants: NRZ-L and NRZ-I.
– NRZ-L: 0 is positive voltage and 1 is negative voltage.
changes voltage level at when a different bit is
encountered.
– NRZ-I : fixed voltage levels are not assigned to represent
0 or 1 but an inversion of existing voltage represents 1
and non-inversion 0 .changes voltage when a 1 is
encountered.
Return to Zero (RZ)
• Problem with NRZ is that a long string 0f 0’s and 1’s
can make receiver lose synchronization.
• RZ uses three levels – positive, negative and zero.
• It requires the signal to return to 0 in the middel of
its bit period i.e. for every bit, there has to be
transition in the middle.
• Bit 1 is represented as +ve to 0 and 0 is represented
as –ve to 0.
Manchester
• A Manchester Line Encoder works by encoding
each data bit to be either low-then-high or
high-then-low – for equal amounts of time.
• This code requires a transition in the middle of
each bit interval.
• A negative to positive transition represents 1
and positive to negative represents 0.
Where is it used?
10BASE-T (10Mbps Ethernet over Twisted Pair) applications use the Manchester
Line Code.
Switching
• A network is a set of connected devices.
• We have multiple devices
– How to connect them to make one –to-one
communication possible
• Solution :
– Using Topology
• But it is impractical wasteful; when applied to large
network.
• A better solution is switching.
• A switched network consist of a series of
interlinked nodes , called switches.
Simple Switched network
Types of Switching
• Circuit Switching
• Packet Switching
• Message Switching
Circuit Switching