The cloud in the wild
Think about someone in Canada watching a video on their phone, where the video is served from Türkiye. The phone talks to a cellular operator, which hands the traffic to an ISP. From there it goes through TorIX (the Toronto Internet Exchange), across submarine cables, into the Istanbul Internet Exchange, through another ISP and finally to the content provider.

Almost every hop on that path runs some kind of cloud. Cell operators run edge clouds for NFV, billing, value-added services and points of presence, ISPs run their own, and exchanges and CDNs run infrastructure to move traffic between users and content providers. These are very different clouds with very different requirements, and each of them adds some latency. Canada to Türkiye is already around 140 to 150 ms round trip just because of the distance, so any cloud on the path that adds more makes every packet slower.
Who uses OpenStack?#
OpenStack shows up in a lot of these places. The internet sector uses it for domain registrars, VoIP and hosting. Most of the big telcos run it somewhere, often for those edge clouds. Finance uses it for day-to-day operations, and HPC and R&D use it as well. Academia keeps building more proofs of concept and points of presence on it too.
Because it's used in so many places, it's hard to get right for everyone. These sectors want very different things, and a generic cloud doesn't fit all of them out of the box. NFV, back-end processing and front-end services have very different latency needs, which is why there are purpose-built GPU, HPC and NFV clouds. Some clouds are tens of servers and some are hundreds of thousands. Some users know clouds inside out and others are new to them. Networking is where these differences show up the most.
Linux bridge, OVS and OVN#
OpenStack has gone through a few networking backends. Linux bridge was the original one. It's simple to deploy and still common, but it doesn't have many features. Open vSwitch brought a lot more features, along with a more complicated deployment and an agent for everything. OVN is the newest, and it needs far fewer agents. Its control plane lives in the OVN databases, ovn-controller programs OVS on each node, and DHCP and routing are built in.
Where the latency comes from#

In a traditional OVS deployment, a packet leaving a VM goes through a lot of Linux pieces: the guest's virtio driver, vhost-net, a tap device, a Linux bridge (where the iptables security groups live), a veth pair, the OVS forwarding plane and finally the NIC driver. Each of them adds latency and CPU cost to every packet. How packets actually flow in OpenStack goes through that path in more detail.
For most workloads that's fine. HPC running in a cloud is different, and so are NFV and telco workloads like the edge clouds above. They need low latency and high throughput, often with small packets. The usual options for them are DPDK, SR-IOV and plain PCI passthrough.
DPDK#
DPDK takes the kernel out of the data path. Packets skip the Linux network stack and are handled by poll-mode threads inside ovs-vswitchd, which send them straight from user space to the NIC. Logically, a DPDK deployment looks almost the same as a regular one. Traffic goes from the VM to a vhost-user port on an OVS bridge, through the next bridge and out of the physical interface. Underneath, all of it happens in that one user-space process.
On the Nova side, vhost-user needs the guest's memory in huge pages, which you set on the flavor:
openstack flavor set m1.dpdk --property hw:mem_page_size=largeSR-IOV#
SR-IOV moves the virtualization onto the NIC. One card shows up as a physical function (PF) and a number of virtual functions (VFs), and each VM gets direct access to a VF. There's no OVS and no switching on the host, so latency is very low, and that's a big reason telcos use it so much.
openstack port create --network provider-net --vnic-type direct sriov-port
openstack server create --flavor m1.large --image ubuntu-22.04 --port sriov-port vm1The downside is that nothing sits between the VM and the wire anymore. Security groups don't apply to SR-IOV ports, so you only get what the NIC itself can enforce for each VF, like VLANs and MAC spoof checking.
PCI passthrough#
PCI passthrough gives a whole PCI device to a single VM. It's usually how GPUs and some special NICs get handed out. With an alias defined in nova.conf, the flavor asks for the device:
openstack flavor set gpu.large --property "pci_passthrough:alias"="a1:1"There's more on the Nova side in PCI passthrough: Type-PF, Type-VF and Type-PCI.
A few lessons#
Stick to mainstream OpenStack where you can. Custom one-off changes to core components tend to come back and bite you later. If you need to build something for a component, build it around the component rather than inside it.
Know your use case. You won't know every requirement when you build a new cloud, but pin down the ones you have now and think about what you'll need later, so the cloud can grow.
Don't neglect governance. An OpenStack cloud doesn't have endless cores and memory, so if it's going to grow, it needs quotas and some kind of approval process.
And before you rebuild a deployment around DPDK or SR-IOV, make sure the workload actually needs it.
The recording and slides are on the talk page.