SlideShare une entreprise Scribd logo
1  sur  37
Télécharger pour lire hors ligne
APNIC eLearning:

Routing Basics
Contact: training@apnic.net

eROU01_v1.0
Overview
•  What does a router do?
•  Routing vs. Forwarding
•  IP Route Lookup
•  RIB and FIB
•  Explicit and Default Routing
•  Autonomous Systems
•  Routing Policy
•  Routing Protocols
•  IGP and EGP
What does a router do?
•  ?
A day in a life of a router
•  find path
•  forward packet, forward packet, forward packet, forward
packet...
•  find alternate path
•  forward packet, forward packet, forward packet, forward
packet…
•  repeat until powered off
Routing versus Forwarding
•  Routing = building maps
and giving directions
•  Forwarding = moving
packets between interfaces
according to the
“directions”
IP Routing – finding the path
•  Path derived from information received from a routing
protocol
•  Several alternative paths may exist
–  best path stored in forwarding table

•  Decisions are updated periodically or as topology changes
(event driven)
•  Decisions are based on:
–  topology, policies and metrics (hop count, filtering, delay, bandwidth,
etc.)
IP route lookup
•  Based on destination IP address
•  “longest match” routing
–  More specific prefix preferred over less specific prefix
–  Example: packet with destination of 10.1.1.1/32 is sent to the router
announcing 10.1/16 rather than the router announcing 10/8.
IP route lookup
•  Based on destination IP address
Packet: Destination
IP address: 10.1.1.1
R1

10/8 announced
from here

R3

R2

10/8 → R3
10.1/16 → R4
20/8 → R5
30/8 → R6
…..
R2’s IP routing table

R4

10.1/16 announced
from here
IP route lookup:
Longest match routing
•  Based on destination IP address
Packet: Destination
IP address: 10.1.1.1
R1

10/8 announced
from here

R3

R2

10.1.1.1 && FF.0.0.0
10/8 → R3
vs.
Match!
10.1/16 → R4
10.0.0.0 && FF.0.0.0
20/8 → R5
30/8 → R6
…..
R2’s IP routing table

R4

10.1/16 announced
from here
IP route lookup:
Longest match routing
•  Based on destination IP address
Packet: Destination
IP address: 10.1.1.1
R1

10/8 announced
from here

R3

R2
R4

10/8 → R3
10.1/16 → R4
20/8 → R5
30/8 → R6
…..

10.1/16 announced
10.1.1.1 && FF.FF.0.0
from here
Match as well!
vs.
10.1.0.0 && FF.FF.0.0

R2’s IP routing table
IP route lookup:
Longest match routing
•  Based on destination IP address
Packet: Destination
IP address: 10.1.1.1
R1

10/8 announced
from here

R3

R2
R4

10/8 → R3
10.1/16 → R4
20/8 → R5
30/8 → R6
…..

10.1/16 announced
from here

10.1.1.1 && FF.0.0.0
Does not match!
vs.
20.0.0.0 && FF.0.0.0

R2’s IP routing table
IP route lookup:
Longest match routing
•  Based on destination IP address
Packet: Destination
IP address: 10.1.1.1
R1

10/8 announced
from here

R3

R2
R4

10/8 → R3
10.1/16 announced
10.1/16 → R4
from here
20/8 → R5
10.1.1.1 && FF.0.0.0
Does not match!
30/8 → R6
vs.
…..
30.0.0.0 && FF.0.0.0
R2’s IP routing table
IP route lookup:
Longest match routing
•  Based on destination IP address
Packet: Destination
IP address: 10.1.1.1
R1

10/8 announced
from here

R3

R2
R4

10/8 → R3
10.1/16 → R4
20/8 → R5
30/8 → R6
…..
R2’s IP routing table

Longest match, 16 bit netmask

10.1/16 announced
from here
RIBs and FIBs
•  FIB is the Forwarding Table
–  It contains destinations and the interfaces to get to those destinations
–  Used by the router to figure out where to send the packet
–  Careful! Some people still call this a route!

•  RIB is the Routing Table
–  It contains a list of all the destinations and the various next hops used
to get to those destinations – and lots of other information too!
–  One destination can have lots of possible next-hops – only the best
next-hop goes into the FIB
Explicit versus Default Routing
•  Default:
–  simple, cheap (cycles, memory, bandwidth)
–  low granularity (metric games)

•  Explicit (default free zone)
–  high overhead, complex, high cost, high granularity

•  Hybrid
–  minimise overhead
–  provide useful granularity
–  requires some filtering knowledge
Egress Traffic
•  How packets leave your network
•  Egress traffic depends on:
– 
– 
– 
– 

route availability (what others send you)
route acceptance (what you accept from others)
policy and tuning (what you do with routes from others)
Peering and transit agreements
Ingress Traffic
•  How packets get to your network and your customers’
networks
•  Ingress traffic depends on:
–  what information you send and to whom
–  based on your addressing and AS’s
–  based on others’ policy (what they accept from you and what they do
with it)
Autonomous System (AS)
•  Collection of networks with same routing policy
•  Single routing protocol
•  Usually under single ownership, trust and administrative
control

AS 100
Definition of terms
•  Neighbours
–  AS’s which directly exchange routing information
–  Routers which exchange routing information

•  Announce
–  send routing information to a neighbour

•  Accept
–  receive and use routing information sent by a neighbour

•  Originate
–  insert routing information into external announcements (usually as a
result of the IGP)

•  Peers
–  routers in neighbouring AS’s or within one AS which exchange routing
and policy information
Routing flow and packet flow
packet flow

AS 1

accept
announce

routing flow

announce
accept

packet flow

For networks in AS1 and AS2 to communicate:
AS1 must announce to AS2
AS2 must accept from AS1
AS2 must announce to AS1
AS1 must accept from AS2

AS 2
Routing flow and Traffic flow
•  Traffic flow is always in the opposite direction of the flow of
Routing information
–  Filtering outgoing routing information inhibits traffic flow inbound
–  Filtering inbound routing information inhibits traffic flow outbound
Routing Flow/Packet Flow:
With multiple ASes
AS 1

AS 34

N1

AS16
AS 8

N16

•  For net N1 in AS1 to send traffic to net N16 in AS16:
– 
– 
– 
– 

AS16 must originate and announce N16 to AS8.
AS8 must accept N16 from AS16.
AS8 must forward announcement of N16 to AS1 or AS34.
AS1 must accept N16 from AS8 or AS34.

•  For two-way packet flow, similar policies must exist for N1
Routing Flow/Packet Flow:
With multiple ASes
AS 1

AS 34

N1

AS16
AS 8

N16

•  As multiple paths between sites are implemented it is easy
to see how policies can become quite complex.
Routing Policy
•  Used to control traffic flow in and out of an ISP network
•  ISP makes decisions on what routing information to accept
and discard from its neighbours
– 
– 
– 
– 

Individual routes
Routes originated by specific ASes
Routes traversing specific ASes
Routes belonging to other groupings
•  Groupings which you define as you see fit
Routing Policy Limitations
red

red

Internet
green

AS99
green
packet flow

•  AS99 uses red link for traffic to the red AS and the green
link for remaining traffic
•  To implement this policy, AS99 has to:
–  Accept routes originating from the red AS on the red link
–  Accept all other routes on the green link
Routing Policy Limitations

red

red

Internet

AS99

AS22
green

green
packet flow

•  AS99 would like packets coming from the green AS to use
the green link.
•  But unless AS22 cooperates in pushing traffic from the
green AS down the green link, there is very little that AS99
can do to achieve this aim
Routing Protocols
•  Routers use “routing protocols” to exchange routing
information with each other
–  IGP is used to refer to the process running on routers inside an ISP’s
network
–  EGP is used to refer to the process running between routers
bordering directly connected ISP networks
What Is an IGP?
•  Interior Gateway Protocol
•  Within an Autonomous System
•  Carries information about internal infrastructure prefixes
•  Two widely used IGPs in service provider network:
–  OSPF
–  ISIS
Why Do We Need an IGP?
•  ISP backbone scaling
–  Hierarchy
–  Limiting scope of failure
–  Only used for ISP’s infrastructure addresses, not customers or
anything else
–  Design goal is to minimise number of prefixes in IGP to aid scalability
and rapid convergence
What Is an EGP?
•  Exterior Gateway Protocol
•  Used to convey routing information between Autonomous
Systems
•  De-coupled from the IGP
•  Current EGP is BGP
Why Do We Need an EGP?
•  Scaling to large network
–  Hierarchy
–  Limit scope of failure

•  Define Administrative Boundary
•  Policy
–  Control reachability of prefixes
–  Merge separate organisations
–  Connect multiple IGPs
Interior versus Exterior
Routing Protocols
•  Interior
– 
– 
– 
– 
– 

Automatic neighbour discovery
Generally trust your IGP routers
Prefixes go to all IGP routers
Binds routers in one AS together
Carries ISP infrastructure
addresses only
–  ISPs aim to keep the IGP small for
efficiency and scalability

•  Exterior
– 
– 
– 
– 
– 
– 
– 

Specifically configured peers
Connecting with outside networks
Set administrative boundaries
Binds AS’s together
Carries customer prefixes
Carries Internet prefixes
EGPs are independent of ISP
network topology
Hierarchy of Routing Protocols
Other ISPs
BGP4

BGP4
and OSPF/ISIS

BGP4
IXP

Static/BGP4
Customers
FYI: Cisco IOS Default Administrative
Distances
Route Source

Default Distance

Connected Interface
Static Route
Enhanced IGRP Summary Route
External BGP
Internal Enhanced IGRP
IGRP
OSPF
IS-IS
RIP
EGP
External Enhanced IGRP
Internal BGP
Unknown

0
1
5
20
90
100
110
115
120
140
170
200
255
Questions
•  Please remember to fill out the
feedback form
–  <survey-link>

•  Slide handouts will be available
after completing the survey
APNIC Helpdesk Chat
Thank You!
End of Session

Contenu connexe

Tendances

Brkrst 3123 previdi-final
Brkrst 3123 previdi-finalBrkrst 3123 previdi-final
Brkrst 3123 previdi-finalStefano Previdi
 
Routing in 2016, IETF 98
Routing in 2016, IETF 98Routing in 2016, IETF 98
Routing in 2016, IETF 98APNIC
 
An Overview of Border Gateway Protocol (BGP)
An Overview of Border Gateway Protocol (BGP)An Overview of Border Gateway Protocol (BGP)
An Overview of Border Gateway Protocol (BGP)Jasim Alam
 
BGP (border gateway routing protocol)
BGP (border gateway routing protocol)BGP (border gateway routing protocol)
BGP (border gateway routing protocol)Netwax Lab
 
Border Gateway Protocol
Border Gateway ProtocolBorder Gateway Protocol
Border Gateway ProtocolKashif Latif
 
01 (IDNOG02) ASN distribution and interconnection in Indonesia by Sanjaya
01 (IDNOG02) ASN distribution and interconnection in Indonesia by Sanjaya 01 (IDNOG02) ASN distribution and interconnection in Indonesia by Sanjaya
01 (IDNOG02) ASN distribution and interconnection in Indonesia by Sanjaya Indonesia Network Operators Group
 
BIRD Routing Daemon
BIRD Routing DaemonBIRD Routing Daemon
BIRD Routing DaemonAPNIC
 
BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)NetProtocol Xpert
 
SGNOG2 - Using communities for multihoming ISP workshop
SGNOG2 - Using communities for multihoming ISP workshopSGNOG2 - Using communities for multihoming ISP workshop
SGNOG2 - Using communities for multihoming ISP workshopAPNIC
 
16 coms 525 tcpip - routing protocols -all
16    coms 525 tcpip - routing protocols -all16    coms 525 tcpip - routing protocols -all
16 coms 525 tcpip - routing protocols -allPalanivel Kuppusamy
 
Bgp For Presentation
Bgp For PresentationBgp For Presentation
Bgp For PresentationAlp isik
 
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOLEnhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOLNutan Singh
 
Prefix Filtering Design Issues and Best Practise by Nurul Islam
Prefix Filtering Design Issues and Best Practise by Nurul IslamPrefix Filtering Design Issues and Best Practise by Nurul Islam
Prefix Filtering Design Issues and Best Practise by Nurul IslamMyNOG
 

Tendances (20)

Bgp (1)
Bgp (1)Bgp (1)
Bgp (1)
 
Part1
Part1Part1
Part1
 
OSPF
OSPF OSPF
OSPF
 
Bgp training
Bgp trainingBgp training
Bgp training
 
Brkrst 3123 previdi-final
Brkrst 3123 previdi-finalBrkrst 3123 previdi-final
Brkrst 3123 previdi-final
 
Routing in 2016, IETF 98
Routing in 2016, IETF 98Routing in 2016, IETF 98
Routing in 2016, IETF 98
 
An Overview of Border Gateway Protocol (BGP)
An Overview of Border Gateway Protocol (BGP)An Overview of Border Gateway Protocol (BGP)
An Overview of Border Gateway Protocol (BGP)
 
BGP (border gateway routing protocol)
BGP (border gateway routing protocol)BGP (border gateway routing protocol)
BGP (border gateway routing protocol)
 
Border Gateway Protocol
Border Gateway ProtocolBorder Gateway Protocol
Border Gateway Protocol
 
01 (IDNOG02) ASN distribution and interconnection in Indonesia by Sanjaya
01 (IDNOG02) ASN distribution and interconnection in Indonesia by Sanjaya 01 (IDNOG02) ASN distribution and interconnection in Indonesia by Sanjaya
01 (IDNOG02) ASN distribution and interconnection in Indonesia by Sanjaya
 
bgp protocol
 bgp protocol bgp protocol
bgp protocol
 
BIRD Routing Daemon
BIRD Routing DaemonBIRD Routing Daemon
BIRD Routing Daemon
 
BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)
 
SGNOG2 - Using communities for multihoming ISP workshop
SGNOG2 - Using communities for multihoming ISP workshopSGNOG2 - Using communities for multihoming ISP workshop
SGNOG2 - Using communities for multihoming ISP workshop
 
BGP
BGPBGP
BGP
 
I Pv6 Enabling Menog 0.4
I Pv6 Enabling Menog 0.4I Pv6 Enabling Menog 0.4
I Pv6 Enabling Menog 0.4
 
16 coms 525 tcpip - routing protocols -all
16    coms 525 tcpip - routing protocols -all16    coms 525 tcpip - routing protocols -all
16 coms 525 tcpip - routing protocols -all
 
Bgp For Presentation
Bgp For PresentationBgp For Presentation
Bgp For Presentation
 
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOLEnhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
 
Prefix Filtering Design Issues and Best Practise by Nurul Islam
Prefix Filtering Design Issues and Best Practise by Nurul IslamPrefix Filtering Design Issues and Best Practise by Nurul Islam
Prefix Filtering Design Issues and Best Practise by Nurul Islam
 

En vedette

Dynamic routing OSPF 1
Dynamic routing OSPF 1Dynamic routing OSPF 1
Dynamic routing OSPF 1Kishore Kumar
 
Basic router configuration
Basic router configurationBasic router configuration
Basic router configurationSourabh Badve
 
Introduction to Router and Routing Basics
Introduction to Router and Routing BasicsIntroduction to Router and Routing Basics
Introduction to Router and Routing BasicsDarwish Ahmad
 
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERSDay 1 INTRODUCTION TO IOS AND CISCO ROUTERS
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERSanilinvns
 
BASIC OF ROUTERS,ROUTER IOS AND ROUTING PROTOCOLS
BASIC OF ROUTERS,ROUTER IOS AND ROUTING PROTOCOLSBASIC OF ROUTERS,ROUTER IOS AND ROUTING PROTOCOLS
BASIC OF ROUTERS,ROUTER IOS AND ROUTING PROTOCOLSamiteshg
 
Introduction to router
Introduction to routerIntroduction to router
Introduction to routerFarhan Galib
 
Router configuration in packet tracer
Router configuration in packet  tracerRouter configuration in packet  tracer
Router configuration in packet tracerAnabia Anabia
 
Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information ProtocolKashif Latif
 
Routing Protocols and Concepts - Chapter 1
Routing Protocols and Concepts - Chapter 1Routing Protocols and Concepts - Chapter 1
Routing Protocols and Concepts - Chapter 1CAVC
 
Routers and Routing Configuration
Routers and Routing ConfigurationRouters and Routing Configuration
Routers and Routing Configurationyasir1122
 
Routers.ppt
Routers.pptRouters.ppt
Routers.pptkirbadh
 
Wireless routers Presentation
Wireless routers PresentationWireless routers Presentation
Wireless routers PresentationFahd Allebdi
 
An Introduction to BGP Flow Spec
An Introduction to BGP Flow SpecAn Introduction to BGP Flow Spec
An Introduction to BGP Flow SpecShortestPathFirst
 

En vedette (19)

Dynamic routing OSPF 1
Dynamic routing OSPF 1Dynamic routing OSPF 1
Dynamic routing OSPF 1
 
Basic router configuration
Basic router configurationBasic router configuration
Basic router configuration
 
CCNA part 6 igrp,ospf,eigrp
CCNA part 6 igrp,ospf,eigrpCCNA part 6 igrp,ospf,eigrp
CCNA part 6 igrp,ospf,eigrp
 
Introduction to Router and Routing Basics
Introduction to Router and Routing BasicsIntroduction to Router and Routing Basics
Introduction to Router and Routing Basics
 
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERSDay 1 INTRODUCTION TO IOS AND CISCO ROUTERS
Day 1 INTRODUCTION TO IOS AND CISCO ROUTERS
 
The Governance Framework For Managing Change
The Governance Framework For Managing ChangeThe Governance Framework For Managing Change
The Governance Framework For Managing Change
 
BASIC OF ROUTERS,ROUTER IOS AND ROUTING PROTOCOLS
BASIC OF ROUTERS,ROUTER IOS AND ROUTING PROTOCOLSBASIC OF ROUTERS,ROUTER IOS AND ROUTING PROTOCOLS
BASIC OF ROUTERS,ROUTER IOS AND ROUTING PROTOCOLS
 
Introduction to router
Introduction to routerIntroduction to router
Introduction to router
 
Router configuration in packet tracer
Router configuration in packet  tracerRouter configuration in packet  tracer
Router configuration in packet tracer
 
Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information Protocol
 
IP Routing Tutorial
IP Routing TutorialIP Routing Tutorial
IP Routing Tutorial
 
Presentation on router
Presentation on routerPresentation on router
Presentation on router
 
Routing Protocols and Concepts - Chapter 1
Routing Protocols and Concepts - Chapter 1Routing Protocols and Concepts - Chapter 1
Routing Protocols and Concepts - Chapter 1
 
Routers and Routing Configuration
Routers and Routing ConfigurationRouters and Routing Configuration
Routers and Routing Configuration
 
Routers.ppt
Routers.pptRouters.ppt
Routers.ppt
 
Ppt of routing protocols
Ppt of routing protocolsPpt of routing protocols
Ppt of routing protocols
 
Wireless routers Presentation
Wireless routers PresentationWireless routers Presentation
Wireless routers Presentation
 
K to 12 PC Hardware Servicing Learning Module
K to 12 PC Hardware Servicing Learning ModuleK to 12 PC Hardware Servicing Learning Module
K to 12 PC Hardware Servicing Learning Module
 
An Introduction to BGP Flow Spec
An Introduction to BGP Flow SpecAn Introduction to BGP Flow Spec
An Introduction to BGP Flow Spec
 

Similaire à E rou01 routing_basics

Part 10 : Routing in IP networks and interdomain routing with BGP
Part 10 : Routing in IP networks and interdomain routing with BGPPart 10 : Routing in IP networks and interdomain routing with BGP
Part 10 : Routing in IP networks and interdomain routing with BGPOlivier Bonaventure
 
15 coms 525 tcpip - border gateway protocols
15    coms 525 tcpip - border gateway protocols15    coms 525 tcpip - border gateway protocols
15 coms 525 tcpip - border gateway protocolsPalanivel Kuppusamy
 
32nd TWNIC IP OPM: ROA+ROV deployment & industry development
32nd TWNIC IP OPM: ROA+ROV deployment & industry development32nd TWNIC IP OPM: ROA+ROV deployment & industry development
32nd TWNIC IP OPM: ROA+ROV deployment & industry developmentAPNIC
 
IDNOG 2: AS interconnection in indonesia
IDNOG 2: AS interconnection in indonesiaIDNOG 2: AS interconnection in indonesia
IDNOG 2: AS interconnection in indonesiaAPNIC
 
Internet Measurement Tools & Their Usefulness by Gaurab Raj Upadhaya
Internet Measurement Tools & Their Usefulness by Gaurab Raj UpadhayaInternet Measurement Tools & Their Usefulness by Gaurab Raj Upadhaya
Internet Measurement Tools & Their Usefulness by Gaurab Raj UpadhayaMyNOG
 
Internet standard routing protocols
Internet standard routing protocolsInternet standard routing protocols
Internet standard routing protocolsOnline
 
NP - Unit 4 - Routing - RIP, OSPF and Internet Multicasting
NP - Unit 4 - Routing - RIP, OSPF and Internet MulticastingNP - Unit 4 - Routing - RIP, OSPF and Internet Multicasting
NP - Unit 4 - Routing - RIP, OSPF and Internet Multicastinghamsa nandhini
 
16 bgp
16 bgp16 bgp
16 bgpTCT
 
Sept 2017 dynamic routing
Sept 2017   dynamic routingSept 2017   dynamic routing
Sept 2017 dynamic routingshahin raj
 
LkNOG 3: Strengthening the Internet infrastructure in Sri Lanka
LkNOG 3: Strengthening the Internet infrastructure in Sri LankaLkNOG 3: Strengthening the Internet infrastructure in Sri Lanka
LkNOG 3: Strengthening the Internet infrastructure in Sri LankaAPNIC
 
LKNOG3-Keynote
LKNOG3-KeynoteLKNOG3-Keynote
LKNOG3-KeynoteLKNOG
 
TechWiseTV Workshop: Segment Routing for the Datacenter
TechWiseTV Workshop: Segment Routing for the DatacenterTechWiseTV Workshop: Segment Routing for the Datacenter
TechWiseTV Workshop: Segment Routing for the DatacenterRobb Boyd
 
CCNA_RSE_Chp3_Dynamic Routing NETWORKINGFBU.pptx
CCNA_RSE_Chp3_Dynamic Routing NETWORKINGFBU.pptxCCNA_RSE_Chp3_Dynamic Routing NETWORKINGFBU.pptx
CCNA_RSE_Chp3_Dynamic Routing NETWORKINGFBU.pptxManishkumarSharma338257
 
Internet Routing Registry and RPKI Tutorial, by Nurul Islam Roman [APNIC 38]
Internet Routing Registry and RPKI Tutorial, by Nurul Islam Roman [APNIC 38]Internet Routing Registry and RPKI Tutorial, by Nurul Islam Roman [APNIC 38]
Internet Routing Registry and RPKI Tutorial, by Nurul Islam Roman [APNIC 38]APNIC
 

Similaire à E rou01 routing_basics (20)

Part 10 : Routing in IP networks and interdomain routing with BGP
Part 10 : Routing in IP networks and interdomain routing with BGPPart 10 : Routing in IP networks and interdomain routing with BGP
Part 10 : Routing in IP networks and interdomain routing with BGP
 
15 coms 525 tcpip - border gateway protocols
15    coms 525 tcpip - border gateway protocols15    coms 525 tcpip - border gateway protocols
15 coms 525 tcpip - border gateway protocols
 
32nd TWNIC IP OPM: ROA+ROV deployment & industry development
32nd TWNIC IP OPM: ROA+ROV deployment & industry development32nd TWNIC IP OPM: ROA+ROV deployment & industry development
32nd TWNIC IP OPM: ROA+ROV deployment & industry development
 
bgp.ppt
bgp.pptbgp.ppt
bgp.ppt
 
Route Leak Prevension with BGP Community
Route Leak Prevension with BGP CommunityRoute Leak Prevension with BGP Community
Route Leak Prevension with BGP Community
 
IDNOG 2: AS interconnection in indonesia
IDNOG 2: AS interconnection in indonesiaIDNOG 2: AS interconnection in indonesia
IDNOG 2: AS interconnection in indonesia
 
Chapter07
Chapter07Chapter07
Chapter07
 
10 routing-bgp
10 routing-bgp10 routing-bgp
10 routing-bgp
 
Internet Measurement Tools & Their Usefulness by Gaurab Raj Upadhaya
Internet Measurement Tools & Their Usefulness by Gaurab Raj UpadhayaInternet Measurement Tools & Their Usefulness by Gaurab Raj Upadhaya
Internet Measurement Tools & Their Usefulness by Gaurab Raj Upadhaya
 
1Routing Basics.pdf
1Routing Basics.pdf1Routing Basics.pdf
1Routing Basics.pdf
 
Qs.pptx
Qs.pptxQs.pptx
Qs.pptx
 
Internet standard routing protocols
Internet standard routing protocolsInternet standard routing protocols
Internet standard routing protocols
 
NP - Unit 4 - Routing - RIP, OSPF and Internet Multicasting
NP - Unit 4 - Routing - RIP, OSPF and Internet MulticastingNP - Unit 4 - Routing - RIP, OSPF and Internet Multicasting
NP - Unit 4 - Routing - RIP, OSPF and Internet Multicasting
 
16 bgp
16 bgp16 bgp
16 bgp
 
Sept 2017 dynamic routing
Sept 2017   dynamic routingSept 2017   dynamic routing
Sept 2017 dynamic routing
 
LkNOG 3: Strengthening the Internet infrastructure in Sri Lanka
LkNOG 3: Strengthening the Internet infrastructure in Sri LankaLkNOG 3: Strengthening the Internet infrastructure in Sri Lanka
LkNOG 3: Strengthening the Internet infrastructure in Sri Lanka
 
LKNOG3-Keynote
LKNOG3-KeynoteLKNOG3-Keynote
LKNOG3-Keynote
 
TechWiseTV Workshop: Segment Routing for the Datacenter
TechWiseTV Workshop: Segment Routing for the DatacenterTechWiseTV Workshop: Segment Routing for the Datacenter
TechWiseTV Workshop: Segment Routing for the Datacenter
 
CCNA_RSE_Chp3_Dynamic Routing NETWORKINGFBU.pptx
CCNA_RSE_Chp3_Dynamic Routing NETWORKINGFBU.pptxCCNA_RSE_Chp3_Dynamic Routing NETWORKINGFBU.pptx
CCNA_RSE_Chp3_Dynamic Routing NETWORKINGFBU.pptx
 
Internet Routing Registry and RPKI Tutorial, by Nurul Islam Roman [APNIC 38]
Internet Routing Registry and RPKI Tutorial, by Nurul Islam Roman [APNIC 38]Internet Routing Registry and RPKI Tutorial, by Nurul Islam Roman [APNIC 38]
Internet Routing Registry and RPKI Tutorial, by Nurul Islam Roman [APNIC 38]
 

Dernier

Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQuiz Club NITW
 
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...Nguyen Thanh Tu Collection
 
Unit :1 Basics of Professional Intelligence
Unit :1 Basics of Professional IntelligenceUnit :1 Basics of Professional Intelligence
Unit :1 Basics of Professional IntelligenceDr Vijay Vishwakarma
 
Indexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfIndexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfChristalin Nelson
 
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...Osopher
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQuiz Club NITW
 
4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptx4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptxmary850239
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17Celine George
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...DhatriParmar
 
Shark introduction Morphology and its behaviour characteristics
Shark introduction Morphology and its behaviour characteristicsShark introduction Morphology and its behaviour characteristics
Shark introduction Morphology and its behaviour characteristicsArubSultan
 
6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroomSamsung Business USA
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...Nguyen Thanh Tu Collection
 

Dernier (20)

Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
 
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
 
Chi-Square Test Non Parametric Test Categorical Variable
Chi-Square Test Non Parametric Test Categorical VariableChi-Square Test Non Parametric Test Categorical Variable
Chi-Square Test Non Parametric Test Categorical Variable
 
Unit :1 Basics of Professional Intelligence
Unit :1 Basics of Professional IntelligenceUnit :1 Basics of Professional Intelligence
Unit :1 Basics of Professional Intelligence
 
prashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Professionprashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Profession
 
Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...
Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...
Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...
 
Indexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfIndexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdf
 
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
 
Introduction to Research ,Need for research, Need for design of Experiments, ...
Introduction to Research ,Need for research, Need for design of Experiments, ...Introduction to Research ,Need for research, Need for design of Experiments, ...
Introduction to Research ,Need for research, Need for design of Experiments, ...
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
 
4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptx4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptx
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
 
Shark introduction Morphology and its behaviour characteristics
Shark introduction Morphology and its behaviour characteristicsShark introduction Morphology and its behaviour characteristics
Shark introduction Morphology and its behaviour characteristics
 
6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
 

E rou01 routing_basics

  • 1. APNIC eLearning: Routing Basics Contact: training@apnic.net eROU01_v1.0
  • 2. Overview •  What does a router do? •  Routing vs. Forwarding •  IP Route Lookup •  RIB and FIB •  Explicit and Default Routing •  Autonomous Systems •  Routing Policy •  Routing Protocols •  IGP and EGP
  • 3. What does a router do? •  ?
  • 4. A day in a life of a router •  find path •  forward packet, forward packet, forward packet, forward packet... •  find alternate path •  forward packet, forward packet, forward packet, forward packet… •  repeat until powered off
  • 5. Routing versus Forwarding •  Routing = building maps and giving directions •  Forwarding = moving packets between interfaces according to the “directions”
  • 6. IP Routing – finding the path •  Path derived from information received from a routing protocol •  Several alternative paths may exist –  best path stored in forwarding table •  Decisions are updated periodically or as topology changes (event driven) •  Decisions are based on: –  topology, policies and metrics (hop count, filtering, delay, bandwidth, etc.)
  • 7. IP route lookup •  Based on destination IP address •  “longest match” routing –  More specific prefix preferred over less specific prefix –  Example: packet with destination of 10.1.1.1/32 is sent to the router announcing 10.1/16 rather than the router announcing 10/8.
  • 8. IP route lookup •  Based on destination IP address Packet: Destination IP address: 10.1.1.1 R1 10/8 announced from here R3 R2 10/8 → R3 10.1/16 → R4 20/8 → R5 30/8 → R6 ….. R2’s IP routing table R4 10.1/16 announced from here
  • 9. IP route lookup: Longest match routing •  Based on destination IP address Packet: Destination IP address: 10.1.1.1 R1 10/8 announced from here R3 R2 10.1.1.1 && FF.0.0.0 10/8 → R3 vs. Match! 10.1/16 → R4 10.0.0.0 && FF.0.0.0 20/8 → R5 30/8 → R6 ….. R2’s IP routing table R4 10.1/16 announced from here
  • 10. IP route lookup: Longest match routing •  Based on destination IP address Packet: Destination IP address: 10.1.1.1 R1 10/8 announced from here R3 R2 R4 10/8 → R3 10.1/16 → R4 20/8 → R5 30/8 → R6 ….. 10.1/16 announced 10.1.1.1 && FF.FF.0.0 from here Match as well! vs. 10.1.0.0 && FF.FF.0.0 R2’s IP routing table
  • 11. IP route lookup: Longest match routing •  Based on destination IP address Packet: Destination IP address: 10.1.1.1 R1 10/8 announced from here R3 R2 R4 10/8 → R3 10.1/16 → R4 20/8 → R5 30/8 → R6 ….. 10.1/16 announced from here 10.1.1.1 && FF.0.0.0 Does not match! vs. 20.0.0.0 && FF.0.0.0 R2’s IP routing table
  • 12. IP route lookup: Longest match routing •  Based on destination IP address Packet: Destination IP address: 10.1.1.1 R1 10/8 announced from here R3 R2 R4 10/8 → R3 10.1/16 announced 10.1/16 → R4 from here 20/8 → R5 10.1.1.1 && FF.0.0.0 Does not match! 30/8 → R6 vs. ….. 30.0.0.0 && FF.0.0.0 R2’s IP routing table
  • 13. IP route lookup: Longest match routing •  Based on destination IP address Packet: Destination IP address: 10.1.1.1 R1 10/8 announced from here R3 R2 R4 10/8 → R3 10.1/16 → R4 20/8 → R5 30/8 → R6 ….. R2’s IP routing table Longest match, 16 bit netmask 10.1/16 announced from here
  • 14. RIBs and FIBs •  FIB is the Forwarding Table –  It contains destinations and the interfaces to get to those destinations –  Used by the router to figure out where to send the packet –  Careful! Some people still call this a route! •  RIB is the Routing Table –  It contains a list of all the destinations and the various next hops used to get to those destinations – and lots of other information too! –  One destination can have lots of possible next-hops – only the best next-hop goes into the FIB
  • 15. Explicit versus Default Routing •  Default: –  simple, cheap (cycles, memory, bandwidth) –  low granularity (metric games) •  Explicit (default free zone) –  high overhead, complex, high cost, high granularity •  Hybrid –  minimise overhead –  provide useful granularity –  requires some filtering knowledge
  • 16. Egress Traffic •  How packets leave your network •  Egress traffic depends on: –  –  –  –  route availability (what others send you) route acceptance (what you accept from others) policy and tuning (what you do with routes from others) Peering and transit agreements
  • 17. Ingress Traffic •  How packets get to your network and your customers’ networks •  Ingress traffic depends on: –  what information you send and to whom –  based on your addressing and AS’s –  based on others’ policy (what they accept from you and what they do with it)
  • 18. Autonomous System (AS) •  Collection of networks with same routing policy •  Single routing protocol •  Usually under single ownership, trust and administrative control AS 100
  • 19. Definition of terms •  Neighbours –  AS’s which directly exchange routing information –  Routers which exchange routing information •  Announce –  send routing information to a neighbour •  Accept –  receive and use routing information sent by a neighbour •  Originate –  insert routing information into external announcements (usually as a result of the IGP) •  Peers –  routers in neighbouring AS’s or within one AS which exchange routing and policy information
  • 20. Routing flow and packet flow packet flow AS 1 accept announce routing flow announce accept packet flow For networks in AS1 and AS2 to communicate: AS1 must announce to AS2 AS2 must accept from AS1 AS2 must announce to AS1 AS1 must accept from AS2 AS 2
  • 21. Routing flow and Traffic flow •  Traffic flow is always in the opposite direction of the flow of Routing information –  Filtering outgoing routing information inhibits traffic flow inbound –  Filtering inbound routing information inhibits traffic flow outbound
  • 22. Routing Flow/Packet Flow: With multiple ASes AS 1 AS 34 N1 AS16 AS 8 N16 •  For net N1 in AS1 to send traffic to net N16 in AS16: –  –  –  –  AS16 must originate and announce N16 to AS8. AS8 must accept N16 from AS16. AS8 must forward announcement of N16 to AS1 or AS34. AS1 must accept N16 from AS8 or AS34. •  For two-way packet flow, similar policies must exist for N1
  • 23. Routing Flow/Packet Flow: With multiple ASes AS 1 AS 34 N1 AS16 AS 8 N16 •  As multiple paths between sites are implemented it is easy to see how policies can become quite complex.
  • 24. Routing Policy •  Used to control traffic flow in and out of an ISP network •  ISP makes decisions on what routing information to accept and discard from its neighbours –  –  –  –  Individual routes Routes originated by specific ASes Routes traversing specific ASes Routes belonging to other groupings •  Groupings which you define as you see fit
  • 25. Routing Policy Limitations red red Internet green AS99 green packet flow •  AS99 uses red link for traffic to the red AS and the green link for remaining traffic •  To implement this policy, AS99 has to: –  Accept routes originating from the red AS on the red link –  Accept all other routes on the green link
  • 26. Routing Policy Limitations red red Internet AS99 AS22 green green packet flow •  AS99 would like packets coming from the green AS to use the green link. •  But unless AS22 cooperates in pushing traffic from the green AS down the green link, there is very little that AS99 can do to achieve this aim
  • 27. Routing Protocols •  Routers use “routing protocols” to exchange routing information with each other –  IGP is used to refer to the process running on routers inside an ISP’s network –  EGP is used to refer to the process running between routers bordering directly connected ISP networks
  • 28. What Is an IGP? •  Interior Gateway Protocol •  Within an Autonomous System •  Carries information about internal infrastructure prefixes •  Two widely used IGPs in service provider network: –  OSPF –  ISIS
  • 29. Why Do We Need an IGP? •  ISP backbone scaling –  Hierarchy –  Limiting scope of failure –  Only used for ISP’s infrastructure addresses, not customers or anything else –  Design goal is to minimise number of prefixes in IGP to aid scalability and rapid convergence
  • 30. What Is an EGP? •  Exterior Gateway Protocol •  Used to convey routing information between Autonomous Systems •  De-coupled from the IGP •  Current EGP is BGP
  • 31. Why Do We Need an EGP? •  Scaling to large network –  Hierarchy –  Limit scope of failure •  Define Administrative Boundary •  Policy –  Control reachability of prefixes –  Merge separate organisations –  Connect multiple IGPs
  • 32. Interior versus Exterior Routing Protocols •  Interior –  –  –  –  –  Automatic neighbour discovery Generally trust your IGP routers Prefixes go to all IGP routers Binds routers in one AS together Carries ISP infrastructure addresses only –  ISPs aim to keep the IGP small for efficiency and scalability •  Exterior –  –  –  –  –  –  –  Specifically configured peers Connecting with outside networks Set administrative boundaries Binds AS’s together Carries customer prefixes Carries Internet prefixes EGPs are independent of ISP network topology
  • 33. Hierarchy of Routing Protocols Other ISPs BGP4 BGP4 and OSPF/ISIS BGP4 IXP Static/BGP4 Customers
  • 34. FYI: Cisco IOS Default Administrative Distances Route Source Default Distance Connected Interface Static Route Enhanced IGRP Summary Route External BGP Internal Enhanced IGRP IGRP OSPF IS-IS RIP EGP External Enhanced IGRP Internal BGP Unknown 0 1 5 20 90 100 110 115 120 140 170 200 255
  • 35. Questions •  Please remember to fill out the feedback form –  <survey-link> •  Slide handouts will be available after completing the survey
  • 37. Thank You! End of Session