root@randy:~# dmidecode | grep Vendor Vendor: Bochs root@randy:~# dmesg | grep KVM | sed 's/\[[^]]*\]//' Booting paravirtualized kernel on KVM KVM setup async PF for cpu 0 root@randy:~# dmesg | grep ixgbe | grep dna0 | sed 's/\[[^]]*\]//' ixgbe 0000:00:06.0: dna0: MAC: 2, PHY: 2, PBA No: 400900-000 ixgbe 0000:00:06.0: dna0: Enabled Features: RxQ: 16 TxQ: 16 FdirHash ixgbe 0000:00:06.0: dna0: Intel(R) 10 Gigabit Network Connection ixgbe 0000:00:06.0: dna0: NIC Link is Up 10 Gbps, Flow Control: RX/TX root@randy:~# dmesg | grep PF_RING | sed 's/\[[^]]*\]//' [PF_RING] Welcome to PF_RING 5.4.5 ($Revision: 5614$) [PF_RING] registered /proc/net/pf_ring/ [PF_RING] Min # ring slots 4096 [PF_RING] Slot version 14 [PF_RING] Capture TX Yes [RX+TX] [PF_RING] Transparent Mode 0 [PF_RING] IP Defragment No [PF_RING] Initialized correctly root@randy:~# tcpdump -i dna0 -s0 -w /dev/null tcpdump: listening on dna0, link-type EN10MB (Ethernet), capture size 8192 bytes 750380 packets captured 750380 packets received by filter 0 packets dropped by kernel
Showing posts with label VirtIO. Show all posts
Showing posts with label VirtIO. Show all posts
Wednesday, August 1, 2012
It's alive...
82599-based 10Gb NIC direct-mapped via PCIe SR-IOV into a KVM-paravirtualized Ubuntu 12.04. Initial test run looks very promising. Full-speed packet capture with zero copy and zero packet loss, thanks to the PF_RING DNA drivers running *inside the virtual machine*
Saturday, July 14, 2012
Security Garlic: A Preview of Coming Attractions
Upon discovering the wonders of PF_RING with DNA, OpenvSwitch L4-hashed port-mirroring, Intel® VT-d / SR-IOV, KVM with VirtIO, and Security Onion, I just knew that these incredibly powerful tools belonged together.
So I'd say this a very early Alpha-stage implementation of what I'm looking to accomplish and document, but I have high hopes for success. The goal is to use the PF_RING DNA drivers (and possibly vPF_RING) to perform transport-layer 5-tuple hashing and load-balancing in hardware, and then hand off the resulting pieces to a team of virtualized network inspection engines for deeper analysis. On the right hardware (modern higher-end Intel NICs), DNA and SR-IOV allow us to perform all this work using Zero-Copy Direct Memory Access, eliminating the need to burn CPU cycles simply to handle interrupts from your NIC. That means more horsepower to inspect all those packets.
UPDATE: I've discovered that OpenvSwitch's L4-hashing mechanism for load-balancing currently only works when LACP is enabled on a bonded link. LACP breaks the technique I'm employing here because it requires that all of the composite members of the port-channel be connected to the same endpoint device. I may have to write some patches for OpenvSwitch to get this working the way I'd like... in the meantime this is still doable with PF_RING.
UPDATE 2: I may have spoken too soon. Perhaps this has already been addressed: http://openvswitch.org/pipermail/dev/2011-May/008934.html
Labels:
DNA,
Intel,
KVM,
OpenvSwitch,
PF_RING,
SecurityGarlic,
SecurityOnion,
SR-IOV,
VirtIO
Subscribe to:
Posts (Atom)
