A note on the use of these PowerPoint slides:
We’re making these slides freely available to all (faculty, students, readers). They’re
in PowerPoint form so you see the animations; and 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) that you mention their source (after all, we’d
like people to use our book!)
If you post any slides 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.
For a revision history, see the slide note for this page.
Thanks and enjoy! JFK/KWR
All material copyright 1996-2023
J.F Kurose and K.W. Ross, All Rights Reserved
Computer Networking:
A Top-Down Approach
8th edition
Jim Kurose, Keith Ross
Pearson, 2020
Chương 2
Tầng ng dụng
(Application Layer)
2
Tầng Ứng dụng Tổng quan
oNguyên lý của các ứng dụng mạng
oWeb và HTTP
oE-mail, SMTP, IMAP
oHệ thống phân giải tên miền DNS
oCác ứng dụng P2P
oLập trình socket với UDP và TCP
3
Tầng Ứng dụng: Tổng quan
Mục tiêu:
oKhái niệm khía cạnh triển khai
của các giao thức tầng ứng dụng
hình dịch vụ tầng vận chuyển
hình client-server (máy khách
máy chủ)
hình peer-to-peer (ngang hàng)
Tìm hiểu
oTìm hiểu về các giao thức thông
qua việc xem xét các giao thức
phổ biến của Tầng ng dụng:
HTTP
SMTP, IMAP
DNS
oLập trình ứng dụng mạng
Socket API
4
Một số ứng dụng mạng
Mạng xã hội
Web
Nhắn tin, chat
e-mail
oT chơi trực tuyến với nhiều
người cùng tham gia
oTruyền hình trực tuyến (streaming
stored video – Vd: YouTube, Hulu,
Netflix)
Chia sẻ file P2P
Đàm thoại trên mạng IP (e.g.,
Skype)
Hội thảo video thời gian thực (e.g.,
Zoom)
Internet search
Đăng nhập từ xa
Q: Ứng dụng ưa thích của bạn?
mobile network
home network
enterprise
network
national or global ISP
local or
regional
ISP
datacenter
network
content
provider
network
application
transport
network
data link
physical
application
transport
network
data link
physical
application
transport
network
data link
physical
5
Tạo một ứng dụng mạng
Viết chương trình:
Chạy trên các hệ thống đầu cuối (khác nhau)
Giao tiếp qua mạng
Ví dụ: phần mềm máy chủ web giao tiếp với
phần mềm duyệt web
Không cần viết phần mềm cho các thiết bị
trong mạng lõi
Các thiết bị trong mạng lõi không chạyc
ứng dụng của người dùng
Các ứng dụng trên các hệ thống đầu cuối
cho phép phát triển ứng dụng và quảng bá
nhanh chóng