Webinar topic: Network LACP/Bonding/Teaming with Mikrotik
Presenter: Achmad Mardiansyah
In this webinar series, How Network LACP/Bonding/Teaming with Mikrotik
Please share your feedback or webinar ideas here: http://bit.ly/glcfeedback
Check our schedule for future events: https://www.glcnetworks.com/en/schedule/
Follow our social media for updates: Facebook, Instagram, YouTube Channel, and telegram also discord
Recording available on Youtube
https://youtu.be/smRcyLE42hU
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
â—Ź 2021 (Congo DRC, Malaysia): network support,
radius/billing integration
â—Ź 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
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
11. www.glcnetworks.com
7 OSI layer & protocol
11
â—Ź OSI layer Is a conceptual model from ISO
(International Standard Organization) for project
OSI (Open System Interconnection)
â—Ź When you send a message with a courier, you
need to add more info to get your message arrived
at the destination (This process is called
encapsulation)
â—Ź What is protocol
â—‹ Is a set of rules for communication
â—‹ Available on each layer
â—Ź Communication consist of series encapsulation
â—‹ SDU: service data unit (before PDU)
â—‹ PDU: protocol data unit (after header is added)
17. www.glcnetworks.com
Typical connection (logical topology)
Routing table:
â—Ź A table at router that is used to forward packet
â—Ź Available on every devices (router and host)
â—Ź Entry is executed sequentially
17
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
20. www.glcnetworks.com
How ethernet works (CSMA/CD)
â—Ź Carrier Sense Multiple Access / Collision
Detection (CSMA/CD)
â—‹ Every host do not know when other send data
â—‹ Before sending data, host check the shared medium
â—‹ Every host only knows when collision happens
â—Ź You will have:
â—‹ Collision domain
â– Area where collision happens
â– Can use any frame
â—‹ Broadcast domain
â– Area when broadcast happens
â– Using broadcast frame
â—Ź CSMA/CD != CSMA/CA
20
21. www.glcnetworks.com
How ethernet works (ARP)
â—Ź ARP = Address resolution protocol
â—Ź A mapping between IPv4 and MAC
address
â—Ź Requires broadcast frame
â—Ź Will be eliminated in IPv6
21
Source: ipcisco.com
24. www.glcnetworks.com
Ethernet issue: Collision domain
â—Ź Area where collision happens. See CSMA/CD
â—Ź Some ideas:
â—‹ Using bridged/switched network
â—‹ Now is very hard to find a HUB
24
Source: devto.com
25. www.glcnetworks.com
Ethernet issue: Broadcast domain
â—Ź An area where broadcast happens
â—Ź Try use 5-4-3-2-1 rules
â—Ź Broadcast can go wild (especially on infected
hosts)
â—Ź Some ideas:
â—‹ Using router to split segments
â—‹ Port isolation on switch
â—‹ Use storm control on switch
25
26. www.glcnetworks.com
Ethernet issue: Loop
â—Ź A condition when frame is forwarded in the
media
â—Ź Will stop until one of cable is removed
â—Ź Some ideas:
â—‹ Do not use traditional switch
â—‹ activate STP between switch
â—‹ Port isolation
26
28. www.glcnetworks.com
Issue…
â—Ź Topology: A server/router connected to a switch with multiple interface
â—Ź Questions:
â—‹ Can we doubled the capacity?
â—‹ Which capacity traffic? Inbound or outbound?
28
29. www.glcnetworks.com
analyses
● Guys… you really need to know how the layer 2 works!!
â—Ź Outbound traffic
â—‹ It is possible to send data from multiple interface
â—‹ Problem with TCP sequence? -> low performance?
â—Ź Inbound traffic
â—‹ Can an IP address attached on both interfaces?
â—‹ Can a MAC address attached on both interfaces?
â—‹ Incoming traffic is still problem?
29
30. www.glcnetworks.com
Proposed solution:
LACP (Link Aggregation Control Protocol)
â—Ź Defined by IEEE: 802.3ad -> IEEE 802.1AX.
â—Ź Requires layer 2 devices that support the standard -> the switch must
support this standard
â—Ź Increasing traffic for outbound and inbound
â—Ź Both server & switches needs to be configured to use LACP
30
31. www.glcnetworks.com
Additional to IEEE LACP
â—Ź Cisco: etherchannel, port aggregation protocol
â—Ź Juniper: aggregated ethernet
â—Ź Avaya: multi-link trunking
â—Ź BSD: lagg (Link AGGregation and fail-over)
â—Ź Solaris: link aggregation
â—Ź Linux: bonding, teaming
31
32. www.glcnetworks.com
What is bonding?
â—Ź A feature to combine multiple ethernet-like interfaces into a single virtual link
â—Ź Benefits:
â—‹ Higher throughput
â—‹ Failover
â—Ź Settings:
â—‹ Setup bonding interface
â—‹ Setup monitoring
32
33. www.glcnetworks.com
Link monitoring
â—Ź The bonding is broken when an individual link failed -> we need to enable a
link monitoring
â—Ź Option:
â—‹ ARP monitoring -> recommended
â—‹ MII monitoring -> depends on the driver
â—Ź CLI: /interface bonding set bonding1 link-monitoring=arp
arp-ip-targets=192.168.0.2
33
34. www.glcnetworks.com
Mode: 802.3ad
â—Ź Requires switch support
â—Ź Provide failover
â—Ź Outbound traffic: provide load balancing
â—Ź Inbound traffic: provide load balancing
â—Ź The best mode
34
35. www.glcnetworks.com
Mode: balance-rr
â—Ź Can use generic switch
â—Ź Provide failover
â—Ź Outbound traffic: load balancing using round-robin algorithm among slave
interfaces
â—Ź Inbound traffic: provide incoming load balancing if supported by switch.
otherwise only use single interface
â—Ź Packet may arrive out of order
35
36. www.glcnetworks.com
Mode: balance-XOR
â—Ź Can use generic switch
â—Ź Provide failover
â—Ź Outbound traffic: load balancing based on hash policy: src-mac XOR
dst-mac XOR packet-type-id
â—Ź Inbound traffic: provide incoming load balancing if supported by switch.
otherwise only use single interface
â—Ź To overcome out-of-order packet arrival
36
37. www.glcnetworks.com
Mode: broadcast
â—Ź Can use generic switch
â—Ź Provide failover
â—Ź Outbound traffic: no aggregation. Sending the same data over multiple
interface (each interface connected to partitioned broadcast domain)
â—Ź Inbound traffic: no aggregation
37
39. www.glcnetworks.com
Mode: balance tlb
â—Ź Can use generic switch
â—Ź Provide failover
â—Ź Outbound traffic: provide transmit load balancing (tlb)
â—Ź Inbound traffic: only use single interface
39
46. 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
46
47. 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?
47