OSPF is a routing protocol for Internet Protocol networks. It uses a link state routing algorithm and falls into the group of interior routing protocols, operating within a single autonomous system. Compared with RIP, OSPF can provide scalable network support and faster convergence times. OSPF is widely used in large networks such as ISP backbones and enterprise networks.
Considering that in large organizations where the end-to-end access is a requirement, the current VPC model brings more complexity to management and hands-on configuration beside the overhead involved in the NAT address translations processing.
This presentation will bring some possibles approaches to enable dynamic routing using the OSPF protocol for IPv4 and IPv6 and simplify the network administrator life safely and quickly.
Unblocking The Main Thread Solving ANRs and Frozen Frames
Approaches to enable the OSPF protocol in Apache CloudStack
1. OSPF protocol in CloudStack
Marco Sinhoreli
Consultant Manager
marco.sinhoreli@shapeblue.com
Twitter: @msinhore
2. @shapeblue #ccceu14
Consultant Manager at ShapeBlue
Specialise in….
Designing and deploying enterprise and
public clouds
CloudStack Brazil Community Chairman
Designed Clouds USP, Globo.com and many
others in Brazil
CloudStack Committer
Director of CSA Brazil Chapter
About Me
#CCCEU
3. @shapeblue #ccceu14
About ShapeBlue
Introduction to the OSPF Protocol
How it works?
Network Design
The routing software suite Quagga
Then… why integrate a dynamic routing protocol?
Scope
Use Case
UI Workflow
References
OSPF protocol on CloudStack
#CCCEU
4. @shapeblue #ccceu14
“ShapeBlue are expert builders of public &
private clouds. They are the leading global
Apache CloudStack
integrator & consultancy”
…and we’re hiring!
About ShapeBlue
#CCCEU
6. @shapeblue #ccceu14
OSPF – Open Shortest Path First
Routing protocol for Internet (IP) protocol networks
IPG (Interior Gateway Protocol) and falls into the group of interior
routing protocols
Uses a link state routing algorithm
Uses a single Anonymous System (AS)
OSPFv2 referenced in RFC2328 for IPv4
OSPFv3 referenced in RFC5340 for IPv6
Introduction to the OSPF Protocol
#CCCEU
7. @shapeblue #ccceu14
OSPF Area 1
How OSPF works?
Routing table:
192.168.0.0/24 local
192.168.1.0/24 via R2
192.168.2.0/24 via R3
Routing table:
192.168.1.0/24 local
192.168.0.0/24 via R1
192.168.2.0/25 via R3
Routing table:
192.168.2.0/24 local
192.168.0.0/24 via R1
192.168.1.0/24 via R2
R1
R3 R2
#CCCEU
8. @shapeblue #ccceu14
Quagga
Fork of GNU Zebra
Supports all popular Linux distributions and Unix derivatives
Supports protocols such as RIPv1, RIPv2, RIPng, OSPFv2, OSPFv3, IS-IS,
BGP-4, and BGP-4+
Quagga is a collection of several daemons that work together to build
the routing table
A system with Quagga installed acts as a dedicated router
Exchanges routing information with other routers using routing
protocols
Uses this information to update the kernel routing
Changes dynamically the configuration
The user may view routing table information from the Quagga CLI
#CCCEU
10. @shapeblue #ccceu14
Config files are generally found in:
/etc/quagga/*.conf
Each of the daemons has its own config file. For example,
OSPFv2’s default config file name is:
/etc/quagga/ospfd.conf
Quagga setup
#CCCEU
11. @shapeblue #ccceu14
interface eth0
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 ospf
router ospf
ospf router-id 200.0.0.11
log-adjacency-changes
redistribute connected
passive-interface default
no passive-interface eth0
network 200.0.0.0/24 area 0.0.0.0
area 0.0.0.0 authentication message-digest
ospfd.conf example
#CCCEU
12. @shapeblue #ccceu14
Support to the OSPF Version 2 protocol to announce IPv4 routes using
Quagga routing software (daemon ospfd)
Support to the OSPF Version 3 protocol to announce IPv6 routes using
Quagga routing software (daemon ospf6d)
Create a specific network offering to support the OSPF protocol in the VPC-VR
Enable routing to guest networks behind VPC-VR without NATing
Support to the services:
DHCP
DNS
Network ACL (iptables, ip6tables)
Load Balancing (HAproxy)
Password reset
Scope
#CCCEU