Classless Inter Domain Routing
Classless Inter Domain Routing
Hema A Murthy
CIDR (contd.)
– length – number of bits in communication
• Prefixes may be of any length 2-32 bits
• Prefixes might overlap
• Prefixes correspond to longest match
CIDR (contd.)
• Example
– 192.4.16 through 192.4.31
– Top 20 bits are the same
– 1100 0000 0000 0100 0001
– Router entry for top 20 bits as Network number
• Basically uses a common network prefix < length, value>
pairs
BGP (contd.)
• Interdomain routing problem – ASes share
reachability information each other
• Reduces routing information at each AS
– Use default routes
– Example tenet Gate Border router – Any packets
destined for outside (at a router inside tenet) sends to
tenet gateway
– Finally reaches a backbone provides who knows how to
reach all Networks
Peering point
Peering point
Backbone Service
provided
Consumer ISP
Consumer ISP
Autonomous
Small corporation Systems
Small home PC
corporation
BB Large Corporation
Classification of traffic:
• Local traffic
- Traffic originates and terminates within an AS
• Transit traffic
- Passes through an AS
BGP (contd.)
• Types of ASes:
– Stub AS: Single connection to one otheAS
• Example: Small Corporation
– only local traffic
– Multihomed AS: AS has connections to
multiple Ases
• but does not carry transit traffic
• Example: large corporation
– Transit AS: Connection to more than one AS
• - carries both transit and local traffic
• - backbone provider
Indian Institute of Technology Madras
Computer Networks Prof. Hema A Murthy
Border
- Gateway Protocol (contd.)
BGP Goals:
Find any path to
R1 R3 intended destination
R2
R4
R5 R6
• Advantage
– Use “good” paths rather than optimal path
AS1
AS1
AS2 AS3
Example:
AS1 learns it can reach network 1 via AS2
Advertises (AS1, AS2) to AS3
Now AS3 advertises to AS2
- (AS3, AS1, AS2) to reach network P
AS2 – see it
Indian Institute of Technology Madras
ignores
Computer Networks Prof. Hema A Murthy
BGP
AS
AS
IGP
Repeaters,Bridges, Routers,
Gateways
• Physical layer - Repeaters
• DLL – Bridges
• Network Layer – Multiprotocol router
• Transport Layer – Transport Gateways
• Application Layer – Application Gateways
Multiprotocol Converter
AS WAN AS
Tunneling