Escolar Documentos
Profissional Documentos
Cultura Documentos
IP Addressing
Class-based IP addresses
IP subnets
IP routing
Methods of delivery
IP address exhaustion problem
Private IP addresses
Classless Inter-Domain Routing
IP datagram
IP fragmentation
Internet Protocol (IP)
193 205 80 1
11000001 11001101 01010000 00000001
Class A addresses
Class B addresses
Class C addresses
131 114 9 44
10000011.01110010.00001001.00101100
-----network----- -subnet- --host--
11111111.11111111.11111111.00000000
-----------network mask------------
IP subnets
The special treatment of all bits zero and all
bits one applies to each of the three parts of
a subnetted IP address just as it does to
both parts of an IP address that has not
been subnetted.
LAN 1: 50 hosts
LAN 2: 50 hosts
LAN 3: 50 hosts
LAN 4: 30 hosts
LAN 5: 30 hosts
IP subnets
lan0 192.168.1.64/26
Host A
192.168.1.66
Router R Host B
lan0: 192.168.1.65 lan1 192.168.1.130
lan1: 192.168.1.129 192.168.1.128/26
Host C
192.168.1.131
IP routing
Supernetting example.
11000000 00100000 10001000 00000000 = 192.32.136.0 (class C address)
11111111 11111111 11111--- -------- 255.255.248.0 (network mask)
======== ======== ======== ======== logical_AND
11000000 00100000 10001--- -------- = 192.32.136 (IP prefix)
IP provides fragmentation/reassembly of
datagrams. The maximum length of an IP
datagram is 65,535 octets.
H IP datagram
1
nt #
2
gme
#
1
ent
#
nt
Fra
me
m
H
g
Fra
Frag
Fr
H
H
ag
m
en
H
t#
1
H
Fr t #2
ag en
m m
en ag
t #1
t #2 Fr
t #2
men
H
men
Frag
Frag
H
H IP datagram
H Fragment #1
H Fragment #2
IP fragmentation
IP fragmentation
Fragmentation process:
– The DF flag bit is checked to see if
fragmentation is allowed. If the bit is set, the
datagram will be discarded and an ICMP
error returned to the originator.
– Based on the MTU value, the data field is
split into two or more parts. All newly created
data portions must have a length that is a
multiple of 8 octets, with the exception of the
last data portion.
– Each data portion is placed in an IP
datagram.
IP fragmentation
LEN = 1500
OFFSET = 0
DF = 0, MF = 1
DATA
(1500 bytes)
LEN = 3499
OFFSET = 0
DF = 0, MF = 0
LEN = 1500
OFFSET = 1500
DF = 0, MF = 1
MTU = 1500
DATA DATA
(3500 bytes) (1500 bytes)
LEN = 499
OFFSET = 3000
DF = 0, MF = 0
DATA
(499 bytes)
IP fragmentation