IP Addressing & Interdomain Routing: IP Addressing Hierarchy (Prefixes, Class A, B, C, Subnets)
IP Addressing & Interdomain Routing: IP Addressing Hierarchy (Prefixes, Class A, B, C, Subnets)
Routing
Next Topic
IP Addressing
Hierarchy (prefixes, class A, B, C, Application
subnets) Presentation
Session
Transport
Network
Interdomain routing
Data Link
Physical
Scalability Concerns
IP Addresses
Reflect location in topology; used for scalable routing
Unlike “flat” Ethernet addresses
7 24
14 16
21 8
Subnet Example
128.96.34.139
128.96.34.129
H2
R2
H3
128.96.33.1
128.96.33.14
Subnet mask: 255.255.255.0
Subnet number: 128.96.33.0
CIDR (Supernetting)
CIDR = Classless Inter-Domain Routing
Generalize class A, B, C into prefixes of arbitrary length; now must
carry prefix length with address
Aggregate adjacent advertised network routes
e.g., ISP has class C addresses 192.4.16 through 192.4.31
Really like one larger 20 bit address class …
Advertise as such (network number, prefix length)
Reduces size of routing tables
CIDR Example
X and Y routes can be aggregated because they form a bigger
contiguous range.
Corporation X
(11000 00000 00010 00001)
/20
Border gateway Regional network
(advertises path to
11000 00000 00010 0000)
Corporation Y
/19 (11000 00000 00010 00000)
/20
But aggregation isn’t always possible.
can only aggregate power of 2
IP Forwarding Revisited
Routing table now contains routes to “prefixes”
IP address and length indicating what bits are fixed
Now need to “search” routing table for longest matching prefix, only
at routers
Search routing table for the prefix that the destination belongs
to, and use that to forward as before
There can be multiple matches; take the longest prefix
“Consumer ” ISP
Peering
point
Backbone service provider Peering
point
“ Consumer” ISP
“Consumer”ISP
Large corporation
Small
corporation
You at home
Inter-Domain Routing
Network comprised of many
Autonomous Systems (ASes) or
domains
To scale, use hierarchy: 23
separate inter-domain and
intra-domain routing
Also called interior vs exterior 12 7
gateway protocols (IGP/EGP)
IGP = RIP, OSPF 44 321
1123
EGP = EGP, BGP
Inter-Domain Routing
of default routes
R4
AS 4
AS 3
AS 2
AS 1
OS kernel
RIP
domain OSPF Forwarding Table Manager
domain
Forwarding Table
Border Gateway Protocol (BGP-4)
Features:
Path vector routing
Application of policy
Operates over reliable transport (TCP)
Uses route aggregation (CIDR)
route
selection
policy: rank
paths
select best
routing cache
path
export
export path policy:
to neighbors which
paths to
export to
which
neighbors
BGP session
Exchange all
active routes
AS2
AS Topology
4
3
2
7 6
1
What is an Edge, Really?
AS 1 AS 1
Exchange Point
AS 2 AS 2 AS 3
Interdomain Paths
Path: 6, 5, 4, 3, 2, 1
2
7 6
1
Web server
Client
Business Relationships
Customer-Provider Relationship
d provider
advertisements
provider
traffic
customer
d customer
Customer Connecting to a Provider
Provider Provider
Provider Provider
Provider 1 Provider 2
Example
Peer-Peer Relationship
Peers exchange traffic between customers
AS exports only customer routes to a peer
AS exports a peer’s routes only to its customers
Often the relationship is settlement-free (i.e., no $$$)
advertisements
peer peer
traffic
d
Implication of Business Relationship on Policies
peer
case 2: routes learned from provider case 3: routes learned from peer
provider provider
provider peer
customer customer
P1
P2
C IP traffic
Provider A
Customer A
Stub ASes
Do not provide transit service to others
Connect to one or more upstream providers
Includes vast majority (e.g., 85-90%) of the ASes
Characteristics of the AS Graph
AS graph structure
High variability in node degree (“power law”)
A few very highly-connected ASes
Many ASes have only a few connections
1 All ASes have 1 or more neighbors
0.1
CCDF
0.001
1 10 100 1000 AS degree
Characteristics of AS Paths
s d
Convergence
Prefix P X 1 2
In AS X
View from
here 4 3
Side-effect: asymmetry
B
Key Concepts