Chapt er 4
Dat a Link Layer
Comput er Net wor king:
A Top Down Appr oach
Feat ur ing t he I nt er net
,
2nd edit ion.
J im Kur ose, Keit h Ross
Addison-Wesley, J uly
2002.
A note on the use of these ppt slides:
We’re making these slides freely available to all (faculty, students, readers).
They’re in powerpoint form so you can add, modify, and delete slides
(including this one) and slide content to suit your needs. They obviously
represent a lot of work on our part. In return for use, we only ask the
following:
If you use these slides (e.g., in a class) in substantially unaltered form,
that you mention their source (after all, we’d like people to use our book!)
If you post any slides in substantially unaltered form on a www site, that
you note that they are adapted from (or perhaps identical to) our slides, and
note our copyright of this material.
Thanks and enjoy! JFK/KWR
All material copyright 1996-2002
J.F Kurose and K.W. Ross, All Rights Reserved
1
Chương 4: Tng liên kết dliu
Mctiêu:
Nmđược các nguyên lý đng sau các dch vca
tng liên kết dliu (LKDL) :
đnh khung và đng bhóa
dò livàsali
cách t hcchiasmt kênhtruynqung bá: đatruycp
đánh đachỉởtng LKDL
t r uyndliutin cy, kimsoát lung
Tìm hiumt scông ngh/ kt hut phbiếntng
LKDL
2
Giithiu
Mt st hut ng:
host s r out er s đượcgilàcác
nút (nodes)
(br idges và swit ches cũng vy)
Các kênh t r uynthôngkết nicác
nút gnkdctheođường dn
t r uynthôngđượcgilàcácliên
kết (
links)
các liên kết hutuyến
các liên kết vôtuyến
các mng ccb
đơnvdliugiaothctng 2 là
f rame,đóng gói/ bao bcgamd
liu
3
link
Tng liên kết dliucó t r ách nhimtruyngamdliut
mt nút đếnnút gnkqua mt liênkết truynthông
4
Tng LKDL: ngcnh
Tương t nhưsvnchuyn
Mt chuyếnđitPr incet on
đến Lausanne
limo: Pr incet on đếnJFK
plane: J FK đến Geneva
t r ain: Geneva đến Lausanne
khách du lch = dat agr am
đonvnchuyn= liên kết
t r uynthông
phương t hcvnchuyn=
giao t hctng lkdl
đilýdulch = giithut
đnh t uyến
Gam dliuđượcchuyên
chbi c giao t hckhác
nhau tng LKDL qua các
liên kết truyn t hông khác
nhau:
Vd: Et her net liên kếtđu
t iên, f r ame r elay các liên
kết t r ung gian, 802.11 liên
kết cuicùng(xemhình
slide t r ước)
Migiaothctng LKDL
cung cpcácdch vkhác
nhau
Vd: t hcung cpdch v
chuyndliutin cyhoc
không qua liên kết t r uyn
t hông.
Các dch vcatng LKDL
Đnh khung, t r uy cpđường t r uyn:
đóng gói gam dliu o khung, t hêm t hông t in điukhinvà
kimsoát li(header, trailer)
t r uy cpkênhtruynnếuphương t intruynlàchias
đachvt lýđược dùng t r ong khung đđnh danh ngunvàđích
khácviđachI P!
Chuyndliutin cygiacácnút link
hiếmkhiđượcthchincác liên kết cótllibit thp(cáp
quang, mt sloicápđôi dây xon)
đượccungcpcác đường t r uynvôtuyếnvìtllicao
5