SlideShare uma empresa Scribd logo
1 de 18
Chapter 4
Network Layer
Computer Networking: A
Top Down Approach
4th edition.
Jim Kurose, Keith Ross
Addison-Wesley, July
2007.
Hierarchical Routing
 All routers run the same routing

Algorithm?
… not true in practice

Scale: With millions of
destinations:
 Can’t store all destinations

in routing tables
 Exchange of Routing
updates would swamp links!

Administrative Autonomy
 Internet = network of

networks
 Each network administrator
may want to control routing
in its own network
Hierarchical Routing
Gateway Routers
 One or more of the
into “Autonomous
routers in an AS will
Systems” (ASs).
have the added task of
 Routers in same
administrative domain
forwarding packets to
destinations outside
 Routers in same AS run
the AS.
same routing protocol
 Routers are organized





The routing algorithm
within an autonomous
system is called an
“intra-AS” routing
protocol
Routers in different AS
can run different intraAS routing protocol

1c
1a
1d

1b

AS1
Interconnected ASs

3c
3b

3a

2a

AS3

1c
1a
1d

2c
2b
AS2

1b

AS1

1b, 1c, 2a and 3a are Gateway Routers
Inter-AS tasks

AS1 must:
1. Learn which destinations are
reachable through AS2, which
through AS3
2. Propagate this reachability
information to all routers in
AS1.

Configure Forwarding table
Job of inter-AS routing protocol!

 Suppose router in AS1

receives datagram destined
outside of AS1:
 Router should forward
packet to gateway
router, but which one?

3c
3a
3b AS3

1a

2a

1c
1d

1b

Intra-AS
Routing
algorithm

AS1
Inter-AS
Routing
algorithm

Forwarding
table

2c
AS2

2b
Example: Setting forwarding table in router 1d
 Suppose AS1 learns (via inter-AS protocol) that

network x reachable via AS3 (gateway 1c) but not via
AS2.
 Inter-AS protocol propagates reachability info to all
internal routers.
 Router 1d determines from intra-AS routing info that
its interface I is on the least cost path to 1c.
 installs forwarding table entry (x,I)

x
3c

3a
3b
AS3
1a

2a

1c
1d

1b AS1

2c

2b
AS2
Example: Choosing among multiple ASs
 Now suppose AS1 learns from inter-AS protocol

that a network x is reachable from AS3 and from
AS2.
 To configure forwarding table, router 1d must
determine towards which gateway it should forward
packets for dest x.
 Hot Potato Routing: Send packet towards closest of
two routers.
x

3c

3a
3b
AS3
1a

2a

1c
1d

1b

2c
AS2

AS1

2b
Example: Choosing among multiple ASs

Learn from inter-AS
protocol that network
x is reachable via
multiple gateways

Use routing info
from intra-AS
protocol to
determine
costs of least-cost
paths to each
of the gateways

Hot potato routing:
Choose the
gateway
that has the
smallest least cost

Determine the
interface I that leads
to least-cost gateway.
Enter (x,I) in
forwarding table

Steps in adding an outside AS destination in a routers forwarding Table
Routing Protocols
Path Vector Routing
Path Vector Routing
Loop Prevention
If a router receives a message, checks
to see if its autonomous system is in the
path list to the destination.
If it is, looping is involved and the

message is ignored.
Policy Routing
If one of the path in the path vector is
against the policy it can ignore that
path and does not update its routing
table.
Inter-AS Routing in Internet: BGP
 BGP (Border Gateway Protocol)
 BGP provides each AS a means to:
1. Obtain subnet reachability information from
neighboring ASs.
2. Propagate reachability information to all ASinternal routers.
3. Determine “good” routes to subnets based on
reachability information and policy.

 Allows subnet to advertise its existence to

rest of Internet: “I am here”
BGP Basics
 Pairs of routers (BGP peers) exchange routing info over TCP

connections using port 179.
 For each TCP connection, the two routers at the end of the
connection are called BGP Peers
 The TCP connection along with all the BGP messages sent over
the connection is called a BGP Session
 Internal (IBGP) neighbours
 A pair of BGP speakers within the same AS



External (EBGP) neighbours

 Two BGP speakers from two different AS

eBGP session

3c
3a
3b
AS3
1a
AS1

iBGP session

2a

1c

1d

1b

2c
AS2

2b
BGP Basics
 BGP allows each AS to learn which destinations

are reachable via its neighboring ASs.
 Destinations are not hosts but instead are
CIDRized prefixes.


E.g. AS1 has four subnets attached to it
It will aggregate the prefixes of these four and will
advertise the single prefix

 AS1 and AS2 send reachability information

trough their gateway routers 1b and 2a.
 When a gateway router receives e-BGP learned
prefixes, the gateway router uses iBGP sessions
to distribute the prefixes to other routers in
the AS.
Distributing Reachability info
 Using eBGP session between 3a and 1c, AS3 sends

prefix reachability info to AS1.
 1c can then use iBGP do distribute new prefix
info to all routers in AS1
 1b can then re-advertise new reachability info
to AS2 over 1b-to-2a eBGP session
 When router learns of new prefix, it creates entry
for prefix in its forwarding table.
eBGP session

3c
3a
3b
AS3
1a
AS1

iBGP session

2a

1c

1d

1b

2c
AS2

2b
Path Attributes & BGP Routes
 In BGP an AS is recognized by its

globally unique Autonomous System
Number (ASN).
 Assigned by ICANN Regional
Registries.
 Advertised prefix includes BGP
attributes.
 prefix + attributes = “route”
 Two important attributes:
 AS-PATH and NEXT-HOP
Path Attributes & BGP Routes
 AS-PATH

 Contains

ASs through which prefix
advertisement has passed.
 When a prefix is passed into an AS, the As
adds its ASN to the AS-PATH attribute.
E.g suppose that the prefix
138.16.64.0/24 is first advertised from
AS2 to AS1.
If AS1 then advertises the prefix to
AS3, AS-PATH would be AS2 AS1.
 Detect and prevent looping advertisements
Routing Loop Prevention
AS2

[ Net1, (AS3,AS4) ]

[ Net1,
(AS2,AS3,AS4)]

AS3

AS1

[Net1, (AS4)]
AS4
Net1

[ Net1,
(AS1,AS2,AS3,AS4)]
AS3 won’t forward this further

Mais conteúdo relacionado

Mais procurados

Distance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing AlgorithmDistance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing AlgorithmMOHIT AGARWAL
 
Zaharaddeen karami lawal distance vector routing
Zaharaddeen karami lawal distance vector routingZaharaddeen karami lawal distance vector routing
Zaharaddeen karami lawal distance vector routingKlawal13
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithmBushra M
 
Distance Vector Routing Protocols
Distance Vector Routing ProtocolsDistance Vector Routing Protocols
Distance Vector Routing ProtocolsKABILESH RAMAR
 
Routing protocols-network-layer
Routing protocols-network-layerRouting protocols-network-layer
Routing protocols-network-layerNitesh Singh
 
Routing table and routing algorithms
Routing table and routing algorithmsRouting table and routing algorithms
Routing table and routing algorithmslavanyapathy
 
How packet data travel over network
How packet data travel over networkHow packet data travel over network
How packet data travel over networkRaisa Anjani
 
Presentation Routing algorithm
Presentation Routing algorithmPresentation Routing algorithm
Presentation Routing algorithmBasit Hussain
 
Evolution of Routing Techniques
Evolution of  Routing TechniquesEvolution of  Routing Techniques
Evolution of Routing TechniquesTusharadri Sarkar
 
Introduction to backwards learning algorithm
Introduction to backwards learning algorithmIntroduction to backwards learning algorithm
Introduction to backwards learning algorithmRoshan Karunarathna
 
Routing Technique Table Type by Umar danjuma maiwada.ppt
Routing Technique Table Type by Umar danjuma maiwada.pptRouting Technique Table Type by Umar danjuma maiwada.ppt
Routing Technique Table Type by Umar danjuma maiwada.pptumardanjumamaiwada
 
Network Routing | Computer Science
Network Routing | Computer ScienceNetwork Routing | Computer Science
Network Routing | Computer ScienceTransweb Global Inc
 
Dynamic routing under_sec
Dynamic routing under_secDynamic routing under_sec
Dynamic routing under_secsubhash85
 

Mais procurados (20)

Distance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing AlgorithmDistance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing Algorithm
 
Zaharaddeen karami lawal distance vector routing
Zaharaddeen karami lawal distance vector routingZaharaddeen karami lawal distance vector routing
Zaharaddeen karami lawal distance vector routing
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
 
OSPF - Routing Protocol
OSPF - Routing ProtocolOSPF - Routing Protocol
OSPF - Routing Protocol
 
Distance Vector Routing Protocols
Distance Vector Routing ProtocolsDistance Vector Routing Protocols
Distance Vector Routing Protocols
 
Routing protocols-network-layer
Routing protocols-network-layerRouting protocols-network-layer
Routing protocols-network-layer
 
Routing table and routing algorithms
Routing table and routing algorithmsRouting table and routing algorithms
Routing table and routing algorithms
 
Ccna day3
Ccna day3Ccna day3
Ccna day3
 
Routing
RoutingRouting
Routing
 
How packet data travel over network
How packet data travel over networkHow packet data travel over network
How packet data travel over network
 
Networkdevices by Jetarvind kumar madhukar
Networkdevices by Jetarvind kumar madhukarNetworkdevices by Jetarvind kumar madhukar
Networkdevices by Jetarvind kumar madhukar
 
Presentation Routing algorithm
Presentation Routing algorithmPresentation Routing algorithm
Presentation Routing algorithm
 
Evolution of Routing Techniques
Evolution of  Routing TechniquesEvolution of  Routing Techniques
Evolution of Routing Techniques
 
Ch 20 UNICAST ROUTING SECTION 2
Ch 20   UNICAST ROUTING  SECTION  2Ch 20   UNICAST ROUTING  SECTION  2
Ch 20 UNICAST ROUTING SECTION 2
 
Introduction to backwards learning algorithm
Introduction to backwards learning algorithmIntroduction to backwards learning algorithm
Introduction to backwards learning algorithm
 
Routing Technique Table Type by Umar danjuma maiwada.ppt
Routing Technique Table Type by Umar danjuma maiwada.pptRouting Technique Table Type by Umar danjuma maiwada.ppt
Routing Technique Table Type by Umar danjuma maiwada.ppt
 
Network Routing | Computer Science
Network Routing | Computer ScienceNetwork Routing | Computer Science
Network Routing | Computer Science
 
Dynamic routing under_sec
Dynamic routing under_secDynamic routing under_sec
Dynamic routing under_sec
 
Dsdv
DsdvDsdv
Dsdv
 
Routing
RoutingRouting
Routing
 

Destaque

Mischool newsletter pacaralr
Mischool newsletter pacaralrMischool newsletter pacaralr
Mischool newsletter pacaralrcarogarnier
 
運を引き寄せる
運を引き寄せる運を引き寄せる
運を引き寄せるShu Yamada
 
Questionnaire analysis
Questionnaire analysisQuestionnaire analysis
Questionnaire analysislaura-illing
 
What can Lard Oil do for your company?
What can Lard Oil do for your company?What can Lard Oil do for your company?
What can Lard Oil do for your company?Kristen White
 
Taller técnicas efectivas de cobranza
Taller técnicas efectivas de cobranzaTaller técnicas efectivas de cobranza
Taller técnicas efectivas de cobranzaantonio soto
 
Teaser Deck CodersTrust
Teaser Deck CodersTrust Teaser Deck CodersTrust
Teaser Deck CodersTrust Jan-Cayo Fiebig
 
Analysing magazines
Analysing magazinesAnalysing magazines
Analysing magazineslaura-illing
 
What did you learn from audience feedback
What did you learn from audience  feedbackWhat did you learn from audience  feedback
What did you learn from audience feedbacklaurabryanmedia1
 
Alta gastronomia Masia Notari 2014
Alta gastronomia Masia Notari 2014Alta gastronomia Masia Notari 2014
Alta gastronomia Masia Notari 2014Igrafiq Diseño Web
 
Поговорим о различных версиях .NET
Поговорим о различных версиях .NETПоговорим о различных версиях .NET
Поговорим о различных версиях .NETAndrey Akinshin
 
Tugas materi5 van
Tugas materi5 vanTugas materi5 van
Tugas materi5 vanvanradhinal
 

Destaque (15)

Stregthen collaboration
Stregthen collaborationStregthen collaboration
Stregthen collaboration
 
Mischool newsletter pacaralr
Mischool newsletter pacaralrMischool newsletter pacaralr
Mischool newsletter pacaralr
 
運を引き寄せる
運を引き寄せる運を引き寄せる
運を引き寄せる
 
Questionnaire analysis
Questionnaire analysisQuestionnaire analysis
Questionnaire analysis
 
What can Lard Oil do for your company?
What can Lard Oil do for your company?What can Lard Oil do for your company?
What can Lard Oil do for your company?
 
Taller técnicas efectivas de cobranza
Taller técnicas efectivas de cobranzaTaller técnicas efectivas de cobranza
Taller técnicas efectivas de cobranza
 
Russell Drake Miami
Russell Drake MiamiRussell Drake Miami
Russell Drake Miami
 
Teaser Deck CodersTrust
Teaser Deck CodersTrust Teaser Deck CodersTrust
Teaser Deck CodersTrust
 
Relatório de snell
Relatório de snellRelatório de snell
Relatório de snell
 
Analysing magazines
Analysing magazinesAnalysing magazines
Analysing magazines
 
What did you learn from audience feedback
What did you learn from audience  feedbackWhat did you learn from audience  feedback
What did you learn from audience feedback
 
Alta gastronomia Masia Notari 2014
Alta gastronomia Masia Notari 2014Alta gastronomia Masia Notari 2014
Alta gastronomia Masia Notari 2014
 
Question 3
Question 3Question 3
Question 3
 
Поговорим о различных версиях .NET
Поговорим о различных версиях .NETПоговорим о различных версиях .NET
Поговорим о различных версиях .NET
 
Tugas materi5 van
Tugas materi5 vanTugas materi5 van
Tugas materi5 van
 

Semelhante a Week14 lec1

Network layer computer networks
Network layer computer networksNetwork layer computer networks
Network layer computer networksAKASHBAJWA
 
Chapter Four - Network Layer.pptx
Chapter Four - Network Layer.pptxChapter Four - Network Layer.pptx
Chapter Four - Network Layer.pptxGirT2
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocolselgraini
 
IPv6 Routing.pdf
IPv6 Routing.pdfIPv6 Routing.pdf
IPv6 Routing.pdfniran10
 
3 ip routing eigrp
3 ip routing eigrp3 ip routing eigrp
3 ip routing eigrpSagarR24
 
ospf.ppt
ospf.pptospf.ppt
ospf.pptSolWeje
 
Pathlet routing_Demo2
Pathlet routing_Demo2Pathlet routing_Demo2
Pathlet routing_Demo2asrivas2
 
Answer sheet of switching & routing
Answer sheet of switching & routingAnswer sheet of switching & routing
Answer sheet of switching & routingMd. Mashiur Rahman
 
Ccna ppt1
Ccna ppt1Ccna ppt1
Ccna ppt1AIRTEL
 
Routing table : Notes
Routing table : NotesRouting table : Notes
Routing table : NotesSubhajit Sahu
 
Ccna day3-140715152337-phpapp01
Ccna day3-140715152337-phpapp01Ccna day3-140715152337-phpapp01
Ccna day3-140715152337-phpapp01Sachin Morya
 
Pathlet routing CS513
Pathlet routing CS513Pathlet routing CS513
Pathlet routing CS513Gauri Pulekar
 

Semelhante a Week14 lec1 (20)

Network layer computer networks
Network layer computer networksNetwork layer computer networks
Network layer computer networks
 
Routing protocols
Routing protocolsRouting protocols
Routing protocols
 
Chapter Four - Network Layer.pptx
Chapter Four - Network Layer.pptxChapter Four - Network Layer.pptx
Chapter Four - Network Layer.pptx
 
CS6551 COMPUTER NETWORKS
CS6551 COMPUTER NETWORKSCS6551 COMPUTER NETWORKS
CS6551 COMPUTER NETWORKS
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
 
IPv6 Routing.pdf
IPv6 Routing.pdfIPv6 Routing.pdf
IPv6 Routing.pdf
 
3 ip routing eigrp
3 ip routing eigrp3 ip routing eigrp
3 ip routing eigrp
 
ospf.ppt
ospf.pptospf.ppt
ospf.ppt
 
Pathlet routing_Demo2
Pathlet routing_Demo2Pathlet routing_Demo2
Pathlet routing_Demo2
 
ROUTING
ROUTINGROUTING
ROUTING
 
Answer sheet of switching & routing
Answer sheet of switching & routingAnswer sheet of switching & routing
Answer sheet of switching & routing
 
C C N A Day3
C C N A  Day3C C N A  Day3
C C N A Day3
 
Ccna ppt1
Ccna ppt1Ccna ppt1
Ccna ppt1
 
Routing table : Notes
Routing table : NotesRouting table : Notes
Routing table : Notes
 
Ccna day3
Ccna day3Ccna day3
Ccna day3
 
Ccna day3-140715152337-phpapp01
Ccna day3-140715152337-phpapp01Ccna day3-140715152337-phpapp01
Ccna day3-140715152337-phpapp01
 
Ccna day3
Ccna day3Ccna day3
Ccna day3
 
Ccna day3
Ccna day3Ccna day3
Ccna day3
 
Pathlet routing CS513
Pathlet routing CS513Pathlet routing CS513
Pathlet routing CS513
 
Routing algorithms
Routing algorithmsRouting algorithms
Routing algorithms
 

Mais de syedhaiderraza (20)

Week11 lec2
Week11 lec2Week11 lec2
Week11 lec2
 
Week11 lec1
Week11 lec1Week11 lec1
Week11 lec1
 
Week10 lec1
Week10 lec1Week10 lec1
Week10 lec1
 
Week9 lec1
Week9 lec1Week9 lec1
Week9 lec1
 
Week8 lec2-bscs1
Week8 lec2-bscs1Week8 lec2-bscs1
Week8 lec2-bscs1
 
Week8 lec1-bscs1
Week8 lec1-bscs1Week8 lec1-bscs1
Week8 lec1-bscs1
 
Week5 lec3-bscs1
Week5 lec3-bscs1Week5 lec3-bscs1
Week5 lec3-bscs1
 
Week5 lec2-bscs1
Week5 lec2-bscs1Week5 lec2-bscs1
Week5 lec2-bscs1
 
Week5 lec1-bscs1
Week5 lec1-bscs1Week5 lec1-bscs1
Week5 lec1-bscs1
 
Week4 lec2-bscs1
Week4 lec2-bscs1Week4 lec2-bscs1
Week4 lec2-bscs1
 
Week4 lec1-bscs1
Week4 lec1-bscs1Week4 lec1-bscs1
Week4 lec1-bscs1
 
Week3 lec3-bscs1
Week3 lec3-bscs1Week3 lec3-bscs1
Week3 lec3-bscs1
 
Week3 lec 2
Week3 lec 2Week3 lec 2
Week3 lec 2
 
Week3 lec 1
Week3 lec 1Week3 lec 1
Week3 lec 1
 
Week2 lec3-bscs1
Week2 lec3-bscs1Week2 lec3-bscs1
Week2 lec3-bscs1
 
Week2 lec2-bscs1
Week2 lec2-bscs1Week2 lec2-bscs1
Week2 lec2-bscs1
 
Week2 lec1-bscs1
Week2 lec1-bscs1Week2 lec1-bscs1
Week2 lec1-bscs1
 
Week1 lec2-bscs1
Week1 lec2-bscs1Week1 lec2-bscs1
Week1 lec2-bscs1
 
Week1 lec1-bscs1
Week1 lec1-bscs1Week1 lec1-bscs1
Week1 lec1-bscs1
 
Week16 lec2
Week16 lec2Week16 lec2
Week16 lec2
 

Último

Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 

Último (20)

Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 

Week14 lec1

  • 1. Chapter 4 Network Layer Computer Networking: A Top Down Approach 4th edition. Jim Kurose, Keith Ross Addison-Wesley, July 2007.
  • 2. Hierarchical Routing  All routers run the same routing Algorithm? … not true in practice Scale: With millions of destinations:  Can’t store all destinations in routing tables  Exchange of Routing updates would swamp links! Administrative Autonomy  Internet = network of networks  Each network administrator may want to control routing in its own network
  • 3. Hierarchical Routing Gateway Routers  One or more of the into “Autonomous routers in an AS will Systems” (ASs). have the added task of  Routers in same administrative domain forwarding packets to destinations outside  Routers in same AS run the AS. same routing protocol  Routers are organized   The routing algorithm within an autonomous system is called an “intra-AS” routing protocol Routers in different AS can run different intraAS routing protocol 1c 1a 1d 1b AS1
  • 5. Inter-AS tasks AS1 must: 1. Learn which destinations are reachable through AS2, which through AS3 2. Propagate this reachability information to all routers in AS1.  Configure Forwarding table Job of inter-AS routing protocol!  Suppose router in AS1 receives datagram destined outside of AS1:  Router should forward packet to gateway router, but which one? 3c 3a 3b AS3 1a 2a 1c 1d 1b Intra-AS Routing algorithm AS1 Inter-AS Routing algorithm Forwarding table 2c AS2 2b
  • 6. Example: Setting forwarding table in router 1d  Suppose AS1 learns (via inter-AS protocol) that network x reachable via AS3 (gateway 1c) but not via AS2.  Inter-AS protocol propagates reachability info to all internal routers.  Router 1d determines from intra-AS routing info that its interface I is on the least cost path to 1c.  installs forwarding table entry (x,I) x 3c 3a 3b AS3 1a 2a 1c 1d 1b AS1 2c 2b AS2
  • 7. Example: Choosing among multiple ASs  Now suppose AS1 learns from inter-AS protocol that a network x is reachable from AS3 and from AS2.  To configure forwarding table, router 1d must determine towards which gateway it should forward packets for dest x.  Hot Potato Routing: Send packet towards closest of two routers. x 3c 3a 3b AS3 1a 2a 1c 1d 1b 2c AS2 AS1 2b
  • 8. Example: Choosing among multiple ASs Learn from inter-AS protocol that network x is reachable via multiple gateways Use routing info from intra-AS protocol to determine costs of least-cost paths to each of the gateways Hot potato routing: Choose the gateway that has the smallest least cost Determine the interface I that leads to least-cost gateway. Enter (x,I) in forwarding table Steps in adding an outside AS destination in a routers forwarding Table
  • 11. Path Vector Routing Loop Prevention If a router receives a message, checks to see if its autonomous system is in the path list to the destination. If it is, looping is involved and the message is ignored. Policy Routing If one of the path in the path vector is against the policy it can ignore that path and does not update its routing table.
  • 12. Inter-AS Routing in Internet: BGP  BGP (Border Gateway Protocol)  BGP provides each AS a means to: 1. Obtain subnet reachability information from neighboring ASs. 2. Propagate reachability information to all ASinternal routers. 3. Determine “good” routes to subnets based on reachability information and policy.  Allows subnet to advertise its existence to rest of Internet: “I am here”
  • 13. BGP Basics  Pairs of routers (BGP peers) exchange routing info over TCP connections using port 179.  For each TCP connection, the two routers at the end of the connection are called BGP Peers  The TCP connection along with all the BGP messages sent over the connection is called a BGP Session  Internal (IBGP) neighbours  A pair of BGP speakers within the same AS  External (EBGP) neighbours  Two BGP speakers from two different AS eBGP session 3c 3a 3b AS3 1a AS1 iBGP session 2a 1c 1d 1b 2c AS2 2b
  • 14. BGP Basics  BGP allows each AS to learn which destinations are reachable via its neighboring ASs.  Destinations are not hosts but instead are CIDRized prefixes.  E.g. AS1 has four subnets attached to it It will aggregate the prefixes of these four and will advertise the single prefix  AS1 and AS2 send reachability information trough their gateway routers 1b and 2a.  When a gateway router receives e-BGP learned prefixes, the gateway router uses iBGP sessions to distribute the prefixes to other routers in the AS.
  • 15. Distributing Reachability info  Using eBGP session between 3a and 1c, AS3 sends prefix reachability info to AS1.  1c can then use iBGP do distribute new prefix info to all routers in AS1  1b can then re-advertise new reachability info to AS2 over 1b-to-2a eBGP session  When router learns of new prefix, it creates entry for prefix in its forwarding table. eBGP session 3c 3a 3b AS3 1a AS1 iBGP session 2a 1c 1d 1b 2c AS2 2b
  • 16. Path Attributes & BGP Routes  In BGP an AS is recognized by its globally unique Autonomous System Number (ASN).  Assigned by ICANN Regional Registries.  Advertised prefix includes BGP attributes.  prefix + attributes = “route”  Two important attributes:  AS-PATH and NEXT-HOP
  • 17. Path Attributes & BGP Routes  AS-PATH  Contains ASs through which prefix advertisement has passed.  When a prefix is passed into an AS, the As adds its ASN to the AS-PATH attribute. E.g suppose that the prefix 138.16.64.0/24 is first advertised from AS2 to AS1. If AS1 then advertises the prefix to AS3, AS-PATH would be AS2 AS1.  Detect and prevent looping advertisements
  • 18. Routing Loop Prevention AS2 [ Net1, (AS3,AS4) ] [ Net1, (AS2,AS3,AS4)] AS3 AS1 [Net1, (AS4)] AS4 Net1 [ Net1, (AS1,AS2,AS3,AS4)] AS3 won’t forward this further