CS641 Advanced Computer Networks Lecture 04 Bhaskaran Raman - - PowerPoint PPT Presentation

cs641 advanced computer networks lecture 04
SMART_READER_LITE
LIVE PREVIEW

CS641 Advanced Computer Networks Lecture 04 Bhaskaran Raman - - PowerPoint PPT Presentation

CS641 Advanced Computer Networks Lecture 04 Bhaskaran Raman Department of CSE, IIT Bombay http://www.cse.iitb.ac.in/~br/ http://www.cse.iitb.ac.in/synerg/doku.php?id=public:courses:cs641-autumn10:start Outline for Today Recall: routing


slide-1
SLIDE 1

CS641 Advanced Computer Networks Lecture 04

Bhaskaran Raman Department of CSE, IIT Bombay

http://www.cse.iitb.ac.in/~br/ http://www.cse.iitb.ac.in/synerg/doku.php?id=public:courses:cs641-autumn10:start

slide-2
SLIDE 2

Outline for Today

  • Recall: routing mechanisms

– DV, LS, Path-Vector, Hierarchical routing

  • Border Gateway Protocol (BGP) basics
slide-3
SLIDE 3

Routing (recall)

  • Routing protocols

– Link-State – Distance-Vector – Path-Vector

  • Hierarchical routing
  • Address and network mask
slide-4
SLIDE 4

Border Gateway Protocol (BGP)

  • Autonomous System (AS): unit of routing on the

Internet

  • BGP is the routing protocol in the AS graph

– Path-vector based protocol – Data path is reverse of control path – Allows for policy-based routing

  • Each AS has border routers which speak BGP
  • BGP is implemented on top of TCP!
slide-5
SLIDE 5

BGP Messages

  • OPEN

– For initialization, exchange of AS numbers

  • UPDATE

– Main routing messages – Route announcements and withdrawals

  • KEEP-ALIVE

– Periodic heart-beat to keep BGP session alive

  • NOTIFICATION

– Before closing a connection

slide-6
SLIDE 6

BGP Path Attributes

  • AS-PATH

– To implement the path vector protocol

  • NEXT-HOP

– IP address of the external next-hop for this route

  • ORIGIN

– How the route to the prefix was learnt – Three possibilities: IGP, EGP, Redistributed

slide-7
SLIDE 7

Path Attributes (continued)

  • MULTI-EXIT-DISCRIMINATOR (MED)
  • AS2 announces about AS3 to AS1

– With MED=10 on Link A, MED=50 on Link B

AS1 AS2 AS3 AS4 Link A Link B

slide-8
SLIDE 8

Path Attributes (continued)

  • LOCAL-PREF
  • AS4 may prefer route via AS3

AS2 AS1 AS3 AS4 138.39.0.0/16

slide-9
SLIDE 9

Some Remarks

  • I-BGP versus E-BGP

– I-BGP used between routers of the same AS – This is NOT the same as IGP

  • Route selection: order of rules

– LOCAL-PREF – AS-PATH – MED – IGP origin preferred over EGP origin – IGP cost

slide-10
SLIDE 10

More Remarks

  • BGP not guaranteed to converge!

– Has poor convergence properties in practice – Can take up to a few min. to recover from failure – Overlay networks (later in course)

  • About 100K BGP routers

– Largest distributed system to date – A router may have as many as 250,000 entries!

  • http://bgp.potaroo.net/

– Its a surprise that it works!

slide-11
SLIDE 11

Upcoming Topics

  • ISPs, peering
  • Border Gateway Protocol (BGP)

– Policy control, convergence, and other issues

  • Note: upcoming designated reading

– [LMJ97] C. Labovitz, G. R. Malan, and F.

Jahanian, "Internet Routing Instability", Proceedings of SIGCOMM'97, September 1997.

  • IGP convergence