SlideShare a Scribd company logo
www.glcnetworks.com
BGP vs OSPF
Mikrotik User Meeting Manila,
January 16, 2018
Achmad Mardiansyah
achmad@glcnetworks.com
GLC Networks, Indonesia
www.glcnetworks.com
Agenda
● Introduction
● Routing review
● BGP vs OSPF
● Q & A
2
www.glcnetworks.com
What is GLC?
● Garda Lintas Cakrawala (www.glcnetworks.com)
● Based in Bandung, Indonesia
● Areas: Training, IT Consulting
● Certified partner for: Mikrotik, Ubiquity, Linux foundation
● Product: GLC radius manager
● Regular event: webinar (every 2 weeks, see our schedule on website)
●
●
3
www.glcnetworks.com
About me
● Name: Achmad Mardiansyah
● Base: bandung, Indonesia
● Linux user since 1999, mikrotik user since 2007,
● Mikrotik Certified Trainer
(MTCNA/RE/WE/UME/INE/TCE/IPv6)
● Mikrotik Certified Consultant
● Teacher at Telkom University (Bandung, Indonesia)
● Website contributor: achmadjournal.com,
mikrotik.tips, asysadmin.tips
● More info:
http://au.linkedin.com/in/achmadmardiansyah
4
www.glcnetworks.com
Past experiences
● 2017, Libya (north africa): remote wireless migration
for a new Wireless ISP
● 2016, United Kingdom: conducting a workshop for
wireless ISP, migrating a bridged to routed network
● 2015, West Borneo: supporting wireless
infrastructure project
● 2014, Senegal (west africa): TAC2 engineer for HLR
migration from NOKIA to ERICSSON
● 2013, Malaysia: setup a wireless communication to
support an international event
● 2012, Dompetdhuafa Indonesia: optimising indoor
wireless infrastructure
www.glcnetworks.com
About Telkom University
● Located in Bandung, Indonesia
● 7 Faculties, 27 schools
● Areas: Engineering, Communications, Computing, Bussiness and
management, Arts
● 650+ Academic staff, 400+ Administration staff, 20000+ students
● An exchange program
● Runs mikrotik academy program
6
www.glcnetworks.com
Mikrotik academy @ TEL-U
● Started in 2013
● Embedded into schools curricula
● 100% hands-on
● Get MTCNA certification
7
www.glcnetworks.com
Mikrotik in Indonesia
● Very popular product for networking
● Early adopters (beginning of 2000)
● Many schools already join Mikrotik
Academy programs
● Lots of training classes
● Biggest MUM in the world (2500+
participants, 2-day event)
● Very active community (facebook, telegram,
forum, etc)
● What..? you don't know Mikrotik? Where
have you been?
8
www.glcnetworks.com
Routing (review)
9
www.glcnetworks.com
Router and Routing
● Router is a network device that is used to forward packets, based on layer 3
information (layer 3 header)
● Routing is the process of selecting a path for traffic in a network, or between
or across multiple networks
10
Physical
router
Router
icon
www.glcnetworks.com
Typical connection (physical)
11
R2
R1
R3
● Router connects layer 2
segments
● Router works on layer 3
● Meaning, each layer 2
segment has network ID
www.glcnetworks.com
Typical connection (logical) and routing table
Routing table:
● A table at router that is used to forward packet
● Available on every devices (router and host)
● Entry is executed sequentially
12
192.168.0.0/26
R1
192.168.0.1/26
192.168.0.3/26
192.168.0.2/26
R3
R2
192.168.1.0/24
192.168.2.0/24
192.168.3.0/24
192.168.3.3/24
192.168.3.9/24
192.168.2.9/24
192.168.2.2/24
192.168.1.1/24
192.168.1.9/24
destination gateway
192.168.0.0/26 direct
192.168.1.0/24 direct
192.168.2.0/24 192.168.0.2
192.168.3.0/24 192.168.0.3
192.168.16.3/32 192.168.0.2
0.0.0.0/0 (default gw) 192.168.0.3
www.glcnetworks.com
Forwarding packets using routing table
● It works like a firewall: match and action
● When a packet arrived, routing table is used to forward packets
● You should think in binary to understand how it works
13
destination gateway
192.168.16.3/32
11000000 10101000 00001000 00000011
192.168.0.2
192.168.0.0/26
11000000 10101000 00000000 00
direct
192.168.1.0/24
11000000 10101000 00000001
direct
192.168.2.0/24
11000000 10101000 00000010
192.168.0.2
192.168.3.0/24
11000000 10101000 00000011
192.168.0.3
0.0.0.0/0
(no match)
192.168.0.3
www.glcnetworks.com
A packet arrived at R1… (example)
Destination IP address of the packet is 192.168.2.6, which gateway do we use?
A: 192.168.2.6 = (11000000 10101000 00000010 00000110)
14
destination gateway
192.168.16.3/32
11000000 10101000 00001000 00000011
192.168.0.2
192.168.0.0/26
11000000 10101000 00000000 00
direct
192.168.1.0/24
11000000 10101000 00000001
direct
192.168.2.0/24
11000000 10101000 00000010
192.168.0.2
192.168.3.0/24
11000000 10101000 00000011
192.168.0.3
0.0.0.0/0 192.168.0.3
www.glcnetworks.com
Where routing table lookup happens?
15
www.glcnetworks.com
Administrative distance (analogy)
16
16
CITY 1 100 km
CITY 2 120 km
CITY 2 90 km
CITY 3 500 km
CITY 4 250 km
10.10.10.0/24 192.168.0.1 10
10.10.20.0/24 192.168.0.2 12
10.10.20.0/24 192.168.0.3 9
10.10.30.0/24 192.168.0.3 50
10.10.40.0/24 192.168.0.4 25
www.glcnetworks.com
Administrative distance
● Distance is considered when prefix
length is same
● Lowest distance wins
● Administrative distance policy is
depends on vendor
● Table on the right shows an example of
administrative distance on cisco router
17
www.glcnetworks.com
Static routing
● Entries on routing table is created
manually
● Admin must manage routing table
in all routers
● Admin have full control
18
192.168.0.0/26
R1
192.168.0.1/26
192.168.0.3/26
192.168.0.2/26
R3
R2
192.168.1.0/24
192.168.2.0/24
192.168.3.0/24
192.168.3.3/24
192.168.3.9/24
192.168.2.9/24
192.168.2.2/24
192.168.1.1/24
192.168.1.9/24
destination gateway
192.168.0.0/26 direct
192.168.1.0/24 direct
192.168.2.0/24 192.168.0.2
192.168.3.0/24 192.168.0.3
192.168.16.3/32 192.168.0.2
0.0.0.0/0 192.168.0.3
www.glcnetworks.com
Dynamic routing
● Router will talk to each other with routing
protocol (RIP, OSPF, BGP)
● Entries on routing table is created
automatically
● Admin must have a good knowledge about
routing protocol
19
192.168.0.0/26
R1
192.168.0.1/26
192.168.0.3/26
192.168.0.2/26
R3
R2
192.168.1.0/24
192.168.2.0/24
192.168.3.0/24
192.168.3.3/24
192.168.3.9/24
192.168.2.9/24
192.168.2.2/24
192.168.1.1/24
192.168.1.9/24
destination gateway
192.168.0.0/26 direct
192.168.1.0/24 direct
192.168.2.0/24 192.168.0.2
192.168.3.0/24 192.168.0.3
192.168.16.3/32 192.168.0.2
0.0.0.0/0 192.168.0.3
www.glcnetworks.com
Autonomous system (AS)
● Is a collection of routers and networks under one administration and apply
single routing policy
● AS is identified by a number (ASN), given by RIR (Regional Internet Registry:
APNIC, ARIN, RIPE, etc)
20
AS1
AS4
AS3
AS2
www.glcnetworks.com
● Route scope and target scope attributes can be used to resolve nexthop
router.
● Normally nexthops can be resolved only through routes that are on link.
● It is very useful when the gateway is not directly connected
Multiple routing protocol: scope and target scope
21
AS1
R1
AS3
AS2
Indirect
gateway R1
www.glcnetworks.com
● Currently, routing is done one-way only
● Forwarding process on router is based on destination IP address
● There is no guarantee incoming path is similar to outgoing path
● We can only control outgoing forwarding
Important to note
2222
R1
192.168.0.1/26
192.168.0.3/26 R3
R2
192.168.1.0/24
192.168.2.0/24
192.168.3.0/24
192.168.3.3/24
192.168.3.9/24
192.168.2.9/24
192.168.2.2/24
192.168.1.1/24
192.168.1.9/24
www.glcnetworks.com
BGP vs OSPF
23
www.glcnetworks.com
Working layer
BGP
● On layer 5, need to establish session
between router. Aka. peer
● On layer 4, TCP port 179
OSPF
● No dedicated session peer between router
● Working on layer 3 (network layer),
multicast
24
www.glcnetworks.com
AS1
Inter-AS vs intra-AS
BGP
● Mainly for inter-AS routing exchange
● Can be used also for intra-AS
OSPF
● Mainly used for intra-AS routing exchange
●
2525
AS4
AS3
AS2
www.glcnetworks.com
AS1
iBGP vs eBGP
BGP
● eBGP: inter-AS
● iBGP: intra-AS
OSPF
● Used in conjunction with iBGP
●
2626
AS4
AS3
AS2
www.glcnetworks.com
Routing perspective
BGP
● See the whole AS number as a single unit,
no matter how many routers in it
OSPF
● See each router as single unit
27
R2
R1
R2
R1
www.glcnetworks.com
Path determination
BGP
● Based on AS path
OSPF
● Based on cost, calculated per link
28
R2
R1
R2
R1
www.glcnetworks.com
Building routing table (topology)
BGP
● Only exchange information to peer
OSPF
● Information is flooded to all routers. Each
router understand the whole topology
29
R1 R1
www.glcnetworks.com
BGP
● eBGP. scope=40, target-scope=10
● iBGP. scope=40, target-scope=30
Scope and target scope
OSPF
● scope=20, target-scope=10
30
AS1
3030
AS4
AS3
AS2
R1
Indirect gateway
for R1
www.glcnetworks.com
BGP
● Only one routing entry is chosen
● Doesnt support ECMP
Load balancing (outgoing traffic)
OSPF
● Applied on 2 or more links with equal cost.
● Use ECMP method
31
R1 R1
R2R2
www.glcnetworks.com
Interested? Just come to our training...
● MTCNA + MTCRE, 17-22 JAN 2018, MANILA - PASIG
● 100% LAB practice
● Not only learn the materials, but also sharing experiences, best-practices, and
networking
32
www.glcnetworks.com
Visit our booth at MUM Manila
33
www.glcnetworks.com
QA
34
www.glcnetworks.com
End of slides
● Thank you for your attention
● Please submit your feedback: http://bit.ly/glcfeedback
● Like our facebook page: β€œGLC networks”
● Stay tune with our schedule
35

More Related Content

PDF
BGP filter with mikrotik
PDF
ISP load balancing with mikrotik nth
PDF
Mikrotik VRRP
PDF
VLAN on mikrotik
PDF
Routing Information Protocol (RIP) on Mikrotik
PDF
Using protocol analyzer on mikrotik
PDF
Troubleshooting load balancing
PDF
Mikrotik fastpath
BGP filter with mikrotik
ISP load balancing with mikrotik nth
Mikrotik VRRP
VLAN on mikrotik
Routing Information Protocol (RIP) on Mikrotik
Using protocol analyzer on mikrotik
Troubleshooting load balancing
Mikrotik fastpath

What's hot (20)

PDF
Mikrotik firewall mangle
PDF
Policy Based Routing (PBR) on Mikrotik
PDF
GLC webinar: limiting bandwidth using mikrotik
PDF
Mikrotik API
PDF
ISP Load Balancing with Mikrotik ECMP
PDF
SSL certificate with mikrotik
PDF
Mikrotik Load Balancing with PCC
PDF
MUM Melbourne : Build Enterprise Wireless with CAPsMAN
PDF
Introduction to Web Development
PDF
Manage Your Router with Dynamic Public IP
PDF
Mikrotik metarouter
PDF
Logical Volume Manager
PDF
Building Web Server with Linux
PDF
SQL for Data Science
PDF
Blockchain For Developers
ODP
Scorex, the Modular Blockchain Framework
PDF
Codemotion Madrid 2018 - Microservicios Reactivos con Micronaut
PDF
All change for WCAG 2.0 - what you need to know about the new accessibility g...
ODP
Blockchan For Developers
ODP
Some Open Problems in Blockchains
Mikrotik firewall mangle
Policy Based Routing (PBR) on Mikrotik
GLC webinar: limiting bandwidth using mikrotik
Mikrotik API
ISP Load Balancing with Mikrotik ECMP
SSL certificate with mikrotik
Mikrotik Load Balancing with PCC
MUM Melbourne : Build Enterprise Wireless with CAPsMAN
Introduction to Web Development
Manage Your Router with Dynamic Public IP
Mikrotik metarouter
Logical Volume Manager
Building Web Server with Linux
SQL for Data Science
Blockchain For Developers
Scorex, the Modular Blockchain Framework
Codemotion Madrid 2018 - Microservicios Reactivos con Micronaut
All change for WCAG 2.0 - what you need to know about the new accessibility g...
Blockchan For Developers
Some Open Problems in Blockchains
Ad

Similar to Mikrotik User Meeting Manila: bgp vs ospf (20)

PDF
BGP vs OSPF on Mikrotik
PDF
Policy Based Routing with Indirect BGP - Part 1
PDF
Stable OSPF: choosing network type.pdf
PDF
Tuning OSPF: Prefix Aggregate
PDF
Steering traffic in OSPF: Interface cost
PDF
Tuning OSPF: area hierarchy, LSA, and area type
PDF
Tuning OSPF: Bidirectional Forwarding Detection (BFD)
PDF
MPLS on Router OS V7 - Part 1
PDF
OSPF On Router OS7
PDF
Firewall mangle PBR: steering outbound path similar to inbound
PDF
BGP on RouterOS7 -Part 1
PDF
MTCNA Intro to routerOS
PDF
MTCNA : Intro to RouterOS - Part 1
PDF
BGP security tuning: pull-up route
PDF
Internal BGP tuning: Mesh peering to avoid loop
PDF
BGP troubleshooting: route origin
PDF
BGP tuning: Peer with loopback
PDF
Mikrotik IP Settings For Performance and Security
PDF
Zabbix for Monitoring
PDF
Best Current Practice (BCP) 38 Ingress Filtering for Security
BGP vs OSPF on Mikrotik
Policy Based Routing with Indirect BGP - Part 1
Stable OSPF: choosing network type.pdf
Tuning OSPF: Prefix Aggregate
Steering traffic in OSPF: Interface cost
Tuning OSPF: area hierarchy, LSA, and area type
Tuning OSPF: Bidirectional Forwarding Detection (BFD)
MPLS on Router OS V7 - Part 1
OSPF On Router OS7
Firewall mangle PBR: steering outbound path similar to inbound
BGP on RouterOS7 -Part 1
MTCNA Intro to routerOS
MTCNA : Intro to RouterOS - Part 1
BGP security tuning: pull-up route
Internal BGP tuning: Mesh peering to avoid loop
BGP troubleshooting: route origin
BGP tuning: Peer with loopback
Mikrotik IP Settings For Performance and Security
Zabbix for Monitoring
Best Current Practice (BCP) 38 Ingress Filtering for Security
Ad

More from Achmad Mardiansyah (18)

PDF
01 introduction to mpls
PDF
Solaris 10 Container
PDF
Backup & Restore (BR) in Solaris OS
PDF
PHPID online Learning #6 Migration from procedural to OOP
PDF
Wireless CSMA with mikrotik
PDF
Mikrotik fasttrack
PDF
Jumpstart your router with mikrotik quickset
PDF
Mikrotik firewall NAT
PDF
IPv6 on Mikrotik
PDF
Mikrotik firewall filter
PDF
Mikrotik the dude
PDF
Using mikrotik with radius
PDF
Routing fundamentals with mikrotik
PDF
Mikrotik firewall raw table
PDF
BGP on mikrotik
PDF
Connection load balancing with mikrotik [workshop]
PPTX
VPN on Mikrotik
PDF
Detecting network virus using mikrotik
01 introduction to mpls
Solaris 10 Container
Backup & Restore (BR) in Solaris OS
PHPID online Learning #6 Migration from procedural to OOP
Wireless CSMA with mikrotik
Mikrotik fasttrack
Jumpstart your router with mikrotik quickset
Mikrotik firewall NAT
IPv6 on Mikrotik
Mikrotik firewall filter
Mikrotik the dude
Using mikrotik with radius
Routing fundamentals with mikrotik
Mikrotik firewall raw table
BGP on mikrotik
Connection load balancing with mikrotik [workshop]
VPN on Mikrotik
Detecting network virus using mikrotik

Recently uploaded (20)

PPTX
international classification of diseases ICD-10 review PPT.pptx
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PDF
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
PPTX
Introduction to Information and Communication Technology
PPTX
introduction about ICD -10 & ICD-11 ppt.pptx
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PPTX
SAP Ariba Sourcing PPT for learning material
PPTX
Internet___Basics___Styled_ presentation
PPTX
PptxGenJS_Demo_Chart_20250317130215833.pptx
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
PDF
Triggering QUIC, presented by Geoff Huston at IETF 123
Β 
PPTX
Digital Literacy And Online Safety on internet
PDF
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
PPTX
Introuction about ICD -10 and ICD-11 PPT.pptx
PPTX
presentation_pfe-universite-molay-seltan.pptx
PDF
Sims 4 Historia para lo sims 4 para jugar
PPTX
innovation process that make everything different.pptx
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PPTX
QR Codes Qr codecodecodecodecocodedecodecode
PDF
Testing WebRTC applications at scale.pdf
international classification of diseases ICD-10 review PPT.pptx
Slides PPTX World Game (s) Eco Economic Epochs.pptx
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
Introduction to Information and Communication Technology
introduction about ICD -10 & ICD-11 ppt.pptx
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
SAP Ariba Sourcing PPT for learning material
Internet___Basics___Styled_ presentation
PptxGenJS_Demo_Chart_20250317130215833.pptx
Unit-1 introduction to cyber security discuss about how to secure a system
Triggering QUIC, presented by Geoff Huston at IETF 123
Β 
Digital Literacy And Online Safety on internet
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
Introuction about ICD -10 and ICD-11 PPT.pptx
presentation_pfe-universite-molay-seltan.pptx
Sims 4 Historia para lo sims 4 para jugar
innovation process that make everything different.pptx
Job_Card_System_Styled_lorem_ipsum_.pptx
QR Codes Qr codecodecodecodecocodedecodecode
Testing WebRTC applications at scale.pdf

Mikrotik User Meeting Manila: bgp vs ospf

  • 1. www.glcnetworks.com BGP vs OSPF Mikrotik User Meeting Manila, January 16, 2018 Achmad Mardiansyah achmad@glcnetworks.com GLC Networks, Indonesia
  • 2. www.glcnetworks.com Agenda ● Introduction ● Routing review ● BGP vs OSPF ● Q & A 2
  • 3. www.glcnetworks.com What is GLC? ● Garda Lintas Cakrawala (www.glcnetworks.com) ● Based in Bandung, Indonesia ● Areas: Training, IT Consulting ● Certified partner for: Mikrotik, Ubiquity, Linux foundation ● Product: GLC radius manager ● Regular event: webinar (every 2 weeks, see our schedule on website) ● ● 3
  • 4. www.glcnetworks.com About me ● Name: Achmad Mardiansyah ● Base: bandung, Indonesia ● Linux user since 1999, mikrotik user since 2007, ● Mikrotik Certified Trainer (MTCNA/RE/WE/UME/INE/TCE/IPv6) ● Mikrotik Certified Consultant ● Teacher at Telkom University (Bandung, Indonesia) ● Website contributor: achmadjournal.com, mikrotik.tips, asysadmin.tips ● More info: http://au.linkedin.com/in/achmadmardiansyah 4
  • 5. www.glcnetworks.com Past experiences ● 2017, Libya (north africa): remote wireless migration for a new Wireless ISP ● 2016, United Kingdom: conducting a workshop for wireless ISP, migrating a bridged to routed network ● 2015, West Borneo: supporting wireless infrastructure project ● 2014, Senegal (west africa): TAC2 engineer for HLR migration from NOKIA to ERICSSON ● 2013, Malaysia: setup a wireless communication to support an international event ● 2012, Dompetdhuafa Indonesia: optimising indoor wireless infrastructure
  • 6. www.glcnetworks.com About Telkom University ● Located in Bandung, Indonesia ● 7 Faculties, 27 schools ● Areas: Engineering, Communications, Computing, Bussiness and management, Arts ● 650+ Academic staff, 400+ Administration staff, 20000+ students ● An exchange program ● Runs mikrotik academy program 6
  • 7. www.glcnetworks.com Mikrotik academy @ TEL-U ● Started in 2013 ● Embedded into schools curricula ● 100% hands-on ● Get MTCNA certification 7
  • 8. www.glcnetworks.com Mikrotik in Indonesia ● Very popular product for networking ● Early adopters (beginning of 2000) ● Many schools already join Mikrotik Academy programs ● Lots of training classes ● Biggest MUM in the world (2500+ participants, 2-day event) ● Very active community (facebook, telegram, forum, etc) ● What..? you don't know Mikrotik? Where have you been? 8
  • 10. www.glcnetworks.com Router and Routing ● Router is a network device that is used to forward packets, based on layer 3 information (layer 3 header) ● Routing is the process of selecting a path for traffic in a network, or between or across multiple networks 10 Physical router Router icon
  • 11. www.glcnetworks.com Typical connection (physical) 11 R2 R1 R3 ● Router connects layer 2 segments ● Router works on layer 3 ● Meaning, each layer 2 segment has network ID
  • 12. www.glcnetworks.com Typical connection (logical) and routing table Routing table: ● A table at router that is used to forward packet ● Available on every devices (router and host) ● Entry is executed sequentially 12 192.168.0.0/26 R1 192.168.0.1/26 192.168.0.3/26 192.168.0.2/26 R3 R2 192.168.1.0/24 192.168.2.0/24 192.168.3.0/24 192.168.3.3/24 192.168.3.9/24 192.168.2.9/24 192.168.2.2/24 192.168.1.1/24 192.168.1.9/24 destination gateway 192.168.0.0/26 direct 192.168.1.0/24 direct 192.168.2.0/24 192.168.0.2 192.168.3.0/24 192.168.0.3 192.168.16.3/32 192.168.0.2 0.0.0.0/0 (default gw) 192.168.0.3
  • 13. www.glcnetworks.com Forwarding packets using routing table ● It works like a firewall: match and action ● When a packet arrived, routing table is used to forward packets ● You should think in binary to understand how it works 13 destination gateway 192.168.16.3/32 11000000 10101000 00001000 00000011 192.168.0.2 192.168.0.0/26 11000000 10101000 00000000 00 direct 192.168.1.0/24 11000000 10101000 00000001 direct 192.168.2.0/24 11000000 10101000 00000010 192.168.0.2 192.168.3.0/24 11000000 10101000 00000011 192.168.0.3 0.0.0.0/0 (no match) 192.168.0.3
  • 14. www.glcnetworks.com A packet arrived at R1… (example) Destination IP address of the packet is 192.168.2.6, which gateway do we use? A: 192.168.2.6 = (11000000 10101000 00000010 00000110) 14 destination gateway 192.168.16.3/32 11000000 10101000 00001000 00000011 192.168.0.2 192.168.0.0/26 11000000 10101000 00000000 00 direct 192.168.1.0/24 11000000 10101000 00000001 direct 192.168.2.0/24 11000000 10101000 00000010 192.168.0.2 192.168.3.0/24 11000000 10101000 00000011 192.168.0.3 0.0.0.0/0 192.168.0.3
  • 16. www.glcnetworks.com Administrative distance (analogy) 16 16 CITY 1 100 km CITY 2 120 km CITY 2 90 km CITY 3 500 km CITY 4 250 km 10.10.10.0/24 192.168.0.1 10 10.10.20.0/24 192.168.0.2 12 10.10.20.0/24 192.168.0.3 9 10.10.30.0/24 192.168.0.3 50 10.10.40.0/24 192.168.0.4 25
  • 17. www.glcnetworks.com Administrative distance ● Distance is considered when prefix length is same ● Lowest distance wins ● Administrative distance policy is depends on vendor ● Table on the right shows an example of administrative distance on cisco router 17
  • 18. www.glcnetworks.com Static routing ● Entries on routing table is created manually ● Admin must manage routing table in all routers ● Admin have full control 18 192.168.0.0/26 R1 192.168.0.1/26 192.168.0.3/26 192.168.0.2/26 R3 R2 192.168.1.0/24 192.168.2.0/24 192.168.3.0/24 192.168.3.3/24 192.168.3.9/24 192.168.2.9/24 192.168.2.2/24 192.168.1.1/24 192.168.1.9/24 destination gateway 192.168.0.0/26 direct 192.168.1.0/24 direct 192.168.2.0/24 192.168.0.2 192.168.3.0/24 192.168.0.3 192.168.16.3/32 192.168.0.2 0.0.0.0/0 192.168.0.3
  • 19. www.glcnetworks.com Dynamic routing ● Router will talk to each other with routing protocol (RIP, OSPF, BGP) ● Entries on routing table is created automatically ● Admin must have a good knowledge about routing protocol 19 192.168.0.0/26 R1 192.168.0.1/26 192.168.0.3/26 192.168.0.2/26 R3 R2 192.168.1.0/24 192.168.2.0/24 192.168.3.0/24 192.168.3.3/24 192.168.3.9/24 192.168.2.9/24 192.168.2.2/24 192.168.1.1/24 192.168.1.9/24 destination gateway 192.168.0.0/26 direct 192.168.1.0/24 direct 192.168.2.0/24 192.168.0.2 192.168.3.0/24 192.168.0.3 192.168.16.3/32 192.168.0.2 0.0.0.0/0 192.168.0.3
  • 20. www.glcnetworks.com Autonomous system (AS) ● Is a collection of routers and networks under one administration and apply single routing policy ● AS is identified by a number (ASN), given by RIR (Regional Internet Registry: APNIC, ARIN, RIPE, etc) 20 AS1 AS4 AS3 AS2
  • 21. www.glcnetworks.com ● Route scope and target scope attributes can be used to resolve nexthop router. ● Normally nexthops can be resolved only through routes that are on link. ● It is very useful when the gateway is not directly connected Multiple routing protocol: scope and target scope 21 AS1 R1 AS3 AS2 Indirect gateway R1
  • 22. www.glcnetworks.com ● Currently, routing is done one-way only ● Forwarding process on router is based on destination IP address ● There is no guarantee incoming path is similar to outgoing path ● We can only control outgoing forwarding Important to note 2222 R1 192.168.0.1/26 192.168.0.3/26 R3 R2 192.168.1.0/24 192.168.2.0/24 192.168.3.0/24 192.168.3.3/24 192.168.3.9/24 192.168.2.9/24 192.168.2.2/24 192.168.1.1/24 192.168.1.9/24
  • 24. www.glcnetworks.com Working layer BGP ● On layer 5, need to establish session between router. Aka. peer ● On layer 4, TCP port 179 OSPF ● No dedicated session peer between router ● Working on layer 3 (network layer), multicast 24
  • 25. www.glcnetworks.com AS1 Inter-AS vs intra-AS BGP ● Mainly for inter-AS routing exchange ● Can be used also for intra-AS OSPF ● Mainly used for intra-AS routing exchange ● 2525 AS4 AS3 AS2
  • 26. www.glcnetworks.com AS1 iBGP vs eBGP BGP ● eBGP: inter-AS ● iBGP: intra-AS OSPF ● Used in conjunction with iBGP ● 2626 AS4 AS3 AS2
  • 27. www.glcnetworks.com Routing perspective BGP ● See the whole AS number as a single unit, no matter how many routers in it OSPF ● See each router as single unit 27 R2 R1 R2 R1
  • 28. www.glcnetworks.com Path determination BGP ● Based on AS path OSPF ● Based on cost, calculated per link 28 R2 R1 R2 R1
  • 29. www.glcnetworks.com Building routing table (topology) BGP ● Only exchange information to peer OSPF ● Information is flooded to all routers. Each router understand the whole topology 29 R1 R1
  • 30. www.glcnetworks.com BGP ● eBGP. scope=40, target-scope=10 ● iBGP. scope=40, target-scope=30 Scope and target scope OSPF ● scope=20, target-scope=10 30 AS1 3030 AS4 AS3 AS2 R1 Indirect gateway for R1
  • 31. www.glcnetworks.com BGP ● Only one routing entry is chosen ● Doesnt support ECMP Load balancing (outgoing traffic) OSPF ● Applied on 2 or more links with equal cost. ● Use ECMP method 31 R1 R1 R2R2
  • 32. www.glcnetworks.com Interested? Just come to our training... ● MTCNA + MTCRE, 17-22 JAN 2018, MANILA - PASIG ● 100% LAB practice ● Not only learn the materials, but also sharing experiences, best-practices, and networking 32
  • 35. www.glcnetworks.com End of slides ● Thank you for your attention ● Please submit your feedback: http://bit.ly/glcfeedback ● Like our facebook page: β€œGLC networks” ● Stay tune with our schedule 35