Ch ng 2 (ti p).ươ ế
Giao th c t ng ng d ng (application layer)
Đoàn Th Thu Hà
Chapter 2. The Application Layer 2
1-6/2005
Discussion
Web programming with ASP.
Visual Basic programming.
Object oriented programming.
Event driven programming.
Component driven programming.
TCP Socket programming.
Simple web server.
Chapter 2. The Application Layer 3
1-6/2005
Ch2. The Application Layer
2.1. M t s khái ni m và nguyên t c.
2.2. Web & Hyper Text Transfer Protocol.
2.3. Web design and HTTP, Web programming.
2.4. File Transfer Protocol.
2.5. Electronic Mail Protocols.
2.6. Domain Name System.
Chapter 2. The Application Layer 4
1-6/2005
2.4. FTP - File Transfer Protocol
Truy n/t i t p (to/from remote host).
Client/server model
Client: đa ra yêu c u truy n t i.ư
Server = remote host.
FTP: RFC 959
file transfer FTP
server
FTP
user
interface
FTP
client
local file
system
remote file
system
user
at host
Chapter 2. The Application Layer 5
1-6/2005
FTP: control & data connections
FTP s d ng TCP.
FTP s d ng đng th i 2 liên k t TCP t i 2 c ng: ế
TCP control connection, port 21: trao đi các thông đi p đi u
khi n (commands, responses…).
TCP data connection, port 20: truy n t i t p.
FTP l u gi tr ng thái client trong phiên làm vi c (state ư
vs. HTTP is stateless).
FTP
client
FTP
server
TCP control connection
port 21
TCP data connection
port 20