Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.

Similar presentations


Presentation on theme: "1 CS716 Advanced Computer Networks By Dr. Amir Qayyum."— Presentation transcript:

1 1 CS716 Advanced Computer Networks By Dr. Amir Qayyum

2 Lecture No. 24

3 Supernetting/CIDR CIDR: Classless Inter-Domain Routing Compromise in address utilization vs scalability Eliminate class notion; generalize subnet notion All routers must understand CIDR addressing –Longest match in the table

4 Supernetting/CIDR Assign block of contiguous network numbers to nearby networks –Restrict block sizes to powers of 2 –Use bit mask(CIDR mask) to identify block size

5 CIDR Specify network with (network#, mask bits) –Equivalent to (network#, # of hosts) Block of 8 class C networks may be treated as one Organizations can still use subnetting internally ! Routing table entries look like: subnet #mask lengthnext hop 131.126.141.024Interface 0 131.126.142.025Interface 1 131.126.142.12825R1 131.126.0.016R2 default0R3

6 CIDR Growth CIDR/supernetting allows hierarchical development Assign block of addresses to regional provider (e.g., 128.0.0.0/9 to BARRNET) Regional provider subdivides addresses Can hand out to subregional providers (e.g., 128.32.0.0/16 to Berkeley) Who in turn hand out to smaller organization (e.g., 128.32.32.0/21 to Berkeley CS Dept)

7 Routing in Large Scale Networks

8 Route Propagation Know a smarter router –Hosts know local router –Local routers know site routers –Site routers know core router –Core routers know everything Autonomous System (AS) –Corresponds to an administrative domain –Examples: university, company, backbone network –Assign each AS a 16-bit number

9 Route Propagation Two-level route propagation hierarchy –Interior gateway protocol (each AS selects its own) –Exterior gateway protocol (Internet-wide standard) AS’s represent a third hierarchy –Define routing domains –Based on notion of autonomy of control

10 Notion of Autonomous Systems (AS) Intradomain routing (within an AS) –Performed using domain-specific algorithm –Selected by domain administrator (autonomously) –Allows heterogeneous interior gateway protocols Interdomain routing (between AS’s) –Performed using standard global algorithm –Homogeneous exterior gateway protocol

11 Intra-domain (Interior GW) Protocols Routing Information Protocol (RIP) –From the early Internet, developed for XNS –Part of Berkeley Software Distribution (BSD) Unix –Distance-vector algorithm –Based on hop count (infinity set to 16 hops)

12 Intra-domain (Interior GW) Protocols Open Shortest Path First (OSPF) –Internet standard (RFC 2328), “open” means public –Based on link-state algorithm –Authenticates messages –Load balances across links

13 Inter-domain (Exterior GW) Protocols Very complex and difficult –Different metrics, security, large scale: 140K prefixes! Focuses on reachability rather than optimality –Support for very flexible policies

14 Inter-domain (Exterior GW) Protocols Exterior Gateway Protocol (EGP) –Defined on Internet with tree structure –Embodied (and enforced) tree structure –Had to be replaced eventually –Used distance-vector updates –Replaced by Border Gateway Protocol (BGP)

15 EGP Messages Neighbor acquisition –One router requests that another be its peer –Peers exchange reachability information Neighbor reachability –One router periodically tests if the another is still reachable –Exchange HELLO/ACK messages –Uses a k-out-of-n rule Routing updates –Peers periodically exchange their routing tables (distance-vector)

16 BGP-4: Border Gateway Protocol Internet is an arbitrarily interconnected set of AS’s Two types of traffic –Local: begins or ends within an AS –Transit: moves through an AS

17 BGP-4: Border Gateway Protocol Three types of AS’s –Stub: one single connection to one other AS; carries local traffic only –Multihomed: connections to multiple other AS’s, but refuses to carry transit traffic –Transit: connections to multiple other AS’s and designed to carry both transit and local traffic

18 BGP-4: Borger Gateway Protocol Each AS has: –One or more border gateways (routers) to handle inter-AS traffic –One or more BGP speakers that participate in routing protocol: establish BGP sessions to exchange messages

19 BGP-4: Borger Gateway Protocol BGP speaker advertises: –Names of networks within the AS –Names of other reachable networks through the AS (transit AS only) –Full path information (intra-domain protocols use heterogeneous metrics); path-vector routing –Withdrawn routes/negative advertisements (cancel previously advertised route)

20 BGP Path-Vector Routing Example AS4 advertises 128.96 and 192.4.153 as local networks Speaker for AS2 advertises reachability to these networks –Network 128.96 and 192.4.153 can be reached via AS4, and network 192.4.32 and 192.4.3 via AS5 Speaker for backbone advertises –Networks 128.96, 192.4.153, 192.4.32, and 192.4.3 can be reached along the path (AS1, AS2, AS4 or AS5). Backbone network (AS 1) Regional provider A (AS 2) Regional provider B (AS 3) Customer P (AS 4) Customer Q (AS 5) Customer R (AS 6) Customer S (AS 7) 128.96 192.4.153 192.4.32 192.4.3 192.12.69 192.4.54 192.4.23

21 BGP-4 - Details Full path in BGP messages to avoid loops –Best route according to local policies is advertised –No obligation to advertise route to known destinations 16 bit AS numbers are uniquely assigned –Stub ASs do not need a unique AS number

22 BGP-4 - Details BGP-4 designed to support classless addresses –Update messages contain prefix & its length (10.1/16) Update messages are reliably sent using TCP –Occasional “keepalive” messages if nothing changes

23 Building Scalable Networks … Subdivided the routing problem into manageable parts –New level of hierarchy is introduced Complexity of interdomain routing: –Order of number of ASs Complexity of interdomain routing: –Ooder of networks in an AS

24 Integrating Interdomain and Intradomain Routing How routers in a domain get routing information ? In a stub AS with single border router –Inject a default route in intradomain routing protocol

25 Integrating Interdomain and Intradomain Routing In a domain with multiple border routers (any AS) –Border routers inject specific routes learned from outside, with some cost In backbone networks, too costly to inject too many outside routes in intradomain protocol –Use Interior BGP (IBGP) to redistribute outside routes


Download ppt "1 CS716 Advanced Computer Networks By Dr. Amir Qayyum."

Similar presentations


Ads by Google