Webinar topic: Running BGP with Mikrotik
Presenter: Achmad Mardiansyah
In this webinar series, We are discussing Running BGP with Mikrotik
Please share your feedback or webinar ideas here: http://bit.ly/glcfeedback
Check our schedule for future events: https://www.glcnetworks.com/schedule/
Follow our social media for updates: Facebook, Instagram, YouTube Channel, and telegram
The recording is available on Youtube
https://youtu.be/jqlz7C_Otv8
4. 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
4
5. www.glcnetworks.com
Trainer Introduction
● Name: Achmad Mardiansyah
● Base: bandung, Indonesia
● Linux user since 1999, mikrotik user since 2007, UBNT
2011
● Mikrotik Certified Trainer
(MTCNA/RE/WE/UME/INE/TCE/IPv6)
● Mikrotik/Linux Certified Consultant
● Website contributor: achmadjournal.com, mikrotik.tips,
asysadmin.tips
● More info:
http://au.linkedin.com/in/achmadmardiansyah
5
6. www.glcnetworks.com
Past experiences
6
● 2020 (Congo DRC, Malaysia): IOT integration,
network automation
● 2019, Congo (DRC): build a wireless ISP from
ground-up
● 2018, Malaysia: network revamp, develop billing
solution and integration, setup dynamic routing
● 2017, Libya (north africa): remote wireless migration
for a new Wireless ISP
● 2016, United Kingdom: workshop for wireless ISP,
migrating a bridged to routed network
● 2015, West Kalimantan: supporting wireless
infrastructure project
7. www.glcnetworks.com
About GLC webinar?
● First webinar: january 1, 2010 (title:
tahun baru bersama solaris - new year
with solaris OS)
● As a sharing event with various topics:
linux, networking, wireless, database,
programming, etc
● Regular schedule
● Irregular schedule: as needed
● Checking schedule:
http://www.glcnetworks.com/schedule
● You are invited to be a presenter
○ No need to be an expert
○ This is a forum for sharing: knowledge,
experiences, information
7
10. www.glcnetworks.com
A bit of history...
● Initially, research project (’70-’80s) – Open, cooperative, public domain
○ “Rough consensus and running code”
● Then, product of liberalisation (’90s) – Also, catalyst for deregulation
○ Commercial, competitive environment
● Now, public utility and critical infrastructure (since 2000 and beyond)
○ “Internet governance” is a recent afterthought
10
Source: APNIC
14. www.glcnetworks.com
Why use internet
● Open
○ Free standards and implementations – Low barrier to entry
● Lightweight
○ “Dumb”: simple and efficient
○ Intelligence at the edges: in applications and devices
● Global
○ Uniform, “End-to-End”
● Neutral
○ By default
14
Source: APNIC
18. www.glcnetworks.com
We need standards
● Standards operate at different levels of the network “stack”
○ in fact they define the stack
● A standard (or protocol) is simply an agreement
○ among members of a community,
○ on a set of guidelines or rules,
○ which allow cooperation (interoperability),
○ sometimes, in a forum such as ISO, ITU, W3C or IETF.
● An open standard is a standard which is
○ Developed through open and accessible processes
○ Freely accessible, implementable and usable
○ Available without barriers such as licenses and fees.
○ ... “ideally”, at least.
18
Source: APNIC
19. www.glcnetworks.com
Addressing, IANA, RIR
● Internet is based on IP (internet protocol) addressing scheme -> RFC791
● Addressing has to be unique.
● We need an international body that regulates IP addressing -> IANA (Internet
Assigned Number Authority)
● IANA delegates (some of its authority) to RIR “Regional Internet Registry”
● RIR delegates to country’s
● Every organisation must have IP address block to join the internet and
build a routing scheme among their equipment
19
22. www.glcnetworks.com
Your ISP and you
● ISP is an organisation that is part of internet that provides connectivity to their
customers
○ Identified by their AS (Autonomous System) number
○ Identified by their IP address block
● When you connect to internet, you will use your ISP’s address
22
Your ISP. and you
are part of them
other
ISP
other
ISP
google
facebook
23. www.glcnetworks.com
At your ISP (physical connection)
23
Border
router
Other
ISP
Other
ISP
Access
router
Access
router
customer customer customer
Access network: GPON, WLAN,
FO, GSM, ethernet, etc
25. www.glcnetworks.com
What is BGP features?
● Path Vector Protocol
● Incremental Updates
● Many options for policy enforcement
● Support VLSM
● Classless Inter Domain Routing (CIDR)
● Widely used for Internet backbone
● Connects Autonomous systems
25
26. www.glcnetworks.com
What is VLSM?
● Variable-Length Subnet Masking (VLSM)
● Can divide an IP address block into subnets of different sizes using / (slash)
notation
● Solution the in efficient of classful IP address (fixed length). No more class A,
class B, Class C -> please don't say these classes anymore
● making it possible to create subnets with very different host counts without
wasting large numbers of addresses.
● RFC: 1878 (1995)
● Basis for CIDR
● Example: 23.45.0.0/16
○ 23.45.0.0/25
○ 23.45.0.128/25
26
28. www.glcnetworks.com
What is CIDR?
● CIDR: Classless Inter-Domain Routing (sometimes is called supernetting)
● CIDR solves problem of wasted address space by providing a new and more
flexible way to specify network addresses in routers (using slash as notation)
● allow flexible allocation of Internet Protocol (IP) addresses.
● Replaces classful network (class A,B,C,D). Please don't ever mention this
anymore...
● CIDR lets a routing table entry represent an aggregation of networks that exist
in the forward path
● Each IP address has a network prefix that identifies either one or several
network gateways.
● RFC: 1519
28
30. www.glcnetworks.com
Path Vector Protocol
● BGP is classified as a path vector routing protocol (see RFC 1322)
● A path vector protocol defines a route as a pairing between a destination and
the attributes of the path to that destination.
● See AS path below
30
32. www.glcnetworks.com
Peering types
● Transit - service provided by an ISP to carry other ISP/customer traffic to
other network (internet). Usually is for commercial (paid service)
● Peering - 2 ISPs or more exchange traffic and routing information. Can be
commercial or non commercial (gratis). Example: peering on IXP (Internet
Exchange Point)
● Default - default route, sending traffic to default router of there is no explicit
match on routing table
32
34. www.glcnetworks.com
Autonomous System (AS)
● Collection of networks with same routing policy
● Single routing protocol
● Usually under single ownership, trust and administrative control
● Identified by a unique 32-bit integer (ASN)
34
source: philip smith,
introduction to BGP
37. www.glcnetworks.com
eBGP & iBGP
● BGP is used
○ Internally, inside AS (iBGP - internal BGP)
○ Externally, between AS (eBGP - external BGP)
● iBGP is used to carry
○ Some/all Internet prefixes across ISP backbone
○ Prefixes from ISP customers
● eBGP is used to
○ Exchange prefixes with other ASes
○ Implement routing policy
37
39. www.glcnetworks.com
External BGP Peering (eBGP)
● Between BGP speakers in different AS
● Should be directly connected
● Never run an IGP between eBGP peers
39
source: philip smith,
introduction to BGP
40. www.glcnetworks.com
Internal BGP (iBGP)
● BGP peer within the same AS
● Not required to be directly connected
○ IGP takes care of inter-BGP speaker connectivity
● iBGP speakers must be fully meshed:
○ They originate connected networks
○ They pass on prefixes learned from outside the ASN
○ They do not pass on prefixes learned from other iBGP speakers
● Recommended to do peer with loopback interface
● To avoid mesh peering: AS confederation, route reflector
40
source: philip smith,
introduction to BGP
50. www.glcnetworks.com
Interested? Just come to our training...
● Topics are arranged in systematic and logical way
● You will learn from experienced teacher
● Not only learn the materials, but also sharing experiences, best-practices, and
networking
50
52. www.glcnetworks.com
End of slides
● Thank you for your attention
● Please submit your feedback: http://bit.ly/glcfeedback
● Like our facebook page: https://www.facebook.com/glcnetworks
● Slide: http://www.slideshare.net/r41nbuw
● Recording (youtube): https://goo.gl/28ABHU
● Stay tune with our schedule
● Any questions?
52