Escolar Documentos
Profissional Documentos
Cultura Documentos
2014/11/4
Basic IP Knowledge
and Route
Technology
Lou Sheng 52739
www.huawei.com
Huawei Confidential
Preface
This course is developed on the
basic IP knowledge and route
technology.
By learning this course, you can
understand the TCP/IP model and
the principles at IP layer.You
will know the network hierarchy
model and the method of dividing
subnet too.
HUAWEI TECHNOLOGIES CO., LTD.
Huawei Confidential
Page 2
Guidelines
Huawei Confidential
Page 3
References
Huawei Confidential
Page 4
Objectives
Huawei Confidential
Page 5
Contents
Relevant
Network Equipment
Huawei Confidential
Page 6
Application
Presentation
Session
Transport
Network
Datalink
Physical
Huawei Confidential
Page 7
Application
Presentation
Presentation
Session
Session
Transport
Transport
Network
Network
Data Link
Data Link
Data Link
Data Link
Physical
Physical
Physical
Physical
Router
Bridge
End System
End System
Network
Huawei Confidential
Page 8
Questions
Huawei Confidential
Page 9
Summary
Huawei Confidential
Page 10
Contents
Relevant
Network Equipment
Huawei Confidential
Page 11
OSI Model
Application
Application
Presentation
Session
Transport
Transport
Network
Network
Data Link
Data Link
Physical
Huawei Confidential
Page 12
Application
Tcp Head
TCP
Application data
IP
TCP Section
Ip Head
Tcp
Application data
14
Ip
Tcp
Head
20
Head20
Application data
Ethernet
Frame
Eth Head
46-1500 Byte
HUAWEI TECHNOLOGIES CO., LTD.
Huawei Confidential
Page 13
FTP
SMTP
TFTP
23
20/21
25
69
SEGMENT
IP PACKETS
FRAMES
BITS
Huawei Confidential
Page 14
HTTP,Telnet,FTP,
TFTP,Ping,etc
Transpor
t
Network
Data Link
TCP/UDP
IP
IGMP ICMP
ARP/RARP
Ethernet,802.3,PPP,
HDLC,FR,etc
Physical
Huawei Confidential
Page 15
File transfer
Mail service
Network Management
Network Service
Huawei Confidential
Page 16
Protocols
Application
TCP
Transport
UDP
Network
Data Link
Huawei Confidential
Page 17
Port Number
Protocols at the transmission layer use port numbers to identify various upper
layer applications.
HTTP
socket 80
FTP
Telnet SMTP
20/21
23
25
DNS
TFTP
53
69
UDP
TCP
IP Data Package
HUAWEI TECHNOLOGIES CO., LTD.
Huawei Confidential
Page 19
SNMP
161
TCP Connection
server
client
Huawei Confidential
Page 20
TCP Disonnection
server
client
Huawei Confidential
Page 21
Slide Window
So fast!
I cant
make it
OK,I will
reduce
size of
slide
window
Huawei Confidential
Page 22
Protocols
Application
IP
Transport
ARP
Network
RARP
Data Link
ICMP
Huawei Confidential
Page 23
IP Packet Format
0
bit 0
priority
16
Total length
offset
Flag
Protocol
Destination IP address
Source IP address
variable-length option
Padding
DATA
...
The form of IP Packet
HUAWEI TECHNOLOGIES CO., LTD.
Huawei Confidential
Rreservation
C
TOS
Identification
TTL
Page 24
19
24
ARP Reply
IP:10.0.0.2/24
MAC:00-E0-FC-00-00-12
ARP Request?
Huawei Confidential
Page 25
Workstation
without Disk
RARP Reply
RARP Server
IP Address?
RARP Request?
Huawei Confidential
Page 26
ICMP Protocol
Yes, I am
B
ICMP Echo Reply
Can B be
accessed?
Huawei Confidential
Page 27
Data link layer is the second layer of OSI reference model and provides
services to the network layer on the basis of the physical layer.
Data link layer provides reliable data transmission for the physical link.
The protocols at the data link layer in a LAN include Ethernet and
Token-Ring network.
The protocols at the data link layer in a WAN include PPP, HDLC, and
Frame Relay.
Huawei Confidential
Page 28
Function
Application
Transport
Network
Frame synchronization
Flow Control
Data Link
Link Management
Huawei Confidential
Page 29
Frame Synchronization
Frame synchronization is a function that you can specify the start and
stop places of a data frame from the received bit stream.
Huawei Confidential
Page 30
Flow control is provided at the data link layer and other layers.
Flow control can control the rate of transmitting data by the transmitter.
Huawei Confidential
Page 31
IEEE 802 covers standards at the physical layer and data link layer.
Huawei Confidential
Page 32
HDLC
PPP
X.25
Frame Relay
Huawei Confidential
Page 33
Physical Layer
Physical layer is at the lowest layer of the OSI reference model and
directly faces physical media or channel that transmits data. The
transmission unit at the physical layer is bit. Physical layer provides an
original bit stream physical connection on a physical channel for the data
link layer. Protocols at the physical layer specify mechanical, electrical,
functional and procedural features needed for creating, maintaining and
disconnecting physical channels. The physical layer ensures bit stream to
Huawei Confidential
Page 34
The physical layer provides channels for data equipment to transmit data. A data
channel can be a physical medium or the connection of multiple physical media.
A complete data transmission process includes: activating physical connection,
transmitting data and terminating physical connection.
The physical layer should have the entity for data transmission to transmit data.
The physical layer should: (1) ensure that data can correctly pass through the
physical layer; (2) provide enough bandwidth (a bandwidth indicates the bit
number passing through the channel within a second) to decrease channel
blocking. The data transmission modes should meet all kinds of needs: point to
point, point to multi-point, serial or concurrent, half-duplex or full duplex, and
synchronization or asynchronization
Huawei Confidential
Page 35
Huawei Confidential
Page 36
10Base-T
10Base5
10Base2
Huawei Confidential
Page 37
Huawei Confidential
Page 38
Side 2
12345678
1=white&orange
2=orange
3=white&green
4=blue
5=white&blue
6=green
7=white/brown
8=brown
Side 2
Side 1
Side 1
12345678
12345678
Side 2
HUAWEI TECHNOLOGIES CO., LTD.
Side 1
Side 2
1=white&orange
2=orange
3=white&green
4=blue
5=white&blue
6=green
7=white/brown
8=brown
Huawei Confidential
1=white&orange
2=orange
3=white&green
4=blue
5=white/blue
6=green
7=white/brown
8=brown
Page 39
1=white&green
2=green
3=white&orange
4=blue
5=white&blue
6=orange
7=white/brown
8=brown
100Base-TX
100Base-FX
The physical medium is single-mode fiber and the network segment can
reach 10 kilometers.
segment is 2000m.
Huawei Confidential
Page 40
1000Base-T
1000Base-F
The physical medium is multi-mode fiber and the longest network segment is
2000m.
1000Base-LX
The physical medium is multi-mode fiber and the longest network segment is
500m.
1000Base-SX
1000Base-ZX
The physical medium is single-mode fiber. The length of the network segment can
be 25, 40, or 70 kilometers (extra-long).
Huawei Confidential
Page 41
Questions
Q3: which layer of the TCP/IP protocol stack does the IP protocol work
in?
Huawei Confidential
Page 42
Summary
Huawei Confidential
Page 43
Contents
Relevant
Network Equipment
Huawei Confidential
Page 44
is mandatory.
The irregularity and fixedness of the MAC addresses bring difficulty
in WAN routing.
The logic address (IP address) is flexible and can be planned.
Subnet division can decrease the address number and ease route
pressure.
Huawei Confidential
Page 45
Introduction to IP Address
Private IP address
10.0.0.0-10.255.255.255
172.16.0.0-172.31.255.255
192.168.0.0-192.168.255.255
10.110.192.111
20.130.188.144
Huawei Confidential
Page 46
Classification of IP Address
1.0.0.0~126.255.255.255
0 Network(7bit)
A
Class
A
Host (24bit)
128.0.0.0~191.255.255.255
1 0 Network(14bit)
Class
B
B
Host(16bit)
192.0.0.0~223.255.255.255
1 1 0
Network(21bit)
Class
C
C
Host(8bit)
224.0.0.0~239.255.255.255
1 1 1 0
Class
D
D
Multicast
240.0.0.0~255.255.255.255
1 1 1 1 0
reservation
Class
E
E
Huawei Confidential
Page 47
Special IP Address
networks
Host
Address type
purpose
Any
Indicate a network
identifier
Any
127
any
all0
all1
Loopback
address
Loopback
test
Unknown network
Broadcast address
Huawei Confidential
All hosts
Page 48
The network equipment uses the subnet mask to determine which part of
the IP address belongs to the network part and which part belongs to the NE
part.
network part and subnet part of a subnet mask are 1 and NE part is 0. If
subnet division is not performed, the subnet mask of class A network is
255.0.0.0, that of class B network is 255.255.0.0, and that of class C network
is 255.255.255.0 by default. The subnet can make the network address more
effective. A network is divided into different subnets internally, but is a
complete network externally.
Huawei Confidential
Page 49
192 . 168 . 1.
100
address
subnetMask 255.255.255.
Huawei Confidential
Page 50
subnet mask:
192 .
Expression of IP
Address:
168 . 1 .
192.168.1.7/28
Huawei Confidential
Page 51
Subnet mask
subnet address
(binary )
subnet address
(decimal )
192 .
168 . 1 .
23
192.168.1.16/28
Huawei Confidential
Page 52
subnet bitmap
Host bitmap
1 1 1 1 1 1 1 1 1 1 1 1 1 1
0 0 0 0 0 0 00 0 0 0 0 0 0
n
Host sum 2n
Huawei Confidential
Page 53
Example:Calculation of Subnet
Address
IP address 192.168.1.100/28
/28 = 255.255.255.240
The binary code of the subnet mask is:
11111111111111111111111111110000
28bits
4bits
Host bitmap
subnet
Huawei Confidential
Page 54
28bits
network bitmap
Host bitmap
Huawei Confidential
Page 55
201.222.5.8
201.222.5.9
255.255.255.248
255.255.255.248
201.222.5.0
201.222.5.16
255.255.255.248
201.222.5.24
255.255.255.248
201.222.5.17
255.255.255.248
201.222.5.25
255.255.255.248
201.222.5.32
201.222.5.33
255.255.255.248
255.255.255.248
Huawei Confidential
Page 56
192.168.1.64/27
ISP
notice
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
Huawei Confidential
Page 57
CIDR reduces the scale of the route table and adds the network
expandability.
198.168.1.0
Internet
route
198.168.0.0/16
198.168.2.0
ISP
198.168.3.0
Huawei Confidential
Page 58
What is a route?
Interface M
Destination
R1
network
Other network
Huawei Confidential
Page 59
Classification of Route
Static route has no overhead and can be simply configured. However, manual
maintenance is needed. The static route is adaptable for simply topology networks.
Dynamic route has big overheads and the configuration is complex. However,
manual maintenance is unneeded. The dynamic route is adaptable for complex
topology networks.
Default route
The default route has no overhead and can be simply configured. However,
manual maintenance is needed. The default route can be manually configured or
generated by the route protocol.
Huawei Confidential
Page 60
[Quidway]display ip routing
Routing Tables:
Destination/Mask proto pref Metric Nexthop
Interface
0.0.0.0/0
Static
60
120.0.0.2
Serial0
8.0.0.0/8
RIP
100
120.0.0.2
Serial0
9.0.0.0/8
OSPF 10
50
20.0.0.2
Ethernet0
9.1.0.0/1
RIP
100
120.0.0.2
Serial0
11.0.0.0/8
Static
60
120.0.0.2
Serial0
20.0.0.0/8
Direct
20.0.0.1
Ethernet0
20.0.0.1/32
Direct
127.0.0.1
LoopBack0
......
Huawei Confidential
Page 61
Obtain the route from the router to other network segment in the
network by certain means.
Huawei Confidential
Page 62
Transport
Layer
BGP
RIP
TCP
UDP
IGRP
EIGRP OSPF
Network layer IP
DataLink Layer
Physical Layer
Huawei Confidential
Page 63
IS-IS
IGP (EIGRP proprietary by RIP and Cisco, IGRP, OSPF as well as IS-IS)
EGP (BGP)
Huawei Confidential
Page 64
Questions
Q3: If there are multiple routes to the same destination network, how can
the equipment choose the best route?
Huawei Confidential
Page 65
Summary
Huawei Confidential
Page 66
Contents
Relevant
Network Equipment
Huawei Confidential
Page 67
According to the network layers where the network equipment functions are
implemented
Huawei Confidential
Page 68
Repeater
HUB
When a port receives data, the port forwards the data to all ports.
Huawei Confidential
Page 69
Huawei Confidential
Page 70
Huawei Confidential
Page 71
L3 Switch (L3)
Catalyst 6500
these functions).
Huawei Confidential
Page 72
Router Vs L3 Switch
Topic
Router
L3
Port type
Multiform,
including :Erthernet/PO
S/ATM
Simple,including
erthernet only
Port number
Less
More
Route rule
Forward
efficiency
Low
Hight
cost
Hight
low
L2 switch
No support
support
Huawei Confidential
Page 73
Questions
Q2: What are the main differences between a HUB and a L2 switch?
Huawei Confidential
Page 74
Summary
Huawei Confidential
Page 75
Sum-up
Huawei Confidential
Page 76
Thank You
www.huawei.com