Documente Academic
Documente Profesional
Documente Cultură
Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 2
Objectives
Describe the forms of data to which TCP and UDP are applied.
Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 3
Transmission Control Protocol
Request Reply
Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 4
TCP Ports
Protocol Port
FTP 20 - 21
HTTP 80
TELNET 23
SMTP 25
Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 5
TCP Header
0 15 31
Sequence Number
Header Resv N C E U A P R S F
Window
Length . SW CRCSS Y I
R EGKHT NN
Options Padding
Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 6
TCP Connection Establishment
Host A Server A
Send S
YN
(seq=a,
CTL=SY
N)
C K , A CK)
S YN,A =SYN
nd TL
Se k=a+1,C
ac
eq =b,
(s
Se
(seq nd A
=a+ CK
1,ac
k =b+
1, C
TL=
A CK)
Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 7
TCP Transmission Process
Host A Server A
Send 1,2,3
Acknowledge 4
Send 4,5,6
Acknowledge 4
Send 4,5,6
Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 9
TCP Flow Control
4 8
0 49 window 20
ack 2
length 1
024 window
length 1 4 09 6
024 window
4 09 6
048
window 2
ack 4097
length 1
0 24 window
length 1 40 9 6
0 24 window
40 9 6
Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 10
TCP Connection Termination
Host A Server A
FIN
K
AC
FIN
TIME_WAIT 2x MSL
(MSL = 2 minutes)
ACK
. Closed
.
Closed
Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 11
User Datagram Protocol
Host A Host B
Request Reply
Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 12
UDP Datagram Format
UDP
0 15 16 31
Host A Host B
Host A Host B
Voice/Video
Packet Loss
Copyright © 2013 Huawei Technologies Co., Ltd. All rights reserved. Page 16
Thank you
www.huawei.com