1
Spring 2004 EE4272
Example
Ident = x Offset = 0 Start of header Rest of header 1400 data bytes Ident = x Offset = 0 Start of header 1 Rest of header 512 data bytes Ident = x Offset =64 Start of header 1 Rest of header 512 data bytes Ident = x Offset =128 Start of header Rest of header 376 data bytes
Note: Offset field counts 8-byte units of data, not individual bytes (the change has been made w/ red)
Spring 2004 EE4272
Routing with subnetting
The host want to send a packet to a certain IP address
1). Bitwise AND between its own subnet mask & the destination IP address 2). If the same subnet number is obtained, direct delivery over that subnet 3). If not, it send s the packet to its default router
The job of a router changes when introduce subnetting
the entries of <Dest. NetworkNum, NextHop> ->
<Dest. SubnetNum, SubnetMask, NextHop>
the router ANDs the destination address with the Subnet Mask for each
entry, the matched one is the entry to be use
Note: Subnets is not visible from the rest of the Internet
Forwarding table at router R1
Subnet Number Subnet Mask Next Hop 128.96.34.0 255.255.255.128 interface 0 128.96.34.128 255.255.255.128 interface 1 128.96.33.0 255.255.255.0 R2
Subnet mask: 255.255.255.128 Subnet number: 128.96.34.0 128.96.34.15 128.96.34.1 H1 R1 128.96.34.130 Subnet mask: 255.255.255.128 Subnet number: 128.96.34.128 128.96.34.129 128.96.34.139 R2 H2 128.96.33.1 128.96.33.14 Subnet mask: 255.255.255.0 Subnet number: 128.96.33.0 H3
Spring 2004 EE4272
Supernetting – Classless Interdomain Routing (CIDR)
- The IP address structure (w/ class A, B, C) forces to hand out network
address space in fixed size chunks of 3 very different size
Unlike subnetting, supernetting gives appropriate # of class C address to
cover the expected number of host (address utilization >50%)
Problem: if a single AS has n class C network numbers assigned, every backbone
router needs n entries in its routing table for that AS
- Two scaling concerns in the Internet to be addressed
address assignment efficiency (especially class B IP address) the growth of backbone routing table
- Classless Interdomain Routing (CIDR)
try to balance the desire of minimizing the routing table of the routers
involved and the desire of handing out IP address efficiently by aggregating the routes (e.g. …)
Assign block of contiguous network numbers to nearby networks, the
common parts of the network numbers -> single network prefix (used in forwarding table)
Restrict block sizes to powers of 2
Handout blocks of class C address that share a common prefix
Need a routing protocol can deal with these “classless” address with any
length of the network number part (e.g. BGP)
Spring 2004 EE4272
Supernetting
Assign a portion of address space to the ISP,
and let ISP assign addresses to its customer
It can advise a single route to both customer by