Professional Documents
Culture Documents
Chuong1 PDF
Chuong1 PDF
2007
dce
2007
Gii thiu mn hc
ng lc
Mc ch
Sinh vin chuyn ngnh CE, c kin thc v thit k mch, cu trc my tnh, ngn ng lp trnh cp
cao
K s chuyn ngnh
nh gi
Gii thiu cc khi nim, thut ng v cc phng php tip cn c dng trong cc h thng
truyn d liu
Hiu vic truyn s liu gia 2 thit b v cc vn lin quan
Hiu vic truyn d liu qua mng gia 2 thit b thng qua mt nghi thc giao tip
Gii thiu mt s mng truyn s liu c s dng hin nay
i tng
http://www.cse.hcmut.edu.vn/~anhvu
dce
2007
Ni dung mn hc
dce
2007
dce
2007
Chng 1
dce
2007
Source System
Source
Transmitter
Transmission
System
Receiver
Destination
ng dng d liu
ng dng m thanh, ting ni
ng dng video
ng dng thi gian thc
V du
Data Communication and Computer Networks
dce
2007
dce
2007
dce
2007
My in
a/bng t
Cng sut tnh ton
Tp hp d liu
Phn tn ti
Tnh ton song song
Tnh ton theo m hnh client-server
Fault tolerance
dce
2007
Truyn s liu
Destination System
Source System
Source
Transmitter
Transmission
System
Receiver
Destination
10
dce
2007
Source system
Source
Switching
node
Trans
mitter
Destination system
Trans
mission
System
Receiver
Dest
ination
Local-Area
Network
11
dce
2007
Cu hnh
Chuyn mch
Ethernet chuyn mch (mt hoc nhiu b chuyn mch)
ATM LAN
Fibre channel
Khng dy
C ng
D dng ci t
Data Communication and Computer Networks
12
dce
2007
Cng ngh
Chuyn mch mch (circuit-switching)
ng truyn dn dnh ring gia 2 node mng
Frame Relay
c dng trong chuyn mch gi c xc sut li thp
ATM
Ch truyn bt ng b (Asynchronous Transfer Mode)
Dng cc gi c kch thc c nh (gi l cell)
ISDN
Mng s cc dch v tch hp (Integrated Services Digital Network)
13
dce
2007
14
dce
2007
Cu hnh mng
15
dce
2007
Computer I
Computer II
Application process
User-to-user
communication
Application process
Communication
subsystem
Computer-to-computer
communication
Communication
subsystem
Computer-to-network communication
16
dce
2007
H thng
i tng vt l, cha mt
hoc nhiu thc th
My tnh
Thit b u cui
Cm bin t xa
Ng ngha (semantic)
Thng tin iu khin
X l li
nh thi (timing)
ng b
Tun t
17
dce
2007
Tiu chun ha
u im
Bo m th trng ln cho cc thit b v cc phn mm
Cho php cc sn phm ca cc nh cung cp c th giao tip vi nhau
Nhc im
Hn ch s pht trin cng ngh
C th c nhiu chun cho cng mt cng ngh
18
dce
2007
Tiu chun ha
H thng kn (s hu ring)
c nh ngha bi mt vi nh sn xut my tnh
Ch lin quan n vic truyn d liu trong mt my tnh hoc gia my tnh vi cc
thit b ngoi vi
H thng DoD
TCP/IP Transmission Control Protocol/Internet Protocol)
H thng m
c nh ngha bi ISO
OSI Open Systems Interconnection
19
dce
2007
M hnh 3 lp
Network Access Layer
Transport Layer
Trao i d liu tin cy
c lp vi mng ang dng
c lp vi ng dng
Application Layer
H tr cc ng dng ngi dng khc nhau (e.g. e-mail,
file transfer)
Data Communication and Computer Networks
20
dce
2007
Network Address
Computer A
Service Access
Point (SAP)
Port /v m
hnh TCP/IP
Computer C
Computer B
Data Communication and Computer Networks
21
dce
2007
Computer Y
Application Protocol
Transport Protocol
Network access
protocol
Network access
protocol
22
dce
2007
Application Data
Transport
header
Transport
Protocol Data Units
Transport
header
Network
Protocol Data Units
(packages)
Data Communication and Computer Networks
Network
header
Network
header
2007, Dr. Dinh Duc Anh Vu
23
dce
2007
Network PDU
Thm header mng cha
a ch mng ca my ch
Yu cu dch v
Source X
Destination Y
Application
Record
Transport
Record
DSAP
DSAP
Application
Transport
Transport PDU
Network
access
DHost
DHost
Network
access
Packet
24
dce
2007
25
dce
2007
M hnh DoD
Pht trin bi DARPA (Defense Advanced Research Projects Agency) cho mng
chuyn mch gi ARPANET (sau ny l Internet)
Sp xp phn cp ca cc thc th c kh nng giao tip vi cc thc th ngang
cp trong mt h thng khc
Trong mt h thng, mt thc th cung cp dch v cho cc thc th khc v cng
s dng dch v ca cc thc th khc
Nhn mnh vo s kt ni lin mng, ngha l, khi 2 thc th giao tip khng ni
chung mt mng
Quan tm c h thng hng n kt ni v khng kt ni
Bao gm cc ng dng: trao i file (FTP, RCP), m phng terminal (telnet,
rlogin), chia x v truy cp file phn tn (NFS), thc thi lnh t xa (rsh, rexec), in
n t xa (lpr), 802.X, X.25, mail (SMTP), qun tr mng (NSP, SNMP)
TCP/IP c pht trin ng thi vi m hnh ISO
Khng cha cc nghi thc lin quan n cc lp trong m hnh ISO
Hu ht cc chc nng ca m hnh ISO c tch hp trong TCP/IP
Lp ng dng
Lp vn chuyn (giao tip gia cc thit b)
Lp Internet
Lp truy xut mng
Lp vt l
26
dce
2007
Source System
Source
Transmitter
Transmission
System
Receiver
Destination
27
dce
2007
28
dce
2007
Mc a ch
a ch duy nht cho mi h thng u cui v router
a ch lp mng
a ch IP hoc a ch internet (TCP/IP)
Network service access point
(NSAP OSI)
Mt hot ng n gin
Qu trnh gn vi port 1 trong my A gi thng bo ti port 2 trong
my B
Qu trnh trong my A chuyn message ti TCP gi ti my B
TCP chuyn xung IP gi cho my B
IP chuyn xung lp mng (e.g. Ethernet) gi ti router J
To ra tp cc PDU c bao bc
Data Communication and Computer Networks
29
dce
2007
Application Data
IP
TCP segment
IP Header TCP Header
Application Data
Ethernet
Driver
IP datagram
Ethernet
Header
14
Application Data
20
Ethernet
Trailer
4
Ethernet
Ethernet Frame
46 1500 bytes
30
dce
2007
FTP
Protocol
FTP
Server
TCP
TCP
Protocol
TCP
IP
IP
Protocol
Ethernet
Driver
Ethernet
Protocol
IP
Ethernet
Driver
Token Ring
Driver
IP
Protocol
IP
Token Ring
Protocol
Token Ring
Driver
Router
Ethernet
Token Ring
31
dce
2007
32
7 lp
ng dng (application)
Trnh by (presentation)
Giao dch (session)
Vn chuyn (transport)
Mng (network)
Lin kt d liu (data link)
Vt l (physical)
Application Layer
OSI environment
2007
Presentation Layer
Session Layer
Transport Layer
Network environment
dce
Network Layer
Datalink Layer
Physical Layer
2007, Dr. Dinh Duc Anh Vu
33
dce
2007
Total
Communication
Function
Layer N
Layer N entity
Decompose
(modularity,
information-hiding)
Protocol with
peer Layer N
Service from
Layer N-1
Layer 1
Physical
OSI-wide standards
(e.g. network management, security)
34
dce
2007
Addressing
(Service Access Point)
Layer N
Protocol Specification
(Precise syntax and
semantics for
interoperability)
35
dce
2007
Application
Presentation
Physical
Session
Transport
Data Link
Presentation
Virtual session
Session
Network
Application
Transport
Network
Network
Network
Data Link
Data Link
Data Link
Data Link
Data Link
Physical
Physical
Physical
Physical
Physical
Physical link
External
site
Subnet
node
Subnet
node
External
site
36
dce
2007
Lp hng ti ng dng
Lp ng dng
Cung cp cho cc ng dng cc dch v truy cp mng
Lp trnh by
Cung cp nh dng d liu c dng truyn d liu gia cc
my tnh ni mng (chuyn i m k t, mt m d liu, nn d liu,
)
Lp giao dch
Cung cp cu trc iu khin truyn s liu gia cc ng dng (tr
gip tng i, quyn truy cp, chc nng tnh cc, )
Cho php 2 my tnh to, s dng v xa kt ni
C kh nng nhn dng tn v cc chc nng khc (security) cn thit
cho 2 my tnh ni kt qua mng
37
dce
2007
Lp hng ti ng dng
Lp vn chuyn
Cung cp dch v thng bo end-to-end cho cc lp trn
Cung cp ng ng vn chuyn gi end-to-end cho lp vn chuyn
Bo m d liu c truyn khng c li, theo th t v khng mt
mt, ngt qung hoc d tha
Chu trch nhim ng gi d liu t mt thng bo ln thnh nhiu
thng bo kch thc nh hn gi i v tp hp cc thng bo nh
thnh mt thng bo ban u khi nhn c (c kh nng a hp)
Ngt thng bo thnh cc gi nh (c kch thc thch hp) v tp hp
cc gi cho lp mng
a hp cc giao dch vi cng cc node ngun/ch
Ti lp th t cc gi ti ch n
Khi phc li, h hng
iu khin dng t ngun n ch v ngc li
38
dce
2007
Transport
layer
Network
layer
DLC layer
link 1
DLC layer
link 2
DLC layer
link 3
39
dce
2007
40
dce
2007
Li truyn
Suy gim cng sut t/h
Suy gim do nhiu
M hnh knh truyn n gin: knh nh phn i xng (Binary Symetric
Channel)
P: xc sut li 1 bit
Li xy ra c lp
Thc t, li xy ra thnh chm
Data Communication and Computer Networks
41
dce
2007
Computer II
Application process
Application process
Application layer
Application layer
Presentation layer
Presentation layer
Session layer
Session layer
Transport layer
Transport layer
Network layer
Network layer
Datalink layer
Datalink layer
Physical layer
Physical layer
Data network
Network environment
OSI environment
Real systems environment
Data Communication and Computer Networks
42
dce
2007
App. X
Incomming PDU
reduction
App. Y
AH
PH
SH
TH
NH
LH
LT
Communication
path
(i.e. point-to-point
link, network)
43
dce
2007
TCP/IP
Application
Presentation
Application
User
space
Session
Transport
Network
Software
Transport
(host-to-host)
Firmware
Internet
Data link
Network
Access
Physical
Physical
Hardware
Operating
system
44
dce
2007
Function
Application
Presentation
Session
FTP
TFTP
SMTP
Others
TCP
4
Transport
Network
Datalink
IP
Ethernet
7
UDP
ICMP
ARP
TokenRing
RARP
Other
Physical
45
dce
2007
c thm
W. Stallings, Data and Computer
Communications (7th edition), Prentice Hall
2004, chapter 1
Web sites for IETF, IEEE, ITU-T, ISO
Internet Requests for Comment (RFCs)
Usenet News groups
comp.dcom.*
comp.protocols.tcp-ip
46