Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
This slides will introduce TCP/IP protocol group, function of layers of TCP/IP protocol and IP subnet planning.
Page 1
Page 2
Page 3
TCP/IP
Application layer
Application layer
Presentation layer
Conversation layer
Transport layer
Network layer Data link layer Physical layer
Page 4
Provide application program network interfaces Establish terminal to terminal connection Addressing and route selecting Physical media access
Transport Layer
IP
Interconnection Layer
ARP/RARP
Physical Layer
Page 5
Data Encapsulation
TELNET 23
FTP 20/21
SMTP 25
TFTP 69
TCP/UDP
6/17 IP PACKETS FRAMES BITS
Page 6
Application Layer
File transfer
FTP, TFTP
Mail service
SMTP, POP3
Network management
Page 7
Application layer
Transport layer
TCP UDP
Network layer
Page 8
16
24
16 bits destination port 16 bits UDP checksum
31
24
31
ACK
SYN
FIN
PSH
RST
offset
Reserved(6 bits
Port Number
TCP protocol uses port numbers to mark and distinguish
80
20/21
23
25
53
69
161
Socket
TCP
UDP
IP data packet
Page 10
TCP Connection
Internet client server
Page 11
Slide Window
Page 12
Application layer
IP
Transport layer
ARP
Network layer
RARP
ICMP
Page 13
IP Header Format
0 4 8 Message length Service type Flag 16 Total length Chip offset 31
Version
Identification
Time to live
Protocol
Page 14
ARP
This is my Ethernet address 00-E0-FC-0000-12 IP:10.0.0.1/24 MAC:00-E0-FC-00-00-11 I need the Ethernet address of 10.0.0.2 ARP Reply
IP:10.0.0.2/24 MAC:00-E0-FC-00-00-12
ARP Request?
Page 15
RARP
Your IP address is 10.0.0.1
Diskless workstation
RARP Reply
RARP Server
Page 16
ICMP
I am here.
B
ICMP Echo Reply
Is B accessible?
Page 17
Page 18
Introduction to IP Address
IP address uniquely identifies a piece of network equipment Private IP addresses
10.110.192.111
20.130.188.144
Page 19
Classification of IP Addresses
0
Network(7bit)
Host(24bit)
Class A
1 0 Network(14bit)
Host(16bit)
Class B
1 1 0 Network(21bit)
Host(8bit)
Class C
1 1 10
Multicast address
Class D
1 111 0
Reserved
Class E
Page 20
Special IP Addresses
Network part Any Host part Completely0 Address type Network address Broadcast address Loopback address Use Representing a network Segment All the nodes of a Specially designated network segment Loop test Huawei Quidway router used All networks Designate default routes All nodes of Local network segment
Page 21
Any
Completely1
127
Any
Completely0
Completely1
Broadcast address
172.16.30.1
172.16.28.1
Ethernet
172.16.30.10
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 22
172.16.4.1 255.255.255.0
Ethernet
Ethernet
172.16.8.1 255.255.255 .0
All rights reserved Page 23
Subnet Planning
201.222.5.8 255.255.255.248
201.222.5.0 255.255.255.0
201.222.5.9 255.255.255.248
201.222.5.16 255.255.255.248
201.222.5.24
255.255.255.248 201.222.5.32 255.255.255.248
Page 24
Host address
Broadcast address
172.16.2.1172.16.2.254
172.16.2.255
IP host address
172.16.2.120
Subnet mask
255.255.255.0
Page 25
Host address
Broadcast address
192.168.5.121-192.168.5.126
192.168.5.127
IP host address
192.168.5.121
Subnet mask
255.255.255.248
Page 26
192.168.1.64/27
ISP
Announce 192.168.1.0
192.168.1.164/30
192.168.1.168/30
192.168.1.96/27
192.168.1.172/30
192.168.1.128/27
Page 27
extensibility. 198.168.1.0
Internet
198.168.2.0
ISP
198.168.3.0
Page 28
Summary
TCP/IP stack and OSI reference model Protocols of TCP/IP stack Principle of IP subnet planning Example of planning IP subnet
Page 29
Thank You
www.huawei.com