Presentation 5162 1523282068 PDF
Presentation 5162 1523282068 PDF
in MPLS/VPLS networks
Email: [email protected]
Shop: https://www.mikrotik-shop.de
Twitter: https://twitter.com/fmsweb_de
Website: http://www.fmsweb.de
Wiki: http://wiki.fmsweb.de
Presentations: http://wiki.fmsweb.de/wiki/MUM-Presentations
Facebook: https://www.facebook.com/fmsinternetservice
About me
Sebastian Inacker
<[email protected]>
FMS Internetservice GmbH,
Germany
MikroTik Trainer TR0011
(May 2007)
MTCNA, MTCRE, MTCTCE,
MTCUME, MTCWE,
MTCIPv6E, MTCINE
MikroTik trainings and workshops
Topics:
Typical use cases of our (ISP) customers
Typical pitfalls
Surprising pitfalls
Real world examples
Overview / big picture
Benefits of MPLS
Routing more complex than MPLS
Some future setups (L3 VPN, TE) require MPLS
Pitfalls:
Incomplete (of course)
Not limited to MPLS/VPLS
OSPF
R4
R2 R3 R6
R1 R5
R7
PPPoE
Internet
Uplink router
Existing setup
OSPF
R4
R2 R3 R6
EoIP tunnel
EoIP tunnel
R1 R5
EoIP tunnel
R7
PPPoE
Internet
Uplink router
Requirements for MPLS
R1
R2 NAT R3
Uplink: 192.168.2.2/30 Uplink: 192.168.3.2/30
LAN: 10.0.0.1/24 LAN: 10.0.0.1/24
LSR ID = 10.0.0.1 R3 LSR ID = 10.0.0.1
R2
10.0.0.0/24 10.0.0.0/24
Unique IP for LDP
Unique IP for
LDP (LSR ID and Transport Address)
Unique IP for
OSPF (Router ID) – same issue as with LSR ID
Empty:
MPLS Local Bindings
MPLS Remote Bindings
MPLS Forwarding Table
Check routing
Debugging:
Consider dependencies!
Working traceroute
Let‘s break things
Maintenance at backup link
OSPF
R4
R2 R3 R6
VPLS tunnel
VPLS tunnel
R1 R5
VPLS tunnel
R7
PPPoE
Maintenance at R4 (backup link). OSPF is going through R5.
Customers at R3 complain. Customers at R6, R7 are fine.
Maintenance at backup link
OSPF
R4
R2 R3 R6
VPLS tunnel
VPLS tunnel
R1 R5
VPLS tunnel
R7
PPPoE
Maintenance at backup link
Loopback bridge:
Empty bridge with IP 10.255.255.x/32
Failure at main link
OSPF
R4
failure
R2 R3 R6
VPLS tunnel
VPLS tunnel
R1 R5
VPLS tunnel
R7
PPPoE
Failure at main link
Expected behaviour
Routing through R4
PPPoE customers at R3, R6, R7 online
Routing through R4
R4
failure
R2 R3 R6
VPLS tunnel
R1 R5
VPLS tunnel
R7
PPPoE
Failure at main link
Ping from R1 to R7 ok
Wrong LDP interfaces at R3
LDP:
ether2
ether3
ether4
OSPF
ether3
ether4
ether5
Examine setup
Monitor a PPPoE session
R4
R2 R3 R6
VPLS tunnel
VPLS tunnel
R1 VPLS tunnel R5
PPPoE-Tunnel
R7
PPPoE 203.0.113.1
PPPoE-client
Monitor a PPPoE session
On R1
Interface to R2: 1697 p/s
Interface to PPPoE: 846 p/s
R2
ether2
R1
ether3
PPPoE 203.0.113.1
Fragmentation
Packet fragmentation?
Original frame
L3 Size = 1500
MTU = 1500
Full Frame Size = 1514
ETH: 14 IP (20) + DATA (1480)
ETH: 14 MPLS (4) VPLS (4) CW (4) ETH (14) PPPoE (8) + DATA (1492)
MTU = 1500
ETH (14) MPLS (4) IP (20) + DATA (1480)
MPLS-MTU = L2 MTU = 1504 = 4 + 1500
Why 1508?
MTU = 1500
ETH (14) MPLS (4) MPLS (4) IP (20) + DATA (1480)
MPLS-MTU = L2 MTU = 1508 = 4 + 4 + 1500
Network improvements
Current network
OSPF
R4
R2 R3 R6
VPLS tunnel
VPLS tunnel
R1 R5
VPLS tunnel
R7
PPPoE
Redundancy
Redundancy:
Type / coverage depends on
setup
needs
customer / network
No claim for completeness
Examples
optical fiber
R1 R2
Switch
PPPoE #1 PPPoE #2
ISP #2
OSPF interfaces: R2 R3 R6
main site
Redundancy at backbone
R4
R2 R3 R6
VPLS Tunnel
R5
VPLS Tunnel
R1
VPLS Tunnel
R7
main site
Redundancy for R1
Clone R1:
R1-Main (10.255.255.11)
R1-Backup (10.255.255.12)
Main link connected to R1-Main
Backup link connected to R1-Backup
VPLS go to R1-Main (10.255.255.1) R4
R2 R3 R6
VPLS Tunnel R5
R1-Main
VPLS Tunnel
R1-Backup
VPLS Tunnel
R7
main site
Redundancy for R1
R4
R2 R3 R6
VPLS Tunnel R5
R1-Main
R4
VPLS Tunnel
R1-Backup R2 R3 R6
VPLS Tunnel
R7
VPLS Tunnel
R5
VPLS Tunnel
R1
VPLS Tunnel
R7
main site
main site
Redundancy for R1
R1-Main
VPLS Tunnel
No VRRP between Main / Backup
VPLS Tunnel
R1-Backup
VPLS Tunnel
on Interface to R2 (different L3
Switch
networks)
main site
Redundancy for R1
R1-Main
VPLS Tunnel
R1-Main and R1-Backup:
VPLS Tunnel
R1-Backup
VPLS Tunnel
Connected to main site switch
Switch
VRRP on this side
Management VLAN?
main site
Redundancy for R1
Switch
Expected behaviour
R2
10.255.255.1 on R1-Backup
VPLS tunnels to R1-Backup up VPLS Tunnel
R1-Main
VPLS Tunnel
Switch
Observed behavour
main site
Expected behaviour
R2
10.255.255.1 on R1-Main
R1-Main VPLS master VPLS Tunnel
R1-Main
Clients offline
VPLS Tunnel
Switch
main site
Let’s break test things
Switch
Expected behaviour
R1-Main VPLS Tunnel
10.255.255.1 on R1-Main
R1-Backup VPLS Tunnel
VPLS Tunnel
R2: route to 10.255.255.1
Switch
VPLS ok & clients online
main site
Observed behaviour
Clients offline
Let’s break test things
Simple reason:
LSR ID and Transport Address 10.255.255.1 is used on
R1-Backup and R1-Main(!)
IP 10.255.255.1 is active only on R1-Main (VRRP master)
Duplicate ID (and transport address): Good idea? (No.)
Let’s fix things
/interface vrrp
add interface=ether3 name=vrrp-directed-to-pppoe \
on-backup="/mpls ldp set transport-address=10.255.255.11 lsr-id=10.255.255.11" \
on-master="/mpls ldp set transport-address=10.255.255.1 lsr-id=10.255.255.1" \
preemption-mode=no vrid=5
R1-Main: 10.255.255.11
R1-Backup: 10.255.255.12
R4
But:
OSPF goes through R5 R2 R3 R6
main site
Traffic engineering (TE) tunnel
Use TE tunnel.
Here:
No need for OSPF adjustments / single OSPF area
No need for bandwith reservation / definition
No need for Constrained Shortest Path First (CSPF)
Traffic engineering (TE) tunnel
R4
R2 R3 R6
VPLS Tunnel R5
R1-Main
VPLS Tunnel
R1-Backup
VPLS Tunnel
R7
main site
Traffic engineering (TE) tunnel
10 Mbit/s 10 Mbit/s
R4
20 Mbit/s
R2 R3 10 Mbit/s R6
20 Mbit/s 10 Mbit/s
R4
20 Mbit/s
R2 R3 20 Mbit/s R6
20 Mbit/s 10 Mbit/s
R12
R01, R11 and R21 on same subnet
Bridge on R01 10.30.2.0/27
R21
10.30.1.0/27
R01 OSPF neigbors: R11, R21 10.30.1.0/27
R01
OSPF setup (simplified)
R12
Expected behaviour on R21
OSPF neighbour (only) R01 10.30.2.0/27
R21
10.30.1.0/27
10.30.1.0/27
Observed behaviour
R01
As expected
OSPF setup (simplified)
R12
Reboot R01. No config change.
10.30.2.0/27
R21
R11
Expected behaviour on R21
10.30.1.0/27
OSPF neighbour (only) R01 10.30.1.0/27
Observed behaviour
10.30.2.0/27 missing
Debug R21
R12
Debug R21
OSPF state to R01 full 10.30.2.0/27
R21
10.30.1.0/27
10.30.1.0/27
R01
Debug R01
R12
Debug R01
OSPF state to R11 & R21 full 10.30.2.0/27
R21
10.30.1.0/27
10.30.1.0/27
R01
OSPF Designated Router
R12
OSPF with network type Broadcast
will elect Designated Router (DR). 10.30.2.0/27
R21
R11
10.30.1.0/27
Who is DR? R21 is DR! 10.30.1.0/27
R01
R12
Possible solutions
10.30.2.0/27
R21
10.30.1.0/27
Use network type ptmp 10.30.1.0/27
R01
Thank you
FMS Internetservice GmbH