Useful schemes and tables
«...with the same shoes walking on different roads or with different shoes on a single road.» Fiorella Mannoi a
Block diagram of packet flow
packet- flow
Differences between Cisco IOS and Mikrotik RouterOS
Generic routing
Cisco IOS
Mikrotik RouterOS
FIB load Balancing
Per Src. and Dst. Address Pair or Per-Packet
Per Src. and Dst. Address Pair (Flush every 10 minutes)
Equal CostMulti Path (ECMP)
Add multiple routes to same destination with same distance, but different gateway
Add only one route by mentioning multiple gateways in the same route.
Recursive nexthop lookup
Enabled.
Disabled by default, can manually enable by route’s Target Scope parameter.
Route filtering behavior
Implicit deny at the end of each filtering component (access-list, prefix-list, filterlist, route-map…etc.).
Implicit permit at the end of filtering component (Routing Filters)
OSPF
cisco-routeros-ospf Router ID Link Cost OSPF Timer Stub Area Route Filtering Advertising Loopback interface into OSPF
Cisco IOS
Mikrotik RouterOS
Highest active Loopback IP,
then Highest active Interface IP
Lowest active interface IP
Vary depends on Link BW Ref. BW (bps) / Link BW (bps) Default Ref. BW is 100Mbps
Fixed Cost 10 for any links, changeable in OSPF interface
configuration
Vary depends on network type “broadcast” and “point-topoint”, Hello interval is 10, Dead interval is 40 For “nbma”, Hello interval is 30, Dead interval is 120 &Fixed Hello interval 10, and Dead interval 40, changeable in OSPF interface configuration. \textbf{When changed network type,
intervals are not changed!}
Type 3 LSAs are advertised into Stub Area by default, unless configured as Totally Stubby Area
Behaves like Totally Stubby Area in IOS by default. Enable “Inject Summary LSAs” option if want to advertise
Type 3 LSAs into Stub Area
Use “distribute-list” command to permit/deny routes to be
installed into RIB
Use “Routing Filters” to permit/deny routes to be installed into RIB, but can filter only Type 5 LSAs
By default, subnet mask of the interface route is forced to be /32 Set the interface network type as “point-to-point” to advertise exact subnet mask
By default, exact subnet mask is advertised, no action
required
Cisco IOS command
Mikrotik RouterOS command
show ip ospf neighbor
routing ospf neighbor print
show ip ospf interface
routing ospf interface print
show ip ospf1
routing ospf instance print detail
show ip ospf database
routing ospf lsa print
show ip route ospf ip
route print where ospf=yes
show ip ospf rib
routing ospf route print
show ip ospf border-routers
routing ospf area-border-router print
show ip ospf border-routers
routing ospf as-border-router print
Cisco(config)#router ospf1
routing ospf instance
Cisco(config-router)#router-id 203.0.113.1
/routing ospf instance set 0 router-id=203.0.113.2
Cisco(config-router)#network 203.0.113.1 0.0.0.0 area 0
/routing ospf network add area=backbone network=203.0.113.2/32
Cisco(config-router)#network 203.0.113.128 0.0.0.7 area 0
/routing ospf network add area=backbone network=203.0.113.128/29
Cisco(config-router)#interface GigabitEthernet0/0
/routing ospf interface add dead-interval=4s
Cisco(config-if)# ip ospf network point-to-point
hello-interval=1s interface=ether1
Cisco(config-if)# ip ospf dead-interval 4
network-type=point-to-point
Cisco(config-if)# ip ospf hello-interval 1
MPLS
Cisco IOS
Mikrotik RouterOS
Multi Path con Label Distribution Protocol (LDP)
Yes
No, only first gateway will be used in MPLS forwarding table (MFIB)
MPLS Fast Reroute
Link Protection (~50ms) Node Protection
Not supported
MPLS Applications
6PE, 6VPE, L3VPN (Unicastand Multicast), AToM, VPLS
L3VPN (Unicast), VPLS
MPLS QoSwith EXP bit
Possible on P routers and PE routers by utilizing Modular QoS CLI (MQC)
Only possible on PE routers, P routers will not apply any policy to MPLS packets