Documente Academic
Documente Profesional
Documente Cultură
This slides will introduce TCP/IP protocol stack, function of layers of TCP/IP protocol and IP subnet planning.
Page 1
Upon completion of this course, you will be able to: Describe TCP/IP and OSI Reference Model Describe function of layers of TCP/IP Describe classification of IP addresses Plan subnet by IP addresses
Page 2
Page 3
Application layer Presentation layer Conversation layer Transport layer Network layer Data link layer Physical layer Transport layer Network layer Data link layer Physical layer Application layer
Page 4
Provide application program network interfaces Establish terminal to terminal connection Addressing and route selecting Physical media access
Transport Layer IP
Network Layer
ARP/RARP
Physical Layer
Page 5
Data Encapsulation
TELNET 23
SMTP 25
TFTP 69
Page 6
Application Layer
File transfer FTP, TFTP Mail service SMTP, POP3 Network management SNMP, Telnet, Ping, Tracert Network service HTTP, DNS, WINS
Page 7
TCP UDP
Network layer
Page 8
16
31
31
offset
Reserved(6 bits)
Page 9
synchronize sequence numbers sender is finished sending data reset connection push data to receiving process as soon as possible
Port Number
TCP protocol uses port numbers to mark and distinguish various application programs.
HTTP FTP Telnet SMTP DNS TFTP SNMP
80
20/21
23
25
53
69
161
Socket
TCP
UDP
IP data packet
Page 10
10
TCP Connection
Internet client
SYN(s eq=a)
server
Page 11
Slide Window
len 1024 len 1024 win4096 win4096 win4096 win4096 win2048
win2048
win2048 ack 6145 win2048
win2048 win2048
Page 12
Application layer
IP
Transport layer
ARP
Network layer
RARP ICMP
Page 13
IP Header Format
0 4 IHL 8 Type of Service Flags 16 Total length Fragment offset 31
Version
Header checksum
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 110
Multicast address
Class D
1 111 0
Reserved
Class E
Page 20
Special IP Addresses
Network part Any Any 127 Completely0 Completely1 Host part Completely 0 Completely 1 Any Address type Network address Broadcast address Loopback address All networks Broadcast address Use Representing a network Segment All the nodes of a Specially designated network segment Loop test Designate default routes All nodes of Local network segment
Page 21
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
Page 24
IP host address
172.16.2.120
Subnet mask
255.255.255.0
Page 25
IP host address
192.168.5.121
Subnet mask
255.255.255.128
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
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