Professional Documents
Culture Documents
Pocket Guide
Pocket Guide
0 4-bit version 4-bit header length 8-bit type of service (TOS) 0 D M F F 16 16-bit total length (in bytes) 13-bit fragment offset 16-bit header checksum 20 bytes 31
data
UDP Header
0 16-bit source port number 16-bit UDP length 16 16-bit destination port number 8 bytes 16-bit UDP checksum 31
TCP Header
0 16-bit source port number 16 16-bit destination port number 32-bit sequence number 32-bit acknowledgment number 4-bit header length reserved (6 bits) U A P R S F R C S S Y I G K H T N N 16-bit window size 16-bit urgent pointer options (if any) 20 bytes 31
Reprinted from TCP/IP Illustrated, Volume 1: The Protocols by W. Richard Stevens, Copyright 1994 by Addison-Wesley Publishing Company, Inc.
LISTEN
v rec
:S
N;
sen
S d:
YN
v:
C ,A
passive open
ap se
pl
rec
T RS
nd
:s en d : S da YN ta
SYN_RCVD
se r nd ecv: :< A no CK th in g>
CLOSE_WAIT
FIN_WAIT_1
recv: FIN send: ACK re cv : se FIN nd : A , AC CK K recv: FIN send: ACK active close
CLOSING
FIN_WAIT_2
normal transitions for client normal transitions for server state transitions taken when application issues operation state transitions taken when segment received what is sent for this transition
Reprinted from TCP/IP Illustrated, Volume 2: The Implementation by Gary R. Wright and W. Richard Stevens, Copyright 1995 by Addison-Wesley Publishing Company, Inc.