SlideShare una empresa de Scribd logo
1 de 21
Neutron Address Scopes
Speakers:
• Carl Baldwin, HPE
– IRC: carl_baldwin
– Twitter: @CarlNBaldwin
• Hong Hui Xiao, IBM
– IRC: xiaohhui
1
Neutron Address Scopes
Motivation
– NAT to isolate private networks from the external
– Allowed / required users to bring their own addresses
– Neutron has no NAT for IPv6
– Mitaka added announcing private networks via BGP
– Which ones can be advertised?
– Plan to enhance BGP dynamic routing with
L2VPN/L3VPN
– Need to isolate routing domains more precisely
– Need to prevent IP address overlap within routing domain
2
Neutron Address Scopes
Subnet Pools
– Range of addresses from which subnets may be allocated
– May be exclusive to a tenant or shared. Enforces a quota for shared pools
– Optionally specify a pool when allocating a subnet
– Leave out the CIDR and just pass a prefix length (or use the default prefix length)
– Specify a CIDR if you want, as long as it fits in the pool without overlap
– Used in ...
– Neutron's auto allocated topology extension (aka "Get me a Network”)
– Project Kuryr
– Your projects?
– Reference:
– https://blueprints.launchpad.net/neutron/+spec/subnet-allocation
3
Neutron Address Scopes
Subnet Pools support Address Scopes
– They both prevent address overlap
– How do they differ? Why is there a distinction?
– Subnet pools manage the allocation of subnets
– Address scopes isolate routing domains
– Subnet pools are an accounting mechanism to support
address scopes
– Multiple pools within the scope allows delegating parts
of the scope differently
4
Neutron Address Scopes
Maintaining Compatibility
– Aggregation instead of Composition
– Subnets can still exist without subnet pools
– Subnet pools can still exist without address scopes
– The “no scope” scope
– Includes all subnets without a subnet pool
– Includes all subnet pools without an address scope
– Constraints are relaxed
– Arbitrary address overlap is allowed
– Implicit NAT between private IPv4 networks and the external network
5
Create an Address Scope
Create a Subnet Pool
Allocate a Subnet
Network Attributes
Implementation of Address Scopes
• Iptables is used.
• Traffic will be marked according to address scope, at pre-
routing chain.
• Traffic will be blocked if the mark of source doesn’t match with
the mark of destination, at forward chain.
• In the case of NAT, connmark will be used. So that the returning
packet can be marked with the right address scope, and go
through the forward chain.
Address Scopes in the L3 Agent --- E-W traffic
Private network
10.0.1.0/24
Private network
10.0.0.0/24
Router
Private network
20.0.0.0/24
Private network
10.0.0.0/24
Router
Address scope1 Address scope2
Within the same address scope,
the traffic is allowed.
Across different address scopes,
the traffic will be blocked at
neutron router. This is a different
behavior with address scope.
Address Scopes in the L3 Agent --- E-W traffic
Every network packet will be associated with a mark according to its
originating interface.
If the network packet wants to go into an interface and the mark does not
match, the packet will be dropped
Address Scopes in the L3 Agent --- N-S traffic
External network
172.24.4.0/24
Private network
10.0.0.0/24
Router
Private network
20.0.0.0/24
External network
172.24.4.0/24
Address scope1 Address scope2
Within the same address scope,
neutron router will directly route
the traffic. This is a different
behavior with address scope.
Across different address scopes,
neutron router will NAT the
traffic from private network to
external network
NAT
Router
172.24.4.2
Address Scopes in the L3 Agent --- N-S traffic
Every connection that will go out of router gateway will record the mark to
connmark
SNAT is not used if it is a connection in scope
Address Scopes in the L3 Agent --- floating IP
Private
network
VM
External
network
Address scope1 Address scope2
Without floating ip, the VM can
not access other private network
across address scope.
With floating ip, the VM can
access private networks in the
same address scope as external
network, even if it is a cross
scope traffic.
NAT
Router
Private
network
fip 172.24.4.3
20.0.0.3
Address Scopes in the L3 Agent --- floating IP
All network packets whose destination are the floatingip will be marked
according to the fixed ip
If the network packet comes from fixed ip and go to the scope of external
network, its mark will be changed to make it go through the filter table
Neutron Address Scopes
Address Scopes and BGP
– Route announcement with BGP is available in Mitaka
– BGP will look at all of the routers with gateways connected to an network.
– Looks through the routers to find private networks.
– How does it know if it should advertise that network?
– BGP reference:
– https://blueprints.launchpad.net/neutron/+spec/bgp-dynamic-routing
17
18
Neutron Address Scopes
19
Neutron Address Scopes
Routed Networks
– Dynamic routing may be an integral part of routed provider networks
– Floating IPs
– Routed network reference:
– https://blueprints.launchpad.net/neutron/+spec/routed-networks
20
Thank you
21

Más contenido relacionado

La actualidad más candente

Building DataCenter networks with VXLAN BGP-EVPN
Building DataCenter networks with VXLAN BGP-EVPNBuilding DataCenter networks with VXLAN BGP-EVPN
Building DataCenter networks with VXLAN BGP-EVPNCisco Canada
 
Migrating to OpenFlow SDNs
Migrating to OpenFlow SDNsMigrating to OpenFlow SDNs
Migrating to OpenFlow SDNsUS-Ignite
 
The Segment Routing Architecture (IEEE Globecom 2015)
The Segment Routing Architecture (IEEE Globecom 2015)The Segment Routing Architecture (IEEE Globecom 2015)
The Segment Routing Architecture (IEEE Globecom 2015)nagendranainar
 
Tech Tutorial by Vikram Dham: Let's build MPLS router using SDN
Tech Tutorial by Vikram Dham: Let's build MPLS router using SDNTech Tutorial by Vikram Dham: Let's build MPLS router using SDN
Tech Tutorial by Vikram Dham: Let's build MPLS router using SDNnvirters
 
DDoS Mitigation using BGP Flowspec
DDoS Mitigation using BGP Flowspec DDoS Mitigation using BGP Flowspec
DDoS Mitigation using BGP Flowspec APNIC
 
Disaggregation in PON Network - 4
Disaggregation in PON Network -  4Disaggregation in PON Network -  4
Disaggregation in PON Network - 4Ravi Sharma
 
Segment Routing
Segment RoutingSegment Routing
Segment RoutingAPNIC
 
OpenStack MeetUp - OpenContrail Presentation
OpenStack MeetUp - OpenContrail PresentationOpenStack MeetUp - OpenContrail Presentation
OpenStack MeetUp - OpenContrail PresentationStacy Véronneau
 
Operationalizing EVPN in the Data Center: Part 2
Operationalizing EVPN in the Data Center: Part 2Operationalizing EVPN in the Data Center: Part 2
Operationalizing EVPN in the Data Center: Part 2Cumulus Networks
 
Segment routing in ISO-XR 5.2.2
Segment routing in ISO-XR 5.2.2Segment routing in ISO-XR 5.2.2
Segment routing in ISO-XR 5.2.2Bertrand Duvivier
 
Tech Talk by John Casey (CTO) CPLANE_NETWORKS : High Performance OpenStack Ne...
Tech Talk by John Casey (CTO) CPLANE_NETWORKS : High Performance OpenStack Ne...Tech Talk by John Casey (CTO) CPLANE_NETWORKS : High Performance OpenStack Ne...
Tech Talk by John Casey (CTO) CPLANE_NETWORKS : High Performance OpenStack Ne...nvirters
 
OpenStack and OpenContrail for FreeBSD platform by Michał Dubiel
OpenStack and OpenContrail for FreeBSD platform by Michał DubielOpenStack and OpenContrail for FreeBSD platform by Michał Dubiel
OpenStack and OpenContrail for FreeBSD platform by Michał Dubieleurobsdcon
 
Routed networks sydney
Routed networks sydneyRouted networks sydney
Routed networks sydneyMiguel Lavalle
 
Tungsten Fabric Overview
Tungsten Fabric OverviewTungsten Fabric Overview
Tungsten Fabric OverviewMichelle Holley
 
Openstack Neutron Insights
Openstack Neutron InsightsOpenstack Neutron Insights
Openstack Neutron InsightsAtul Pandey
 

La actualidad más candente (20)

EVPN Introduction
EVPN IntroductionEVPN Introduction
EVPN Introduction
 
Building DataCenter networks with VXLAN BGP-EVPN
Building DataCenter networks with VXLAN BGP-EVPNBuilding DataCenter networks with VXLAN BGP-EVPN
Building DataCenter networks with VXLAN BGP-EVPN
 
SEGMENT Routing
SEGMENT RoutingSEGMENT Routing
SEGMENT Routing
 
Migrating to OpenFlow SDNs
Migrating to OpenFlow SDNsMigrating to OpenFlow SDNs
Migrating to OpenFlow SDNs
 
BGP persistence
BGP persistenceBGP persistence
BGP persistence
 
The Segment Routing Architecture (IEEE Globecom 2015)
The Segment Routing Architecture (IEEE Globecom 2015)The Segment Routing Architecture (IEEE Globecom 2015)
The Segment Routing Architecture (IEEE Globecom 2015)
 
Tech Tutorial by Vikram Dham: Let's build MPLS router using SDN
Tech Tutorial by Vikram Dham: Let's build MPLS router using SDNTech Tutorial by Vikram Dham: Let's build MPLS router using SDN
Tech Tutorial by Vikram Dham: Let's build MPLS router using SDN
 
DDoS Mitigation using BGP Flowspec
DDoS Mitigation using BGP Flowspec DDoS Mitigation using BGP Flowspec
DDoS Mitigation using BGP Flowspec
 
Disaggregation in PON Network - 4
Disaggregation in PON Network -  4Disaggregation in PON Network -  4
Disaggregation in PON Network - 4
 
Container Service Chaining
Container Service ChainingContainer Service Chaining
Container Service Chaining
 
Segment Routing
Segment RoutingSegment Routing
Segment Routing
 
OpenStack MeetUp - OpenContrail Presentation
OpenStack MeetUp - OpenContrail PresentationOpenStack MeetUp - OpenContrail Presentation
OpenStack MeetUp - OpenContrail Presentation
 
Operationalizing EVPN in the Data Center: Part 2
Operationalizing EVPN in the Data Center: Part 2Operationalizing EVPN in the Data Center: Part 2
Operationalizing EVPN in the Data Center: Part 2
 
Segment routing in ISO-XR 5.2.2
Segment routing in ISO-XR 5.2.2Segment routing in ISO-XR 5.2.2
Segment routing in ISO-XR 5.2.2
 
Tech Talk by John Casey (CTO) CPLANE_NETWORKS : High Performance OpenStack Ne...
Tech Talk by John Casey (CTO) CPLANE_NETWORKS : High Performance OpenStack Ne...Tech Talk by John Casey (CTO) CPLANE_NETWORKS : High Performance OpenStack Ne...
Tech Talk by John Casey (CTO) CPLANE_NETWORKS : High Performance OpenStack Ne...
 
Microservice Powered Orchestration
Microservice Powered OrchestrationMicroservice Powered Orchestration
Microservice Powered Orchestration
 
OpenStack and OpenContrail for FreeBSD platform by Michał Dubiel
OpenStack and OpenContrail for FreeBSD platform by Michał DubielOpenStack and OpenContrail for FreeBSD platform by Michał Dubiel
OpenStack and OpenContrail for FreeBSD platform by Michał Dubiel
 
Routed networks sydney
Routed networks sydneyRouted networks sydney
Routed networks sydney
 
Tungsten Fabric Overview
Tungsten Fabric OverviewTungsten Fabric Overview
Tungsten Fabric Overview
 
Openstack Neutron Insights
Openstack Neutron InsightsOpenstack Neutron Insights
Openstack Neutron Insights
 

Similar a Address Scopes OpenStack Summit 2016

Network interview questions
Network interview questionsNetwork interview questions
Network interview questionsrajasekar1712
 
Funtions of i pv6
Funtions of i pv6Funtions of i pv6
Funtions of i pv6thanhthat1
 
Basic Introduction to Technology (networking).pdf
Basic Introduction to Technology (networking).pdfBasic Introduction to Technology (networking).pdf
Basic Introduction to Technology (networking).pdftthind
 
Basics of multicasting and its implementation on ethernet networks
Basics of multicasting and its implementation on ethernet networksBasics of multicasting and its implementation on ethernet networks
Basics of multicasting and its implementation on ethernet networksReliance Comm
 
Basicsofmulticastinganditsimplementationonethernetnetworks
Basicsofmulticastinganditsimplementationonethernetnetworks Basicsofmulticastinganditsimplementationonethernetnetworks
Basicsofmulticastinganditsimplementationonethernetnetworks Sasank Chaitanya
 
Introduction to IPv6-UoN
Introduction to IPv6-UoNIntroduction to IPv6-UoN
Introduction to IPv6-UoNMwendwa Kivuva
 
Routing of netwok protocls and how .pptx
Routing of netwok protocls and how .pptxRouting of netwok protocls and how .pptx
Routing of netwok protocls and how .pptxsayidkhalif
 
Ccna rse chp9 nat fo i_pv4
Ccna rse chp9 nat fo i_pv4Ccna rse chp9 nat fo i_pv4
Ccna rse chp9 nat fo i_pv4newbie2019
 
Paper id 25201418
Paper id 25201418Paper id 25201418
Paper id 25201418IJRAT
 
IPv6 The Big Move
IPv6 The Big MoveIPv6 The Big Move
IPv6 The Big Movefrenildand
 
1164 Routers
1164 Routers1164 Routers
1164 Routerstechbed
 
CCNA PPT
CCNA PPTCCNA PPT
CCNA PPTAIRTEL
 

Similar a Address Scopes OpenStack Summit 2016 (20)

Network interview questions
Network interview questionsNetwork interview questions
Network interview questions
 
Funtions of i pv6
Funtions of i pv6Funtions of i pv6
Funtions of i pv6
 
Basic Introduction to Technology (networking).pdf
Basic Introduction to Technology (networking).pdfBasic Introduction to Technology (networking).pdf
Basic Introduction to Technology (networking).pdf
 
Mobile IP.pdf
Mobile IP.pdfMobile IP.pdf
Mobile IP.pdf
 
Basics of multicasting and its implementation on ethernet networks
Basics of multicasting and its implementation on ethernet networksBasics of multicasting and its implementation on ethernet networks
Basics of multicasting and its implementation on ethernet networks
 
Basicsofmulticastinganditsimplementationonethernetnetworks
Basicsofmulticastinganditsimplementationonethernetnetworks Basicsofmulticastinganditsimplementationonethernetnetworks
Basicsofmulticastinganditsimplementationonethernetnetworks
 
Introduction to IPv6-UoN
Introduction to IPv6-UoNIntroduction to IPv6-UoN
Introduction to IPv6-UoN
 
Routing of netwok protocls and how .pptx
Routing of netwok protocls and how .pptxRouting of netwok protocls and how .pptx
Routing of netwok protocls and how .pptx
 
Ccna rse chp9 nat fo i_pv4
Ccna rse chp9 nat fo i_pv4Ccna rse chp9 nat fo i_pv4
Ccna rse chp9 nat fo i_pv4
 
Paper id 25201418
Paper id 25201418Paper id 25201418
Paper id 25201418
 
Network Layer Protocol.pptx
Network Layer Protocol.pptxNetwork Layer Protocol.pptx
Network Layer Protocol.pptx
 
IPv6 The Big Move
IPv6 The Big MoveIPv6 The Big Move
IPv6 The Big Move
 
1164 Routers
1164 Routers1164 Routers
1164 Routers
 
MPLS Solutions
MPLS Solutions MPLS Solutions
MPLS Solutions
 
UNIT-2.pptx
UNIT-2.pptxUNIT-2.pptx
UNIT-2.pptx
 
Networking
NetworkingNetworking
Networking
 
IP essentials
IP essentialsIP essentials
IP essentials
 
CCNA FUNDAMENTAL
CCNA FUNDAMENTALCCNA FUNDAMENTAL
CCNA FUNDAMENTAL
 
CCNA PPT
CCNA PPTCCNA PPT
CCNA PPT
 
NAT_Final
NAT_FinalNAT_Final
NAT_Final
 

Último

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 

Último (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

Address Scopes OpenStack Summit 2016

  • 1. Neutron Address Scopes Speakers: • Carl Baldwin, HPE – IRC: carl_baldwin – Twitter: @CarlNBaldwin • Hong Hui Xiao, IBM – IRC: xiaohhui 1
  • 2. Neutron Address Scopes Motivation – NAT to isolate private networks from the external – Allowed / required users to bring their own addresses – Neutron has no NAT for IPv6 – Mitaka added announcing private networks via BGP – Which ones can be advertised? – Plan to enhance BGP dynamic routing with L2VPN/L3VPN – Need to isolate routing domains more precisely – Need to prevent IP address overlap within routing domain 2
  • 3. Neutron Address Scopes Subnet Pools – Range of addresses from which subnets may be allocated – May be exclusive to a tenant or shared. Enforces a quota for shared pools – Optionally specify a pool when allocating a subnet – Leave out the CIDR and just pass a prefix length (or use the default prefix length) – Specify a CIDR if you want, as long as it fits in the pool without overlap – Used in ... – Neutron's auto allocated topology extension (aka "Get me a Network”) – Project Kuryr – Your projects? – Reference: – https://blueprints.launchpad.net/neutron/+spec/subnet-allocation 3
  • 4. Neutron Address Scopes Subnet Pools support Address Scopes – They both prevent address overlap – How do they differ? Why is there a distinction? – Subnet pools manage the allocation of subnets – Address scopes isolate routing domains – Subnet pools are an accounting mechanism to support address scopes – Multiple pools within the scope allows delegating parts of the scope differently 4
  • 5. Neutron Address Scopes Maintaining Compatibility – Aggregation instead of Composition – Subnets can still exist without subnet pools – Subnet pools can still exist without address scopes – The “no scope” scope – Includes all subnets without a subnet pool – Includes all subnet pools without an address scope – Constraints are relaxed – Arbitrary address overlap is allowed – Implicit NAT between private IPv4 networks and the external network 5
  • 10. Implementation of Address Scopes • Iptables is used. • Traffic will be marked according to address scope, at pre- routing chain. • Traffic will be blocked if the mark of source doesn’t match with the mark of destination, at forward chain. • In the case of NAT, connmark will be used. So that the returning packet can be marked with the right address scope, and go through the forward chain.
  • 11. Address Scopes in the L3 Agent --- E-W traffic Private network 10.0.1.0/24 Private network 10.0.0.0/24 Router Private network 20.0.0.0/24 Private network 10.0.0.0/24 Router Address scope1 Address scope2 Within the same address scope, the traffic is allowed. Across different address scopes, the traffic will be blocked at neutron router. This is a different behavior with address scope.
  • 12. Address Scopes in the L3 Agent --- E-W traffic Every network packet will be associated with a mark according to its originating interface. If the network packet wants to go into an interface and the mark does not match, the packet will be dropped
  • 13. Address Scopes in the L3 Agent --- N-S traffic External network 172.24.4.0/24 Private network 10.0.0.0/24 Router Private network 20.0.0.0/24 External network 172.24.4.0/24 Address scope1 Address scope2 Within the same address scope, neutron router will directly route the traffic. This is a different behavior with address scope. Across different address scopes, neutron router will NAT the traffic from private network to external network NAT Router 172.24.4.2
  • 14. Address Scopes in the L3 Agent --- N-S traffic Every connection that will go out of router gateway will record the mark to connmark SNAT is not used if it is a connection in scope
  • 15. Address Scopes in the L3 Agent --- floating IP Private network VM External network Address scope1 Address scope2 Without floating ip, the VM can not access other private network across address scope. With floating ip, the VM can access private networks in the same address scope as external network, even if it is a cross scope traffic. NAT Router Private network fip 172.24.4.3 20.0.0.3
  • 16. Address Scopes in the L3 Agent --- floating IP All network packets whose destination are the floatingip will be marked according to the fixed ip If the network packet comes from fixed ip and go to the scope of external network, its mark will be changed to make it go through the filter table
  • 17. Neutron Address Scopes Address Scopes and BGP – Route announcement with BGP is available in Mitaka – BGP will look at all of the routers with gateways connected to an network. – Looks through the routers to find private networks. – How does it know if it should advertise that network? – BGP reference: – https://blueprints.launchpad.net/neutron/+spec/bgp-dynamic-routing 17
  • 20. Routed Networks – Dynamic routing may be an integral part of routed provider networks – Floating IPs – Routed network reference: – https://blueprints.launchpad.net/neutron/+spec/routed-networks 20

Notas del editor

  1. Carl
  2. Carl
  3. Carl
  4. Carl
  5. We call a traffic between private networks as an east to west traffic. In an east to west traffic, if the private networks are with the same address scope, the traffic between will be allowed. This is just a normal behavior of neutron router. And that is what you have already known about neutron router before address scopes. But for private networks with different address scopes, the east to west traffic will be blocked at neutron router. This is what we called “go in a wrong scope” in last page.
  6. The mark here has a 1-1 relationship with address scope. So if the network packet comes from address scope a, it will have the mark a. And when it tries to go into address scope b, it will be blocked, because the mark doesn't match..
  7. We call a traffic between private network and external network as a north to south traffic. In a north to south traffic, if the private network and external network are not in the same address scope, neutron router will NAT the traffic. This is what you have already known before address scopes. If the private network and external network are in the same address scope, neutron router will do straight routing. That is to say, the addresses in the private network can go directly to the external network, and vice versa. Because they are in the same address scope, the addresses of them must be unique and legitimate. So, straight routing is feasible between them. As Carl has mentioned, there is one exception to this scenario, that is “no scope”. There is always NAT between private networks and external network in the “no scope”.
  8. connmark can be persisted along with the connection. So, when the returning packet comes from router gateway, its mark can be set according to the connmark. As a result, the returning packet can go back to the source address through the iptables. At the nat table, the SNAT will be not be used if it is a connection in scope. As a result, the direct route will be performed.
  9. This is a picture that combines the 2 previous scenarios. Across scopes, E-W traffic is not allowed, and N-S traffic will do NAT. For the floating IP, it will still serve as the access point for a fixed IP in the external network. That is to say, there will always be NAT between fixed IP and floating IP, no matter if they are in the same address scope or not. When a port is associated with a floating IP, the port will be given the access to the scope of floating IP. So, after associating a floating IP, the vm can access the private networks in the scope of external network, even if it is a cross scope traffic. This is because the port now has 2 addresses in 2 scopes. As a result, it can access these 2 scopes.
  10. So that the packets can go through iptables and reach the fixed ip address. So that after associating floating ip, the port can access the whole address scope of external network.