Professional Documents
Culture Documents
age 2 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Objectives
Upon completion of this section, you will be able to:
Describe the common differences between TCP and UDP.
Describe the forms of data to which TCP and UDP are applied.
Identify well known TCP and UDP based port numbers.
age 3 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Transmission Control Protocol
Request Reply
age 4 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
TCP Ports
Host A HTTP Server
Protocol Port
FTP 20 - 21
HTTP 80
TELNET 23
SMTP 25
age 5 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
TCP Header
0 15 31
Sequence Number
Header NC E U A P R S F
Resv. S W C R C S S Y I Window
Length R E G K HT NN
Options Padding
age 6 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
TCP Connection Establishment
Host A Server A
Send S
YN
(seq=a
,CTL=S
YN )
,A CK)
K Y N
Y N ,AC CTL=S
S end
S
= a + 1,
ck
= b,a
(seq
S e
(seq nd
=a + ACK
1 , ac
k=b
+1 ,CT
L=A
CK)
age 7 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
TCP Transmission Process
Host A Server A
Send 1,2,3
Acknowledge 4
Send 4,5,6
Acknowledge 4
Send 4,5,6
age 8 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
TCP Flow Control
2048
2 0 49 window
a c k
length
1 02 4
length window
1 0 24 4096
window
40 9 6
204 8
window
ack 40 97
length
1024
window
length 4 0 96
1024
window
4 0 96
age 9 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
TCP Connection Termination
Host A Server A
FIN
K
AC
FIN
TIME_WAIT 2x MSL ACK
(MSL = 2 minutes)
. Closed
.
Closed
age 10 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
User Datagram Protocol
Host A Host B
Request Reply
age 11 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
UDP Datagram Format
IP UDP Data
0 15 16
31
Source port Destination port
8 bytes
Length Checksum
age 12 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
UDP Forwarding Behavior
Host A Host B
age 13 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
UDP Forwarding Behavior
Host A Host B
Voice/Video
Packet Loss
age 14 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Summary
What is the purpose of the acknowledgement field in the TCP header?
Which TCP code bits are involved in a TCP three-way handshake?
age 15 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Thank You
www.huawei.com