Professional Documents
Culture Documents
23.1 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
23-1 PROCESS-TO-PROCESS DELIVERY
23.2
Note
23.3
Figure 23.1 Types of data deliveries
23.4
Figure 23.2 Port numbers
23.5
Figure 23.4 IANA ranges
23.6
Figure 23.5 Socket address
23.7
Figure 23.6 Multiplexing and demultiplexing
23.8
Figure 23.8 Position of UDP, TCP, and SCTP in TCP/IP suite
23.9
23-2 USER DATAGRAM PROTOCOL (UDP)
23.10
Table 23.1 Well-known ports used with UDP
23.11
Figure 23.9 User datagram format
23.12
Note
UDP length
= IP length IP headers length
23.13
23-3 TCP
23.14
Table 23.2 Well-known ports used by TCP
23.15
Figure 23.13 Stream delivery
23.16
Figure 23.14 Sending and receiving buffers
23.17
Figure 23.15 TCP segments
23.18
Note
23.19
Example 23.3
23.20
Note
23.21
Note
23.22
Figure 23.16 TCP segment format
23.23
Figure 23.17 Control field
23.24
Connection Control
TCP is connection-oriented.
It establishes a virtual path between the source and
destination.
All of the segments belonging to a message are then
sent over this virtual path.
You may wonder how TCP, which uses the services
of IP, a connectionless protocol, can be connection-
oriented.
The point is that a TCP connection is virtual, not
physical.
TCP operates at a higher level. TCP uses the
services of IP to deliver individual segments to the
receiver, but it controls the connection itself.
If a segment is lost or corrupted, it is retransmitted.
23.25
Figure 23.18 Connection establishment using three-way handshaking
23.26
Note
23.27
Note
23.28
Note
23.29
Figure 23.19 Data transfer
23.30
Figure 23.20 Connection termination using three-way handshaking
23.31
Note
23.32
Note
23.33
Figure 23.21 Half-close
23.34
TCP States
23.35