0% found this document useful (0 votes)
10 views

Lecture 3 - Physical Layer

The physical layer is responsible for transmitting bits from a machine to a transmission medium and picking up bits from the medium to deliver to the receiver. It deals with issues related to the transmission medium, line encoding to represent digital data using physical attributes of the medium, and multiplexing. The physical layer converts analog signals to digital bit streams and packetizes the bits. It uses various transmission media like twisted pair, coaxial cable, optical fiber, and wireless media. Different media have advantages and limitations for data transmission. Standards define the interface between data terminal equipment and data circuit terminating equipment. The physical layer also performs data encoding to map bits to voltage levels or signal properties for transmission.

Uploaded by

binh doan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Lecture 3 - Physical Layer

The physical layer is responsible for transmitting bits from a machine to a transmission medium and picking up bits from the medium to deliver to the receiver. It deals with issues related to the transmission medium, line encoding to represent digital data using physical attributes of the medium, and multiplexing. The physical layer converts analog signals to digital bit streams and packetizes the bits. It uses various transmission media like twisted pair, coaxial cable, optical fiber, and wireless media. Different media have advantages and limitations for data transmission. Standards define the interface between data terminal equipment and data circuit terminating equipment. The physical layer also performs data encoding to map bits to voltage levels or signal properties for transmission.

Uploaded by

binh doan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 69

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

(a) Category 3 UTP.


(b) Category 5 UTP.
8
Twisted pair
l Contains several pairs of copper,
cable in the one pair is twisted
together.
l Two kinds of twisted pair:
l STP-Shielded Twisted Pair:
l There is a metal coat, not popular
l UTP-Unshielded Twisted Pair:
l No metal coat, popular
9
Evaluation
l Cheap, simple l Need amplification after
l Widely used each 5km in analog
l Weak resistance to noice transmission
l Short Transmission l In digital transmission
distance l Need repeater after each 2
km
l In Ethernet LAN
deployment < 100m
l Limited speed (100Mbps)

10
II. Coaxial

Category Impedance Use


RG-59 75 W Cable TV
RG-58 50 W Thin Ethernet
RG-11 50 W Thick Ethernet
11
Coaxial
l Structure:
o Inner conduct is coated by an insulator enviroment
o Shielded by a metal grill
o A plastic cover for protection.

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

(a) Single core


(b) Cable with 3 cores
14
Optical fiber transmission
mode

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.

l Data encoding: mapping data to signal


l Set of mapping is called Encoding scheme
l Ex: Mark:1, Space:0

4/11/23 38
Line encoding method

l NRZ l Phase encoding


l NRZ-L,NRZI l Manchester
l Bipolar l Manchester vi sai
l Bipolar alternate mark
inversion
l Pseudoternary

4/11/23 39
NRZ-L Non Return to Zero Level

l During bit time, signal does not go back to 0 level


l Signal level is not changed during bit time.
l NRZ-L Non return to zero level
l Bit 1 signal is in low/high level
l Bit 0 signal is in high/low level

4/11/23 40
NRZ-I Non return to zero invert

l Bit 0: signal level is not changed at the begining of bit time


l Bit 1: signal level is changed at the begining of bit time
l A differential encoding method :
l 0 and 1 represent by the signal level change, not by the level itself.
l Reliable/ simple.

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

l Use more than 2 signal level for 1 bit


l Bipolar alternate mark inversion
l 0 : No signal
l 1: Presence of signal. Two consequent 1 have two different signal
levels
l pseudoternary
l 1 : No signal
l 0 : Presence of signal. Two consequent 0 have two different signal
levels

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.

l Receipter needs to distingush 3 levels of signal

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

Term Units Definition

Data unit bit A single bit, Value 0 or 1

Data rate bit/s Rate transmitting bit


Part of the signal correspond to
Pulse the smallest duration of a
Signal unit a sinus symbol
Number of
Symbol rate/ Rate symbol/s Number of symbols generated
of modulation (baud) in a unit of time
4/11/23 50
Encoding rate: Baud rate
l Number of symbol changes, waveform changes, or
signaling events across the transmission medium
per unit of time
l Unit: Baud/s = symbol/s

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)

l 0 và 1 tương ứng với hai


biên độ tín hiệu, thông ì A cos(2p ft ) cho 1
s (t ) = í
thường một trong hai biên î0 cho 0
độ=0
l Dễ bị ảnh hưởng bởi nhiễu
(1200bps cho đường thoại)
l Khó đồng bộ
l Thường được dùng trong
cáp quang (LED hoặc laser)

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)

On off key nhìn từ phương diện cường độ sáng (hình trên)


và tín hiệu quang học (hình dưới)
58
Điều chế khóa dịch
tần số (FSK)

l Hai giá trị nhị phân được


biểu diễn bởi hai tín hiệu tần
số khác nhau
l Ví dụ về điều tần song công
l Tỷ suất lỗi thấp hơn
l Dùng trong truyền số liệu
qua đường điện thoại (tần
số thấp), hoặc trong mạng
không dây (tần số cao)

4/11/23 59
Điều chế khóa
dịch pha (PSK)

l 0,1 tương ứng với hai độ


lệch pha khác nhau
l 0,1 tương ứng với chuyển
pha (vi sai)
l Có thể sử dụng giải thông
một cách hiệu quả hơn khi
mã hóa cùng lúc nhiều bít
l Có thể kết hợp với điều biên
l Nếu tốc độ dữ liệu là 9600
bps, tốc độ điều chế là ?

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)

l Pulse Code Modulation


l Lấy mẫu tín hiệu dựa trên định
luật lấy mẫu của Shannon
l Nếu tần số lấy mẫu >= 2 lần tần
số (có ý nghĩa) cao nhất của tín
hiệu, phép lấy mẫu bảo toàn
thông tin của tín hiệu
l Vd: Tiếng nói tần số tối đa
4300Hz, cần lấy mẫu với tần số
min 8600Hz
l Tiến hành theo hai bước
l Lấy mẫu (PAM)
l Lượng tử hóa

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

l Kết hợp tín hiệu m(t) và sóng


mang có tần số Fc thành một tín
hiệu tập trung xung quanh Fc
l Cho phép chuyển tín hiệu trên
một tần số khác phù hợp với
kênh truyền
l Cho phép dồn kênh bằng các tần
số sóng mang khác nhau
l 3 phương pháp chính dựa vào
đặc điểm của tín hiệu
l Điều biên
l Điều tần
l Điều chế góc pha

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

You might also like