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
IP Routing 12 May, 2002 1 Subnetting: Subnet Addressing - - PDF document
IP Routing 12 May, 2002 1 Subnetting: Subnet Addressing
12 May, 2002 1
2 12 May, 2002 The Computer Communications Course
network id
subnet id host id 31
3 12 May, 2002 The Computer Communications Course
12 May, 2002 The Computer Communications Course
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 == ==
direct
direct
)
) 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
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
7 12 May, 2002 The Computer Communications Course
12 May, 2002 The Computer Communications Course
9 12 May, 2002 The Computer Communications Course
194.0.0.0 194.255.255.255
194.24.0.0 194.24.7.255 194.24.8.0 194.24.11.255 194.24.16.0 194.24.31.255 2048 1024 1024 4096
Cambridge E d i n b u r g O x f
d 10 12 May, 2002 The Computer Communications Course
11 12 May, 2002 The Computer Communications Course
12 May, 2002 The Computer Communications Course
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. p.dest dest_ _addr addr & & e.mask e.mask == == e.lowest_block_address e.lowest_block_address) ) then then if if ( (
longest match
longest match
)
) then then if if ( (e.next_hop e.next_hop == ==
direct
direct
)
) then then use direct delivery use direct delivery else else forward the packet to forward the packet to e.next_hop e.next_hop
13 12 May, 2002 The Computer Communications Course
Oxford
R12 R11 R10
R101
194.0.0.0 255.0.0.0 R11 195.0.0.0 255.0.0.0 R12 194.24.16.0 255.255.240.0 R10
14 12 May, 2002 The Computer Communications Course
15 12 May, 2002 The Computer Communications Course
Addresses are 16 bytes (128 bits)
✁ ✁convention: 8000:0000:0000:0000:0123:4567:89AB:CDEF convention: 8000:0000:0000:0000:0123:4567:89AB:CDEF
::132.65.200.21 for IPv4
✁ ✁more than 1500 addresses for each m more than 1500 addresses for each m2
2 of surface area on the
planet (an address to every car, or even to every wheel planet (an address to every car, or even to every wheel… …) )
✁ ✁The IP header is doubled from 20 to 40 bytes The IP header is doubled from 20 to 40 bytes
Three type of addresses:
✁ ✁provider/geographically oriented provider/geographically oriented unicast unicast
✁ ✁anycast anycast: corresponds to more than one interface : corresponds to more than one interface
a packet sent to such address should be received by one of the interfaces sharing the address the interfaces sharing the address
✁ ✁multicast with support for multicast with support for scoping scoping
Interoperability with IPv4