Bài giảng Computer Networks 1 (Mạng máy tính 1) - Lecture 8: Transport Layer and Socket Programming with Java - Phạm Trần Vũ
Lecture 8: Transport Layer and
Socket Programming with Java
Reference:
Chapter 6 - “Computer Networks”,
Andrew S. Tanenbaum, 4th Edition, Prentice Hall, 2003.
2
The Transport Service
• Services Provided to the Upper Layers
• Transport Service Primitives
• Berkeley Sockets
• An Example of Socket Programming:
ꢀ An Internet File Server
3
Elements of Transport Protocols
• Addressing
• Connection Establishment
• Connec
• Flow Control and Buffering
• Multiplexing
• Crash Re
9
Connection Release
Abrupt disconnection with loss of data.
12
The Internet Transport Protocols
ꢁ UDP – User Datagram Protocol
•
Connection-less service
•
Useful in client-server situations: Remote
Procedure Call, real-time AV streaming
•
Connection oriented service
•
network
•
Most widely used in Internet
15
TCP Service Model
ꢁ Sender and receiver need to create
connection end-points first, called sockets
ꢁ Each socket is addressed by the host IP
address and a port number
ꢁ TCP connections are full-duplex
17
Typical TCP Applications and Ports
Port
21
Protocol
FTP
Use
File transfer
23
25
69
Remote login
E-mail
Telnet
SMTP
TFTP
Finger
Trivial File Transfer Protocol
Lookup info about a user
World Wide Web
Remote e-mail access
USENET news
79
80
HTTP
POP-3
110
119
NNTP
18
Tải về để xem bản đầy đủ
Bạn đang xem 20 trang mẫu của tài liệu "Bài giảng Computer Networks 1 (Mạng máy tính 1) - Lecture 8: Transport Layer and Socket Programming with Java - Phạm Trần Vũ", để tải tài liệu gốc về máy hãy click vào nút Download ở trên
File đính kèm:
bai_giang_computer_networks_1_mang_may_tinh_1_lecture_8_tran.pdf

