
Chương 3.
Giao thức tầng giao vận (transport layer)
Trần Quang Hải Bằng
Faculty of Information Technology
University of Communication and Transport (Unit 2)
Office location: Administration building, Block D3, Room 6
Office phone: 38962018
Cell phone: N/A
Email: tqhbang@utc2.edu.vn
Chương 3. Giao thc tng giao vn (transport layer)
06/02 24/03/2012

Chương 3. Giao thc tng giao vn (transport layer)
06/02 24/03/2012
Ch3. The Transport Layer
1. Transport Layer Services & Principles.
2. Multiplexing/Demultiplexing.
3. Connectionless Transport (UDP).
4. Principles of Reliable Data Transfer (RDT).
5. Connection'oriented Transport (TCP).
6. Congestion Control.
7. Sử dụng TCP hay UDP
Chương 3. Giao thc tng giao vn (transport layer)
06/02 24/03/2012
Transport Layer Services & Principles
Cung cấp phương tiện truyền
thông logic (logical
communication) giữa các
applications.
PDUs
application: messages.
transport: segments (đoạn).
Các msg từ tầng application gửi
xuống được chia nhỏ thành các
đoạn (segments).
Transport protocol được thực thi
tại các trạm cuối (end system).

Chương 3. Giao thc tng giao vn (transport layer)
06/02 24/03/2012
Transport & Network layers
Network layer:
Truyền thông logic giữa
các trạm làm việc (host).
PDUs = packets (gói).
IP (Internet Protocol) là
giao thức truyền không tin
cậy.
Transport layer:
Tạo phương thức truyền
thông logic giữa các ứng
dụng (application/process).
Nhận các gói tin từ tầng
Network gửi lên.
Household analogy:
processes = kids
app messages = letters in
envelopes
hosts = houses
transport protocol = Ann and
Bill
network'layer protocol =
postal service
Chương 3. Giao thc tng giao vn (transport layer)
06/02 24/03/2012
Transport Protocols
TCP (Transmission Control Protocol)
Connection'oriented (có liên kết).
Flow control (điều khiển luồng).
Congestion control (điều khiển chống nghẽn mạng).
reliable transport protocol (tin cậy)
UDP (User Datagram Protocol)
Connectionless.
Không có kiểm soát luồng và kiểm soát nghẽn mạng.
unreliable transport protocol.

Chương 3. Giao thc tng giao vn (transport layer)
06/02 24/03/2012
Ch3. The Transport Layer
1. Transport Layer Services & Principles.
2. Multiplexing/Demultiplexing.
3. Connectionless Transport (UDP).
4. Principles of Reliable Data Transfer (RDT).
5. Connection'oriented Transport (TCP).
6. Congestion Control.
7. Sử dụng TCP hay UDP
Chương 3. Giao thc tng giao vn (transport layer)
06/02 24/03/2012
Multiplexing/demultiplexing (mux/demux)
Multiplexing (dồn kênh): Các msgs từ các apps (P1, P2) được chia
nhỏ và đóng gói thành các segments (thêm header) dồn kênh diễn
ra ở sending hosts
Demultiplexing (phân kênh): Các segments nhận được được gửi tới
apps tương ứng (P3, P4) phân kênh diễn ra ở receiving hosts

Chương 3. Giao thc tng giao vn (transport layer)
06/02 24/03/2012
Dồn và chia kênh thế nào?
source port number: ứng
dụng gửi dữ liệu.
destination port number:
ứng dụng nhận dữ liệu.
Port number:
0'1023: well'known port
number (đã được giữ cho các
apps phổ biến).
1024 – 65535.
!
"
#$%&'"
Chương 3. Giao thc tng giao vn (transport layer)
06/02 24/03/2012
Mux/demux: Ví dụ
( )
*+
,*
*
,*+
*
-
(
-
)
-
$
./*$
'/*)
*+
,*01
./*$
'/*)
*
,*01
*-
./*(
'/*)
*+
,*01