12 May, 2002 1
IP Routing
2 12 May, 2002 The Computer Communications Course
Subnetting: Subnet Addressing
- ✁✄✂
- ✧★✥✝☎☛✡✟☞✝✍✑✏✠☎✎✞✖✛✜✆✌✡✝✩✙✓✎☎✎✞
- ✮✜✯✠✰
- ✳✔✴✎✆✎✛✣✪✎✵
10
network id
subnet id host id 31
3 12 May, 2002 The Computer Communications Course
Subnets in Routing Tables
- ❆✟✂
- ❈✚✑✵
- ❈✚✑✵
- ❪✝✚✎✂✠❇❈✆✎✂✠✓❃✗
4 12 May, 2002 The Computer Communications Course
Forwarding Procedure
Let Let p p be incoming IP packet be incoming IP packet for each for each entry entry e e in the routing table: in the routing table: if if ( (p.dest_addr p.dest_addr & & e.subnet_mask e.subnet_mask == == e.network_address e.network_address) ) then then if if ( (e.next_hop e.next_hop == ==
❵ ❵ directdirect
❛ ❛ )) then then use direct delivery use direct delivery else else forward the packet to forward the packet to e.next_hop e.next_hop
5 12 May, 2002 The Computer Communications Course
Example IP Network with Subnetworks
FDDI
Backbone 142.18.1.X
142.18.3.9 142.18.3.53 142.18.3.13 142.18.2.4 142.18.2.7 142.18.2.23 142.18.1.3 142.18.1.13 142.18.1.1
The INTERNET
Subnet 142.18.3.X Subnet 142.18.2.X
142.18.3.3 142.18.2.13
6 12 May, 2002 The Computer Communications Course
Supernetting
- ✧★✥✝☎☛✡✔✗
- ✧★✥✝☎☛✡✌✚✑✵
- ✧★✥✝☎✦✪✝✂
- ❈✚✑✵
- ❈✚✑✵