ch23 Udp TCP SCTP
ch23 Udp TCP SCTP
Process-to-Process Delivery:
UDP, TCP, and SCTP
23.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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
Internet Corporation for Assigned Names and Numbers
23.7
Figure 23.5 Socket address
address.
23.8
Figure 23.6 Multiplexing and demultiplexing
23.9
Figure 23.7 Error control
23.10
4. Buffering out-of-order packets until the missing packets arrive.
Figure 23.8 Position of UDP, TCP, and SCTP in TCP/IP suite
23.11
23-2 USER DATAGRAM PROTOCOL (UDP)
23.13
Example 23.1
23.14
Example 23.1 (continued)
SNMP uses two port numbers (161 and 162), each for a
different purpose, as we will see in Chapter 28.
23.15
Figure 23.9 User datagram format
23.16
Note
UDP length
= IP length – IP header’s length
23.17
Figure 23.10 Pseudoheader for checksum calculation
23.18
Example 23.2
23.19
Figure 23.11 Checksum calculation of a simple UDP user datagram
23.20
Figure 23.12 Queues in UDP
23.21
23-3 TCP
23.23
Figure 23.13 Stream delivery
23.24
Figure 23.14 Sending and receiving buffers
23.25
Figure 23.15 TCP segments
23.26
Note
23.27
Example 23.3
23.28
Note
23.29
Note
23.30
Figure 23.16 TCP segment format
23.31
Figure 23.17 Control field
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
Figure 23.23 Example 23.6
23.45
Note
23.46
Note
23.47
Note
In modern implementations, a
retransmission occurs if the
retransmission timer expires or three
duplicate ACK segments have arrived.
23.48
Note
23.49
Note
23.50
Figure 23.24 Normal operation
23.51
Figure 23.25 Lost segment
23.52
Note
23.53
Figure 23.26 Fast retransmission
23.54