Professional Documents
Culture Documents
À À À À À À À À 13 4UDP
À À À À À À À À 13 4UDP
À À À À À À À À 13 4UDP
อ.กายรัฐ 1
UDP : User Datagram Protocol
• RFC 768
• connectionless protocol (no connection establishment)
• provide unreliable service
• use socket as TCP
อ.กายรัฐ 2
UDP Encapsulation
อ.กายรัฐ 3
Ports
อ.กายรัฐ 4
Ports
• Port numbers are generally allocated by
• 0 not used
• 1- 255 Reserves port to well known service
• 256 - 1023 Other reserve port
• 1024 - 65535 user defined server ports
• UNIX store general used ports in /etc/service
อ.กายรัฐ 5
Sockets
• Socket : a pair of the IP address and the port number
IP address Port number
172.28.80.96, 5160
• IP address is a unique to a node, the port is unique on a node
the socket gives a unique identification of an application layer
service
อ.กายรัฐ 6
Socket Address
• A connections identified by the socket address at its to ends
– client socket : 172.28.80.96,3000; 192.168.100.3 ,21
– server socket : 192.168.100.3,21 ; 172.28.80.96,3000
IP 172.28.80.96 IP 192.168.100.3
connection
Client port: 3000 Server port: 21
อ.กายรัฐ 7
UDP Format
0 15 16 31
Source port :16 Destination port: 16
UDP length :16 Checksum : 16
data
0 78 15 16 31
Source IP address : 32
Destination IP address : 32 Pseudo header
Zero:8 Protocol : 8 UDP length :16
Source port : 16 Destination port : 16 UDP header
UDP length : 16 Checksum : 16
Data….
อ.กายรัฐ 9
UDP Pseudo Header
อ.กายรัฐ 10
UDP for Application
• TFTP
• DNS
• RPC, NFS
• SNMP
อ.กายรัฐ 11