User Datagram Protocol
User Datagram Protocol
Process-to-Process Delivery:
UDP, TCP, and SCTP
23-1 PROCESS-TO-PROCESS DELIVERY
23.3
Figure 23.1 Types of data deliveries
23.4
Figure 23.2 Port numbers
23.5
Figure 23.3 IP addresses versus port numbers
23.6
Figure 23.4 IANA (Internet Assigned Number Authority) ranges
23.7
Figure 23.5 Socket address
23.8
Figure 23.7 Error control
23.9
Figure 23.8 Position of UDP, TCP, and SCTP in TCP/IP suite
23.10
23-2 USER DATAGRAM PROTOCOL (UDP)
23.12
Figure 23.9 User datagram format
23.13
Note
UDP length
= IP length – IP header’s length
23.14
Figure 23.10 Pseudoheader for checksum calculation
23.15
Example 23.2
23.16
Figure 23.11 Checksum calculation of a simple UDP user datagram
23.17
Q. The following is a dump of a UDP header in hexadecimal form: 06 32
00 0D 00 1C E2 17
What is the
(a)Source port number
(b) Destination port number
(e) Considering that an IP frame can have a maximum total length of 65 535
23.19
23-3 TCP
23.21
Figure 23.13 Stream delivery
23.22
Figure 23.14 Sending and receiving buffers
23.23
Figure 23.15 TCP segments
23.24
The bytes of data being transferred in
each connection are numbered by TCP.
The numbering starts with a randomly
generated number.
23.25
Example 23.3
23.26
The value in the sequence number field
of a segment defines the
number of the first data byte
contained in that segment.
23.27
The value of the acknowledgment field
in a segment defines
the number of the next byte a party
expects to receive.
The acknowledgment number is
cumulative.
23.28
Figure 23.16 TCP segment format
23.29
The following is a dump of a TCP header in hexadecimal format.
header.
• The control field is 0x002. This indicates a SYN segment used for
connection establishment.
23.32
Table 23.3 Description of flags in the control field
23.33
Figure 23.18 Connection establishment using three-way handshaking
23.34
Note
23.35
Note
23.36
Note
23.37
Figure 23.19 Data transfer
23.38
Figure 23.20 Connection termination using three-way handshaking
23.39
Note
23.40
Note
23.41
Figure 23.21 Half-close
23.42
Figure 23.22 Sliding window
23.43
Note
23.44