SlideShare a Scribd company logo
Open vSwitch
Introduction
HungWei Chiu
Who Am I
• HungWei Chiu (hwchiu)
• Open Networking Foundation
• Member of Technical Staff
• https://hwchiu.com
• Kubernetes/Container
• Networking/Linux/Kernel
• Co-Organizer of SDNDS-TW/
CNTUG
Agenda
• What/How
• TCP/IP Model
• Linux Bridge
• What/How
• Open vSwitch
• Open vSwitch in Kubernetes
We all learned
Data Link
Switch v.s Router
TCP/IP Model
Network
Transport
Application
Physical
Data Link
Physical
Data Link
Network
Physical
Data Link
Network
Transport
Application
Physical
Client Server
Switch
Router
Router v.s Switch
• Both
• Store and forward packets
• Network layer
• Data Link layer
• Router:
• Routing table
• Routing algorithms
• Switch
• Switch table
• Learning algorithms
Docker
eth0
Linux Bridge
br0
Container
172.17.8.1
172.17.8.56
10.1.2.3
Linux Host
Container
172.17.8.57
Can You Explain
Data Link
Switch v.s Router
TCP/IP Model
Network
Transport
Application
Physical
Data Link
Physical
Data Link
Network
Physical
Data Link
Network
Transport
Application
Physical
Client Server
Switch
Router
eth0
Linux Bridge
br0
Container
172.17.8.1
172.17.8.56
10.1.2.3
Linux Host
Container
172.17.8.57
Container to WAN
Linux Host
Switch v.s Router
TCP/IP Model
Data Link
Network
Transport
Application
Physical
Data Link
Physical
Data Link
Network
Physical
Data Link
Network
Transport
Application
Physical
Client Server
Switch
Router
Container WAN
Linux
Bridge
Linux Bridge
Instances
veth
function call function call
Docker
eth0
Linux Bridge br0
Container
172.17.8.1
172.17.8.56
10.1.2.3
Linux Host
Container
172.17.8.57
net_dev
Kernel object
Packet
Linux Bridge br0
• Received Packets
• ebtables
• iptables
• Forward to net_dev (172.17.9.1)
Packet:
172.17.8.56 -> 172.17.8.1
Docker
eth0
Linux Bridge br0
Container
172.17.8.1
172.17.8.56
10.1.2.3
Linux Host
Container
172.17.8.57
net_dev
Kernel object
Linux Kernel
• Received Packet
• Iptables
• Routing tables
• ARP tables
• Forward to eth0 (10.1.2.3)
Packet:
172.17.8.56 -> 172.17.8.1
Packet
Tables
• Arp Table (Learning MAC/IP)
• Linux Bridge
• Forwarding Table (Forward by MAC)
• Netfilter
• Iptables (Layer 3, NAT…etc)
• Ebtables (Layer 2 filter…etc)
• Linux Kernel
• Routing table (Routing by IP (Destination/Source))
Control
• Arp
• arp
• Forwarding
• brctl show/brctl showman’s
• Routing
• route
• ip route
• netfilter
• iptables/ebtables
• iptables-save/iptables-restore …etc
Multiple Nodes
Host
Agent
• No Standard Protocol
Host
Agent
Host
Agent
Host
Agent
Host
Controller
Agent
• Execute commands
• API Call (netlink)
Open vSwitch
Introduction
https://www.openvswitch.org/
Openflow
• Maintained by Open Networking Foundation (ONF)
• The first standard communication interface defined
between control and forwarding layers of an SDN
architecture.
https://en.wikipedia.org/wiki/OpenFlow
Openflow
controller
Openflow Enabled Switch
Security Channel
Flow Table
Openflow Enabled Switch
Security Channel
Flow Table
Openflow protocol
Architecture
Format
Rule Action Stats
• Forward packet to ports
• Encapsulate and forward to controller
• Modify fields
• Normal Pipeline
• Extension
Packet/Bytes counter
Switch Port Layer 2 Header Layer 3 Header Layer 4 Header
Example
Switch Port dst_mac Layer 3 Layer 4src_mac Action
port 3*** * 00:11:32:….
Switching
Switch Port src_ip Layer 4Layer 2 Action
port 4*** *
Routing
dst_ip
140.113.2.4
Switch Port src_ip Layer 4Layer 2 Action
drop*1.2.0.0/16* *
Firewall
dst_ip
140.113.2.4
Compare
• Linux
• Arp Table (Learning MAC/IP)
• Linux Bridge
• Forwarding Table (Forward by
MAC)
• Netfilter
• Iptables (Layer 3, NAT…etc)
• Ebtables (Layer 2 filter…etc)
• Linux Kernel
• Routing table (Routing by IP
(Destination/Source))
• Openflow
• Rules
• Switch Port
• Layer 2/3/4 Header
• Action
• Forward/Drop
• Normal Pipeline
• Modify fields
• …etc
• Stats
• Counter
Docker example again
Docker
eth0
Open vSwith
Ovsbr0
Container
172.17.8.1
172.17.8.56
Linux Host
Container
172.17.8.57
Flows
Switch Port Layer 2 Layer 3 Layer 4eth_type Action
…*…* Arp
ARP
Switch Port Layer 3 Header Layer 4 HeaderLayer2 Action
• Change src/dst Mac
• Forward to port…..…..* *
Routing
Switch Port Layer 3 Header Layer 4 Action
* *
NAT
*
Layer2
….. …..
• Change src/dst IP
• Forward to port
Open vSwtich
• Need to prepare all flow rules
• Without Linux Kernel (mostly)
• Openflow controller
• Program your logic
• CLI
• Difficult to maintain all logics.
Other functions
• Linux
• Tunneling
• GRE/VXLAN/GRE/
STT/NVGRE
• iptables extension
• nfqueue ..etc
• 802.1q VLAN
• Linux
• Link Aggregation with/
without LACP
• QoS
• Traffic Shaping
• Socket Applications
• VPN, other
networking functions.
Multiple Nodes
Host
OVS
Host
OVS
Host
OVS
Host
OVS
Host
Openflow
Controller
Kubernetes & OVS
Kubernetes & Networking
• Pod communication
• Pod to Pod
• Pod to Wan
• Service
• ClusterIP
• NodePort
• NetworkPolicy
CNI Flannel
• Linux Bridge
• ARP Table
• Routing Table
• Iptables
Iptables
Implemented by
CNI.
Challenge
• CNI
• Pod to Pod
• Same Node
• Different Node
• Overlay ?
• Pod to Wan
• NAT
Challenge
• Kube-proxy (service)
• Monitor service object
• Create/Update/Remove rules
• Translate policy to OpenFlow rules and apply to all switches.
• NetworkPolicy
• Monitor network policy object
• Create/Update/Remove rules
• Translate policy to OpenFlow rules and apply to all switches.
Challenge
• Additional controller
• Open vSwitch controller
• Openflow
• OVSDB
• …etc
• Kubernetes controller
Projects
• K-vswitch
• SONA-CNI
• Ovn-kubernetes
• ..etc
https://github.com/k-vswitch/k-vswitch
k-vswitch
sona-cni
https://wiki.onosproject.org/display/ONOS/SONA-CNI+Installation
Why OVS?
Why
• Networking performance?
• Open vSwitch + DPDK (Kernel Bypass)
• Hardware offloading
• Service chain?
• Rewrite packets header
• Redirect packets within different Pods
• Networking Traffic Monitor?
• Latency
• Counters
K8S Node
Pod Pod Pod
eth0
Openflow Switch Openflow Switch Openflow Switch
Data network
K8S Node
Pod Pod Pod
eth0
K8S Node
Pod Pod Pod
eth0
Openflow Controller
Reference Architecture
Do I Need It?
One
• Learn how system works
• Computing/Storage/Networking
• Linux
• Increase your value
• Don’t rely on Framework or Tools
• Helm/Operator …etc
• Never be the Yaml Engineer
Q&A

More Related Content

What's hot (20)

PPTX
Ovs dpdk hwoffload way to full offload
Kevin Traynor
 
PDF
OpenStack Neutron Tutorial
mestery
 
PPTX
[234] toast cloud open stack sdn 전략-박성우
NAVER D2
 
PDF
High-Performance Networking Using eBPF, XDP, and io_uring
ScyllaDB
 
PDF
VXLAN and FRRouting
Faisal Reza
 
PPTX
2014 OpenStack Summit - Neutron OVS to LinuxBridge Migration
James Denton
 
PPTX
Tutorial: Using GoBGP as an IXP connecting router
Shu Sugimoto
 
PDF
Deep dive into Kubernetes Networking
Sreenivas Makam
 
PPTX
Meetup 23 - 02 - OVN - The future of networking in OpenStack
Vietnam Open Infrastructure User Group
 
PDF
Kubernetes Networking
CJ Cullen
 
PPTX
Demystifying openvswitch
Prasad Mukhedkar
 
PDF
Linux Networking Explained
Thomas Graf
 
PDF
[2018] 오픈스택 5년 운영의 경험
NHN FORWARD
 
PDF
Scale Kubernetes to support 50000 services
LinuxCon ContainerCon CloudOpen China
 
PDF
Open vSwitch 패킷 처리 구조
Seung-Hoon Baek
 
PDF
Linux Linux Traffic Control
SUSE Labs Taipei
 
PDF
BGP on mikrotik
Achmad Mardiansyah
 
PDF
The Open vSwitch and OVN Projects
LinuxCon ContainerCon CloudOpen China
 
PDF
OpenShift Container Platform 4.12 Release Notes
GerryJamisola1
 
PDF
오픈스택 멀티노드 설치 후기
영우 김
 
Ovs dpdk hwoffload way to full offload
Kevin Traynor
 
OpenStack Neutron Tutorial
mestery
 
[234] toast cloud open stack sdn 전략-박성우
NAVER D2
 
High-Performance Networking Using eBPF, XDP, and io_uring
ScyllaDB
 
VXLAN and FRRouting
Faisal Reza
 
2014 OpenStack Summit - Neutron OVS to LinuxBridge Migration
James Denton
 
Tutorial: Using GoBGP as an IXP connecting router
Shu Sugimoto
 
Deep dive into Kubernetes Networking
Sreenivas Makam
 
Meetup 23 - 02 - OVN - The future of networking in OpenStack
Vietnam Open Infrastructure User Group
 
Kubernetes Networking
CJ Cullen
 
Demystifying openvswitch
Prasad Mukhedkar
 
Linux Networking Explained
Thomas Graf
 
[2018] 오픈스택 5년 운영의 경험
NHN FORWARD
 
Scale Kubernetes to support 50000 services
LinuxCon ContainerCon CloudOpen China
 
Open vSwitch 패킷 처리 구조
Seung-Hoon Baek
 
Linux Linux Traffic Control
SUSE Labs Taipei
 
BGP on mikrotik
Achmad Mardiansyah
 
The Open vSwitch and OVN Projects
LinuxCon ContainerCon CloudOpen China
 
OpenShift Container Platform 4.12 Release Notes
GerryJamisola1
 
오픈스택 멀티노드 설치 후기
영우 김
 

Similar to Open vSwitch Introduction (20)

PDF
Introduction to OpenNetwork and SDN
HungWei Chiu
 
PDF
SDN/OpenFlow #lspe
Chris Westin
 
PDF
Network Virtualization & Software-defined Networking
Digicomp Academy AG
 
PDF
SDN & NFV Introduction - Open Source Data Center Networking
Thomas Graf
 
PPT
OpenFlow Tutorial
Ja-seop Kwak
 
PDF
Introduction to OpenFlow
Joel W. King
 
PPTX
Open Flow Protocol
Vishal S M B
 
PPTX
SDN Demystified, by Dean Pemberton [APNIC 38]
APNIC
 
PDF
Network plugins for kubernetes
inwin stack
 
PPT
Software defined network and Virtualization
idrajeev
 
PPTX
Openstack openswitch basics
nshah061
 
PDF
Ch 02 --- sdn and openflow architecture
Yoram Orzach
 
PDF
Open vSwitch for networking solution for L2
HaseebAhmed360060
 
PPT
OpenFlow tutorial
openflow
 
PPTX
Thebasicintroductionofopenvswitch
Ramses Ramirez
 
PDF
Virtualized network with openvswitch
Sim Janghoon
 
PDF
Bridges and Tunnels: A Drive Through OpenStack Networking
markmcclain
 
PDF
PLNOG 13: Nicolai van der Smagt: SDN
PROIDEA
 
PDF
Opencontrail network virtualization
Nicolai van der Smagt
 
PDF
2015 FOSDEM - OVS Stateful Services
Thomas Graf
 
Introduction to OpenNetwork and SDN
HungWei Chiu
 
SDN/OpenFlow #lspe
Chris Westin
 
Network Virtualization & Software-defined Networking
Digicomp Academy AG
 
SDN & NFV Introduction - Open Source Data Center Networking
Thomas Graf
 
OpenFlow Tutorial
Ja-seop Kwak
 
Introduction to OpenFlow
Joel W. King
 
Open Flow Protocol
Vishal S M B
 
SDN Demystified, by Dean Pemberton [APNIC 38]
APNIC
 
Network plugins for kubernetes
inwin stack
 
Software defined network and Virtualization
idrajeev
 
Openstack openswitch basics
nshah061
 
Ch 02 --- sdn and openflow architecture
Yoram Orzach
 
Open vSwitch for networking solution for L2
HaseebAhmed360060
 
OpenFlow tutorial
openflow
 
Thebasicintroductionofopenvswitch
Ramses Ramirez
 
Virtualized network with openvswitch
Sim Janghoon
 
Bridges and Tunnels: A Drive Through OpenStack Networking
markmcclain
 
PLNOG 13: Nicolai van der Smagt: SDN
PROIDEA
 
Opencontrail network virtualization
Nicolai van der Smagt
 
2015 FOSDEM - OVS Stateful Services
Thomas Graf
 
Ad

More from HungWei Chiu (20)

PDF
Learn O11y from Grafana ecosystem.
HungWei Chiu
 
PDF
Learned from KIND
HungWei Chiu
 
PDF
Debug Your Kubernetes Network
HungWei Chiu
 
PDF
以 eBPF 構建一個更為堅韌的 Kubernetes 叢集
HungWei Chiu
 
PDF
Learning how AWS implement AWS VPC CNI
HungWei Chiu
 
PDF
Jenkins & IaC
HungWei Chiu
 
PDF
The relationship between Docker, Kubernetes and CRI
HungWei Chiu
 
PDF
Life
HungWei Chiu
 
PDF
Introduction to CRI and OCI
HungWei Chiu
 
PDF
IP Virtual Server(IPVS) 101
HungWei Chiu
 
PDF
Opentracing 101
HungWei Chiu
 
PDF
iptables and Kubernetes
HungWei Chiu
 
PDF
IPTABLES Introduction
HungWei Chiu
 
PDF
Load Balancing 101
HungWei Chiu
 
PDF
How Networking works with Data Science
HungWei Chiu
 
PDF
Introduction to CircleCI
HungWei Chiu
 
PDF
Head First to Container&Kubernetes
HungWei Chiu
 
PDF
Kubernetes 1001
HungWei Chiu
 
PDF
Application-Based Routing
HungWei Chiu
 
PDF
Build Your Own CaaS (Container as a Service)
HungWei Chiu
 
Learn O11y from Grafana ecosystem.
HungWei Chiu
 
Learned from KIND
HungWei Chiu
 
Debug Your Kubernetes Network
HungWei Chiu
 
以 eBPF 構建一個更為堅韌的 Kubernetes 叢集
HungWei Chiu
 
Learning how AWS implement AWS VPC CNI
HungWei Chiu
 
Jenkins & IaC
HungWei Chiu
 
The relationship between Docker, Kubernetes and CRI
HungWei Chiu
 
Introduction to CRI and OCI
HungWei Chiu
 
IP Virtual Server(IPVS) 101
HungWei Chiu
 
Opentracing 101
HungWei Chiu
 
iptables and Kubernetes
HungWei Chiu
 
IPTABLES Introduction
HungWei Chiu
 
Load Balancing 101
HungWei Chiu
 
How Networking works with Data Science
HungWei Chiu
 
Introduction to CircleCI
HungWei Chiu
 
Head First to Container&Kubernetes
HungWei Chiu
 
Kubernetes 1001
HungWei Chiu
 
Application-Based Routing
HungWei Chiu
 
Build Your Own CaaS (Container as a Service)
HungWei Chiu
 
Ad

Recently uploaded (20)

PPTX
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
PDF
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
PPTX
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Adobe Premiere Pro Crack / Full Version / Free Download
hashhshs786
 
PDF
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
PPTX
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PDF
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
PDF
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
PDF
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
PDF
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
PPTX
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
PDF
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PPTX
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
PPTX
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
PDF
NEW-Viral>Wondershare Filmora 14.5.18.12900 Crack Free
sherryg1122g
 
PDF
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
PDF
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Adobe Premiere Pro Crack / Full Version / Free Download
hashhshs786
 
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
NEW-Viral>Wondershare Filmora 14.5.18.12900 Crack Free
sherryg1122g
 
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 

Open vSwitch Introduction