SlideShare a Scribd company logo
CloudStack: Distributed routing and ACL’s with SDN
problem statement 
VM1 
VM2 
VM3 
● problems with VPC in traditional deployment 
○ traffic trombone 
○ VPC VR is choke point 
○ scale up model 
○ single point of failure 
Blue 
tier 
bridge 
Orange 
tier 
bridge 
Orange 
tier 
bridge 
Blue 
tier 
bridge 
Orange 
tier 
bridge 
VPC 
VR 
Public 
traffic 
bridge 
inter tier (east-west) traffic 
public (north-south) traffic 
host 1 host 2 host 3
distributed routing 
VM1 
logical router 
VM2 VM3 
SDN controller 
VM4 VM5 
logical router logical router 
host 1 host 2 host 3 
● HW appliance -> Virtual Appliance -> Hypervisor based L2-L7 services 
● intelligence built by controller 
● efficient data path but increased complexity (dist configuration) in controller 
● topology, policy changes results in updates to hosts 
● minimize convergence time 
inter tier traffic 
public traffic
distributed routing (contd..) 
● SDN controllers implementing distributed routing 
○ Vmware NSX 
○ Hyper-V HNV 
○ Midokura 
○ Contrail
What’s in CloudStack 
● Leverage OpenFlow capabilities of OVS to do distributed routing 
● Implements east-west traffic services in OVS bridge 
○ Network ACL’s 
○ Inter-tier routing 
● For north-south traffic and services VPC VR continues to be gateway and 
provide services 
● implemented for overlay networks, but can be implemented for VLAN’s as 
well 
● premise: east-west traffic is predominant 
● CloudStack solution is similar to NSX (DLR for east-west traffic, ESR edge 
service router for north south traffic)
CloudStack - distributed routing 
VM1 
VM2 VM3 
logical router 
(OVS bridge) 
VPC 
VR 
VM4 VM5 
logical router 
(OVS bridge) 
logical router 
(OVS bridge) 
host 1 host 2 host 3 
SDN controller 
in 
CloudStack 
● OVS bridge configured to act as logical router, performing 
○ ingress/egress ACL 
○ Inter tier routing 
○ L2 switching 
● single bridge for all VPC tiers 
● bridge no a longer learn-flood switch, data path is software (CloudStack controller) defined
CloudStack traditional VPC inter-tier packet flow 
VM2 
● Sequence of action for packet flow from VM1 to VM2 
VPC 
VR 
○ ARP request for gateway 10.1.1.1 
○ ARP response for 10.1.1.1 
○ packet sent to gateway (src MAC = VM1’s mac, dst MAC = source subnet gateway mac, src IP = VM1 ip, 
dst IP = VM2 IP) 
○ packet routed by VPC VR and sent on destination subnet after modifying packet (src MAC = destination 
subnet gateway mac, dst MAC =VM2 mac, src IP = VM1 ip, dst IP = VM2 IP) 
VM1 
Blue 
tier bridge 
Orange 
tier 
bridge 
Blue 
tier bridge 
Orange 
tier bridge 
host 1 host 2 
1 
2 1 
2 3 
3 
4 4
logical router - packet flow 
B/M 
traffic 
L2 switching 
L2 Flooding 
From 
tunnel 
port 
no 
Egress ACL 
yes 
Inter-tier 
traffic 
IP outort 
IP outport 
IP outport 
Drop Looku 
p hit 
Drop 
yes 
L3 lookup Ingress ACL 
Flow action 
Flow action 
Flow action 
yes 
no 
yes 
no 
yes 
no 
IP outort 
IP outport 
IP outport 
Flow action 
Flow action 
Flow action 
yes 
no 
Looku 
p hit 
inport outorts 
inport outorts 
inport outorts 
yes 
send on 
outport/outports 
no 
no 
Modify 
packet
OpenFlow - pipeline processing 
Matching fields Action Counters 
● Pipeline processing : OpenFlow abstractions to build complex packet processing logic
OVS bridge- logical router- pipeline processing 
How does CloudStack controller populate forwarding tables?
Populating L2,L3 lookup and ACL tables 
● management server has the knowledge 
○ Hosts on which VPC spans 
○ tiers in the VPC 
○ VM in each tier and corresponding IP address of the NIC 
○ gateway and CIDR of each tier 
○ routing policies (ingress & egress ACL’s) 
● management server orchestrates 
○ VM Start, Stop, Migrate 
○ tier create, destroy etc 
○ network ACL replaced 
● for each change that affects VPC topology and routing policies triggers the update to OpenFlow 
tables based on the latest info 
● Agent commands 
○ OvsVpcRoutingPolicyConfigCommand 
○ OvsVpcPhysicalTopologyConfigCommand
OvsVpcPhysicalTopologyConfigCommand 
● For each change in VPC topology controller sends 
JSON representation of VPC topology to each host 
● each host process topology to form the knowledge of 
○ a MAC is reachable through which VIF/tunnel port 
○ an IP address is required packet modification 
needed to route the packet
OvsVpcRoutingPolicyConfigCommand 
● For each change in Network ACL associated with a tier 
in VPC, controller sends JSON representation of VPC 
routing policies to each host 
● each host process routing policies to add flow rules to 
permit/deny flows
Sync mechanism 
● On host reconnect 
○ send physical topology update for each VPC spanned on the host 
○ send routing policies update for each VPC spanned on the host 
● periodic updates

More Related Content

PPTX
Routing, Network Performance, and Role of Analytics
PDF
Performance Evaluation of GTP-U and SRv6 Stateless Translation
PPT
Intelligent Network Services through Active Flow Manipulation
PPTX
Design and Implementation of a Load Balancing Algorithm for a Clustered SDN C...
ODP
What's new in Neutron Juno
PPTX
PLNOG 17 - Leonir Hoxha - Next Generation Network Architecture - Segment Routing
PPTX
Innovation is back in the transport and network layers
PPTX
Barak Perlman, ConteXtream - SFC (Service Function Chaining) Using Openstack ...
Routing, Network Performance, and Role of Analytics
Performance Evaluation of GTP-U and SRv6 Stateless Translation
Intelligent Network Services through Active Flow Manipulation
Design and Implementation of a Load Balancing Algorithm for a Clustered SDN C...
What's new in Neutron Juno
PLNOG 17 - Leonir Hoxha - Next Generation Network Architecture - Segment Routing
Innovation is back in the transport and network layers
Barak Perlman, ConteXtream - SFC (Service Function Chaining) Using Openstack ...

What's hot (20)

PDF
OPNFV Service Function Chaining
PPTX
Segment Routing & Application Engeering Routing
PPTX
Cisco OTV 
PPTX
OTV PPT by NETWORKERS HOME
PDF
【EPN Seminar Nov.10.2015】 Services Function Chaining Architecture, Standardiz...
PPTX
Open Flow Protocol
PPTX
VXLAN
PPTX
LISP and NSH in Open vSwitch
PPTX
Otv notes
PPTX
IPv6 Entreprise Multihoming
PPTX
DEVNET-1175 OpenDaylight Service Function Chaining
PPTX
VPC PPT @NETWORKERSHOME
PPTX
OTV(Overlay Transport Virtualization)
PPT
Design device driver for wireless device using 32 bit microcontroller
PPTX
Fabric Path PPT by NETWORKERS HOME
PPTX
Point to-point protocol (ppp), PAP & CHAP
PPTX
PLNOG 13: Michał Dubiel: OpenContrail software architecture
ODP
Wireless openflow (english)
PPTX
Private VLANs
PDF
Hungary Usergroup - Midonet overlay programming
OPNFV Service Function Chaining
Segment Routing & Application Engeering Routing
Cisco OTV 
OTV PPT by NETWORKERS HOME
【EPN Seminar Nov.10.2015】 Services Function Chaining Architecture, Standardiz...
Open Flow Protocol
VXLAN
LISP and NSH in Open vSwitch
Otv notes
IPv6 Entreprise Multihoming
DEVNET-1175 OpenDaylight Service Function Chaining
VPC PPT @NETWORKERSHOME
OTV(Overlay Transport Virtualization)
Design device driver for wireless device using 32 bit microcontroller
Fabric Path PPT by NETWORKERS HOME
Point to-point protocol (ppp), PAP & CHAP
PLNOG 13: Michał Dubiel: OpenContrail software architecture
Wireless openflow (english)
Private VLANs
Hungary Usergroup - Midonet overlay programming
Ad

Viewers also liked (12)

PDF
PPTX
Mobile Cloud Computing : The Upcoming Trend !
PDF
Cv Ebo Bakker 2016
PPTX
Vehicular Delay Tolerant Network (VDTN): Routing Perspectives
PPTX
Innovation in SDN Tools and Platforms
PDF
SDN interfaces and performance analysis of SDN components
PPTX
Cloud Computing #Manoj_Rockstar
PDF
Investigating the Impact of Network Topology on the Processing Times of SDN C...
PDF
Is SDN ready for primetime?
PDF
Webinar: Hybrid Cloud Integration - Why It's Different and Why It Matters
PPTX
Real world hybrid cloud session - OpenStack DACH 2015
PPT
Cloud computing Brief
Mobile Cloud Computing : The Upcoming Trend !
Cv Ebo Bakker 2016
Vehicular Delay Tolerant Network (VDTN): Routing Perspectives
Innovation in SDN Tools and Platforms
SDN interfaces and performance analysis of SDN components
Cloud Computing #Manoj_Rockstar
Investigating the Impact of Network Topology on the Processing Times of SDN C...
Is SDN ready for primetime?
Webinar: Hybrid Cloud Integration - Why It's Different and Why It Matters
Real world hybrid cloud session - OpenStack DACH 2015
Cloud computing Brief
Ad

Similar to Distributed routing (20)

PPTX
Network and Service Virtualization tutorial at ONUG Spring 2015
PDF
Opencontrail network virtualization
PDF
PLNOG 13: Nicolai van der Smagt: SDN
PDF
Technical introduction to MidoNet
PPTX
Overview of Distributed Virtual Router (DVR) in Openstack/Neutron
PDF
Understanding network and service virtualization
PDF
10 sdn-vir-6up
PDF
2015 FOSDEM - OVS Stateful Services
PPTX
PPTX
PLNOG16: VXLAN Gateway, efektywny sposób połączenia świata wirtualnego z fizy...
PPTX
Reference design for v mware nsx
PPTX
Raga_SDN_NSX_1
PDF
PLNOG15: Is there something less complicated than connecting two LAN networks...
PDF
Software Defined Networks (SDN) na przykładzie rozwiązania OpenContrail.
PDF
VMworld 2013: Bringing Network Virtualization to VMware Environments with NSX
PDF
OVHcloud Hosted Private Cloud Platform Network use cases with VMware NSX
PDF
CloudKC: Evolution of Network Virtualization
PDF
OpenStack and OpenContrail for FreeBSD platform by Michał Dubiel
PPTX
NET4933_vDS_Best_Practices_For_NSX_Francois_Tallet_Shahzad_Ali
PPTX
OpenStack Neutron Dragonflow l3 SDNmeetup
Network and Service Virtualization tutorial at ONUG Spring 2015
Opencontrail network virtualization
PLNOG 13: Nicolai van der Smagt: SDN
Technical introduction to MidoNet
Overview of Distributed Virtual Router (DVR) in Openstack/Neutron
Understanding network and service virtualization
10 sdn-vir-6up
2015 FOSDEM - OVS Stateful Services
PLNOG16: VXLAN Gateway, efektywny sposób połączenia świata wirtualnego z fizy...
Reference design for v mware nsx
Raga_SDN_NSX_1
PLNOG15: Is there something less complicated than connecting two LAN networks...
Software Defined Networks (SDN) na przykładzie rozwiązania OpenContrail.
VMworld 2013: Bringing Network Virtualization to VMware Environments with NSX
OVHcloud Hosted Private Cloud Platform Network use cases with VMware NSX
CloudKC: Evolution of Network Virtualization
OpenStack and OpenContrail for FreeBSD platform by Michał Dubiel
NET4933_vDS_Best_Practices_For_NSX_Francois_Tallet_Shahzad_Ali
OpenStack Neutron Dragonflow l3 SDNmeetup

Recently uploaded (20)

PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Sustainable Sites - Green Building Construction
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
Digital Logic Computer Design lecture notes
PDF
composite construction of structures.pdf
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPT
Mechanical Engineering MATERIALS Selection
PPTX
CH1 Production IntroductoryConcepts.pptx
Automation-in-Manufacturing-Chapter-Introduction.pdf
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Internet of Things (IOT) - A guide to understanding
bas. eng. economics group 4 presentation 1.pptx
CYBER-CRIMES AND SECURITY A guide to understanding
Sustainable Sites - Green Building Construction
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
R24 SURVEYING LAB MANUAL for civil enggi
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Digital Logic Computer Design lecture notes
composite construction of structures.pdf
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Mechanical Engineering MATERIALS Selection
CH1 Production IntroductoryConcepts.pptx

Distributed routing

  • 1. CloudStack: Distributed routing and ACL’s with SDN
  • 2. problem statement VM1 VM2 VM3 ● problems with VPC in traditional deployment ○ traffic trombone ○ VPC VR is choke point ○ scale up model ○ single point of failure Blue tier bridge Orange tier bridge Orange tier bridge Blue tier bridge Orange tier bridge VPC VR Public traffic bridge inter tier (east-west) traffic public (north-south) traffic host 1 host 2 host 3
  • 3. distributed routing VM1 logical router VM2 VM3 SDN controller VM4 VM5 logical router logical router host 1 host 2 host 3 ● HW appliance -> Virtual Appliance -> Hypervisor based L2-L7 services ● intelligence built by controller ● efficient data path but increased complexity (dist configuration) in controller ● topology, policy changes results in updates to hosts ● minimize convergence time inter tier traffic public traffic
  • 4. distributed routing (contd..) ● SDN controllers implementing distributed routing ○ Vmware NSX ○ Hyper-V HNV ○ Midokura ○ Contrail
  • 5. What’s in CloudStack ● Leverage OpenFlow capabilities of OVS to do distributed routing ● Implements east-west traffic services in OVS bridge ○ Network ACL’s ○ Inter-tier routing ● For north-south traffic and services VPC VR continues to be gateway and provide services ● implemented for overlay networks, but can be implemented for VLAN’s as well ● premise: east-west traffic is predominant ● CloudStack solution is similar to NSX (DLR for east-west traffic, ESR edge service router for north south traffic)
  • 6. CloudStack - distributed routing VM1 VM2 VM3 logical router (OVS bridge) VPC VR VM4 VM5 logical router (OVS bridge) logical router (OVS bridge) host 1 host 2 host 3 SDN controller in CloudStack ● OVS bridge configured to act as logical router, performing ○ ingress/egress ACL ○ Inter tier routing ○ L2 switching ● single bridge for all VPC tiers ● bridge no a longer learn-flood switch, data path is software (CloudStack controller) defined
  • 7. CloudStack traditional VPC inter-tier packet flow VM2 ● Sequence of action for packet flow from VM1 to VM2 VPC VR ○ ARP request for gateway 10.1.1.1 ○ ARP response for 10.1.1.1 ○ packet sent to gateway (src MAC = VM1’s mac, dst MAC = source subnet gateway mac, src IP = VM1 ip, dst IP = VM2 IP) ○ packet routed by VPC VR and sent on destination subnet after modifying packet (src MAC = destination subnet gateway mac, dst MAC =VM2 mac, src IP = VM1 ip, dst IP = VM2 IP) VM1 Blue tier bridge Orange tier bridge Blue tier bridge Orange tier bridge host 1 host 2 1 2 1 2 3 3 4 4
  • 8. logical router - packet flow B/M traffic L2 switching L2 Flooding From tunnel port no Egress ACL yes Inter-tier traffic IP outort IP outport IP outport Drop Looku p hit Drop yes L3 lookup Ingress ACL Flow action Flow action Flow action yes no yes no yes no IP outort IP outport IP outport Flow action Flow action Flow action yes no Looku p hit inport outorts inport outorts inport outorts yes send on outport/outports no no Modify packet
  • 9. OpenFlow - pipeline processing Matching fields Action Counters ● Pipeline processing : OpenFlow abstractions to build complex packet processing logic
  • 10. OVS bridge- logical router- pipeline processing How does CloudStack controller populate forwarding tables?
  • 11. Populating L2,L3 lookup and ACL tables ● management server has the knowledge ○ Hosts on which VPC spans ○ tiers in the VPC ○ VM in each tier and corresponding IP address of the NIC ○ gateway and CIDR of each tier ○ routing policies (ingress & egress ACL’s) ● management server orchestrates ○ VM Start, Stop, Migrate ○ tier create, destroy etc ○ network ACL replaced ● for each change that affects VPC topology and routing policies triggers the update to OpenFlow tables based on the latest info ● Agent commands ○ OvsVpcRoutingPolicyConfigCommand ○ OvsVpcPhysicalTopologyConfigCommand
  • 12. OvsVpcPhysicalTopologyConfigCommand ● For each change in VPC topology controller sends JSON representation of VPC topology to each host ● each host process topology to form the knowledge of ○ a MAC is reachable through which VIF/tunnel port ○ an IP address is required packet modification needed to route the packet
  • 13. OvsVpcRoutingPolicyConfigCommand ● For each change in Network ACL associated with a tier in VPC, controller sends JSON representation of VPC routing policies to each host ● each host process routing policies to add flow rules to permit/deny flows
  • 14. Sync mechanism ● On host reconnect ○ send physical topology update for each VPC spanned on the host ○ send routing policies update for each VPC spanned on the host ● periodic updates