Transport Layer

How do we identify packets of different applications?

We use a 4 tuple which consists of source IP, source port, destination IP, and destination port

Can we reuse ports?

Case 1: Destination Different

If destination IP or port different, then we can use the same source port to establish connection

Case 2: Source Different

If a server is listen to clients and two clients have different source IP or port, then the server can use the same port to establish connection

Well-Known Port Number

ServicePortServicePort
FTP20 (data) / 21 (command)HTTP80/8080
SSH22HTTPS443
Telnet23POP3 (mail client server)110
SMTP (mail server server)25IMAP (mail client server)143
DNS53NFS2049
DHCP67 (server) / 68 (client)PPTP(VPN)1723

UDP

D-NASA-Lec06a-UDP

TCP

D-NASA-Lec06b-TCP

DNS

D-NASA-Lec06c-DNS

NAT

D-NASA-Lec05d-NAT

DHCP

D-NASA-Lec06e-DHCP