Lecture 3 - Physical Layer
Lecture 3 - Physical Layer
1
Overview
l Physical layer is responsible for transmission
of a stream of bits
l Put bits from a machine to a medium
l Pick bits from the medium give to receiver
l Some issues
l Medium
l Line Encoding: representing the digital logic
levels using the physical attributes associated
with the media.
l Multiplexing 2
From signal to packet
Analog Signal
“Digital” Signal
Bit Stream 0 0 1 0 1 1 1 0 0 0 1
0100010101011100101010101011101110000001111010101110101010101101011010111001
Packets
Header/Body Header/Body Header/Body
Packet
Transmission Sender Receiver
3
Model of data transmission
system
4
Data Communication networks
5
Direct Data transmission
system
6
Media
l Wired
l Twisted Pair
l Coaxial Cable
l Fiber Optics
l Wireless
l Radio
l Infra red
l Light
l …
7
Twisted pair
10
II. Coaxial
12
Application
l Using in TV transmission l For digital transmission
l For transmission of l Repeater should be
telephone signal used after each 1km
l 10,000 calls in the same l More repeater is needed
time for high speed
l Is being replaced by fiber transmission
optics
l Linking the computers of
the short distance
l LAN 10BaseT, 100BaseT,
…
13
Optical fiber
15
Optical fiber
16
Optical fiber
l Multimode stepped index :
l Several beam travel in slightly different direction
l Beams arrive in different delay
l Pulse can easily distort
l Multimode graded index:
l Index reduce gradually from the center to cladding.
l Beams closed to center travel slower than cladding.
Beams travel in curve form.
l Reduce pulse distortion.
17
Optical fiber
l Single mode:
l Index change less from center to cladding in
comparison with multimode.
l Beams travel along the center axe.
l Pulses experience less distortion.
18
Application of optical fiber
l Used for long distance l Advantage in comparison
transmission with other cables
l Large data rate
l Used for
l Small and light cable
communication in
l Low attenuation
metropolitan networks l Better isolation from
l Used for connecting electromagnetic
routers of ISP environment
l Large distance between
l Used in backbone part repeaters
of a LAN l Multimode à10km
l Singlemod à40 km
19
Wireless media
l Terrestrial microwave
l Used for metropolitan connection, for cellular
network
l Microwave satellite
l Used in TV, Long distance telephone
communication
l Radio broadcast
l Infrared
l Small scope, low data rate, unable to travel
through the wall 20
Wireless media
l Radio wave:
l Wavelengths: 1mm – 100.000km
l Frequencies: 3 Hz – 300 GHz
l Ex: Bluetooth, WIFI
l Microwave:
l Wavelengths: 1mm-1 m
l Frequencies: 300 MHz-300 GHz
l Terrestrial microwave : metro connection, cellular
communication
l Satelite microwave: TV, long distance telephone 21
Wireless media
l Infra red:
l Wavelengths: 700 nm- 1 mm
l frequency: 300 GHz-430 THz
l Small scope, no wall penetration
l Ex: use in remote controls
l Free Space Optics
l Wavelengths: 850nm, 1300nm, 1550 nm
22
Frequency range of transmission
chanels
23
Transmission methods
l Simplex: Data is trasmitted in one direction
l Full Duplex: Data can be transmitted in both
directions in the same time
l Half duplex: Data can be transmitted in both
directions but one direction at a time.
24
Transmission format
l Sequent transmission: Transmit 1 bit at a moment (over a signal
line)
l Parallel transmission: Trasmit multiple bits in the same time (over
multiple signal lines)
1
0
1010 A B
A B 1
0
25
Topology
l Point-to-point
l Star
l Ring
l Mesh
l Point-to-multipoint
l Bus
l Ring
l Star
26
Point -to-Point
1 2 3 4 5 N-2 N-1 N
27
Point-to-point
o A transmission line connects two devices
o Link between two devices:
o 1 line (half duplex) or
o 2 lines (duplex)
o In case of half duplex transmission, there may be
collision if two devices on the same link send data
in the same time
28
Point-to-multipoint
29
Point-to-multipoint
l Common character of point-to-multipoint
topo is to use an unique medium to
connects multiple nodes.
l Data is broadcasting over the medium
l Collision when two nodes transmit signal in
the same time
l Need a control mechanism to allow a single
node to transmit àmultiple access method
à see in Datalink layer.
30
Medium interface
l Data terminal equipment (DTE)
l Have data to transmit but has no feature for transmission
l Need an additional device for accessing the media
l Data circuit terminating equipment (DCE)
l Transmit bits on the media
l Transmit data and control information with DCE through
connection the media
l Need a clear interface standard between DTE, DCE
31
DTE-DCE
32
Media interface
l Mechanism
l Define the form of the interface, number of pins for assuring the
interfaces match together
l Electrics
l Define the level of voltage to be used
l Define the length of pulse (frequency)
l Define enconding method
l Functionalities
l Functionality of each pins
l There are 4 groups of pins: data, control, synchronization,
ground
l Procedure
l Lists of events to perform for transmitting data
33
Example: EIA-232-E/RS-232
l Define for serial communication
l Mechanism: ISO 2110
l Electrics: V. 28
l Functionality: V. 24
l Procedure: V. 24
34
Example: V.24 /EIA-232-E
l Mechanic:
l 25 or 15 pins
l Transmission distance 15m
l Electrics
l Digital data
l 1=-3v, 0=+3v (NRZ-L)
l Data rate 20kbps
l Transmission distance<
15m
35
Data encoding
l Use different discrete signal, different voltage level
for representing bit 0 and 1.
l Data transmission should be synchronized between
sender and receiver: clock synchronization
l Encoding could be performed by bit or by a group of
bit e.g., 4 or 8 bits.
l There are many way to represent 0 and 1 à See
data transmission technique.
36
Data Encoding
Introduction
Encoding digital data to digital signal
Encoding digital data to analogical signal
Encoding analogical data to digital signal
Encoding analogical data to digital signal
37
Digital data- Digital signal
l Data unit: 1 bit
l Digital data is a digital signal
l Each pulse is considered as a signal unit.
4/11/23 38
Line encoding method
4/11/23 39
NRZ-L Non Return to Zero Level
4/11/23 40
NRZ-I Non return to zero invert
4/11/23 41
Line encoding consideration
l Two aspects should be considered in any encoding
method:
l Clock recovery on receiver side: If the clock recovery is
not ideal, then the signal to be decoded will not be sampled at
the optimal times. This will increase the probability of error in the
received data.
l DC-component: Directed Current vontage
component.
l DC-component makes recepter mistakenly detect level of
signal
l Encoding should avoid DC-component by having signal mean
altitude to be around 0.
42
NRZ
l NRZ Advantage
l Simple, utilise the maximum capacity of the line
l NRZ Weakness
l NRZ does not contain element supporting clock synchorization
l Example: when sending a suit of 1 or 0
l Contain DC-component when sending a suit of 1.
l Application
l Encoding data on magnetic storage
l Not popular in data transmission
4/11/23 43
Bipolar AMI
4/11/23 44
Bipolar-AMI
4/11/23 45
Bipolar AMI
l DC component =0
l Good synchronization when there are many bit 1(0),
lost of synchronization when there are many bit 0(1)
l 3 possible signal levels for 1 bit:
l Not optimal in using transmission line.
4/11/23 46
Biphase: Manchester
l Manchester: Always change signal level in the middle of bit
time
l Bit 1: Signal change from low level to high level
l Bit 0: Signal change from high level to low level
l Level change provide synchonisation mechanism.
l Differential Manchester:
l 0: signal level change at the begining of bit
l 1: no signal level change at the begining of bit
l Always change signal level in the middle of bit time for
synchronization purpose
4/11/23 47
Manchester encoding
4/11/23 48
Manchester encoding
4/11/23 49
Units in transmitting digital
data in digital transmission
4/11/23 51
Line encoding
4/11/23 52
Bài tập-01
l Biểu diễn các tín hiệu mã hóa chuỗi dữ liệu
sau đây bằng các phương pháp mã hóa đã
học
l 11000000 00000010 11001101 01010101
4/11/23 53
Bài tập-02
l Dữ liệu mã hóa bằng mã manchester (không
vi sai) cho tín hiệu
l Xác định thời gian của từng bít
l Xác định dữ liệu ban đầu
4/11/23 54
2. Điều chế số-liên tục
l Ví dụ: truyền số liệu thông qua hệ thống điện thoại
l Hệ thống điện thoại truyền, chuyển tiếp tín hiệu điện có tần số 300Hz
đến 3400Hz
l Tại nguồn và đích, dữ liệu số cần được điều chế thành tín hiệu liên tục
để truyền trên đường điện thoại
l Căn cứ vào tính chất của tín hiệu, chúng ta có 3 kỹ thuật điều
chế
l Điều chế khóa dịch biên độ
l Điều chế khóa dịch pha
l Điều chế khóa dịch tần số
4/11/23 55
Điều chế khóa dịch biên độ (ASK)
4/11/23 56
Mã On-Off Keying (OOK)
l Dùng trong cáp quang
l Là một loại điều chế dịch biên độ.
l 1: có xung ánh sáng trong thời gian bit (bật nguồn
sáng).
l 0: không có xung ánh sáng trong thời gian bit (tắt
nguồn sáng).
l OOK có thể dùng nhiều định dạng tín hiệu
khác nhau:
l NRZ: xung ánh sáng chiếm toàn bộ độ dài bit 1.
l RZ (return-to-zero): chỉ phát xung ánh sáng trong
một phần thời gian của bit 1.
57
Mã On-Off Keying (OOK)
4/11/23 59
Điều chế khóa
dịch pha (PSK)
4/11/23 60
Kết hợp với điều biên
4/11/23 61
Điều chế
số/liên tục
4/11/23 62
3. Điều chế dữ liệu liên tục- số
l Điều chế dữ liệu liên tục thành dữ liệu số, sau đó
l Điều chế thành tín hiệu số
l Mã hóa trực tiếp bằng NRZ-L
l Sử dụng phương pháp mã hóa tín hiệu số khác
l Điều chế thành tín hiệu liên tục
l Sử dụng các biện pháp điều chế số-liên tục đã học
l Có hai phương pháp chính điều chế dữ liệu liên tục thành dữ liệu số
l Điều chế mã xung
l Điều chế Delta
4/11/23 63
Điều chế mã xung (PCM)
4/11/23 64
Điều chế delta (Delta
Modulation)
l Sử dụng hàm bậc thang
l Khi hàm số tăng, xung=1
l Khi hàm số giảm, xung=0
l Tổng quát
l Biểu diễn giá trị của đạo hàm theo bít
l Tham số
l Bậc thang
l Tốc độ lấy mẫu
l Sai số
l Khi tín hiệu thay đổi chậm: nhiễu lượng tử
l Khi tín hiệu thay đổi nhanh: nhiễu tràn
4/11/23 65
4/11/23 66
Dữ liệu liên tục
tín hiệu liên tục
4/11/23 67
Điều biên
l Biến đổi biên độ sóng
mang theo đầu vào
l Nếu đầu vào cũng là hình
sin
l Tín hiệu đầu ra sẽ có hai
thành phần lệch với tần số
sóng mang một khoảng
bằng tần số đầu vào
l Na<1 điều biên hợp lệ
l Na>1 mất thông tin
l Giải thông=2 lần giải
thông đầu vào
l Điều biên một chiều: 1 lần
giải thông
4/11/23 68
Bài tập-04
l Biểu diễn phương pháp
điều chế pha-biên độ
sau bằng công thức
l Tốc độ ký hiệu là 2400
baud. Tốc độ dữ liệu là
bao nhiêu?
4/11/23 69