WPS0!03!02 TCP-IP Protocol and Subnet Planning ISSUE1.0 - 20061229 - A
WPS0!03!02 TCP-IP Protocol and Subnet Planning ISSUE1.0 - 20061229 - A
WPS0!03!02 TCP-IP Protocol and Subnet Planning ISSUE1.0 - 20061229 - A
ODP100002 TCP/IP
Protocol and Subnet
Planning
ISSUE 1.0
www.huawei.com
5 Conversation layer
File transfer
FTP, TFTP
Mail service
SMTP, POP3
Network management
0 8 16 24 31
16 bits source port 16 bits destination port
32 bits sequence number
32 bits acknowledge number
offset Reserved(6 bits
UR
SY
PS
ST
C
K
N
R
FI
H
TCP protocol uses port numbers to mark and distinguish various application programs.
80 20/21 23 25 53 69 161
Sock
et
TCP UDP
IP data packet
SYN(seq=
a)
server
client
k= a+ 1 )
N ( seq =b,ac
S Y
ACK(seq=b+1
)
FIN(seq=
a )
server
client
e q = a + 1 )
A CK( s
c k= a +1)
(s e q =b ,a
FIN
ACK(seq=b+1
)
len 1024
win4096
len 1024
win4096
len 1024
To modify the win4096
len 1024 The sender
win4096 is too fast
widows size
win2048
ack 4097
len 1024
win4096
len 1024
win4096
win2048
ack 6145
len 1024
win4096
len 1024
win4096
Application layer
IP
Transport layer
ARP
Network layer
RARP
Source IP address
Destination IP address
IP options
I need the
Ethernet
address of
10.0.0.2
ARP Request?
What is my
IP address?
RARP Request?
I am here.
A B
ICMP Echo Reply
Is B
accessible?
ICMP Echo Request
10.110.192.111 20.130.188.144
1 1 1 1 0 Reserved Class E
Network Address
Host part Use
part type
Network Representing a network
Any Completely“0”
address Segment
Loop back
127 any Loop test
address
Huawei Quidway router us
All ed
Completely“0”
networks
Designate default routes
Broadcast All nodes of
Completely“1”
address Local network segment
172.16.30.1 172.16.28.1
Ethernet
172.16.30.10
172.16.4.1
255.255.255.0
Ethernet
Ethernet
172.16.8.1
255.255.255.0
201.222.5.8
201.222.5.9
255.255.255.248 255.255.255.248
201.222.5.0
255.255.255.0 201.222.5.16
201.222.5.17
255.255.255.248 255.255.255.248
201.222.5.24
201.222.5.25
255.255.255.248 255.255.255.248
201.222.5.32 201.222.5.33
255.255.255.248
255.255.255.248
192.168.1.32/27
192.168.1.160/30
192.168.1.64/27
192.168.1.164/30
ISP
192.168.1.168/30
Announce
192.168.1.0 192.168.1.96/27
192.168.1.172/30
192.168.1.128/27
198.168.1.0
ISP
198.168.3.0