SlideShare une entreprise Scribd logo
1  sur  16
OPENFLOW BASED
SWITCHING
An OpenFlow Tutorial Series – Set 1
@author Radhika Hirannaiah
Version 1.0
August 2013
© 2013 Radhika Hirannaiah
Traditional Switch Components
Control Plane
Data Plane
Packet In Packet Out
© 2013 Radhika Hirannaiah
MAC Address Table
MAC
Address
Port VLAN
ID
0x0A 2 3
0x0B 5 22
0x0C 9 7
CPURoute
Cache
OpenFlow
•  Technically, OpenFlow is a wire protocol for
communication between a Control and Data Plane
•  OpenFlow based technology also implies that Control and
Data planes don’t have to be on the same hardware –
they just have to be IP visible to each other.
•  Control Plane software is referred to as “Controller”
•  Data Plane software is referred to as “OpenFlow
Datapath” or “OpenFlow Switch”
© 2013 Radhika Hirannaiah
OpenFlow: Control/Data Plane
Separation
Controller
OpenFlow
Switch
(or Data Path)
Packet In Packet Out
Control Plane
Data or
Forwarding
Plane
© 2013 Radhika Hirannaiah
Advantages of Open Flow
•  Controller controls how packets are forwarded
•  Make deployed networks programmable not just
configurable
•  Advocates a separation of the data and control palne for
the flow network.
•  Allows for programming of “flows” (traffic type) rather than
just source/destination MAC/IP
•  Allows for switching at different network layers to be
combined.
•  Allows granularity and layering to be at the discretion of
the owner/operator and suited to the user/application.
•  Not limited by the platform or be enforced by the
protocols.
© 2013 Radhika Hirannaiah
OpenFlow Switch Components
Controller
OpenFlow Data Path
Packet In
Packet Out
© 2013 Radhika Hirannaiah
Group
Table
Flow
Table
Flow
Table
OpenFlow
Channel
Packet Processing
Controller
OpenFlow Data Path
Packet In Packet Out
© 2013 Radhika Hirannaiah
Group
Table
OpenFlow
Channel
OpenFlow’s Flow Identification Fields
© 2013 Radhika Hirannaiah
Considered by OpenFlow Match fields – for
Ethernet traffic
Considered by OpenFlow Match fields – for IP Traffic
Wildcard
Wildcard
Main components of Flow table entry
• Match Criteria
1.  Layer 1/2
1.  Ingress Port
2.  Ethernet Source
3.  Ethernet Destination
4.  VLAN ID
5.  VLAN Priority
6.  MPLS Label
2.  Layer 3
1.  IP Source
2.  IP Destination
• Instructions
1.  Go To Table
2.  Metadata
3.  Action Set
1.  Forward
2.  Apply QoS
3.  Drop
4.  Apply to Group
© 2013 Radhika Hirannaiah
Match Fields Priority Counters Instructions Timeouts Cookie
Packet Flow thro’ Processing Pipeline
© 2013 Radhika Hirannaiah
Packet Processing in a OpenFlow Switch
© 2013 Radhika Hirannaiah
Example of flow forwarding in an
OpenFlow Switch
OpenFlow Data Path
© 2013 Radhika Hirannaiah
Group
Table
Flow
Table
Flow
Table
OpenFlow
Channel
X
Y
Host A
Host B
Flow Table
Match Action
Src Port X Fwd to port Y
Src Port Y Fwd to port X
Example of Packet Processing Table 0
© 2013 Radhika Hirannaiah
Match Fields Priority Counters Instructions Timeouts Cookie
Ingress Port +
Metadata +
Pkt headers
99 Goto Table 2
… 10 Out Port X
… 50 Goto Group
ID 5
… 1 Goto Group
ID 15
… 76 Drop Packet
Components of Group Table
© 2013 Radhika Hirannaiah
Group
Identifier
Group Type Counters Action Buckets
5 Out port x,y
15 Out port a
6 Group ID 5
7 Out port m, Group ID 15
9 Drop Packet
•  Group Type – All, Select, Indirect, Fast Failover
•  Counters – Updated when packets are matched
Packet Processing w/ Group Table
Controller
OpenFlow Data Path
Packet In Packet Out
© 2013 Radhika Hirannaiah
OpenFlow
Channel
GROUP TABLE
Group
Identifier
Group
Type
Counters Action Buckets
5 Out port x,y
6 Group ID 5
7 Out port m,
Group ID 5
9 Drop Packet
Contact
Questions, Comments, Suggestions, use my Gmail ID:
radhikamh
www.linkedin.com/in/radhikahirannaiah
© 2013 Radhika Hirannaiah

Contenu connexe

Tendances

Onos summit roadmap dec 9
Onos summit  roadmap dec 9Onos summit  roadmap dec 9
Onos summit roadmap dec 9
ONOS Project
 
Bharath Ram Chandrasekar_Tele 6603_SDN &NFV
Bharath Ram Chandrasekar_Tele 6603_SDN &NFVBharath Ram Chandrasekar_Tele 6603_SDN &NFV
Bharath Ram Chandrasekar_Tele 6603_SDN &NFV
Bharath Ram Chandrasekar
 

Tendances (20)

Software Load Balancer for OpenFlow Complaint SDN architecture
Software Load Balancer for OpenFlow Complaint SDN architectureSoftware Load Balancer for OpenFlow Complaint SDN architecture
Software Load Balancer for OpenFlow Complaint SDN architecture
 
Openflow overview
Openflow overviewOpenflow overview
Openflow overview
 
Open Network Operating System
Open Network Operating SystemOpen Network Operating System
Open Network Operating System
 
Architecture of OpenFlow SDNs
Architecture of OpenFlow SDNsArchitecture of OpenFlow SDNs
Architecture of OpenFlow SDNs
 
Ch 02 --- sdn and openflow architecture
Ch 02 --- sdn and openflow architectureCh 02 --- sdn and openflow architecture
Ch 02 --- sdn and openflow architecture
 
Onos summit roadmap dec 9
Onos summit  roadmap dec 9Onos summit  roadmap dec 9
Onos summit roadmap dec 9
 
Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
 
Point to-point protocol (ppp), PAP & CHAP
Point to-point protocol (ppp), PAP & CHAPPoint to-point protocol (ppp), PAP & CHAP
Point to-point protocol (ppp), PAP & CHAP
 
Bharath Ram Chandrasekar_Tele 6603_SDN &NFV
Bharath Ram Chandrasekar_Tele 6603_SDN &NFVBharath Ram Chandrasekar_Tele 6603_SDN &NFV
Bharath Ram Chandrasekar_Tele 6603_SDN &NFV
 
The Openflow Soft Switch
The Openflow Soft SwitchThe Openflow Soft Switch
The Openflow Soft Switch
 
BGP vs OSPF on Mikrotik
BGP vs OSPF on MikrotikBGP vs OSPF on Mikrotik
BGP vs OSPF on Mikrotik
 
PPP (Point to Point Protocol)
PPP (Point to Point Protocol)PPP (Point to Point Protocol)
PPP (Point to Point Protocol)
 
Introduction to segment routing
Introduction to segment routingIntroduction to segment routing
Introduction to segment routing
 
Ch 04 --- sdn deployment models
Ch 04 --- sdn deployment modelsCh 04 --- sdn deployment models
Ch 04 --- sdn deployment models
 
rip, ospf 13-14
rip, ospf 13-14rip, ospf 13-14
rip, ospf 13-14
 
Layer3protocols
Layer3protocolsLayer3protocols
Layer3protocols
 
0-RTT TCP converters
0-RTT TCP converters0-RTT TCP converters
0-RTT TCP converters
 
Rip ospf and bgp
Rip ospf and bgpRip ospf and bgp
Rip ospf and bgp
 
Link state protocols.ppt
Link state protocols.pptLink state protocols.ppt
Link state protocols.ppt
 
Part 10 : Routing in IP networks and interdomain routing with BGP
Part 10 : Routing in IP networks and interdomain routing with BGPPart 10 : Routing in IP networks and interdomain routing with BGP
Part 10 : Routing in IP networks and interdomain routing with BGP
 

Similaire à Open Flow Tutorial Series - Set 1

FlowER Erlang Openflow Controller
FlowER Erlang Openflow ControllerFlowER Erlang Openflow Controller
FlowER Erlang Openflow Controller
Holger Winkelmann
 
Openlab.2014 02-13.major.vi sion
Openlab.2014 02-13.major.vi sionOpenlab.2014 02-13.major.vi sion
Openlab.2014 02-13.major.vi sion
Ccie Light
 
Mr201304 open flow_security_eng
Mr201304 open flow_security_engMr201304 open flow_security_eng
Mr201304 open flow_security_eng
FFRI, Inc.
 

Similaire à Open Flow Tutorial Series - Set 1 (20)

OpenFlow Tutorial
OpenFlow TutorialOpenFlow Tutorial
OpenFlow Tutorial
 
FlowER Erlang Openflow Controller
FlowER Erlang Openflow ControllerFlowER Erlang Openflow Controller
FlowER Erlang Openflow Controller
 
Openlab.2014 02-13.major.vi sion
Openlab.2014 02-13.major.vi sionOpenlab.2014 02-13.major.vi sion
Openlab.2014 02-13.major.vi sion
 
Mr201304 open flow_security_eng
Mr201304 open flow_security_engMr201304 open flow_security_eng
Mr201304 open flow_security_eng
 
Sgnog openflow demo-v1.0
Sgnog openflow demo-v1.0Sgnog openflow demo-v1.0
Sgnog openflow demo-v1.0
 
SDN Fundamentals - short presentation
SDN Fundamentals -  short presentationSDN Fundamentals -  short presentation
SDN Fundamentals - short presentation
 
Security defined routing_cybergamut_v1_1
Security defined routing_cybergamut_v1_1Security defined routing_cybergamut_v1_1
Security defined routing_cybergamut_v1_1
 
btNOG 9 presentation Introduction to Software Defined Networking
btNOG 9 presentation Introduction to Software Defined NetworkingbtNOG 9 presentation Introduction to Software Defined Networking
btNOG 9 presentation Introduction to Software Defined Networking
 
OpenFlow tutorial
OpenFlow tutorialOpenFlow tutorial
OpenFlow tutorial
 
PLNOG 9: Ivan Pepelnjak - OpenFlow and SDN: hype, useful tools or panacea?
PLNOG 9: Ivan Pepelnjak - OpenFlow and SDN: hype, useful tools or panacea?PLNOG 9: Ivan Pepelnjak - OpenFlow and SDN: hype, useful tools or panacea?
PLNOG 9: Ivan Pepelnjak - OpenFlow and SDN: hype, useful tools or panacea?
 
Migrating to OpenFlow SDNs
Migrating to OpenFlow SDNsMigrating to OpenFlow SDNs
Migrating to OpenFlow SDNs
 
Software defined networks and openflow protocol
Software defined networks and openflow protocolSoftware defined networks and openflow protocol
Software defined networks and openflow protocol
 
SDN Architecture & Ecosystem
SDN Architecture & EcosystemSDN Architecture & Ecosystem
SDN Architecture & Ecosystem
 
High Performance Flow Matching Architecture for Openflow Data Plane
High Performance Flow Matching Architecture for Openflow Data PlaneHigh Performance Flow Matching Architecture for Openflow Data Plane
High Performance Flow Matching Architecture for Openflow Data Plane
 
From NAT to NAT Traversal
From NAT to NAT TraversalFrom NAT to NAT Traversal
From NAT to NAT Traversal
 
Cloud Foundry Summit 2015: Cloud Foundry and IoT Protocol Support
Cloud Foundry Summit 2015: Cloud Foundry and IoT Protocol SupportCloud Foundry Summit 2015: Cloud Foundry and IoT Protocol Support
Cloud Foundry Summit 2015: Cloud Foundry and IoT Protocol Support
 
Ch 03 --- the OpenFlow protocols
Ch 03 --- the OpenFlow protocolsCh 03 --- the OpenFlow protocols
Ch 03 --- the OpenFlow protocols
 
Open Programmability
Open ProgrammabilityOpen Programmability
Open Programmability
 
DataTorrent Presentation @ Big Data Application Meetup
DataTorrent Presentation @ Big Data Application MeetupDataTorrent Presentation @ Big Data Application Meetup
DataTorrent Presentation @ Big Data Application Meetup
 
Software defined network and Virtualization
Software defined network and VirtualizationSoftware defined network and Virtualization
Software defined network and Virtualization
 

Dernier

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Dernier (20)

Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
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
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

Open Flow Tutorial Series - Set 1

  • 1. OPENFLOW BASED SWITCHING An OpenFlow Tutorial Series – Set 1 @author Radhika Hirannaiah Version 1.0 August 2013 © 2013 Radhika Hirannaiah
  • 2. Traditional Switch Components Control Plane Data Plane Packet In Packet Out © 2013 Radhika Hirannaiah MAC Address Table MAC Address Port VLAN ID 0x0A 2 3 0x0B 5 22 0x0C 9 7 CPURoute Cache
  • 3. OpenFlow •  Technically, OpenFlow is a wire protocol for communication between a Control and Data Plane •  OpenFlow based technology also implies that Control and Data planes don’t have to be on the same hardware – they just have to be IP visible to each other. •  Control Plane software is referred to as “Controller” •  Data Plane software is referred to as “OpenFlow Datapath” or “OpenFlow Switch” © 2013 Radhika Hirannaiah
  • 4. OpenFlow: Control/Data Plane Separation Controller OpenFlow Switch (or Data Path) Packet In Packet Out Control Plane Data or Forwarding Plane © 2013 Radhika Hirannaiah
  • 5. Advantages of Open Flow •  Controller controls how packets are forwarded •  Make deployed networks programmable not just configurable •  Advocates a separation of the data and control palne for the flow network. •  Allows for programming of “flows” (traffic type) rather than just source/destination MAC/IP •  Allows for switching at different network layers to be combined. •  Allows granularity and layering to be at the discretion of the owner/operator and suited to the user/application. •  Not limited by the platform or be enforced by the protocols. © 2013 Radhika Hirannaiah
  • 6. OpenFlow Switch Components Controller OpenFlow Data Path Packet In Packet Out © 2013 Radhika Hirannaiah Group Table Flow Table Flow Table OpenFlow Channel
  • 7. Packet Processing Controller OpenFlow Data Path Packet In Packet Out © 2013 Radhika Hirannaiah Group Table OpenFlow Channel
  • 8. OpenFlow’s Flow Identification Fields © 2013 Radhika Hirannaiah Considered by OpenFlow Match fields – for Ethernet traffic Considered by OpenFlow Match fields – for IP Traffic Wildcard Wildcard
  • 9. Main components of Flow table entry • Match Criteria 1.  Layer 1/2 1.  Ingress Port 2.  Ethernet Source 3.  Ethernet Destination 4.  VLAN ID 5.  VLAN Priority 6.  MPLS Label 2.  Layer 3 1.  IP Source 2.  IP Destination • Instructions 1.  Go To Table 2.  Metadata 3.  Action Set 1.  Forward 2.  Apply QoS 3.  Drop 4.  Apply to Group © 2013 Radhika Hirannaiah Match Fields Priority Counters Instructions Timeouts Cookie
  • 10. Packet Flow thro’ Processing Pipeline © 2013 Radhika Hirannaiah
  • 11. Packet Processing in a OpenFlow Switch © 2013 Radhika Hirannaiah
  • 12. Example of flow forwarding in an OpenFlow Switch OpenFlow Data Path © 2013 Radhika Hirannaiah Group Table Flow Table Flow Table OpenFlow Channel X Y Host A Host B Flow Table Match Action Src Port X Fwd to port Y Src Port Y Fwd to port X
  • 13. Example of Packet Processing Table 0 © 2013 Radhika Hirannaiah Match Fields Priority Counters Instructions Timeouts Cookie Ingress Port + Metadata + Pkt headers 99 Goto Table 2 … 10 Out Port X … 50 Goto Group ID 5 … 1 Goto Group ID 15 … 76 Drop Packet
  • 14. Components of Group Table © 2013 Radhika Hirannaiah Group Identifier Group Type Counters Action Buckets 5 Out port x,y 15 Out port a 6 Group ID 5 7 Out port m, Group ID 15 9 Drop Packet •  Group Type – All, Select, Indirect, Fast Failover •  Counters – Updated when packets are matched
  • 15. Packet Processing w/ Group Table Controller OpenFlow Data Path Packet In Packet Out © 2013 Radhika Hirannaiah OpenFlow Channel GROUP TABLE Group Identifier Group Type Counters Action Buckets 5 Out port x,y 6 Group ID 5 7 Out port m, Group ID 5 9 Drop Packet
  • 16. Contact Questions, Comments, Suggestions, use my Gmail ID: radhikamh www.linkedin.com/in/radhikahirannaiah © 2013 Radhika Hirannaiah