Professional Documents
Culture Documents
Routing
www.huawei.com
171.17.1.1 IP address
Class A 1.0.0.0~126.255.255.255
0 Network(7bit) Host(24bit)
Class B 128.0.0.0~191.255.255.255
1 0 Network(14bit) Host(16bit)
Class C 192.0.0.0~223.255.255.255
1 1 0 Network(21bit) Host(8bit)
Class D 224.0.0.0~239.255.255.255
1 1 1 0 Multicast address
Class E 240.0.0.0~255.255.255.255
1 1 1 1 0 reserve
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
8bit
Binary system 1 1 1 1 1 1 1 1
27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1
Example :
1 1 1 0 1 0 0 1
128 + 64 + 32 + 0 + 8 + 0 + 0 + 1
233
IP address192.168.1.11(decimal)
192 168 1 11
binary digit11000000.10101000.00000001.00001011
172.16.30.1/16 172.16.28.1/16
Et her net
172.16.30.10/16
Ethernet
Ethernet
172.16.8.1/24
192 . 168 . 1 . 7
IP Address
11000000 10101000 00000001 00000111
Network Address
11000000 10101000 00000001 00000000
(Binary)
Subnet Mask
N bit
Host Number 2n
Valid Host Number : 2n - 2
IP Address192.168.1.100/28
/28=255.255.255.240
11111111111111111111111111110000
4bits
28bits
Host portion
network portion
The total number of host: 24
201.222.5.8/29 201.222.5.9~201.222.5.14
201.222.5.16/29 201.222.5.17~201.222.5.22
201.222.5.232/29 201.222.5.233~201.222.5.238
201.222.5.240/29 201.222.5.241~201.222.5.246
192.168.1.32/27
192.168.1.160/30
192.168.1.64/27
announce
ISP 192.168.1.0 192.168.1.164/30
192.168.1.96/27
192.168.1.168/30
192.168.1.128/27
192.168.1.172/30
198.168.1.0
ISP
198.168.3.0
Need MAC ARP Request?
address of broadcast
10.0.0.2?
unicast
need MAC ARP Request?
address of broadcast
10.0.0.1
unicast
Your IP
address is
10.0.0.1
Diskless RARP Reply RARP Server
workstation
Whats my IP
address?
RARP Request?
the networks
Router Router
LAN1 LAN2
WAN
sending receiving
transmission
Router maintain a routing table all the time, all the message are sent
from corresponding interface via lookup routing table.
Destination address
Network mask
Outgoing interface
Next hop